catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
328 stars 81 forks source link

Remove dependency on dvb-apps #961

Closed catalinii closed 2 years ago

catalinii commented 2 years ago

cc @Jalle19 @Yuri666 can you guys test this PR? For me this does not work and fails auth around 40% missing an call to CIPLUS_APP_CC_handler from the CAM. Any pointers on what could be wrong ?

catalinii commented 2 years ago

Enabling Host control as suggested by @Yuri666 fixed few cams, mine is still not working so I will have to dig deeper.

Jalle19 commented 2 years ago

Tried a Kabelio CAM with this patch set, same issue as before (CAM never opens a content control resource) :shrug:

catalinii commented 2 years ago

Do u have access to kabelio? This patch works on enigma2 receivers as well

Jalle19 commented 2 years ago

@catalinii yes, for the moment

catalinii commented 2 years ago

Can u share it? The point is we can sniff enigma2 traffic and compare.

catalinii commented 2 years ago

One note: datetime for enigma2 and minisatip/dvb-apps is different. Minisatip sends an apdu of 5 bytes while enigma2 sends an apdu of 6 bytes (first one being 05). My CAM fails with enigma2 way of sending the datetime.

catalinii commented 2 years ago

Enigma code: https://github.com/openatv/enigma2/blob/7.0/lib/dvb_ci/dvbci_datetimemgr.cpp#L66

Yuri666 commented 2 years ago

Enigma code is wrong

Table 32: Date-Time Enquiry object coding Syntax No. of bits Mnemonic date_time () { date_time_tag 24 uimsbf length_field()= 5 or 7 UTC_time 40 bslbf local_offset / optional / 16 tcimsbf

catalinii commented 2 years ago

I will create a PR for enigma2

Jalle19 commented 2 years ago

Can u share it?

Yes, please contact me by e-mail on sam.stenvall [at] iki.fi.