PDA

View Full Version : Mbox 0.6 build 0010 and NewCS



Aragos
31-08-2009, 03:51 AM
Hi there!

I've read this How to (https://www.satpimps.co.uk/showthread.php?t=107221) and set up Mbox with NewCS for my internal Nagra card.
It's working now but still has some freezers while watching.

Is there any fine tuning I can do in the config files of NewCS and Mbox to fix it ?


I set "J: { 1 }" so HD channels are working but I get on all channels freezers.

And what do I enter best for the last 2 parameters on end of c line "C: ( { 0 } { 0 } )" ??


I hope you can help me! Thank you! :)

hanswurscht
31-08-2009, 10:47 AM
freeze comes from API!
try to install another Emu which takes the Right for ECM, example cccam or mgcamd.
start mbox and mgcamd both, now, black screen. Leave NewCS as it is
start mbox again over TV/Plugins and kill mgcamd in plugins with #

now you shouldnt have any freeze, also not for records.

And dont use Multicas or install it!
If you have installed, deinstall it. With the new ************ something goes wrong, it touches the API still it is deactivated.

Be sure you kill Fileserver and mount for testing

Aragos
01-09-2009, 02:37 AM
Huh! Is it really this complicated? :302:

I'm looking for a solution that works directly after Azbox has booted. Mgcamd and NewCS worked without freezes but mgcamd couldn't record anything. BTW: I was told CCcam don't support my Nagra card directly and can't record TV.

The thing is: Mbox works flawlessly when started as the only one emu and NewCS is running on my Dreambox. So it works as a client only.
I just don't get it why I have freezers when using Mbox and NewCS on Azbox HD together. So I thought it must have been the config files.




And dont use Multicas or install it!
If you have installed, deinstall it. With the new ************ something goes wrong, it touches the API still it is deactivated.

I don't know what you mean exactly and what the bad word was but do you really mean even if I have MultiCAS deactivated and Telnet tells me it's not running it still uses some sources? :confused:




Thank you! :applause-003:

hfmls
01-09-2009, 02:46 AM
post here mbox.cfg and cwshare.cfg
i'll help you. and post back the settings u should have.

tell me if it's gonna be client or server(just to serv, not to watch tv) or something else.

Aragos
01-09-2009, 03:12 AM
Thanks hfmls! Pity I can't attach files here so I'll have to post the whole text.

I just want to watch and record my PayTV properly and locally!

BTW: Is NewCS 1.20R13 (391.800 Bytes) the right version?

I'll post the newcs.xml too. ;)


newcs.xml :



<?xml version="1.0"?>
<newCSconfig>
<readers name="Card Readers">
<device>
<name>upper</name>
<type>azbox</type>
<node>/dev/scard</node>
<export>yes</export>
<enabled>yes</enabled>
<parity>odd</parity>
<reset>normal</reset>
<blocksa>no</blocksa>
<blockua>no</blockua>
<blockga>No</blockga>
<newcamd_port>24000</newcamd_port>
<autosid>no</autosid>
<carddetect>yes</carddetect>
<priority>hard</priority>
<PTShandshake>no</PTShandshake>
<mhz>600</mhz>
<boxkey></boxkey>
<rsa></rsa>
</device>
</readers>
<xmlserver>
<enabled>1</enabled>
</xmlserver>
<radegastserver>
<enabled>0</enabled>
</radegastserver>
<cache>
<emm>15</emm>
<ecm>2</ecm>
</cache>
<debug>
<password>azboxhd</password>
<level>normal</level>
<type>init</type>
<output>console,tcp</output>
<console_options>normal,init</console_options>
<tcp_port>1005</tcp_port>
<tcp_options>normal,init</tcp_options>
<logfile>/tmp/newcs.txt</logfile>
</debug>
<newcamdserver>
<enabled>yes</enabled>
<name>NewCS local</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<user>
<spider>off</spider>
<status>access</status>
<allow>upper</allow>
<name>dummy</name>
<password>dummy</password>
<au>on</au>
<rate>0</rate>
<sidoverride>off</sidoverride>
<spider>No</spider>
<hostname>127.0.0.1</hostname>
<port>29000</port>
</user>
</newcamd_server>
<httpd>
<server>
<port>9080</port>
<enabled>yes</enabled>
</server>
<user>
<name>admin</name>
<password>admin</password>
<accesslevel>admin</accesslevel>
</user>
</httpd>
</newCSconfig>
</newCSconfig>



cwshare.cfg :



C: { 127.0.0.1 24000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 3 } { 0 }
C: { 192.168.1.10 34000 Mbox mbox1 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 3 } { 0 }
C: { 192.168.1.10 34001 Mbox mbox1 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 3 } { 0 }

