Project

General

Profile

AlphaCrypt Hardware CI did not descrambling

Added by Manuel Menz about 5 years ago

Hi,

i have a problem with my AlphaCrypt Hardware CI Modul. TvHeadend recognizes the Modul but it did not descrambling encrypted channels.

Oct 17 19:29:37 tvheadend tvheadend1232: en50221: CAM slot 0 supported CAIDs: 1830 (NagraVision) 0648 (Irdeto) 1702 (BetaCrypt) 1722 (BetaCrypt) 1762 (BetaCrypt) 4A20 (0x4a20) 0500 (Viaccess) 0B00 (Conax) 0100 (Seca) 1833 (NagraVision) 1834 (NagraVision) 0D05 (CryptoWorks) 0D95 (CryptoWorks ICE) 09C4 (NDS) 093E (NDS) 0963 (NDS) 09
Oct 17 19:29:37 tvheadend tvheadend1232: subscription: 0813: "scan" subscribing to mux "10743.75H", weight: 2, adapter: "Tmax TAS2101 : DVB-S #0", network: "DVB-S Network", service: "Raw PID Subscription"
Oct 17 19:29:38 tvheadend tvheadend1232: en50221: CAM slot 0: Application type: 01, manufacturer: 4a20, Manufacturer code: 4a22
Oct 17 19:29:38 tvheadend tvheadend1232: en50221: CAM slot 0: Menu string: AlphaCrypt

Have i do some settings before i can decrypt channels with the Hardware CI?

Regards
Manuel


Replies (42)

RE: AlphaCrypt Hardware CI did not descrambling - Added by Mike Ebner about 5 years ago

Hi again,
there seems to be a bug with hardware CAM in the current tvheadend version, maybe it also affects you. I experienced the issue that the CAM worked perfectly when using vlc as client for the full mpeg ts. Whenever using HTSP or any transcoding profile it wouldn't work. After spending hours on that I've found a hint in one of the bugtracking discussions. I've created a fake CA in the "CA tab" > Add CAPMT > standard settings. TVH will complain that it can't connect, but since that the hardware CAMs work perfectly. Give it a try!
Regards,
Michael

RE: AlphaCrypt Hardware CI did not descrambling - Added by Manuel Menz about 5 years ago

Hi Michael,

thanks for the hint.
I will give it a try and give feedback whether it works.

The fake CA have to be enabled, right?

Regards
Manuel

RE: AlphaCrypt Hardware CI did not descrambling - Added by Manuel Menz about 5 years ago

Hi Michael,

i've downloaded the latest Tvheadend version yesterday. Now the CAM works with and without the fake CA in my Setup.

Regards
Manuel

RE: AlphaCrypt Hardware CI did not descrambling - Added by Mike Ebner about 5 years ago

Hi Manuel,
thanks for letting me know, I'll check that out too.
Regards,
Michael

RE: AlphaCrypt Hardware CI did not descrambling - Added by over drive about 5 years ago

How do you get TVH working with AlphaCrypt Hardware CI?
On which device do you have TVH and AC running?

Thanks in advance
over

RE: AlphaCrypt Hardware CI did not descrambling - Added by Manuel Menz about 5 years ago

Hi over,

