Home

Ayuda con cccam+newcs+mpcs

refinitivo

Usuario
Forero
24 Oct 2009
7
0
0
Hola a todos llevo ya mas de 2 semanas intentando tirar de mi blanquita con esta combinacion y no hay forma, solo tira de lo que me viene del exterior. Doy datos

Tengo:
-cccam 2.0.04 (script de terrorman)
-MPCS_v106-P4_FULL.tar.gz
-Newcs (version 1.20 posteada por Gorski)

Pues bien arranca perfectamente cccam (dvbapi_module) pero no arrancan ni mpcs ni newcs

Asi tengo configurados los archivos:

MPCS.READER

[reader]
Label = newcamd1
Protocol = newcamd
Key = 0102030405060708091011121314
Device = 192.168.1.35,15050
Account = azbox,azbox
Fallback = 0
Group = 1
ReconnectTimeout = 20
DisableServerFilter = 1

MPCS.CONF

[global]
Nice = -1
ClientTimeout = 5
LogFile = stdout
Level = 15
CacheDelay = 120

[newcamd]
Key = 0102030405060708091011121314
Port = 17000@1810:004101,000000

[cs357x]
Port = 15000

MPCS.USER

[account]
User = azbox
Pwd = azbox
Group = 1
Uniq = 0

EN CCCAM.CFG TENGO ESTAS LINEAS AL FINAL DE TODO

L: 192.168.1.35 15000 azbox azbox 1810 000000
#
SERVER LISTEN PORT : 12000
#
DISABLE EMM : yes
#
MINIMUM CLIENT VERSION : 1.7.0
#
#DVB API: -1
#


Y EN 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>20000</newcamd_port>
<autosid>no</autosid>
<carddetect>yes</carddetect>
<priority>hard</priority>
<PTShandshake>no</PTShandshake>
<mhz>357</mhz>
<boxkey>Mi_boxkey</boxkey>
<rsa>Mi_rsa</rsa>
</device>
</readers>
<xmlserver>
<enabled>0</enabled>
</xmlserver>
<radegastserver>
<enabled>0</enabled>
</radegastserver>
<cache>
<emm>10</emm>
<ecm>-1</ecm>
</cache>
<debug>
<darint39>sintoi51</darint39>
<level>internal</level>
<type>all</type>
<output>console, tcp</output>
<logfile>/tmp/newcs.txt</logfile>
<console_options></console_options>
<file_options></file_options>
<udp_host>192.168.178.15</udp_host>
<udp_port>9000</udp_port>
<udp_options></udp_options>
<tcp_port>1001</tcp_port>
<tcp_options></tcp_options>
</debug>
<newcamdserver>
<enabled>yes</enabled>
<name>local</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<user>
<name>azbox</name>
<password>azbox</password>
<au>on</au>
<sidoverride>off</sidoverride>
<hostname>localhost</hostname>
<port>15050</port>
</user>
</newcamd_server>
<httpd>
<server>
<port>8080</port>
<enabled>yes</enabled>
</server>
<user>
<name>azhd</name>
<password>azhd</password>
<accesslevel>admin</accesslevel>
</user>
</httpd>
</newCSconfig>


En el menu de Activacion y prioridad de camd tengo este orden:
1ª dvbapiCAS
2ºnewcs
3ºmpcs

¿alguien me puede decir porqué no arrancan mpcs y newcs?

Gracias
 

refinitivo

Usuario
Forero
24 Oct 2009
7
0
0
Si intento arrancar mpcs y newcs por telnet, me salen los siguientes mensajes:

