oscam-emu / oscam-patched

Open Source Cam Emulator
GNU General Public License v3.0
9 stars 6 forks source link

oscam-emu will not allow remote client to AU keys #3

Open 0074 opened 5 years ago

0074 commented 5 years ago

Even with AU enabled I cannot get a remote client (oscam using cccam protocol) to update the ECM keys in oscam-emu. It seems the EMM filters (UAs) are not sent. From the client log

(dvbapi) Demuxer 0 matching reader  XxxxxxX  against available emmpids -> START!                              
(reader) XxxxxxX  [cccam] EMM: reader 0E00 match since emmpid has no provid -> SEND!                          
(dvbapi) Demuxer 0 cardsystem for emm filter for caid 0E00 of reader  XxxxxxX  not found                      
(dvbapi) Demuxer 0 matching reader  XxxxxxX  against available emmpids -> DONE!                               
(dvbapi) Demuxer 0 handles 0 emm filters                                                                      
(dvbapi) Demuxer 0 filter1[0] = 80, filter mask[0] = F0, flt&mask = 80 , buffer[0] = 80, buffer[0] & mask = 80

Is it possible to fix this?

AU works fine on the local server. If the correct ECM keys are in the SoftCam.key file of the server then the client gets a picture. It is just the EMM keys AU'ing that is the problem.

oscam.user file on Server

[account]
description                   = XxxxxxX
user                          = user
pwd                           = password
group                         = 1
caid                          = 0E00
ident                         = 0E00:000000
au                            = 1
emu_auproviders               = 0E00:000000

oscam.server file on the remote client

[reader]
label                         = XxxxxxX 
enable                        = 1
protocol                      = cccam
device                        = DNS.IP.com,xxxx
user                          = user
password                      = password
inactivitytimeout             = 30
caid                          = 0E00
ident                         = 0E00:000000
group                         = 1
cccwantemu                    = 1
au                            = 1
saveemm-u                     = 1
emu_auproviders               = 0E00:000000
oscam-emu commented 5 years ago

I believe EMMs are not supported, at least for powervu. This is the case for newcamd and camd protocols at least. I don't know if it's anything different on cccam.

What powervu channels are you able to watch via your remote user? Powervu and the extended cw is not supported via network users at all, so I guess this must be a special channel case?

L-S-D commented 5 months ago

as a side note and another possible resason, PowerVu EMMs are only working if the enigma name space is not 0, I removed the check in static uint32_t create_channel_hash(uint16_t caid, uint16_t tsid, uint16_t onid, uint32_t ens) so that AU is working with tvheadend, maybe thats something which should be reconsidered in general.

nautilus7 commented 5 months ago

If emm keys that utilize channel hash are not present in softcam.key, emu is looking for the old style keys. Presence of such keys should start the emm (au) routines.

For network clients, the network protocol should support powervu emm, which at the moment I can't remember what requirements it has.

Please explain what's your experience in general and your setup in order to understand what you mean.

L-S-D commented 5 months ago

you are so right, I "patched" my user error as I always had a hash entry in the key file for several years. I still like the functionality of having a hash, even if it's without the orbital position, so i will keep it for now. I'm not sure how many transponders are without a usable NIT, otherwise it could be used in case no ens is available