Project

General

Profile

Many months troubleshooting but almost there. Please help needed with EMM.

Added by Peter LB over 7 years ago

Hi I have tried for many months to get Oscam working with Newcamd. I think I have finally got it working, BUT I don't get any EMM's which is very frustrating, so I really hope some genius can help me get it working.

My configs are:

oscam.conf
[global]
usrfile = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/oscamuser.log
logfile = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/oscam.log
emmlogdir = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/emm.log
cwlogdir = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/cw
nice = -1
saveinithistory = 1
lb_mode = 1
lb_save = 100
lb_savepath = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log
fallbacktimeout = 2600
lb_min_ecmcount = 5
lb_max_ecmcount = 500
lb_reopen_seconds = 900

[monitor]
port = 988
aulow = 120
hideclient_to = 15
monlevel = 1
appendchaninfo = 0

[webif]
httpport = 8888
httpuser = admin
httppwd = xxxxxx
httpallowed = 0.0.0.0-255.255.255.255

[newcamd]
key = 0102030405060708091011121314
port = 10001@0500:FFF490,040210,040220,040230,040240
keepalive = 1

#[dvbapi]
#au = 1
#enabled = 1
#pmt_mode = 4
#boxtype = pc

oscam.user
[account]
user = tvheadend
pwd = tvheadend
au = Ziggo,Ziggo1
group = 1,2
cccstealth = 1

[account]
user = tvheadend1
pwd = tvheadend1
au = Ziggo,Ziggo1
group = 1,2
cccstealth = 1

[account]
user = tvheadend2
pwd = tvheadend2
au = Ziggo,Ziggo1
group = 1,2
cccstealth = 1

[account]
user = tvheadend3
pwd = tvheadend3
au = Ziggo,Ziggo1
group = 1,2
cccstealth = 1

oscam.server
[reader]
label = Ziggo
protocol = smargo
device = /dev/ttyUSB0
detect = cd
group = 1
emmcache = 1,2,2,0
blockemm-unknown = 1
blockemm-g = 1
saveemm-u = 1
saveemm-s = 1
lb_weight = 100

[reader]
label = Ziggo1
protocol = smargo
device = /dev/ttyUSB1
detect = cd
group = 2
emmcache = 1,2,2,0
blockemm-unknown = 1
blockemm-g = 1
saveemm-u = 1
saveemm-s = 1
lb_weight = 100


Replies (13)

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Alex . over 7 years ago

Hi , not sure if it helps but i notice you also use Ziggo. Here is my oscam.conf:

/opt/oscam/etc $ cat oscam.conf
[global]
usrfile = /opt/oscam/oscamuser.log
logfile = /opt/oscam/oscam.log
cwlogdir = /opt/oscam/etc/cw
disablelog = 0
disableuserfile = 0
usrfileflag = 0
clienttimeout = 2000
fallbacktimeout = 1500
clientmaxidle = 120
failbantime = 0
bindwait = 120
netprio = 0
clientdyndns = 0
resolvedelay = 2
unlockparental = 0
nice = -1
serialreadertimeout = 1000
maxlogsize = 10
waitforcards = 1
preferlocalcards = 1
saveinithistory = 0
readerrestartseconds = 5
lb_mode = 0
lb_save = 0
lb_nbest_readers = 1
lb_nfb_readers = 1
lb_min_ecmcount = 5
lb_max_ecmcount = 500
lb_reopen_seconds = 900
resolvegethostbyname = 0

[newcamd]
port = 15050@0604:000000
key = 0102030405060708091011121314
allowed = 127.0.0.1
keepalive = 1
mgclient = 0

[webif]
httpport = 15080
httpuser = username
httppwd = password
httprefresh = 0
httpallowed = 127.0.0.1,YourIpRange
httphideidleclients = 0
httpreadonly = 0

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Alex . over 7 years ago

Sorry, upon re-reading:

I think I have finally got it working, BUT I don't get any EMM's which is very frustrating

What do you mean exactly with that, if you got it working? I.e., is it only the updating of the codes that is not working?

  • I assume you ticked the 'Update card (EMM):' checkmark, are there any error messages?
  • How did you choose the muxes to use/did you switch off any specific muxes after service discovery?

Alex.

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Alex . about 7 years ago

Hi Peter,

Upon re-reading your config file, I notice you have two [reader] entries,

  • I only have one ( in the oscam.server file), and non in the oscam.config file you have both in the config file. Do you have an oscam.server file as well?.
  • In your case, each of them points to a different device ( ttyUSB0 and ttyUSB1) which seems to be conflicting.

Peter LB wrote:

oscam.server
[reader]
label = Ziggo
protocol = smargo
device = /dev/ttyUSB0
detect = cd
group = 1
emmcache = 1,2,2,0
blockemm-unknown = 1
blockemm-g = 1
saveemm-u = 1
saveemm-s = 1
lb_weight = 100

[reader]
label = Ziggo1
protocol = smargo
device = /dev/ttyUSB1
detect = cd
group = 2
emmcache = 1,2,2,0
blockemm-unknown = 1
blockemm-g = 1
saveemm-u = 1
saveemm-s = 1
lb_weight = 100