#M: { myown.dyndns.org { mypassword}}
#Gline
#G: { mypeer.dyndns.something { our ports { hispassword { A2 A2 }}}}
#G: { mypeer.dyndns.something { our ports { hispassword { A3 A3 }}}}

I: { 3 }
O: { 3000 2000 }
X+: { 01004106:30;18100000:30 }



mbox.cfg :





//mbox.cfg EXPLANATION and EXAMPLES


A: { 0 } // for QBoxHD receivers or for any receivers if needed it
//A: { x }
//Choose adapter path
//x=0 -> /dev/dvb/adapter0/
//x=1 -> /dev/dvb/adapter1/
//x=2 -> /dev/dvb/adapter2/
//x=.. -> .......
//default x=0


/********************************* ********************************* ********************************* *********************/

D: { 0 }

//D: { x }
//x=0 -> disable
//x=1 -> enable dbox2 cw writing
//x=2 -> enable STAPI for IPBOX
//x=3 -> enable STAPI for Kathrein
//x=4 -> enable Linux DVB API for Kathrein
//x=5 -> enable triple dragon
//x=6 -> enable Qbox HD
//x=7 -> enable STAPI for Kathrein ufs922 -> dont work CSA decoding :(
//default disabled

/********************************* ********************************* ********************************* *********************/

B: { 0 0 0 }

//B: { 1 127.0.0.1 127.0.0.1 } // for local watching over DVB


//B: { x IP_listen IP_send }
//x=0 -> disable local UDP ports 8004-80xx ,this ports are used with DVB cards and gbox plugin (Windows and Linux)
//x=1 -> enable
//IP_listen -> on what IP to wait for PMT and ECMs
//IP_send -> on what IP to send DCW
//default disabled

/********************************* ********************************* ********************************* *********************/



// Z: { 13 01 } { 192.168.1.11 8000 }

// Z option -> control sending/writing current informations
// Z: { xy 0z } { IP port }
// x=0 -> don't print time stamp (in console screen and in debug file)
// x=1 -> print time stamp ( .... )
// y=0 -> no writing/sending informations to debug file/destination IP
// y=1 -> send informations to destination IP but not in debug file
// y=2 -> write informations to debug file but don't send to destination IP
// y=3 -> write/send informations to debug file/destination IP
// z=0 -> dont write debug text in console window
// z=1 -> write debug text in console windows
// IP port -> destination IP and UDP port where to send informations
// no default

/********************************* ********************************* ********************************* *********************/

#C: { 127.0.0.1 7999 }

// C option -> control receiving some command messages localy or from another IP
// C: { IP port }
// IP-> your local IP or you DNS
// port -> on what port you will be waiting command messages
// no default


/********************************* ********************************* ********************************* *********************/

L: { 1 }

// L option -> how mbox to menage virtual card(s) with level 0
// ( only for peer(s) who have and can reshare virtual cards but don't want to use LEVEL 0 card(s) for them self)
// L: { x }
// x=0 -> don't load any virtual cards with LEVEL 0, you can't use them for your self
// x=1 -> load all virtual cards with LEVEL 0 ,you will be using them for your self
// default 1

/********************************* ********************************* ********************************* *********************/

#G: { /hdd/ }

//G option -> redirect writing ONLY debug.txt file to internal or external HDD in receivers or for any other reason.
//Remove #, ONLY if you want to use this option !!!!!!!

/********************************* ********************************* ********************************* *********************/

T: { /tmp/ }

// T option -> where to store temp files ... (share.info,debug.txt ,etc.)
// T: { folder_path_to_files, example: T: { /tmp/ } }

/********************************* ********************************* ********************************* *********************/

K: { /EMU/OpenXCAS/MboxCAS/ }

// K option -> where is cwshare.cfg,mbox.prio file
// K: { folder_path_to_files, example: K: { /var/keys/ } }


/********************************* ********************************* ********************************* *********************/


M: { 1 }

// M option -> Mode option
// M: { x }
// x=0 -> local mode no NET
// x=1 -> NET mode
// default 0

/********************************* ********************************* ********************************* *********************/


P: { /tmp/pmt.tmp }


// P option -> PMT location (Dont used with linux and windows)
// you must be tuned to channel so image can generate this file
// { /tmp/pmt.tmp } for receivers and images that create this file <- use this if you can
// { /tmp/pmtX.tmp } X-> number -> pmt1.tmp ......
// { 1/tmp/camd.socket } for enigma 1
// { 2/tmp/camd.socket } for enigma 2

/********************************* ********************************* ********************************* *********************/

W: { 0 }

// W option -> write raw ECM to ecm.raw file
// W: { x }
// x=0 -> disabled
// x=1 -> enabled
// default disabled

/********************************* ********************************* ********************************* *********************/

Q: { 300 }

//Q option -> newcamd connect retry in sec.
//Q: { x }
// default 300 sec.