MMP[~]$ cd /camd/OpenXCAS/mpcs
MMP[mpcs]$ ./mpcs
2009/10/25 11:39:19 [ s ] >> MPCS << cardserver started
2009/10/25 11:39:19 [ s ] auth size=4652
2009/10/25 11:39:19 [ s ] version=1.0.6, sub=Jun 29 2009 10:36:21 system=mipsel-smp-linux, nice=-1
2009/10/25 11:39:19 [ s ] max. clients=126, client idle=120 sec, reader=32, pending=256, ecm=256, emm=64
2009/10/25 11:39:19 [ s ] max. logsize=unlimited
2009/10/25 11:39:19 [ s ] client timeout=5000 ms, fallback timeout=2500 ms, cache delay=120 msec
2009/10/25 11:39:19 [ s ] shared memory initialized (size=994886, fd=3)
2009/10/25 11:39:19 [ s ] services reloaded: 0 services freed, 3 services loaded
2009/10/25 11:39:19 [ s ] userdb reloaded: 0 accounts freed, 1 accounts loaded, 0 expired
2009/10/25 11:39:19 [ s ] signal handling initialized (type=sysv)
2009/10/25 11:39:19 [ s ] 22 lengths for caid guessing loaded
2009/10/25 11:39:19 [ s ] monitor: disabled
2009/10/25 11:39:19 [ s ] camd 3.3x: disabled
2009/10/25 11:39:19 [ s ] camd 3.5x: initialized (fd=6, port=15000)
2009/10/25 11:39:19 [ s ] cs378x: disabled
2009/10/25 11:39:19 [ s ] newcamd: initialized (fd=7, port=17000, crypted)
2009/10/25 11:39:19 [ s ] CAID: 1810
2009/10/25 11:39:19 [ s ] provid #0: 004101
2009/10/25 11:39:19 [ s ] provid #1: 000000
2009/10/25 11:39:19 [ s ] radegast: disabled
2009/10/25 11:39:19 [ s ] pandora: disabled
2009/10/25 11:39:19 [ s ] resolver thread started
2009/10/25 11:39:19 [ s ] logger started (pid=1035)
2009/10/25 11:39:19 [ s ] resolver started (pid=1036, delay=30 sec)
2009/10/25 11:39:19 [ s ] proxy started (pid=1037, server=192.168.1.35)
2009/10/25 11:39:19 [ p 0002 ] proxy 192.168.1.35:15050 newcamd525 (fd=4)
2009/10/25 11:39:29 [ c 0001 ] encrypted camd 3.5x-client 192.168.1.35 granted (azbox, au=0)
2009/10/25 11:39:29 [ p 0002 ] connect(192.168.1.35:15050) failed: (errno=146)
2009/10/25 11:39:29 [ c 0001 ] 1810&0000D0/002B/89:0277 | 5 ms | missing | camd 3.5x | azbox | 1038
2009/10/25 11:39:58 [ p 0002 ] connect(192.168.1.35:15050) failed: (errno=130)
2009/10/25 11:39:58 [ c 0001 ] 1810&000000/7474/89:0241 | 3 ms | missing | camd 3.5x | azbox | 1038
2009/10/25 11:40:10 [ p 0002 ] connect(192.168.1.35:15050) failed: (errno=146)
2009/10/25 11:40:10 [ c 0001 ] 1810&00009A/000B/89:0209 | 4 ms | missing | camd 3.5x | azbox | 1038
2009/10/25 11:42:10 [ c 0001 ] camd 3.5x: azbox disconnected from 192.168.1.35
2009/10/25 11:44:28 [ c 0001 ] encrypted camd 3.5x-client 192.168.1.35 granted (azbox, au=0)
2009/10/25 11:44:28 [ p 0002 ] connect(192.168.1.35:15050) failed: (errno=130)
2009/10/25 11:44:28 [ c 0001 ] 1810&000000/76C6/89:0170 | 6 ms | missing | camd 3.5x | azbox | 1081
2009/10/25 11:46:28 [ c 0001 ] camd 3.5x: azbox disconnected from 192.168.1.35
2009/10/25 11:47:00 [ c 0001 ] encrypted camd 3.5x-client 192.168.1.35 granted (azbox, au=0)
2009/10/25 11:47:00 [ p 0002 ] connect(192.168.1.35:15050) failed: (errno=146)
2009/10/25 11:47:00 [ c 0001 ] 1810&000000/778C/89:0118 | 3 ms | missing | camd 3.5x | azbox | 1088
2009/10/25 11:49:00 [ c 0001 ] camd 3.5x: azbox disconnected from 192.168.1.35

luego en otro terminal arranco newcs:

