DM800: newcs + CCcam not working - help!!!

Dreambox800 - Support for the Dreambox 800 DM-800 High Definition Dreambox satellite receiver.


Reply
 
LinkBack Thread Tools Display Modes
Old 12-08-2009   #1
Member
 
Join Date: 25-01-2009
Location: England
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

My System: dm800 Dell 2408WFP
DM800: newcs + CCcam not working - help!!!

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
Code:
N: 127.0.0.1 50010 CCcam CCcam 01 02 03 04 05 06 07 08 09 10 11 12 13 14
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...
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
freesat99 is offline   Reply With Quote
Old 12-08-2009   #2
Specialist Contributor
 
tomthebomb1968's Avatar
 
Join Date: 09-02-2008
Location: Newtownabbey, near Belfast, Northern Ireland
Posts: 518
Thanks: 59
Thanked 104 Times in 89 Posts

My System: Dreambox 800 Nabilo Blackhole v1.0/250 Gig/ Dreambox 500s-(clone) PLi Jade/ Relook 400s 160 Gig-/SifTeam 1.93 e enigma Foretec 90cm Dish with Nikkai Diseqc Motor- 2 sky+ receivers fixed 28.2 east.

have a look at this for the blue cards, dont need to block emm or use boxkey

Sky UK card not working in DM800 Card Reader


Infact you dont need NewCs for the blue card, CCcam will read it itself and update it.

Been up all night trying to get a non sky router working on sky BB and my heads melted lol But I got there.

Last edited by tomthebomb1968; 12-08-2009 at 08:37 AM. Reason: I woke up LOL
tomthebomb1968 is offline   Reply With Quote
Old 12-08-2009   #3
Dreambox Gimp & Coder
 
B16MCC's Avatar
 
Join Date: 16-11-2005
Location: /var/tuxbox/config
Posts: 924
Thanks: 69
Thanked 508 Times in 226 Posts
Blog Entries: 13

My System: 2 Dreamboxes ------ DM 8000 HD PVR ------- ---------- DM 800 HD ---------- -------- Motek SG2100 -------- ---- Triax 80cm Dual LNB ----- -- Fixed Dish 28e Quad LNB -- ---------- Sky HD Full ---------- ------- 24" Apple iMAC --------


Creator of the CCCCC - only a true wizard could come up with such a name!!

Yep as Tom mentions, there's no need for NewCS for the old sky blue card. Just install CCcam 2.1.2 from the blue/green panel and start it. You don't even need to modify the config to use it locally. Bare in mind ofcourse by the end of the year its highly likely this old card( CAID 0961 ) will be switched off.


There are 10 types of people in the world. Those who understand binary and those that don't.
-----------------------------------------------
Check Out My Blog :- Dreambox Utils For Windows
Best Regards, Your Friendly Dreambox Gimp.

B16MCC
-----------------------------------------------

B16MCC is online now   Reply With Quote
Old 13-08-2009   #4
Member
 
Join Date: 25-01-2009
Location: England
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

My System: dm800 Dell 2408WFP

Forgot to mention I run LT5. I've experimented with various images just to see what each might give. I'm not settled on this and would be interested to hear which image is best suited to the UK (e.g add-ons etc.).

The "cam" tools don't run from the menu or coloured buttons, but this shouldn't be an issue as I am runing them in a console in order to see all the diagnostic output.

If I run CCcam (v2.1.1) by itself, it appears to try to read the card but fails

Code:
root@dm800:/usr/cam/cccam# CCcam_2.1.1 -d
00:43:48.734 CCcam: ==============================================================
00:43:48.740 CCcam: starting CCcam 2.1.1 compiled on May  2 2009@20:00:30
00:43:48.740 CCcam: ==============================================================
00:43:48.742 CCcam: online using nodeId 3e48ab170baecdb29e6
00:43:48.789 CCcam: dvb api3 detected
00:43:48.793 CCcam: DM800 detected
00:43:48.794 CCcam: create 8 cam device(s)
00:43:49.026 CCcam: nds card found
00:43:49.795 CCcam: nds: using boxkey 03456789
00:43:49.803 CCcam: card init fail
00:43:49.806 CCcam: readKeyfile: cannot open /var/keys/SoftCam.Key or not found
00:43:49.806 CCcam: readKeyfile: cannot open /var/keys/AutoRoll.Key or not found
00:43:49.807 CCcam: static cw not found or bad
00:43:49.808 CCcam: parsed 0 entries from /var/etc/CCcam.prio
00:43:50.055 CCcam: nds card found
00:43:50.062 CCcam: added 1325 provider names from /var/etc/CCcam.providers
00:43:53.074 CCcam: card init fail
00:43:54.286 CCcam: nds card found
00:43:55.066 CCcam: nds: using boxkey 03456789
00:43:55.075 CCcam: card init fail
00:43:56.276 CCcam: nds card found
00:43:58.747 CCcam: added 8638 channel names from /var/etc/CCcam.channelinfo
00:43:58.749 CCcam: server started on port 12000
00:43:59.297 CCcam: card init fail
->So does anyone know what I put in the CCcam.cfg to prevent CCcam from trying to read the card in /dev/sci0?

I've googled and found other people who have had the same problem, but nobody has posted the solution :-(
It appears to interfere with newcs which appears to be happily accessing the card. Also from the newcs webpage it appears that several entitlements ran out a couple of day ago - doh! So I have put the card back into the digibox. It no longer decodes Sky3 (or Fiver or Five USA). So until the card is updated (not sure if this will happen) I can't continue experiments with newcs/CCcam.

I found some providers and channelinfo files and installed them. I don't know whether they are important or just to make the debug more readable?

--freesat99
freesat99 is offline   Reply With Quote
Reply

Bookmarks

Tags
cccam, dm800, newcs, working


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off







All times are GMT +1. The time now is 01:12 PM.


All views and information expressed in users' communications and profiles represent the opinions of the users concerned and do not represent the views of Satellites.co.uk. All images and news content are believed to be in the public domain, except where otherwise stated. Forum software by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Content Relevant URLs by vBSEO 3.3.1