/********************************* ********************************* ********************************* *********************/

F: { 500 }

//F option -> reset writing debug.txt from begining if file size is higher then (x)(KB)
//F { x } -> decimal in KBytes
//default 500 KB


/********************************* ********************************* ********************************* *********************/

//V: { card_type | device number | clock | inverse_Reset | inverse_CD_Line | detect card over CTS | DM800/8000 | dbox }
#V: { 3 1 3571200 0 0 0 0 0 } // external reader example -> Seca card, com1 port, clock 3.57 Mhz,
#V: { 3 2 3571200 1 0 0 0 0 }
#V: { 3 3 1 0 0 0 0 0 } // dreambox example -> Seca card,sci0 slot,3.33 Mhz


// [card_type]:
// Seca 3
// Irdeto 4
// Conax 5
// Cryptoworks 6
// Viaccess 7
// NDS 8
// Nagravision 9



// [device number]:
// COM1/ttyS0 1
// COM2/ttyS1 2
// /dev/sci0 3
// /dev/sci1 4
// /dev/usb/tts/0 5
// /dev/usb/tts/1 6
// /dev/tts/0 7
// /dev/tts/1 8
// /dev/ttyUSB0 9
// /dev/ttyUSB1 10
// /dev/scard0 11 //azbox
// /dev/scard1 12 //azbox



//[clocks]
//for COM ports and external card readers in Hz!!!

//for SCI DreamBox slots use this values
// 1 - 3.33 Mhz
// 2 - 3.63 Mhz
// 3 - 4 Mhz
// 4 - 4.44 Mhz
// 5 - 5Mhz
// 6 - 5.71 Mhz
// 7 - 6.66 Mhz
// 8 - 8 Mhz

//[Inverse Reset]
// 1 -yes
// 0 -no
//for GPIO
//2-gpio1
//3-gpio2
//4-gpio3
//5-gpio4
//6-gpio5
//7-gpio6
//8-gpio7


//[Inverse CD Line Detection]
//1 - yes
//0 - no

//[Detect card over CTS signal]
//1 - yes
//0 - no

//[DM800/8000 box]
//1 - yes
//0 - no


//[dbox serial/multicam]
//1 - yes
//0 - no

/********************************* ********************************* ********************************* *********************/


J: { 1 }
// J option -> enable adding betacrypt header to N3 ECM for Premier
// J { x }
// x = 0 -> disabled
// x = 1 -> enabled

/********************************* ********************************* ********************************* *********************/

#S: { COM1 115200 }
//S option -> enable sssp protocol
//S: { x baud }
//x=COM1
//x=COM2
//x=/dev/ttyS0
//x=/dev/ttyS1
//x= serial device ...
//valids baud -> 115200,57600,38400,19200,9600
/********************************* ********************************* ********************************* *********************/



I hope that will help! Thanx! :)

hfmls
01-09-2009, 03:31 AM
i don't know about newcs but in mbox.cfg

comment B:, like //B:
change Z: to 11 00 instead of 13 01

in cwshare.cfg
put O: like this
O: { 2000 1000 }



see if that helps

rtificial
01-09-2009, 07:36 AM
It can also be very helpful to specify allows/denies in your newcs config, as in this way, it will only be bother with reqs which your card can actually decrypt.

Same can for mbox in allow/deny and [port].list

genius74
01-09-2009, 09:12 AM
Change this:


<PTShandshake>no</PTShandshake>
<mhz>357</mhz>
<boxkey></boxkey>

Change port nš


<user>
<spider>off</spider>
<status>access</status>
<allow>upper</allow>
<name>dummy</name>
<password>dummy</password>
<au>on</au>
<rate>0</rate>
<sidoverride>off</sidoverride>
<spider>No</spider>
<hostname>127.0.0.1</hostname>
<port>24000</port>
</user>

This:



C: { 192.168.1.10 34001 Mbox mbox1 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 10 }

What's your nagra card provider?

hfmls
01-09-2009, 02:16 PM
some nagra doesn't use 357mhz in newcs :) it can use more.
user got to check that out

hanswurscht
01-09-2009, 03:58 PM
some nagra doesn't use 357mhz in newcs :) it can use more.
user got to check that out

Not really, I think you are talking about tunneling over another encryption.

Her are all frequences

Irdeto 6.0000 MHz
Seca 3.5795 MHz
Viaccess 3.5795 MHz
Nagravision 3.6864 MHz
Cryptoworks 3.5795 MHz
Conax 3.5795 MHz
NDS 3.5795 MHz

If a Provider uses Nagra but is tunneling over Irdeto, you must use 6MHZ
But a real pure Nagracard is using 3,68MHZ

hfmls
01-09-2009, 04:16 PM
i use 370mhz. all good. only 45 peers.

