Author Topic: SETTING UP NEWCS + MGCAMD  (Read 1871 times)

0 Members and 1 Guest are viewing this topic.

Offline antox

  • Ferengi
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 16798
SETTING UP NEWCS + MGCAMD
« on: February 06, 2010, 12:11:48 AM »


Please be sure first that you already installed in your dreambox newcs and MGCamd. If not, please install them first and carry on reading this tutorial.

Last step before going on. For sure you are wondering why installing two EMUs to have my smart card working. The answer is simple. In order to clear channels on our TV set, we need two components: one “Card Reader” and one “EMUlator”. The former is in charge of comunication between smart card and “softcam”, the latter is in charge to manage those datas and to send them to decoder. Both of them are necessary to read our smart card, should one of the two be missing, channels would be never cleared. Main “Card Readers” are two: “cardserver” and “newcs”. This tutorial will explain how to use newcs.

I did all tests which are described in this tutorial with a Firecrypt smart card which is sold with every dreambox and which is for channel INXTC TV. The procedural is anyway the same for every smart card you decide to use. Once set up is completed, you can use all smart cards if compatible with newcs and MGCamd.

Setting up Newcs

  * First of all you need a good text editor which is compatible with UNIX. A good freeware editor is Notepad++ 3.8.
  * Use Notepad++ to open “newcs.xml” file. You are kindly suggested not touch or edit anything at all. I show you how to edit file just you should need to change some setting in the future.
  * In this text you can find settings for 2 CAS, “lower” is the lower one and “upper” is the upper one. Since DM500 has only 1 CAS it is considered as “lower”. You will use port 34000 for lower cas and port 34001 for upper cas:

Quote
          lower       Sci       /dev/sci0       even       yes       yes       no       no       no              no       no       yes       no       34000       yes       round               upper       Sci       /dev/sci1       even       yes       yes       no       no       no              no       no       yes       yes       34001       yes       round                
In this text you can find deskey and name used for your network:
Quote
yes 01 02 03 04 05 06 07
08 09 10 11 12 13 14
newcs
You can find here settings for client access which will be used by MGCamd to make our smart card working:
Quote
   user1    
pass1    on
   lower    upper
 * Finally, if you have not changed anything, very important settings for client are:Port: 34000 (lower) or 34001 (upper)
   Deskey: 01 02 03 04 05 06 07 08 09 10 11 12 13 14
   User: user1
   Pass: pass1
  * Copy “newcs.xml” file to your dreambox path /var/tuxbox/config/

Setting up MGCamd

  * Open with Notepad++ “newcamd.list” file you found in the zip archive you downloaded before. If you left all unchanged in newcs settings, you can leave all unchanged also here.
  * Two lines, quoted here below, are very important. The former makes your card working in the lower cas, the latter makes your card working in upper cas and necessary datas are the server IP address, the used port, the user name, the password and the des key:
Quote
CWS = 127.0.0.1 34000 user1 pass1 01 02 03 04 05 06
07 08 09 10 11 12 13 14 lan newcs CWS = 127.0.0.1
34001 user1 pass1 01 02 03 04 05 06 07 08 09 10 11 12
# Copy “newcamd.list” and “mg_cfg” file to your dreambox path /var/keys/
# If you followed instructions carefully, you can insert smart card (with gold chip downwards), then you go to firmware menu to run emu ( generaly you access by pressing blue key) select “MGCamd + Newcs” as emu (or a similar name which can change depending on firmware versions), reset emu. Should not it working, please reboot your dreambox and after boot it should be all working.