Jump to content


Photo

Parsing ecm.info from wicardd softcam


  • Please log in to reply
8 replies to this topic

#1 crazyyyk

  • Member
  • 24 posts

0
Neutral

Posted 4 March 2015 - 12:31

Hi!

Can you modify GetEcmInfo for parsing ecm.info file from wicardd softcam?

Here is an example:

/tmp/ecm.info:

Service: 6593 (Viasat Sport HD)
ECM PID: 0x106B
CAID: 0x0500
Provider: 0x040600
ChID: 0x0000
cw0: 6DA01D9A072D5183
cw1: B56F4F8293C12470
response time: 746 ms decoded by server (www.server.com:4400)

I think it should be something like this:

............
else:
	response = info.get('response time', None)
	if response:
		# wicardd
		t = response.split(' ')
		self.textvalue = t[4] + " (%ss)" % (float(t[0])/1000)
............
decCI = info.get('caid', '0')
if decCI == '0':
	decCI = info.get('CAID', '0')
provid = info.get('prov', '0')
if provid == '0':
	provid = info.get('Provider', '0')
ecmpid = info.get('pid', '0')
if ecmpid == '0':
	ecmpid = info.get('ECM PID', '0')
............

 



Re: Parsing ecm.info from wicardd softcam #2 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 4 March 2015 - 14:54

What is wicardd softcam?

 

I suggest you could perform a change of the GetEcmInfo .py file as consideration to add it....


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Parsing ecm.info from wicardd softcam #3 crazyyyk

  • Member
  • 24 posts

0
Neutral

Posted 4 March 2015 - 15:00

What is wicardd softcam?

It is a very popular softcam in Russia, may be not only in Russia.

 

 

I suggest you could perform a change of the GetEcmInfo .py file as consideration to add it....

I don't understand what you mean. I gave an example of ecm.info. I changed GetEcmInfo.py on my own box, but I want you add parsing of this type of ecm.info file.



Re: Parsing ecm.info from wicardd softcam #4 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 4 March 2015 - 15:08

Then give me your GetECMInfo.py.. when it does not interfere with the other emu's I can simply take it... As the emu could be useless for me it might be I'm not able to test at all... 


Edited by littlesat, 4 March 2015 - 15:08.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Parsing ecm.info from wicardd softcam #5 crazyyyk

  • Member
  • 24 posts

0
Neutral

Posted 4 March 2015 - 15:55

Sorry, the latest version

Attached Files



Re: Parsing ecm.info from wicardd softcam #6 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 5 March 2015 - 08:03

Could you try this (several times... I suggest you understand)

 

decCI = info.get('caid', info.get('CAID', '0'))
 
probably we could also improve provider id to nest it competely....
 
And 
 
response = response.split(' ')
self.textvalue = "%s (%ss)" % (response[4], float(response[0])/1000)
 
[At this moment I also see that a lot of code there could make better as I and others did in the past]

Edited by littlesat, 5 March 2015 - 08:12.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Parsing ecm.info from wicardd softcam #7 crazyyyk

  • Member
  • 24 posts

0
Neutral

Posted 5 March 2015 - 09:29

 

Could you try this (several times... I suggest you understand)

 

decCI = info.get('caid', info.get('CAID', '0'))
 
probably we could also improve provider id to nest it competely....
 
And 
 
response = response.split(' ')
self.textvalue = "%s (%ss)" % (response[4], float(response[0])/1000)
 
[At this moment I also see that a lot of code there could make better as I and others did in the past]

 

I have tested it and it works.

 

I replace 

decCI = info.get('caid', '0')
if decCI == '0':
decCI = info.get('CAID', '0')

with

decCI = info.get('caid', info.get('CAID', '0'))

and

t = response.split(' ')
self.textvalue = t[4] + " (%ss)" % (float(t[0])/1000)

with

response = response.split(' ')
self.textvalue = "%s (%ss)" % (response[4], float(response[0])/1000)
 

Edited GetEcmInfo.py file is attached

Attached Files



Re: Parsing ecm.info from wicardd softcam #8 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 5 March 2015 - 12:23

And do please change the others too where we still have the if "0" then.... construction :D


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Parsing ecm.info from wicardd softcam #9 crazyyyk

  • Member
  • 24 posts

0
Neutral

Posted 5 March 2015 - 12:39

And do please change the others too where we still have the if "0" then.... construction :D

I tested it too, it works also! But I can test only on oscam and wicard.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users