i have a TBS 5990 USB DVB-S Adapter with the official driver from TBS (https://github.com/tbsdtv/linux_media/wiki).
My Tvheadend Version is 4.1-2286~gb15b02c.

You have to compile with --enable-liben50221 support (i think this is default).
Then just plug the CAM in and enable it in Tvheadend.

Regards
Manuel

RE: AlphaCrypt Hardware CI did not descrambling - Added by over drive about 5 years ago

Thanks for the fast response.
Can you encrypt more then one channel at time?

RE: AlphaCrypt Hardware CI did not descrambling - Added by Manuel Menz about 5 years ago

I don't know i did not tested this.
I can test this next week and give feedback.

RE: AlphaCrypt Hardware CI did not descrambling - Added by Manuel Menz about 5 years ago

I've tested descrambling two channels at same time and it works with my AlphaCrypt Module.

Regards
Manuel

RE: AlphaCrypt Hardware CI did not descrambling - Added by over drive almost 5 years ago

Hello and thank you for the testing.

Where the channels on different transponders?
Can you test 3 Channel with everyone on an other transponder?

regards
OVER

RE: AlphaCrypt Hardware CI did not descrambling - Added by Manuel Menz almost 5 years ago

Hi,

no, i can not test this because at the moment i have only one dvb-s cable to the tvheadend box.

Regards
Manuel

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

i also tested this, without luck.

same settings, fresh compiled version.
with fake and without ... Alphacrypt is recognized but nothing decoded

whats going wrong?

RE: AlphaCrypt Hardware CI did not descrambling - Added by Eddsch K almost 5 years ago

same Problem here:

what i've done:

+ try diffent versions - i've tried to use TvH 4.0.9 and 4.1-2268 and the newest git, but it does not work:
+ try to use a "Fake CA"
+ reboot
+ newest driver from Digital Devices
+ play with CI settings

Here the log, same Problem, as user Niklas Koehler

++++

2016-12-06 12:19:16.137 [ TRACE] dvbcam: stop service 0x7f25b4013470
2016-12-06 12:19:16.137 [ NOTICE] linuxdvb: CAM slot 0 status changed to module ready
2016-12-06 12:19:16.193 [ TRACE] en50221: 0x00000000 session 1 tc connect
2016-12-06 12:19:16.507 [ TRACE] en50221: 0x00010041 session 1 connecting
2016-12-06 12:19:16.507 [ TRACE] en50221: 0x00010041 session 1 connected
2016-12-06 12:19:16.923 [ TRACE] en50221: rm reply cb received for slot 0, count 0
2016-12-06 12:19:17.240 [ TRACE] en50221: rm enq callback received for slot 0
2016-12-06 12:19:17.555 [ TRACE] en50221: lookup cb for unknown resource id 200041 on slot 0
2016-12-06 12:19:17.555 [ TRACE] en50221: 0x00200041 session 2 connecting
2016-12-06 12:19:17.555 [ TRACE] en50221: 0x00200041 session 2 connected
2016-12-06 12:19:17.555 [ TRACE] en50221: session 2 with unknown rid 0x00200041 is connected
2016-12-06 12:19:17.970 [ TRACE] en50221: 0x00030041 session 3 connecting
2016-12-06 12:19:17.970 [ TRACE] en50221: 0x00030041 session 3 connected
2016-12-06 12:19:18.398 [ TRACE] dvbcam: unregister cam lca 0x564e193176f0 slot 0
2016-12-06 12:19:18.399 [ TRACE] dvbcam: register cam ca 0x564e193176f0 slot 0 num_caids 18
2016-12-06 12:19:18.399 [ INFO] en50221: CAM slot 0 supported CAIDs: 098C (NDS) 0648 (Irdeto) 1702 (BetaCrypt) 1722 (BetaCrypt) 1762 (BetaCrypt) 4A20 (0x4a20) 0500 (Viaccess) 0B00 (Conax) 0100 (Seca) 1833 (NagraVision) 1834 (NagraVision) 0D05 (CryptoWorks) 0D95 (CryptoWorks ICE) 09C4 (NDS) 093E (NDS) 0963 (NDS) 0919 (NDS)
2016-12-06 12:19:18.606 [ TRACE] en50221: 0x00240041 session 4 connecting
2016-12-06 12:19:18.606 [ TRACE] en50221: 0x00240041 session 4 connected
2016-12-06 12:19:18.920 [ TRACE] en50221: datetime enquiry cb received for slot 0
2016-12-06 12:19:19.131 [ TRACE] en50221: 0x00020041 session 5 connecting
2016-12-06 12:19:19.131 [ TRACE] en50221: 0x00020041 session 5 connected
2016-12-06 12:19:19.553 [ INFO] en50221: CAM slot 0: Application type: 01, manufacturer: 4a20, Manufacturer code: 4a22
2016-12-06 12:19:19.553 [ INFO] en50221: CAM slot 0: Menu string: AlphaCrypt

So when i start to watch an crypted channel

2016-12-06 12:20:15.365 [ TRACE] dvbcam: cannot find active cam entry
++++
from: https://tvheadend.org/boards/13/topics/23842

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

I have the Max S8 and Octopus Duo Ci.

I don't really understand with the adapaters_alloc = 3 i have adapter0 and adapter1 under /dev/dvb ...

shouldn't it be only one?

i compiled yesterday latest version ... can see the AC under the CAs ... but decrypting isn't working ...

RE: AlphaCrypt Hardware CI did not descrambling - Added by Eddsch K almost 5 years ago

i think two devices under /dev/dvb are right in your case

read here for configs:

echo 'options ddbridge fmode=x' | sudo tee /etc/modprobe.d/ddbridge.conf

fmode=0
4-Tuner
fmode=1
Quad-LNB 
fmode=2
Quattro-LNB
fmode=3
Unicable oder JESS LNB

i have 3 devices - DD Cines S2 V6 (dual tuner) and CineFlexCI

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

Yes, fmode=1 is set in my options ...

The Server runs perfectly for months now ... i just wanna try to include my Abocard into it.
I'm on Ubuntu 16.04.1 LTS ... and all the redirect commands didn't work for me. no rights to do that (with sudo too) ...

really don't know what to do anymore

RE: AlphaCrypt Hardware CI did not descrambling - Added by Eddsch K almost 5 years ago

got it working, see here:
https://www.linuxtv.org/wiki/index.php/Digital_Devices_DuoFlex_C%26T#Adding_CI

in my case it was echo "00 02" > /sys/class/ddbridge/ddbridge0/redirect

but i've a big Problem: afer switching around a bit i've got a green image with interferences

also i need luck to get it working for 4-5 channels, after switching it does not descramble - or it does not descramble form beginning - it is random

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

he always told me i have no rights to do that command

RE: AlphaCrypt Hardware CI did not descrambling - Added by Eddsch K almost 5 years ago

you must stop any service that uses /dev/dvb

like:
service tvheadend stop

echo "X0 X2" > /sys/class/ddbridge/ddbridge0/redirect
Y Z

X: adapter number like ca0 --> X=0
Y: usually zero --> Y=0
Z: TAB interface 1 -> TAB3 ---> Z=2

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

everything stopped (i can modprobe -r the ddbridge) so i can be sure nothing access /dev/dvb

echo "00 02" > /sys/class/ddbridge/ddbridge0/redirect
-bash: /sys/class/ddbridge/ddbridge0/redirect: Keine Berechtigung (the last is german stands for not allowed)

i really don't know what i'm doing wrong

RE: AlphaCrypt Hardware CI did not descrambling - Added by Mark Clarkstone almost 5 years ago

Christian Brauwers wrote:

everything stopped (i can modprobe -r the ddbridge) so i can be sure nothing access /dev/dvb

echo "00 02" > /sys/class/ddbridge/ddbridge0/redirect
-bash: /sys/class/ddbridge/ddbridge0/redirect: Keine Berechtigung (the last is german stands for not allowed)

i really don't know what i'm doing wrong

Do it as root ("su" (if non-deb/ubuntu) or "sudo -s").

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

ahhh damn, i always put the sudo on the wrong position ...

can somebody explain me the thing with the TABs?

[71794.503755] DDBridge: Digital Devices PCIE bridge driver 0.9.28, Copyright (C) 2010-16 Digital Devices GmbH
[71794.504051] DDBridge: device name: Digital Devices Octopus CI
[71794.504077] DDBridge: HW 00010006 REGMAP 00010002
[71794.504093] DDBridge: link 0 vendor dd01 device 0011 subvendor dd01 subdevice 0040
[71794.505687] DDBridge: Port 0: Link 0, Link Port 0 (TAB 1): NO MODULE
[71794.506900] DDBridge: Port 1: Link 0, Link Port 1 (TAB 2): NO MODULE
[71794.506904] DDBridge: Port 2: Link 0, Link Port 2 (TAB 3): CI internal
[71794.506908] DDBridge: Port 3: Link 0, Link Port 3 (TAB 4): CI internal
[71794.507764] DDBridge: 0 netstream channels
[71794.507770] DVB: registering new adapter (DDBridge)
[71794.508756] DDBridge: device name: Digital Devices MAX S8 4/8
[71794.508784] DDBridge: HW 01010006 REGMAP 00010001
[71794.508801] DDBridge: link 0 vendor dd01 device 0007 subvendor dd01 subdevice 0023
[71794.616514] DDBridge: Port 0: Link 0, Link Port 0 (TAB 1): DUAL DVB-S2 MAX
[71794.616520] DDBridge: Port 1: Link 0, Link Port 1 (TAB 2): DUAL DVB-S2 MAX
[71794.616523] DDBridge: Port 2: Link 0, Link Port 2 (TAB 3): DUAL DVB-S2 MAX
[71794.616526] DDBridge: Port 3: Link 0, Link Port 3 (TAB 4): DUAL DVB-S2 MAX
[71800.210571] dvb_ca adapter 0: DVB CAM detected and initialised successfully
[71800.242111] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 0 (MXL5XX)...
[71800.290091] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 1 (MXL5XX)...
[71800.338053] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 2 (MXL5XX)...
[71800.386075] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 3 (MXL5XX)...
[71800.386459] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 4 (MXL5XX)...
[71800.386930] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 5 (MXL5XX)...
[71800.387352] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 6 (MXL5XX)...
[71800.387762] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 7 (MXL5XX)...

The CAM is adapter0 and the Tuners are adapter1 (with adapter_alloc=3)

How can i check that redirect is set correctly?

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

ls -la /dev/dvb/*
/dev/dvb/adapter0:
insgesamt 0
drwxr-xr-x 2 root root     120 Jan 19 18:15 .
drwxr-xr-x 4 root root      80 Jan 19 18:15 ..
crw-rw---- 1 root video 212, 0 Jan 19 18:15 ca0
crw-rw---- 1 root video 212, 2 Jan 19 18:15 ca1
crw-rw---- 1 root video 212, 1 Jan 19 18:15 ci0
crw-rw---- 1 root video 212, 3 Jan 19 18:15 ci1

/dev/dvb/adapter1:
insgesamt 0
drwxr-xr-x 2 root root      680 Jan 19 18:15 .
drwxr-xr-x 4 root root       80 Jan 19 18:15 ..
crw-rw---- 1 root video 212,  4 Jan 19 18:15 demux0
crw-rw---- 1 root video 212,  8 Jan 19 18:15 demux1
crw-rw---- 1 root video 212, 12 Jan 19 18:15 demux2
crw-rw---- 1 root video 212, 16 Jan 19 18:15 demux3
crw-rw---- 1 root video 212, 20 Jan 19 18:15 demux4
crw-rw---- 1 root video 212, 24 Jan 19 18:15 demux5
crw-rw---- 1 root video 212, 28 Jan 19 18:15 demux6
crw-rw---- 1 root video 212, 32 Jan 19 18:15 demux7
crw-rw---- 1 root video 212,  5 Jan 19 18:15 dvr0
crw-rw---- 1 root video 212,  9 Jan 19 18:15 dvr1
crw-rw---- 1 root video 212, 13 Jan 19 18:15 dvr2
crw-rw---- 1 root video 212, 17 Jan 19 18:15 dvr3
crw-rw---- 1 root video 212, 21 Jan 19 18:15 dvr4
crw-rw---- 1 root video 212, 25 Jan 19 18:15 dvr5
crw-rw---- 1 root video 212, 29 Jan 19 18:15 dvr6
crw-rw---- 1 root video 212, 33 Jan 19 18:15 dvr7
crw-rw---- 1 root video 212,  7 Jan 19 18:15 frontend0
crw-rw---- 1 root video 212, 11 Jan 19 18:15 frontend1
crw-rw---- 1 root video 212, 15 Jan 19 18:15 frontend2
crw-rw---- 1 root video 212, 19 Jan 19 18:15 frontend3
crw-rw---- 1 root video 212, 23 Jan 19 18:15 frontend4
crw-rw---- 1 root video 212, 27 Jan 19 18:15 frontend5
crw-rw---- 1 root video 212, 31 Jan 19 18:15 frontend6
crw-rw---- 1 root video 212, 35 Jan 19 18:15 frontend7
crw-rw---- 1 root video 212,  6 Jan 19 18:15 net0
crw-rw---- 1 root video 212, 10 Jan 19 18:15 net1
crw-rw---- 1 root video 212, 14 Jan 19 18:15 net2
crw-rw---- 1 root video 212, 18 Jan 19 18:15 net3
crw-rw---- 1 root video 212, 22 Jan 19 18:15 net4
crw-rw---- 1 root video 212, 26 Jan 19 18:15 net5
crw-rw---- 1 root video 212, 30 Jan 19 18:15 net6
crw-rw---- 1 root video 212, 34 Jan 19 18:15 net7

dmesg - DVB Part...

[71794.503755] DDBridge: Digital Devices PCIE bridge driver 0.9.28, Copyright (C) 2010-16 Digital Devices GmbH
[71794.504051] DDBridge: device name: Digital Devices Octopus CI
[71794.504077] DDBridge: HW 00010006 REGMAP 00010002
[71794.504093] DDBridge: link 0 vendor dd01 device 0011 subvendor dd01 subdevice 0040
[71794.505687] DDBridge: Port 0: Link 0, Link Port 0 (TAB 1): NO MODULE
[71794.506900] DDBridge: Port 1: Link 0, Link Port 1 (TAB 2): NO MODULE
[71794.506904] DDBridge: Port 2: Link 0, Link Port 2 (TAB 3): CI internal
[71794.506908] DDBridge: Port 3: Link 0, Link Port 3 (TAB 4): CI internal
[71794.507764] DDBridge: 0 netstream channels
[71794.507770] DVB: registering new adapter (DDBridge)
[71794.508756] DDBridge: device name: Digital Devices MAX S8 4/8
[71794.508784] DDBridge: HW 01010006 REGMAP 00010001
[71794.508801] DDBridge: link 0 vendor dd01 device 0007 subvendor dd01 subdevice 0023
[71794.616514] DDBridge: Port 0: Link 0, Link Port 0 (TAB 1): DUAL DVB-S2 MAX
[71794.616520] DDBridge: Port 1: Link 0, Link Port 1 (TAB 2): DUAL DVB-S2 MAX
[71794.616523] DDBridge: Port 2: Link 0, Link Port 2 (TAB 3): DUAL DVB-S2 MAX
[71794.616526] DDBridge: Port 3: Link 0, Link Port 3 (TAB 4): DUAL DVB-S2 MAX
[71794.618504] DDBridge: 0 netstream channels
[71794.618511] DVB: registering new adapter (DDBridge)
[71794.620453] mx5xx: padMuxBond=00000001, prcmChipId=00000584, prcmSoCId=00000003
[71794.622418] mxl5xx: Hydra chip version 2
[71794.646727] DDBridge: Read mxl_fw from link 0
[71799.982385] mxl5xx: Hydra FW alive. Hail!
[71800.038704] mxl5xx: chipID=00000001
[71800.039125] mxl5xx: chipVer=00000002
[71800.039543] mx5xx: FWVer=02010109
[71800.184389] mxl5xx: DIGIO = 00000000
[71800.184393] mxl5xx: set drive_strength = 1
[71800.210571] dvb_ca adapter 0: DVB CAM detected and initialised successfully
[71800.241949] DDBridge: Set fmode link 0 = 1
[71800.242111] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 0 (MXL5XX)...
[71800.290091] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 1 (MXL5XX)...
[71800.338053] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 2 (MXL5XX)...
[71800.386075] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 3 (MXL5XX)...
[71800.386459] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 4 (MXL5XX)...
[71800.386930] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 5 (MXL5XX)...
[71800.387352] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 6 (MXL5XX)...
[71800.387762] ddbridge 0000:08:00.0: DVB: registering adapter 1 frontend 7 (MXL5XX)...

do you search something special?

RE: AlphaCrypt Hardware CI did not descrambling - Added by Christian Brauwers almost 5 years ago

i believe i had to redirect

"10 02"

From adapter 1 frontend 0 to adapter0 ca0 which is TAB3 and this where 2(+1) right?

so i think echo this into redirect isn't working ... (ubuntu 16.04.1 LTS)

(1-25/42)