Setting up a NewCS cardserver

Status
Not open for further replies.

Lujdzo

Registered
Messages
596
Setting up a NewCS cardserver


In this document we describe the installation and configuration steps for a NewCS cardserver system. You will need the following software / hardware components for a successful installation:
Linux or Windows XP host (preferred a newer RedHat or any new system) Cardreader hardwareAn active serial portNewCS archive; You can download it from our site
When everything is ready, follow this step-by-step setup procedure:

Installing the server on a Linux system
Decompress the NewCS archive; You will find various executables in bin directory. We will need only one file for our Intel-based system. It is a newcs.x86. So copy it to your Linux host using FTP. The preferred location varies from system to system. It is usually
/usr/local/bin
Copy the configuration (newcs.xml.phoenix) file into:
/var/tuxbox/config
Rename this file to
newcs.xml
Now, we can start the NewCS server! But wait a moment! It need libcrypto.so.0.9.7! On some systems it is not available in this naming, but check the /lib directory on your system. If you can find a libcrypto.so.0.9.7a or libcrypto.so.0.9.7b or similar file, soft-link to the name we require:
ln /lib/libcrypto.so.0.9.7a /lib/libcrypto.so.0.9.7
Now, will have a required library name in /libs directory. We can start the NewCS server.
Type its name and press enter:
newcs
If You are in currently in a directory where NewCS is installed, type this:
./newcs
If it is running, it will write informations to the screen like this:
[root@celeron root]# newcs
Reading Config file /var/tuxbox/config/newcs.xml
level: normal
type: init
output: all
logger config: level 1 type 3 output 255
log file:
logger: cant open file , file log disabled
udp log: host 192.168.1.10 port 1000
tcp port: 3001
[ 20:14:47 ] [ Box detect ] Box type 1
[ 20:14:47 ] [ Config ] Option <PPV> for device phoenix not present
[ 20:14:47 ] [ Config ] /dev/ttyS0 ECM priority: round
[ 20:14:47 ] [ EMM Cache ] Initialising Cache with 10 entries
[ 20:14:47 ] [ ECM Cache ] Initialising Cache with 10 entries
[ NewCS ] Process id 1871
[ 20:14:47 ] [ Loader ] Reader type 2 on node /dev/ttyS0
[ 20:14:47 ] [ Phoenix ] Opening device /dev/ttyS0
[ 20:14:47 ] [ Phoenix ] Setting Parity to: EVEN
[ 20:14:47 ] [ Phoenix ] Setting Baud to custom 16129
[ 20:14:47 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 20:14:48 ] [ Loader ] Unknown card
[ 20:14:48 ] [ Loader ] Trying Irdeto (T=14)
[ 20:14:48 ] [ Loader ] Reader type 2 on node /dev/ttyS0
[ 20:14:48 ] [ Phoenix ] Opening device /dev/ttyS0
[ 20:14:48 ] [ Phoenix ] Setting Parity to: EVEN
[ 20:14:48 ] [ Phoenix ] Setting Baud to standard 9600
[ 20:14:48 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 20:14:50 ] [ Loader ] Unknown card
[ 20:14:50 ] [ NewCS ] Ready to GO!

Ok! Now, find the NewCS process and kill it:
[root@celeron root]# ps ax|grep newcs
1871 pts/2 S 0:00 newcs
1875 pts/2 S 0:00 grep newcs
The process id is 1871, so use the kill comand with this number as its parameter:
[root@celeron root]# kill 1871
Always be sure you are running only a ONE INSTANCE from a NewCS server! Use ps ax | grep newcs command to do this. If You need multiple instances, create configuration files for every instance, and start NewCS with it as a parameter:
[root@celeron root]# newcs /var/tuxbox/config/newcs2.xml
In the previous example You have specified the configuration file You want to use.
With your favorite text editor edit the configuration file to suit your needs. The serial ports on Linux are:
/dev/ttyS0 = COM1
/dev/ttyS1 = COM2
etc.
Find the first <device> tag:

