NextPVR Forums

Full Version: NewCS Acamd problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi!

Have been trying to solve the problem with encrypted channels by using a Phoenix reader from AD-Teknik in Sweden together with NewCS and connecting Acamd to that. Ofcourse running in to some problems but first some info.

Windows 7, 64 bit. Capture card is a Technotrend CI-3650 CI and the input is DVB-C, swedish Canal Digital Cable-tv. All unencrypted channels work fine!

I have installed the NewCS and is running it using the newcs.xml below and get the log file also below.

I have placed the Acamd files in the "C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1" folder and edited my cardclient.conf with this line:
newcamd:127.0.0.1:10001:1/0B00/0000:dummy1:password:0102030405060708091011121314

I also edited the ACamd_PMT.txt with this:
P:0B00:000000Tonguereferred Canal Digital
where 000000 was found from the NewCS logs at initiation. I have also tried the original value but I guess that is for Canal Digital satelite.

After this is edited my DVD-C tuner under Devices in TV-Server NPVR settings and chaned HW to Multideck and scanned channels. The channels still said "encrypted". When I try to watch i channel the Acamd_monitor gives me the log you find at the very bottom. It just stops and nothing more happens and the client trying to watch the encrypted channel just freezes.

EDIT: I am running NewCS v 1.65 and Acamd 06.20. When looking in the NewCS webinterface I see that the reader is fine and it has desolved Keys for my Card. There is also some statements under "Entitlements". I don't exactly know what all this means except it seems to be some communication with the card at least. BUT, under statistics there is no packets sent or under user the acamd user is always offline. I guess that Acamd and NewCS cant communicate then?


Please advice Smile

Code:
<newCSconfig>
        <readers name="Standard Phoenix on PC">

                   <device>
       <name>Canaldigital</name>
       <type>phoenix</type>
       <mhz>357</mhz>
       <node>COM3</node>
       <parity>odd</parity>
       <reset>normal</reset>
       <export>Yes</export>
       <enabled>Yes</enabled>
       <blocksa>No</blocksa>
       <blockua>No</blockua>
       <crypto-special>No</crypto-special>
       <PTShandshake>No</PTShandshake>
       <carddetect>yes</carddetect>
       <newcamd_port>10001</newcamd_port>
       <autosid>Yes</autosid>
       <Seca-PPV>no</Seca-PPV>
       <pincode>0000</pincode>
       <priority>round</priority>
     </device>
        </readers>
        <cache>
                        <emm>20</emm>
                        <ecm>-1</ecm>
        </cache>

    <httpd>
        <server>
            <port>8080</port>
            <enabled>yes</enabled>
        </server>
        <user>
            <name>newcs</name>
            <password>newcs</password>
            <accesslevel>admin</accesslevel>
        </user>
    </httpd>

    <debug>
            <password>NewCSpwd</password>
            <mode>simple</mode>
            <level>internal</level>
            <type>all</type>
            <output>file,tcp</output>
            <tcp_port>1001</tcp_port>
            <tcp_options>normal,init</tcp_options>
<logfile>C:\Softcam\NewCS\newcs-1_65\newcs-1.65\win32\log.txt</logfile>

    </debug>
<newcamdserver>
                        <enabled>Yes</enabled>
                        <name>newcs</name>
                        <deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>

                        <user>
                                <name>dummy1</name>
                                <password>password</password>
                                <readers>
                                <allow>Canaldigital</allow>
                                </readers>
                                <au>on</au>
                                <sidoverride>off</sidoverride>
                                <spider>No</spider>
                        </user>
</newcamdserver>
</newCSconfig>
The NewCS kinda seems to be working if I understand this log file correctly:

