You are on page 1of 12

Card Sharing

This guide it’s to help newbie’s to setup 2 boxes for Card Sharing in
Lan or Wan.

You need :

2 dreamboxes (???? of course) network connected


1 Network cable

a) If you connect the 2 boxes direct you need a cross network cable
(IMG:style_emoticons/default/cool.gif) if you connect the to boxes in a hub with other
network devices then you need straigth network cable
(both of them easy to find in computer stores)
****************************************************************
Network setup:
Go in dreambox setup-expert setup-network settings and put ip address (something like
this)
dreambox1 : IP 192.168.0.1
subnet 255.255.255.0
gateway (IP address of the router)
DNS (IP address of the router)
If you don’t have Internet connection leave Gateway and DNS blanc

dreambox2 : IP 192.168.0.2
subnet 255.255.255.0
gateway (IP address of the router)
DNS (IP address of the router)
If you don’t have Internet connection leave Gateway and DNS blanc

Check the enable networking checkbox

If you have a PC that’s connect to internet (dialup or ADSL) then you can put the pc's ip
as Gateway and DNS server in both boxes to give them internet access

IMPORTANT????
If you have a router for the internet the ip of the 2 boxes MUST be in same
network as your router.
Examples:
If the router's Ip address is 10.0.0.1 then your boxes ips MUST be 10.0.0.2 and 10.0.0.3
If your router's IP address is 192.168.1.1 then your boxes MUST be 192.168.1.2 and
192.168.1.3

Now your boxes are connected... and with internet access (if its present)
****************************************************************
EMU and Card Sharing How to:
Install in your boxes one of new images.
I prefer PLi Diamod as gives you the choice to have separate server and client EMU.
In this example we will use as cardserver EMU the NewCS and as client EMU Newcamd
So download and install in the boxes the 2 EMUS (NewCS and Newcamd). If only 1
dreambox it will act as a server then in the second one you don’t need to install NewCS,
only Newcamd

Now we have to configure the files for the sharing


*****************************************************************
Server configuration of the file Newcs.xml (/var/tuxbox/config)
(In the supplied zip there is a Newcs.xml file for this example)

Open the file with a plain text editor (I use UltraEdit)

Find the section <debug>


and then <udp_host>192.168.0.1</udp_host>
Here you put your server box ip

Then find <udp_port>10000</udp_port>


Here you put server’s port

Find the section <newcamdserver>


And then the <name>testserver</name>
Here you put the name of your server (testserver)
Then find <deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
Here you put a login key for your users in this format
Then find
<user>
<name>username1</name>
<password>userpas1</password>
<au>on</au>
<spider>No</spider>
</user>
And put user name and password for your users
************************************************************************
********
********

Server and client configuration of file Newcamd.conf (/var/tuxbox/config/newcamd)

(in the supplied zip there is a Newcamd.conf file for this example)
Open the file with a plain text editor

Find the line:

2
CWS = 192.168.0.1 10000 username1 userpas1 01 02 03 04 05 06 07 08 09 10 11 12 13
14 lan testserver

Line parts in plain English


1)192.168.0.1 --- IP address of the server (dreambox acting as server)
(The same as the one defined on newcs.xlm)
2)10000 --- port of the server (the same as the one defined on newcs.xlm)
3)username1 userpas1 --- username and pass of the client (the same as the one defined on
newcs.xlm)
4)01 02 03 04 05 06 07 08 09 10 11 12 13 14 --- access code (the same as the one defined
on newcs.xlm)
5)lan -- leave this as lan
6)cardserv - name of the cardsharing server (the same as the one defined on newcs.xlm)
************************************************************************
********
******************

IMPORTANT!!!!!!!!!!!!!!!!!!!!!!!!
Entries in newcs.xml must be the same in the newcamd.conf
(IP addresses-servername-username-password-deskey)
All this is case sensitive (username it is not the same with UserName)

After saving transer the 2 files in your Dreambox and restart your boxes...
In lan setups this is ready to work
In wan setups you need a router or a dreambox plugin with DynamicDNS capabilities