MMP[~]$ cd /camd/OpenXCAS/newcs
MMP[newcs]$ ./newcs
Reading Config file from /var/tuxbox/config/newcs.xml
Reading Config file from /camd/OpenXCAS/newcs/newcs.xml
****** INTERNAL enabled
TCP-log password is disabled!
level: internal
type: all
output: console, tcp
logger config: level 16777215 type 255 output 5
Console log options: level 16777215 type 255
tcp port: 1001
TCP log options: level 16777215 type 255
[ 11:42:04 ] [ Box detect ] Box type 9
[ 11:42:04 ] [ Config ] hwkey not found !
[ 11:42:04 ] [ Config ] ekpair not found !
[ 11:42:04 ] [ Config ] /dev/scard ECM priority: hard
[ 11:42:04 ] [ Config ] No SIDFILTER is configured, disabling SidOverride for device 0 (upper)!
[ 11:42:04 ] [ Newcamd ] Server name : local
[ 11:42:04 ] [ Newcamd ] Des key : 0102030405060708091011121314
[ 11:42:04 ] [ Newcamd ] User 2: azbox, Pass: azbox, Host localhost, Port: 15050, Au: On, Spider allowed: No, Sidoverride: No, reader control: No, level: 0
[ 11:42:04 ] [ EMM Cache ] Initialising Cache with 10 entries
[ 11:42:04 ] [ ECM Cache ] Initialising dynamic Cache
[ NewCS ] Process ID is: 1073
[ 11:42:04 ] Calibrating delay loops
[ 11:42:04 ] usleep(5) takes: 0 s 14 us
[ 11:42:04 ] usleep(10) takes: 0 s 17 us
[ 11:42:04 ] usleep(100) takes: 0 s 107 us
[ 11:42:04 ] usleep(500) takes: 0 s 734 us
[ 11:42:04 ] [ Loader ] Reader type 11 on node /dev/scard
[ 11:42:04 ] [ azbox ] Opening device /dev/scard
SCARD_IOC_WARMRESET=0
SCARD_IOC_CHECKCARD: ATR len=-1
SCARD_IOC_CHECKCARD: ATR len=-1
SCARD_IOC_CHECKCARD: ATR len=27
[ 11:42:08 ] ATR: 3F FF 95 00 FF 91 81 71 FE 47 00 44 4E 41 53 50
[ 11:42:08 ] ATR: 31 38 30 20 4D 65 72 4A 30 31 0D
[ 11:42:08 ] [ CardMan ] Atr header is 3F FF [INVERSE]
[ 11:42:08 ] parseAtr: 3F FF 95 00 FF 91 81 71 FE 47 00 44 4E 41 53 50
[ 11:42:08 ] parseAtr: 31 38 30 20 4D 65 72 4A 30 31 0D
[ 11:42:08 ] [ ATR ] T=1 1etu=32.00us Guardtime:11etu CWT:139etu BWT:15371etu WWT:153600etu
[ 11:42:08 ] [ ATR ] Historical bytes: D N A S P 1 8 0 M e r J 0 1
[ 11:42:08 ] [ ATR ] freq 1000000.000 sciFreq 3570000.000
set_card_type!
Set card type to 0x1800 (mode 4)
set_card_type SCARD_IOC_CHECKCARD=4
[ 11:42:08 ] [ Loader ] Init Nagra card
[ 11:42:08 ] NAGRA: Rom rev: 180
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 C1 01 58 B9
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 E1 01 58 AA
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 00 08 A0 CA 00 00 02 C0 00 06 87
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 00 08 B0 04 00 C3 00 00 90 00 FD
[ 11:42:08 ] [ Nagra ] Nagra 2 Card detected
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 40 08 A0 CA 00 00 02 12 00 06 15
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 40 08 92 04 1B CC B5 B6 90 00 88
[ 11:42:08 ] [ Nagra ] Serial Number: 1B CC B5 B6
[ 11:42:08 ] [ Keyman ] Adding key 1BCCB5B6 type 0 on Provider 000000 for caid 1800 ID=0
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 00 08 A0 CA 00 00 02 C0 00 06 87
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 00 08 B0 04 00 C1 00 00 90 00 FF
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 40 09 A0 CA 00 00 03 22 01 00 39 1B
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 40 3B A2 37 19 FF 80 00 00 40 01 01 08 10 10
[ 11:42:08 ] read: 10 0E 00 EF 8E 00 00 00 00 B2 8E 19 8B 20 45 00
[ 11:42:08 ] read: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 11:42:08 ] read: 00 00 00 00 00 00 00 00 00 00 00 00 90 00 F6
[ 11:42:08 ] [ Nagra ] IRD. Number: 0E 00 EF 8E
[ 11:42:08 ] [ Nagra ] New rom revision, resetting prov ids.
[ 11:42:08 ] [ Keyman ] Adding key 1BCCB5B6 type 1 on Provider 000000 for caid 1800 ID=0
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 00 09 A0 CA 00 00 03 22 01 80 39 DB
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 00 3B A2 37 00 00 00 00 00 00 00 00 00 00 00
[ 11:42:08 ] read: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 11:42:08 ] read: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 11:42:08 ] read: 00 00 00 00 00 00 00 00 00 00 00 00 90 00 2C
[ 11:42:08 ] [ Nagra ] using rsa key from config.
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 40 08 A0 CA 00 00 02 C0 00 06 C7
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 40 08 B0 04 00 C1 00 00 90 00 BF
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 00 08 A0 CA 00 00 02 2A 00 42 29
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 00 44 AA 40 B7 59 1A 01 C3 78 69 22 7B 40 1D
[ 11:42:08 ] read: 37 21 B6 BC AC 8A BB AA 18 D8 76 D6 05 93 AB FA
[ 11:42:08 ] read: C6 74 22 DF 23 08 69 77 8F 88 C2 62 CB B7 41 CC
[ 11:42:08 ] read: 04 B9 D1 4E 5D 35 A8 AA 04 9F F7 84 AD 42 B1 04
[ 11:42:08 ] read: DD E9 B3 60 1F 90 00 AD
[ 11:42:08 ] [ Nagra ] -> card
[ 11:42:08 ] [ azbox ] Delay is 8us
[ 11:42:08 ] write: 21 40 48 A0 CA 00 00 42 2B 40 94 F6 C0 49 B5 D7
[ 11:42:08 ] write: 06 C2 42 9A 56 2B 44 B7 9F EA AB 15 D0 18 4F EE
[ 11:42:08 ] write: 13 32 83 11 B6 76 65 48 C4 09 6D 62 6A 40 6F BC
[ 11:42:08 ] write: 2D 66 D5 E7 B9 2A 9D F0 8B 24 FE D2 1F 60 FD 04
[ 11:42:08 ] write: 47 45 F8 11 42 E3 DB 82 8A A9 02 06
[ 11:42:08 ] [ Nagra ] <- card
[ 11:42:08 ] [ azbox ] Timeout is 1376800us
[ 11:42:08 ] read: 12 40 04 AB 00 90 00 6D
[ 11:42:08 ] [ Nagra ] SESSION key = B2 79 7F A0 4B 9D 9A AA 7F 9D 7B D4 FF 8B CB 73
[ 11:42:09 ] [ Nagra ] -> card
[ 11:42:09 ] [ azbox ] Delay is 8us
[ 11:42:09 ] write: 21 00 08 A0 CA 00 00 02 C0 00 06 87
[ 11:42:09 ] [ Nagra ] <- card
[ 11:42:09 ] [ azbox ] Timeout is 1376800us
[ 11:42:09 ] read: 12 00 08 B0 04 00 01 00 00 90 00 3F
[ 11:42:09 ] [ 1801 ] Init took: 0.787357
[ 11:42:09 ] [ Loader ] Card 1801 on port /dev/scard ready
[ 11:42:09 ] [ Loader ] Starting Newcamd Server on port 20000
[ 11:42:09 ] [ Card queue /dev/scard ] Starting...
[ 11:42:09 ] [ NewCS ] Ready to GO! :)
MMP[newcs]$ [ 11:42:09 ] [ Newcamd:20000 ] rlogin for user azbox fd 8
[ 11:42:09 ] [ Newcamd ] Socket 8 read error
[ 11:42:09 ] [ Newcamd ] recv: error! 146: Connection refused
[ 11:42:09 ] [ Newcamd:20000 ] User azbox logout
[ 11:42:09 ] [G] Server starting...
My sign: D0 F2 9C E0 8C 22 A2
[ 11:42:09 ] [G] No Leete las normas ? exiting..
MMP[newcs]$