Code:
[ 01:22:43 ] [ Box detect ] Windows Vista Build 7601
[ 01:22:43 ] [ Config ] Option <blockc0> for device 0 (Canaldigital) not present, defaulting to NO
[ 01:22:43 ] [ Config ] Option <blockga> for device 0 (Canaldigital) not present, defaulting to NO
[ 01:22:43 ] [ Config ] Pincode for device 0 (Canaldigital): 0000
[ 01:22:43 ] [ Config ] Option <sid> for device 0 (Canaldigital) not present, no static sids added to filter
[ 01:22:43 ] [ Config ] COM3 ECM priority: round
[ 01:22:43 ] [ Newcamd ] Server name : newcs
[ 01:22:43 ] [ Newcamd ] Des key     : 0102030405060708091011121314
[ 01:22:43 ] [ Config ] Option <hostname> or <port> not present for User: dummy1, DISABLING reverse login
[ 01:22:43 ] [ Newcamd ] User 2: dummy1, Pass: password, Host none, Port: 0, Au: On, Spider allowed: No, Sidoverride: No, level: 0
[ 01:22:43 ] [ httpd ] httpd-user: newcs, password: newcs, accesslevel: admin
[ 01:22:43 ] [ EMM Cache ] Initialising dynamic Cache
[ 01:22:43 ] [ ECM Cache ] Initialising dynamic Cache
[ 01:22:43 ] Calibrating delay loops
[ 01:22:43 ] usleep(5) takes: 0 s 15000 us
[ 01:22:43 ] usleep(10) takes: 0 s 16000 us
[ 01:22:43 ] usleep(100) takes: 0 s 15000 us
[ 01:22:44 ] usleep(500) takes: 0 s 16000 us
[ 01:22:44 ] Allocation memory for 200 regular users
[ 01:22:44 ] [ Loader ] Starting Telnet on port 1001
[ 01:22:44 ] [ SockSrv ] Server thread started
[ 01:22:44 ] [ Loader ] Started HTTP-server on port: 8080
[ 01:22:44 ] [ Loader ] Reader type 2 on node COM3
[ 01:22:44 ] [ CardMan ] Reseting reader parameters
[ 01:22:44 ] [ Phoenix ] Opening device COM3
[ 01:22:44 ] [ Phoenix ] Setting parity to ODD on node COM3
[ 01:22:44 ] [ Phoenix ] Setting 1 Stop bit on node COM3
[ 01:22:44 ] [ Phoenix ] Setting baud to 9600
[ 01:22:45 ] Phoenix_read:

0000: 3b 24 00 30 42 30 30                             ;$.0B00


[ 01:22:45 ] [ CardMan ] Atr header is 3B 24 [NORMAL]
[ 01:22:45 ] [ ATR ] Data:

0000: 3b 24 00 30 42 30 30                             ;$.0B00


[ 01:22:45 ] [ ATR ] T=0  1etu=104.17us  Guardtime:12etu  WWT:9600etu
[ 01:22:45 ] [ ATR ] Historical bytes: 0 B 0 0
[ 01:22:45 ] [ Loader ] Init Conax card
[ 01:22:45 ] Card reader locked for reader Canaldigital [COM3]

[ 01:22:45 ] [ Phoenix ] Setting parity to EVEN on node COM3
[ 01:22:45 ] [ Phoenix ] Setting 2 Stop bits on node COM3
[ 01:22:45 ] [ Phoenix ] Setting baud to 9600
[ 01:22:45 ] [ Conax ] Sending to Card: DD26000003
[ 01:22:45 ] Phoenix_write:

0000: dd 26 00 00 03                                   .&...


[ 01:22:45 ] Phoenix_read:

0000: 26                                               &


[ 01:22:45 ] Phoenix_write:

0000: 10 01 40                                         ..@


[ 01:22:45 ] Phoenix_read:

0000: 98                                               .


[ 01:22:45 ] Phoenix_read:

0000: 11                                               .


[ 01:22:45 ] [ Conax ] Status Word from Card: 9811
[ 01:22:45 ] [ Conax ] Sending to Card: DDCA000011
[ 01:22:45 ] Phoenix_write:

0000: dd ca 00 00 11                                   .....


[ 01:22:45 ] Phoenix_read:

0000: ca                                               .


[ 01:22:45 ] Phoenix_read:

