I have a Sky (Blue - series 2?) card which still works for the FTV channels (Sky3, Fiver, Five USA) in a Digibox. I would like to get this to work in the DM800. My goal is for C4 HD which is also FTV (AFAIK).
I am running telnet in two DOS windows to try to figure out what to do. I have searched various forums and found the information to be incomplete, but slowly I am piecing it together.
First problem is actually understanding exactly what newcs and CCcam (and others do). I think I now have a better understanding of this.
Newcs is a smart card manager and I assume acts like a server which clients (local or rmote) can attach to to request smart card "actions".
If I run newcs (v1.65, but also tried v1.66) it appears that the card is being accessed correctly. The webpage dm800:8080 appears to confirm that this program is accessing the smart card correctly.
The problem occurs when I run CCcam (v2.1.1). It appears to ignore the newcs port (50010 in my case) and appears to try to access the card directly, but fails and retries. This action apears to "upset" newcs.
In the CCcam.cfg I only have
and I have checked that the port, username, password and des key all match the values in newcs.xml.
Interestingly in the webpage dm800:16001 it does appear that CCcam has found the port 50010.
newcs log in console - looks encouraging...
newcs.xml
CCcam log in console (tuned to Sky3)
What does a "good" log for CCcam look like?
Should CCcam be using port 50010 to ask newcs to return data from the smart card?
--freesat99
I am running telnet in two DOS windows to try to figure out what to do. I have searched various forums and found the information to be incomplete, but slowly I am piecing it together.
First problem is actually understanding exactly what newcs and CCcam (and others do). I think I now have a better understanding of this.
Newcs is a smart card manager and I assume acts like a server which clients (local or rmote) can attach to to request smart card "actions".
If I run newcs (v1.65, but also tried v1.66) it appears that the card is being accessed correctly. The webpage dm800:8080 appears to confirm that this program is accessing the smart card correctly.
The problem occurs when I run CCcam (v2.1.1). It appears to ignore the newcs port (50010 in my case) and appears to try to access the card directly, but fails and retries. This action apears to "upset" newcs.
In the CCcam.cfg I only have
Code:
N: 127.0.0.1 50010 CCcam CCcam 01 02 03 04 05 06 07 08 09 10 11 12 13 14
Interestingly in the webpage dm800:16001 it does appear that CCcam has found the port 50010.
newcs log in console - looks encouraging...
Code:
root@dm800:/etc# /usr/bin/newcs -d
This is NewCS 1.65 - the New CardServer by the Butter-team..
Compiled on Jan 19 2009 at 17:55:24
Reading Config file from /var/tuxbox/config/newcs.xml
TCP-log password is disabled!
TCP-log set to simple mode
level: normal
type: init
output: console,udp,tcp
logger config: level 1 type 3 output 7
Console log options: level 1 type 3
udp log: host 192.168.0.4 port 1000
UDP log options: level 1 type 3
TCP log options: level 1 type 3
[ 00:00:30 ] [ Box detect ] Box type 7 (Dream Multimedia (MIPS) HD Box)
[ 00:00:30 ] [ Config ] Option <blockc0> for device 0 (dm800) not present, defaulting to NO
[ 00:00:30 ] [ Config ] /dev/sci0 ECM priority: round
[ 00:00:30 ] [ httpd ] httpd-user: db, password: db, accesslevel: admin
[ 00:00:30 ] [ EMM Cache ] Initialising dynamic Cache
[ 00:00:30 ] [ ECM Cache ] Initialising dynamic Cache
[ NewCS ] Process ID is: 1905
[ 00:00:30 ] [ Loader ] Starting Telnet on port 3001
[ 00:00:30 ] [ Loader ] Started HTTP-server on port: 8080
[ 00:00:30 ] [ Loader ] Reader type 5 on node /dev/sci0
[ 00:00:30 ] [ Sci ] Closing device /dev/sci0 [Handle=-1]
[ 00:00:30 ] [ Sci ] Opening device /dev/sci0
SCI returned 0 on IOCTL IOCTL_SET_PARAMETERS
[ 00:00:30 ] [ Sci ] resetting card now
[ 00:00:30 ] [ Sci ] Reset
[ 00:00:30 ] [ Sci ] Card reset
[ 00:00:32 ] [ ATR ] T=0 1etu=93.00us Guardtime:15etu WWT:38400etu
[ 00:00:32 ] [ ATR ] Historical bytes: 3 [B0] [06] i [FF] J P [D0] [00] [00] S Y [00] [00] [00]
[ 00:00:32 ] [ Loader ] Init NDS card
[ 00:00:33 ] [ KeymaN ] Adding key 00000001234ccd type 0 on Provider 000000 for caid 0961 ID=0
[ 00:00:33 ] [ KeymaN ] Adding key 00000001234c00 type 1 on Provider 000000 for caid 0961 ID=0
[ 00:00:34 ] [ Loader ] Card 0961 on port /dev/sci0 ready
[ 00:00:34 ] [ Loader ] Starting Newcamd Server on port 50010
[ 00:00:34 ] [ NewCS ] Ready to GO! :)
root@dm800:/etc# [ 00:00:34 ] [ Newcamd ] Newcamd thread Server started on port 50010
newcamd: main loop
newcs.xml
Code:
<?xml version = '1.0'?>
<newCSconfig>
<readers name="Card Readers" >
<device>
<name>dm800</name>
<type>sci</type>
<node>/dev/sci0</node>
<mhz>357</mhz>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>yes</blocksa>
<blockua>yes</blockua>
<blockga>yes</blockga>
<boxkey>03456789</boxkey>
<PTShandshake>no</PTShandshake>
<Seca-PPV>no</Seca-PPV>
<crypto-special>no</crypto-special>
<carddetect>yes</carddetect>
<newcamd_port>50010</newcamd_port>
<autosid>yes</autosid>
<priority>round</priority>
</device>
</readers>
<radegastserver>
<enabled>no</enabled>
<port>10001</port>
<allow><hostname>localhost</hostname></allow>
</radegastserver>
<cache>
<emm>10</emm>
<ecm>-1</ecm>
</cache>
<httpd>
<server>
<port>8080</port>
<enabled>yes</enabled>
</server>
<user>
<name>db</name>
<password>db</password>
<accesslevel>admin</accesslevel>
</user>
</httpd>
<debug>
<mode>simple</mode> <-- these are not well documented
<level>internal</level> <--
<type>all</type> <--
<output>console,tcp</output>
<logfile/>
<console_options/>
<file_options/>
<tcp_port>1001</tcp_port>
<tcp_options>normal,init<tcp_options/>
</debug>
<newcamdserver>
<enabled>yes</enabled>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<name>newcs</name>
<user>
<name>CCcam</name>
<password>CCcam</password>
<au>on</au>
<spider>no</spider>
<cardlevel>1</cardlevel>
</user>
</newcamdserver>
</newCSconfig>
CCcam log in console (tuned to Sky3)
Code:
root@dm800:/usr/games# /var/bin/CCcam_2.1.1 -d
00:52:41.460 CCcam: ======================================================================
00:52:41.466 CCcam: starting CCcam 2.1.1 compiled on May 2 2009@20:00:30
00:52:41.466 CCcam: ======================================================================
00:52:41.468 CCcam: online using nodeId 6b63a4ecacd4dec4
00:52:41.488 CCcam: dvb api3 detected
00:52:41.518 CCcam: DM800 detected
00:52:41.519 CCcam: create 8 cam device(s)
00:52:41.768 CCcam: nds card found
00:52:42.545 CCcam: nds: using boxkey 03456789
00:52:42.554 CCcam: card init fail
00:52:42.556 CCcam: readKeyfile: cannot open /var/keys/SoftCam.Key or not found
00:52:42.557 CCcam: readKeyfile: cannot open /var/keys/AutoRoll.Key or not found
00:52:42.557 CCcam: static cw not found or bad
00:52:42.558 CCcam: parsed 0 entries from /var/etc/CCcam.prio
00:52:42.559 CCcam: readProviderfile: cannot open /var/etc/CCcam.providers or not found
00:52:42.560 CCcam: readChannelList: cannot open /var/etc/CCcam.channelinfo or not found
00:52:42.561 CCcam: server started on port 12000
00:52:42.769 CCcam: nds card found
00:52:45.790 CCcam: card init fail
00:52:46.581 CCcam: found nds caid: 0x960 ecmpid: 0x507 id: 0x0
00:52:46.582 CCcam: found nds caid: 0x961 ecmpid: 0x507 id: 0x0
00:52:46.582 CCcam: found nds caid: 0x963 ecmpid: 0x507 id: 0x0
00:52:46.583 CCcam: cam[0] set PMT for sid=13ef
00:52:46.585 CCcam: start EMM
00:52:46.614 CCcam: cam[0] ecm odd nok caid:0x960 id:0x0 pid:0x507 Unknown
00:52:46.659 CCcam: EMM demux 1 set
00:52:46.660 CCcam: EMM: not interested in 0960:000000
00:52:46.660 CCcam: EMM: not interested in 0961:000000
00:52:46.661 CCcam: EMM: not interested in 0963:000000
00:52:46.713 CCcam: cam[0] ecm odd nok caid:0x961 id:0x0 pid:0x507 Unknown
00:52:46.813 CCcam: cam[0] ecm odd nok caid:0x963 id:0x0 pid:0x507 Unknown
00:52:46.912 CCcam: cam[0] ecm odd nok caid:0x960 id:0x0 pid:0x507 Unknown
00:52:47.001 CCcam: nds card found
00:52:47.013 CCcam: cam[0] ecm odd nok caid:0x961 id:0x0 pid:0x507 Unknown
00:52:47.115 CCcam: cam[0] ecm odd nok caid:0x963 id:0x0 pid:0x507 Unknown
00:52:47.214 CCcam: cam[0] ecm odd nok caid:0x960 id:0x0 pid:0x507 Unknown
00:52:47.315 CCcam: cam[0] ecm odd nok caid:0x961 id:0x0 pid:0x507 Unknown
00:52:47.415 CCcam: cam[0] ecm odd nok caid:0x963 id:0x0 pid:0x507 Unknown
00:52:47.780 CCcam: nds: using boxkey 03456789
00:52:47.788 CCcam: card init fail
^C
What does a "good" log for CCcam look like?
Should CCcam be using port 50010 to ask newcs to return data from the smart card?
--freesat99