That’s all guys


You are ready to CARDSHARE

colossus_r
Share the NowHow

Attached File(s)
Attached File cardsharingLanWan.zip ( 4.49k ) Number of downloads: 725

If you've been successfull with newcamd/cardserv it will be easy to do the same with
newcamd/newcs
Which image are u using on your boxes ?
Try to download the same ,newcamd/newcs on both boxes
(with Gemini image it is really easy...)

here an example ( can't remember where I found the appnote...)

3
Client: dm7000s with Gemini 2.5 and newcamd cardserver6.04 (also tested with other
images and newcamd cardserver 6.05 and 6.07]

You can change to your needs


address IP :
client : 192.168.0.5 dreambox 7000s
serveur : 192.168.0.2 relook dg 400s
login : gwen
password : gwen 1
nom du serveur : z
deskey : 0102030405060708091011121314

Server : relook ( it is another box, similar to dreambox...)


newcs.xml to modify in
home/relook/dir_db/tuxbox/config ( take care, this is relook specific..)

Now, the important part...


<newCSconfig>

<readers name="Card Readers">


<device>
<name>lower</name>
<type>Sci</type>
<node>/dev/sci0</node>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<boxkey>0000000000</boxkey>
<PTShandshake>yes</PTShandshake>
<crypto-special>no</crypto-special>
<carddetect>yes</carddetect>
<newcamd_port>10001</newcamd_port>
<priority>round</priority>

</device>

<device>
<name>upper</name>
<type>Sci</type>
<node>/dev/sci1</node>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>No</blocksa>

4
<blockua>No</blockua>
<blockga>No</blockga>
<boxkey>0000000000</boxkey>
<PTShandshake>yes</PTShandshake>
<crypto-special>no</crypto-special>
<carddetect>yes</carddetect>
<newcamd_port>10000</newcamd_port>
<priority>round</priority> <!-- hard is default -->

</device>
</readers>
<cache>
<emm>10</emm>
<ecm>-1</ecm>
</cache>
<debug>
<level>normal</level>
<type>init</type>
<output>tcp,console</output>
<logfile></logfile>
<console_options></console_options>
<file_options></file_options>
<udp_host>192.168.0.2</udp_host>
<udp_port>1000</udp_port>
<udp_options></udp_options>
<tcp_port>3001</tcp_port>
<tcp_options></tcp_options>
</debug>
<newcamdserver>
<enabled>yes</enabled>
<name>z</name>
<deskey>0102030405060708091011121314</deskey>
<userfile>/tmp/users.txt</userfile>
<user>
<name>gwen</name>
<password>gwen1</password>
<hostname>192.168.0.5</hostname>
<port>12000</port>
<au>on</au>
</user>
<user>
<name>User1</name>
<password>Pass1</password>
<au>on</au>
</user>
</newcamdserver>

5
</newCSconfig>

client : dreambox
Fichier newcamd.conf à mettre dans
newcamd.conf file to put in
var/tuxbox/config/newcamd

DEMUX_API = 2
BOX_TYPE = DM7000
CONTROL_WORD_DEVICE = CA
CA_API = 3
GTX_OUTPUT_MODE = 4096
PMT_UPDATE_WATCH = yes
@@@ = yes
PREFER_EMU = no
DISABLE_CAM = yes
CAM_CASYS = 17
AU = yes
SHOW_ALL_CA_SYSTEMS = no
OSD = none
DEBUG_ECM = no
DEBUG_EMM = no
DEBUG_CWS = no
DEBUG_CAM = no
DEBUG_CAM_HEX = no
SHOW_CW = no
SHOW_PAT = no
SHOW_PMT = no
SHOW_ECM = no
SHOW_CAT = no
SHOW_EMM = no
SHOW_CWS_ECM = no
SHOW_CWS_EMM = no
EMM_REPORT_WRONG_SIG = no
OSD_WAIT_TIME = 2000
DEFAULT_CW_DELAY = 0
RELOAD_CONFIG_ON_ZAP = yes
RELOAD_KEYLIST_ON_ZAP = yes
CWS = 192.168.0.2 10000 gwen gwen1 0102030405060708091011121314 lan z
CWS = 192.168.0.2 10001 gwen gwen1 0102030405060708091011121314 lan z
CWS_CONNECT_TIMEOUT = 20
CWS_INCOMING_PORT = 12000

Don't forget to route your TCP and UDP ports and it shld work !!!
Reply With Quote

6
jivago
View Public Profile
Send a private message to jivago
Find all posts by jivago
#6
Unread 03-05-2006
greenarrow greenarrow is offline
Registered User

Join Date: Dec 2003


Posts: 12
greenarrow is on a distinguished road
Re: Newcs sharing???
Thanks a lot my freind
i will test it but can u tell me with "route your TCP and UDP ports" what i have to do.
Thanks again fo your time

P.S. if server is a dreambox how i can load the newcs @@@?


Last edited by greenarrow : 03-05-2006 at 10:03 PM.
Reply With Quote
greenarrow
View Public Profile
Send a private message to greenarrow
Find all posts by greenarrow
#7
Unread 03-06-2006
jivago jivago is offline
Registered User

Join Date: Apr 2004


Posts: 40
[Abu Dhabi]
jivago is on a distinguished road
Re: Newcs sharing???
What is your configuration, I mean how are you connected to the internet ?

You may only have a PC and an DSL modem...but then how do you tie your dreambox to
your PC ?
the solution is to have your PC beeing a bridge, sharing it's Internet connexion to the
dreambox.
In this case, all the TCP/UDP trafic we talked about will be directly passed thru the PC to
the dreambox...No routing to do, the PC implicitely does the job

You may have another configuration i.e the PC is connected to a specif box called a
modem/router.

7
You may see this box as a box with four Ethernet ports on one side, a telephone like
output to connect to the phone line..
You connect you PC on one of the four Ethernet ports, your dreambox on a second E'net
port, may be if a have a portable PC on the third E'net port...
The cost of this kind of modem/router is below 100 Euros now...
...but then, you are facing a problem ( easy to solve...)
Imagine your dreambox sending connexion packets to the remote dreambox..
The remote drembox answers and returns this packets to your Internet Access Providers
who transfers this packet back to.. you !!!
But YOU...it is the router and the router ( he as got all the software on board to do that)
now must route ( i.e switch..) the packet to the Ethernet port where your dreambox is
connected to, not to your PC...
To do that, you have a control screen on your router in which you will tell for example "
all UDP Packet arriving on port 1000 of the router has to be routed to port 1000 of the IP
address 192.168.0.5 (I assume that you have assigned this IP to your Dream..)
All TCP packet arriving on port 3001 has to be routed to 192.168.0.5:3001
( I use another notation...)
Clear ?
Reply With Quote
jivago
View Public Profile
Send a private message to jivago
Find all posts by jivago
#8
Unread 03-06-2006
greenarrow greenarrow is offline
Registered User

Join Date: Dec 2003


Posts: 12
greenarrow is on a distinguished road
Re: Newcs sharing???
Yes my friend is very clear thenks a lot..

Reply With Quote


greenarrow
View Public Profile
Send a private message to greenarrow
Find all posts by greenarrow
#9
Unread 03-06-2006
jivago jivago is offline
Registered User

Join Date: Apr 2004


Posts: 40

8
[Abu Dhabi]
jivago is on a distinguished road
Re: Newcs sharing???
Allora, tutto bene !!!
Reply With Quote
jivago
View Public Profile
Send a private message to jivago
Find all posts by jivago
#10
Unread 03-07-2006
feri3 feri3 is offline
Registered User

Join Date: Dec 2005


Posts: 12
[Slovakia]
feri3 is on a distinguished road
Re: Newcs sharing???
Quote:
Originally Posted by jivago
@greenarrow

If you've been successfull with newcamd/cardserv it will be easy to do the same with
newcamd/newcs
Which image are u using on your boxes ?
Try to download the same ,newcamd/newcs on both boxes
( with gemini image it is really easy...)

here an example ( can't remember where I found the appnote...)

client: dm7000s with Gemini 2.5 and newcamd cardserver6.04 (also tested with other
images and newcamd cardserver 6.05 and 6.07]

you can change to your needs


adresses ip :
client : 192.168.0.5 dreambox 7000s
serveur : 192.168.0.2 relook dg 400s
login : gwen
password : gwen 1
nom du serveur : z
deskey : 0102030405060708091011121314

Serveur : relook ( it is another box, similar to dreambox...)

9
newcs.xml to modify in
home/relook/dir_db/tuxbox/config ( take care, this is relook specific..)

Now, the important part...


<newCSconfig>

<readers name="Card Readers">


<device>
<name>lower</name>
<type>Sci</type>
<node>/dev/sci0</node>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<boxkey>0000000000</boxkey>
<PTShandshake>yes</PTShandshake>
<crypto-special>no</crypto-special>
<carddetect>yes</carddetect>
<newcamd_port>10001</newcamd_port>
<priority>round</priority>

</device>

<device>
<name>upper</name>
<type>Sci</type>
<node>/dev/sci1</node>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<boxkey>0000000000</boxkey>
<PTShandshake>yes</PTShandshake>
<crypto-special>no</crypto-special>
<carddetect>yes</carddetect>
<newcamd_port>10000</newcamd_port>
<priority>round</priority> <!-- hard is default -->

</device>
</readers>
<cache>
<emm>10</emm>
<ecm>-1</ecm>

10
</cache>
<debug>
<level>normal</level>
<type>init</type>
<output>tcp,console</output>
<logfile></logfile>
<console_options></console_options>
<file_options></file_options>
<udp_host>192.168.0.2</udp_host>
<udp_port>1000</udp_port>
<udp_options></udp_options>
<tcp_port>3001</tcp_port>
<tcp_options></tcp_options>
</debug>
<newcamdserver>
<enabled>yes</enabled>
<name>z</name>
<deskey>0102030405060708091011121314</deskey>
<userfile>/tmp/users.txt</userfile>
<user>
<name>gwen</name>
<password>gwen1</password>
<hostname>192.168.0.5</hostname>
<port>12000</port>
<au>on</au>
</user>
<user>
<name>User1</name>
<password>Pass1</password>
<au>on</au>
</user>
</newcamdserver>

</newCSconfig>

client : dreambox
Fichier newcamd.conf à mettre dans
newcamd.conf file to put in
var/tuxbox/config/newcamd

DEMUX_API = 2
BOX_TYPE = DM7000
CONTROL_WORD_DEVICE = CA
CA_API = 3
GTX_OUTPUT_MODE = 4096
PMT_UPDATE_WATCH = yes

11
@@@ = yes
PREFER_EMU = no
DISABLE_CAM = yes
CAM_CASYS = 17
AU = yes
SHOW_ALL_CA_SYSTEMS = no
OSD = none
DEBUG_ECM = no
DEBUG_EMM = no
DEBUG_CWS = no
DEBUG_CAM = no
DEBUG_CAM_HEX = no
SHOW_CW = no
SHOW_PAT = no
SHOW_PMT = no
SHOW_ECM = no
SHOW_CAT = no
SHOW_EMM = no
SHOW_CWS_ECM = no
SHOW_CWS_EMM = no
EMM_REPORT_WRONG_SIG = no
OSD_WAIT_TIME = 2000
DEFAULT_CW_DELAY = 0
RELOAD_CONFIG_ON_ZAP = yes
RELOAD_KEYLIST_ON_ZAP = yes
CWS = 192.168.0.2 10000 gwen gwen1 0102030405060708091011121314 lan z
CWS = 192.168.0.2 10001 gwen gwen1 0102030405060708091011121314 lan z
CWS_CONNECT_TIMEOUT = 20
CWS_INCOMING_PORT = 12000

12

You might also like