0000: 20 01 40 28 02 0b 00 2f 02 00 2e 30 01 08 23 01   .@(.../...0..#.

0010: 05                                               .


[ 01:22:45 ] Phoenix_read:

0000: 90                                               .


[ 01:22:45 ] Phoenix_read:

0000: 00                                               .


[ 01:22:45 ] [ Conax ] Status Word from Card: 9000
[ 01:22:45 ] [ Conax ] Cas Version in use: 40 - CAS5
[ 01:22:45 ] [ Conax ] Cas System Id: 0B00
[ 01:22:45 ] [ Conax ] Country Indicator: 002E - Sweden
[ 01:22:45 ] [ Conax ] Maturity Rating Level: 08 - Erotic rating
[ 01:22:45 ] [ Conax ] Session Info (Number of sessions): 05
[ 01:22:45 ] [ Conax ] Sending to Card: DD82000011
[ 01:22:45 ] Phoenix_write:

0000: dd 82 00 00 11                                   .....


[ 01:22:45 ] Phoenix_read:

0000: 82                                               .


[ 01:22:45 ] Phoenix_write:

0000: 11 0f 01 b0 0f ff ff fb 00 00 09 04 0b 00 e0 30  ...............0

0010: 2b                                               +


[ 01:22:45 ] Phoenix_read:

0000: 98                                               .


[ 01:22:45 ] Phoenix_read:

0000: 1a                                               .


[ 01:22:45 ] [ Conax ] Status Word from Card: 981A
[ 01:22:45 ] [ Conax ] Sending to Card: DDCA00001A
[ 01:22:45 ] Phoenix_write:

0000: dd ca 00 00 1a                                   .....


[ 01:22:45 ] Phoenix_read:

0000: ca                                               .


[ 01:22:46 ] Phoenix_read:

0000: 22 18 09 04 0b 00 e0 30 23 07 00 00 00 49 9d c7  "......0#....I..

0010: 83 23 07 00 00 00 00 24 ce e3                    .#.....$..


[ 01:22:46 ] Phoenix_read:

0000: 90                                               .


[ 01:22:46 ] Phoenix_read:

0000: 00                                               .


[ 01:22:46 ] [ Conax ] Status Word from Card: 9000
[ 01:22:46 ] [ Conax ] CAID + pid: 0B00E030
[ 01:22:46 ] [ KeymaN ] Adding key 499DC783 type 0 on Provider 000000 for caid 0B00 ID=0
[ 01:22:46 ] [ KeymaN ] Adding key 24CEE3 type 1 on Provider 000000 for caid 0B00 ID=0
[ 01:22:46 ] [ Conax ] Sending PIN-code: 0000
[ 01:22:46 ] [ Conax ] Sending to Card: DDC8000007
[ 01:22:46 ] Phoenix_write:

0000: dd c8 00 00 07                                   .....


[ 01:22:46 ] Phoenix_read:

0000: c8                                               .


[ 01:22:46 ] Phoenix_write:

0000: 1d 05 01 30 30 30 30                             ...0000


[ 01:22:46 ] Phoenix_read:

0000: 90                                               .


[ 01:22:46 ] Phoenix_read:

0000: 17                                               .


[ 01:22:46 ] [ Conax ] Status Word from Card: 9017
[ 01:22:46 ] Card reader unlocked for reader Canaldigital [COM3]

[ 01:22:46 ] [ 0B00 ] Init took: 0.218000
[ 01:22:46 ] [ Loader ] Card 0B00 on port COM3 ready
[ 01:22:46 ] [ Card queue COM3 ] Starting...
[ 01:22:46 ] [ Loader ] Starting Newcamd Server on port 10001
[ 01:22:46 ] [ Newcamd ] Newcamd thread Server started on port 10001
[ 01:22:46 ] Card reader locked for reader Canaldigital [COM3]

[ 01:22:46 ] Card reader unlocked for reader Canaldigital [COM3]

[ 01:22:46 ] Card reader locked for reader Canaldigital [COM3]

[ 01:22:46 ] Card reader unlocked for reader Canaldigital [COM3]

[ 01:22:46 ] Card reader locked for reader Canaldigital [COM3]

[ 01:22:46 ] Card reader unlocked for reader Canaldigital [COM3]

[ 01:22:46 ] Card reader locked for reader Canaldigital [COM3]

[ 01:22:46 ] Card reader unlocked for reader Canaldigital [COM3]
And Finally the Acamd_monitor LOG:

Code:
00:21:08.647: ACamd v0.6.2.0
00:21:08.661: MD-API Version 01.03 - 01.06
00:21:08.668: systems: registering CA system Cardclient, pri -15, ident 1000
00:21:08.668: structloaders: registering loader cardclient config
00:21:08.668: cardclients: registering cardclient Newcamd
00:21:08.668: cardclients: registering cardclient Newcamd2
00:21:08.668: cardclients: registering cardclient CCcamN
00:21:08.668: cardclients: registering cardclient Radegast
00:21:08.668: cardclients: registering cardclient Camd35
00:21:08.668: structloaders: registering loader smartcard data
00:21:08.668: systems: registering CA system SC-Irdeto, pri -10, ident 1001
00:21:08.668: feature: using feature SMARTCARD
00:21:08.668: registering Irdeto smartcard (id 49726474)
00:21:08.668: systems: registering CA system SC-Seca, pri -10, ident 1002
00:21:08.668: registering Seca smartcard (id 53656361)
00:21:08.668: systems: registering CA system SC-Viaccess, pri -10, ident 1003
00:21:08.668: registering Viaccess smartcard (id 56696173)
00:21:08.668: systems: registering CA system SC-Conax, pri -10, ident 1004
00:21:08.668: registering Conax smartcard (id 436f6e78)
00:21:08.668: systems: registering CA system SC-Cryptoworks, pri -10, ident 1005
00:21:08.668: registering Cryptoworks smartcard (id 4372576f)
00:21:08.668: systems: registering CA system SC-Nagra, pri -10, ident 1006
00:21:08.668: registering Nagra smartcard (id 4e616772)
00:21:08.668: systems: registering CA system SC-NDS, pri -10, ident 1007
00:21:08.668: registering NDS smartcard (id 56694732)
00:21:08.671: Monitor listen on port 65428
00:21:08.705: B:Betatunnel, CAID:1833 with Provider:00000000 to CAID:1702 with Provider:00000000
00:21:08.705: P:Preferred, CAID 0B00 with Provider 0000006A
00:21:08.705: Engine [MD-API]
00:21:08.705: loading smartcard data from C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1\smartcard.conf
00:21:08.705: loaded 0 smartcard data from C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1\smartcard.conf
00:21:08.705: loading cardclient config from C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1\cardclient.conf
00:21:08.705: now using protocol version 525 (cdLen=8)
00:21:08.705: hostname=127.0.0.1 port=10001 emm=1 emmCaids 0000/0000
00:21:08.705: Newcamd: username=dummy1 password=password key=0102030405060708091011121314 providers=none
00:21:08.705: client 'Newcamd' ready
00:21:08.705: ** registered systems:
00:21:08.705: ** SC-NDS            (pri -10)
00:21:08.705: ** SC-Nagra          (pri -10)
00:21:08.705: ** SC-Cryptoworks    (pri -10)
00:21:08.705: ** SC-Conax          (pri -10)
00:21:08.705: ** SC-Viaccess       (pri -10)
00:21:08.705: ** SC-Seca           (pri -10)
00:21:08.705: ** SC-Irdeto         (pri -10)
00:21:08.705: ** Cardclient        (pri -15)
00:21:08.705: no smartcard interface defined!
00:21:08.706:

And then nothing more Smile

THANKS!
I'll take a closer look later, but can you confirm that your smartcard really is a Conax card?
Alright - great Smile

Yes, it is Conax. Regarding what I wrote in a earlier post, it was wrong. I have confirmed with the provider also!
First of all you need to have ffdesca.dll installed in your npvr program directory. Second, in your newcs.xml file you need to define one user for each instance of each capturecard. In the npvr datadirectory under MDPugins, you'll see that npvr generates a directory for each instance of each capturecard, each of these directories must contain all the Acamd files, and cardclient.conf must have a unique username/password as reflected in newcs.xml.

I'v never bothered with Acamd_pmt.txt, it seems to be needed only for special cases. I have attached my config files to give you an idea of how I have done it.
Hi and thanks. I had missed the .dll file in the Program folder. Now the ACamd goes further than before and I can actually watch the unencrypted channels with multideck chosen. But unfortunately not the encrypted yet.

I feels like it is because the ACamd dont get the keys from NewCS - how can i check that they communicate?

What is interesting is that the channel request at the very bottom of the log (Ch: 6120 - TV4 V?ster?s) is a nonencrypted channel and works fine. The request above that (Ch: 260 - TVNZ) is a encrypted channels and gives a black screen. At least now the client doesn't freeze but instead only shows a blackscreen. It is kinda like it gets some kind of answer but not the right key.

Any ideas?

My acamd log is now:

Code:
#START#
C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1\ACamd.dll
14:58:11.882: ACamd v0.6.2.0
14:58:11.895: MD-API Version 01.03 - 01.06
14:58:11.901: systems: registering CA system Cardclient, pri -15, ident 1000
14:58:11.901: structloaders: registering loader cardclient config
14:58:11.901: cardclients: registering cardclient Newcamd
14:58:11.901: cardclients: registering cardclient Newcamd2
14:58:11.901: cardclients: registering cardclient CCcamN
14:58:11.901: cardclients: registering cardclient Radegast
14:58:11.901: cardclients: registering cardclient Camd35
14:58:11.901: structloaders: registering loader smartcard data
14:58:11.901: systems: registering CA system SC-Irdeto, pri -10, ident 1001
14:58:11.901: feature: using feature SMARTCARD
14:58:11.901: registering Irdeto smartcard (id 49726474)
14:58:11.901: systems: registering CA system SC-Seca, pri -10, ident 1002
14:58:11.901: registering Seca smartcard (id 53656361)
14:58:11.901: systems: registering CA system SC-Viaccess, pri -10, ident 1003
14:58:11.901: registering Viaccess smartcard (id 56696173)
14:58:11.901: systems: registering CA system SC-Conax, pri -10, ident 1004
14:58:11.901: registering Conax smartcard (id 436f6e78)
14:58:11.901: systems: registering CA system SC-Cryptoworks, pri -10, ident 1005
14:58:11.901: registering Cryptoworks smartcard (id 4372576f)
14:58:11.901: systems: registering CA system SC-Nagra, pri -10, ident 1006
14:58:11.901: registering Nagra smartcard (id 4e616772)
14:58:11.901: systems: registering CA system SC-NDS, pri -10, ident 1007
14:58:11.901: registering NDS smartcard (id 56694732)
14:58:11.906: Monitor listen on port 56052
14:58:11.938: B:Betatunnel, CAID:1833 with Provider:00000000 to CAID:1702 with Provider:00000000
14:58:11.938: P:Preferred, CAID 0B00 with Provider 0000006A
14:58:11.938: Engine [MD-API]
14:58:11.938: loading smartcard data from C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1\smartcard.conf
14:58:11.938: loaded 0 smartcard data from C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1\smartcard.conf
14:58:11.938: loading cardclient config from C:\Users\Public\NPVR\MDPlugins\USB 2.0 BDA DVB-C Tuner #1-1\cardclient.conf
14:58:11.938: now using protocol version 525 (cdLen=8)
14:58:11.938: hostname=127.0.0.1 port=10001 emm=1 emmCaids 0b00/0000
14:58:11.938: Newcamd: username=dummy1 password=password key=0102030405060708091011121314 providers=none
14:58:11.938: client 'Newcamd' ready
14:58:11.938: ** registered systems:
14:58:11.938: ** SC-NDS            (pri -10)
14:58:11.938: ** SC-Nagra          (pri -10)
14:58:11.938: ** SC-Cryptoworks    (pri -10)
14:58:11.938: ** SC-Conax          (pri -10)
14:58:11.938: ** SC-Viaccess       (pri -10)
14:58:11.938: ** SC-Seca           (pri -10)
14:58:11.938: ** SC-Irdeto         (pri -10)
14:58:11.938: ** Cardclient        (pri -15)
14:58:11.938: no smartcard interface defined!
14:58:11.939:
Blocked 1 same messages...
14:58:12.893: Ch: 260 - TVNZ
14:58:12.893: Programm crc: F1B04D7A
14:58:12.894: PMT: ACamd_PMT.txt, search, not found PMT=0104 (AND SID=0193)
14:58:12.895: 0x0104 0x0193 0x0B00 0x00000000 0x1B83 0x1B80 11111110
14:58:13.158: Incomming PackageSize [920]
14:58:36.123:
14:58:36.123: Ch: 6120 - TV4 V?ster?s
14:58:36.123: Programm crc: F39FA62E
14:58:38.651: CAT not found...
14:58:38.651: PMT: ACamd_PMT.txt, search, not found PMT=17E8 (AND SID=17E8)
14:58:38.651: 0x17E8 0x17E8 0x0000 0x00000000 0x0000 0x0000 11111110
14:58:38.651: Exit, no channel data, posible no [PMT Scan] or [PMT not found]...
Do not use smartcard.conf and Acamd_pmt.txt, rename those files to something else and restart newcs. If you start AcamdMonitor.exe prior to starting NextPVR you should ba able to monitor the communication between Acamd and NewCS. Also look at the newcs log. Is the port (10001) allowed through the firewall?

Edit: If you haven't set a pincode for the card access, remove it from newcs.xml.
Ok thank you. 1 second before your reply I got it to work. For information to others using canal digital cable in sweden It worked when I changed back from 0B00 to 0000 as CAID. Now it is no problem Smile

Is there anything else I should bother to check out? I have read something about that the card has to get updated each month etc?

If not. Reddwarf - THANK YOU! Wonderful support. Appreciate it!
Glad to hear you got it working! Smile The card has to be updated if CD changes the Conax main key, here in Norway it happens once or twice a year, so the clue is to put the card in the original STB from Canaldigital and let it run for an hour or so.
Pages: 1 2