<device>
<name>phoenix</name>
<type>Phoenix</type>
<node>/dev/ttyS0</node>
<mhz>357</mhz> <!-- or 357 -->
<parity>none</parity>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>yes</blocksa>
<blockua>yes</blockua>
<blockga>yes</blockga>
<boxid>0000000000</boxid>
<PTShandshake>Yes</PTShandshake> <!-- Set to yes(if wanted) for cryptoworks, Viacess and c
<crypto-special>Yes</crypto-special>
<carddetect>no</carddetect>
<newcamd_port>10001</newcamd_port>
<priority>round</priority> <!-- hard is default -->
<sid>
<allow>
<!-- valid value for id are:
4 numbers, if the service id is 3 numbers, add a 0 infront of it. -->
<id></id>
</allow>
<deny>
<!-- valid value for id are:
4 numbers, if the service id is 3 numbers, add a 0 infront of it.
<id></id>
</deny>
</sid>
</device>


<node> and <newcamd_port> is interesting for us. Specify the serial port (ttySx) on which You have an active cardreader hardware. Also, specify the debug port for the NewCS (starts its numbering from 10001).
Add some users. Find a user tag:
<user>
<name>username1</name>
<password>password1</password>
<au>on</au>
</user>
Modify the <name> and <password> to fit your needs. You can have multiple <user> tags, of course.
<user>
<name>username2</name>
<password>password2</password>
<au>on</au>
</user>
<user>
<name>username3</name>
<password>password3</password>
<au>on</au>
</user>
Kill the runninf NewCS process, and restart it using this newly created configuration file with its parameter:
[root@celeron root]# newcs /var/tuxbox/config/newcs.xml
It will write out the card paramters and other infos. Now, You can connect to this server using NewCAMD, EvoCAMD, MGCAMD, WinCSC and other CAM emulators. Enjoy!

Installing the server on a Windows system
The Windows installation is similar to the unix version. Decompress the following files from the NewCS archive to some directory:
newcs.exe
mingwm10.dll
pthreadGCE2.dll
newcs.xml.dragon
Rename the file
newcs.xml.dragon to newcs.xml
Edit the newcs.xml file. Edit <device> and <user> tags. Now, use COM1 and COM2 etc. instead of ttySx device names for serial ports.
<device>
<name>phoenix</name>
<type>Phoenix</type>
<node>COM1</node>
<mhz>357</mhz> <!-- or 357 -->
<parity>none</parity>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>yes</blocksa>
<blockua>yes</blockua>
<blockga>yes</blockga>
<boxid>0000000000</boxid>
<PTShandshake>Yes</PTShandshake> <!-- Set to yes(if wanted) for cryptoworks, Viacess and c
<crypto-special>Yes</crypto-special>
<carddetect>no</carddetect>
<newcamd_port>10001</newcamd_port>
<priority>round</priority> <!-- hard is default -->
<sid>
<allow>
<!-- valid value for id are:
4 numbers, if the service id is 3 numbers, add a 0 infront of it. -->
<id></id>
</allow>
<deny>
<!-- valid value for id are:
4 numbers, if the service id is 3 numbers, add a 0 infront of it.
<id></id>
</deny>
</sid>
</device>


<node> and <newcamd_port> is interesting for us. Specify the serial port (COMx) on which You have a cardreader hardware installed. Also, specify the debug port for the NewCS server (starts its numbering from 10001).
Add some users. Find a user tag:
<user>
<name>username1</name>
<password>password1</password>
<au>on</au>
</user>
Modify the <name> and <password> to fit your needs. You can have multiple <user> tags, of course.
<user>
<name>username2</name>
<password>password2</password>
<au>on</au>
</user>
<user>
<name>username3</name>
<password>password3</password>
<au>on</au>
</user>
Start the newcs.exe from the command prompt.
C:\>newcs
You can test the server connecting to it using NewCAMD, EvoCAMD, MGCAMD, WinCSC and other CAM emulators. Enjoy!
 
Status
Not open for further replies.
Top