Aragos
01-09-2009, 04:32 PM
i don't know about newcs but in mbox.cfg

comment B:, like //B:
change Z: to 11 00 instead of 13 01

in cwshare.cfg
put O: like this
O: { 2000 1000 }


I did comment B: but I didn't use Z: anyway. I've changed the rest and it seems it runs better now but I've got still some freezers every few minutes.

BTW: My openxcas.conf of newcs looked like this:


[module]
name = newcs
wait= 1
daemon = newcs
version = 1.20R13
ap= no
xcasapi = FALSE



I think "ap= no" makes no sense so I've changed it to "api = no". Is this correct?

Aragos
01-09-2009, 04:37 PM
It can also be very helpful to specify allows/denies in your newcs config, as in this way, it will only be bother with reqs which your card can actually decrypt.

Same can for mbox in allow/deny and [port].list

Sounds not bad but I've got no idea how to do that properly.



@genius74

No need to change port. Ignore the last 2 c lines, that's not the Azbox.
It's not pure Nagra but uses tunneling so 6.00 MHz is fine.




Change this:
C: { 192.168.1.10 34001 Mbox mbox1 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 10 }


I've already asked but what does the 10 at the end mean exactly? What to set best?

Aragos
02-09-2009, 01:22 AM
Please help me by trying to answer my questions. Thank you! :respect-056:

hfmls
02-09-2009, 01:41 AM
i dont remember either but i use 10 also
and
<cache>
<emm>20</emm>
<ecm>-1</ecm>

genius74
02-09-2009, 02:09 PM
Quote:
Originally Posted by genius74 View Post
Change this:
C: { 192.168.1.10 34001 Mbox mbox1 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 10 }
I've already asked but what does the 10 at the end mean exactly? What to set best?

See here it's in readme.cwshare:


Connecting to newcamd server program Newcs
================================= =========

example:
C: { server_ip server_listening_port username password des_key } { x } { xxxxyyyy:xxxxyyyy;......}
C: { 127.0.0.1 15000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 10 } { 0100006a:0100006B;}

[second brascet] -> { x } max. number ecms in buffer ,decimal !!!!!

hanswurscht
02-09-2009, 06:11 PM
do it there or do it in NewCS.
If not in C Line leave it out

Aragos
02-09-2009, 11:32 PM
See here it's in readme.cwshare:

I know, I can read the readme myself but I still don't know for sure what it means exactly. What I asked for is an explanation in simple words so one can understand it.
I mean is 10 in this case the number of ECMs the emu can handle at the same time? The max number of ECMs which are send to the card? Or for which reason is this practically useful?



do it there or do it in NewCS.
If not in C Line leave it out

Is leaving out the same thing like entering a zero like that: "{ 0 } { 0 }" ?


If entering a zero, will be 0 ECMs in buffer then or does it mean there is no limitation of ECMs then?

Aragos
07-09-2009, 10:13 PM
Come on Pros. I'm sure anyone can explain. ;)

rtificial
08-09-2009, 08:32 AM
10 is the numbers of buffered ECM's, so the maximum number of ECM's waiting for a respons from NewCS.

At least that is my interpretation.

I have no idea how to find out the correct value for it.

hanswurscht
08-09-2009, 10:29 AM
its correct, but I use NewCS for Buffer and max 5 ECMs, more isnt interesting, because they are outdated in seconds.

Aragos
08-09-2009, 10:20 PM
Thank you!


freeze comes from API!
try to install another Emu which takes the Right for ECM, example cccam or mgcamd.
start mbox and mgcamd both, now, black screen. Leave NewCS as it is
start mbox again over TV/Plugins and kill mgcamd in plugins with #

now you shouldnt have any freeze, also not for records.

And dont use Multicas or install it!
If you have installed, deinstall it. With the new ************ something goes wrong, it touches the API still it is deactivated.

Be sure you kill Fileserver and mount for testing

BTW: I've tried this and it seemed to work first but then I got freezes anyway.

What do you mean by "Leave NewCS as it is"?

Should be NewCS activated or deactivated? When do I start NewCS?

Aragos
08-09-2009, 10:22 PM
BTW: My openxcas.conf of newcs looked like this:


[module]
name = newcs
wait= 1
daemon = newcs
version = 1.20R13
ap= no
xcasapi = FALSE



I think "ap= no" makes no sense so I've changed it to "api = no". Is this correct?

What about that? Should NewCS has got set "api = no" or does "ap" makes any sense?

:confused:

hanswurscht
09-09-2009, 08:41 AM
NewCS dont need any API for ECM, delivering only to client.
Im unsure, if we need this Setting, but I have still both.
leave as it is= leave as it is
If NewCS is needed for local and activated in Plugins so still dont touch it.

Of courxe a lot of other Things can go wrong in CFGs, another urgent Point is ECM Timing in MBox