Saludos y gracias de antemano
 

pe.tardo

Miembro de honor OpenSpa
Vip OpenSPA
21 May 2009
3.474
464
0
BCN
refinitivo dijo:

EN CCCAM.CFG TENGO ESTAS LINEAS AL FINAL DE TODO


L: 192.168.1.35 15000 azbox azbox 1810 000000



Y EN 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>20000</newcamd_port>
<autosid>no</autosid>
<carddetect>yes</carddetect>

Log de MPCS:
...
2009/10/25 11:39:29 [ p 0002 ] connect(192.168.1.35:15050) failed: (errno=146)
...

Log de NewCs:
...
MMP[newcs]$ [ 11:42:09 ] [ Newcamd:20000 ] rlogin for user azbox fd 8
[ 11:42:09 ] [ Newcamd ] Socket 8 read error
[ 11:42:09 ] [ Newcamd ] recv: error! 146: Connection refused
[ 11:42:09 ] [ Newcamd:20000 ] User azbox logout
...

Hola, no utilizo CCcam (todavia...) pero creo que tienes un lio de puertos.
En mbox, en la chiste, la que comunica mbox con Newcs,
(me imagino que en CCcam es la linea que he copiado arriba)
el puerto por el que que mbox se comunica con NewCs
debe ser el mismo que se configura en la linea <newcamd_port> del newcs.xml
no el que aparece en <newcamd_server>

en los log's que pones, parece que MPCS quiere conectar por el puerto 15050
y NewCs espera conexiones por el 20000

Probablemente, al haber MPCS (tampoco lo he tocado, todo llegará...) de por medio,
la cosa cambie, pero puedes probar con esto.

Saludos