My [reader] entry in the config.server file looks like:

[reader]
Label = Ziggo
Device = /dev/ttyUSB0
mhz = 600
cardmhz = 600
Protocol = mouse
EMMCache = 1,3,2
Group = 1
caid = 0604:0000
rsakey = 3C8633AAC0D367533DEC7BB2EEEDEB8CA3ADA52E58B99BB34672783277A1DAAC3B6106$
boxkey = 1122334455667788
fallback = 0

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Peter LB about 7 years ago

Hi what I mean by almost working is everything except EMM are working.
I have 2 readers therefore I have configured it 2 times.

What can I do to get EMM working.

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Alex . about 7 years ago

Hi,

  • I assume with 'EMM is working' you mean the 'automatic updates of the keys' as send out by Ziggo?

Note that in my case the updates work with the configurations supplied above. ( However, once the keys are expired for some reason I do first put them in my regular Ziggo tv box first. After that keys are update automatically).

As stated above, some other questions:

  • did you 'check' the 'Update card (EMM):' checkmark? ( i assume so, but would be good to verify)
  • are there any (error) messages in the log?
  • How did you choose the muxes to use/did you switch off any specific muxes after service discovery? ( the updates need some specific muxes to be active i think)

Alex.

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Peter LB about 7 years ago

Hi Alex. Thanks for the answer.
- I assume with 'EMM is working' you mean the 'automatic updates of the keys' as send out by Ziggo?
What I want is for it to automatically update, so I don't have to take the card out each month. Ziggo is just a name. I have a Danish TV subscription.

- did you 'check' the 'Update card (EMM):' checkmark? ( i assume so, but would be good to verify)
Where do I check that setting?

- No EMM mentioning in the log whatsoever.

- How did you choose the muxes to use/did you switch off any specific muxes after service discovery? ( the updates need some specific muxes to be active i think)

I don't know what you mean by that:) ?

I have TVHeadend in the other end and TVHeadend log show it will be acceptable/send EMMs

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Alex . about 7 years ago

Hi,

Peter LB wrote:

- I assume with 'EMM is working' you mean the 'automatic updates of the keys' as send out by Ziggo?

What I want is for it to automatically update, so I don't have to take the card out each month.

Understood. For me that works with the given oscam configs (see above) for my Ziggo subscription.

- did you 'check' the 'Update card (EMM):' checkmark? ( i assume so, but would be good to verify)
Where do I check that setting?

Under ' configuration' , ' CA's' , 'update card (EMM)'
There you should check the checkboxes ( I have both selected).

- How did you choose the muxes to use/did you switch off any specific muxes after service discovery? ( the updates need some specific muxes to be active i think)

I don't know what you mean by that:) ?

As I understand it the EMM-updates are only broadcasted over specific service channels/muxes. So, if you switch that one off under the muxes channel, you might not see the updates.
If you used the pre-provisioned ones you should be ok.

Alex.

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Tom Munhóz about 7 years ago

i think the problem is with your oscam reader conf. post here and i will help ya. tonight i got my emm working as you can see above;

2017/08/30 7:55:22 B5B2CB40 r tommaster emmtype=unique, len=107, idx=56, cnt=1: written (88 ms) by c4
2017/08/30 7:55:22 B732FB40 r tommaster emmtype=unique, len=107, idx=56, cnt=1: written (92 ms) by c1
2017/08/30 7:55:22 B632DB40 r tommaster emmtype=unique, len=107, idx=56, cnt=1: written (92 ms) by c3
2017/08/30 7:55:22 B6B2EB40 r tommaster emmtype=unique, len=107, idx=56, cnt=1: written (126 ms) by c2
2017/08/30 11:22:19 B732FB40 r tommaster emmtype=unique, len=107, idx=57, cnt=1: written (92 ms) by c1
2017/08/30 11:22:19 B6B2EB40 r tommaster emmtype=unique, len=107, idx=57, cnt=1: written (92 ms) by c2
2017/08/30 11:22:19 B5B2CB40 r tommaster emmtype=unique, len=107, idx=57, cnt=1: written (93 ms) by c4
2017/08/30 11:22:19 B632DB40 r tommaster emmtype=unique, len=107, idx=57, cnt=1: written (127 ms) by c3

cya

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Peter LB about 7 years ago

Hi Alex. Yes have checked the EMM setting.

And Tom please help, I really need a working config.
I don't see any EMM requests in log whatsoever.

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Alex . about 7 years ago

Hi,

Did you try the reader-settings I posted above? Those work for me so it would be good to try.

Also, maybe first try with only one reader and see if you can get that to work.

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Peter LB about 7 years ago

Hi Tom. If you have a suggestion, please help.
@Alex: thanks for the suggestion, I have tried it, but didn't put anything in the Oscam log for EMM after a few hours on the same channel.

RE: Many months troubleshooting but almost there. Please help needed with EMM. - Added by Peter LB over 6 years ago

I still haven't got this resolved with EMM not updating. Any help please?

    (1-13/13)