†
†LUCIFER†
Invitado
Pues os adjunto otra configuracion para leer nuestra tarjeta gris con firmware spark, para ello:
sbox-->hara de lector de la tarjeta
mmcamd-->hara de emulador de la tarjeta dandonos visionado bajo protocolo newcamd.
sbox pues lo introducimos como siempre en firmware spark.
Ahora vamos a configurar mmcamd:
binario camd mmcamd:
lo ponemos en /var/bin
archivo configuracion mmcamd:
Lo ponemos en /var/keys
el archivo configuracion pues seria de la siguiente manera, preparado para protocolo newcamd y asociado a sbox lector interno:
Código:
# NOTE: no white space is allowed or the configuration value will be ignored, except N line# commented lines with "#" or ";" will be ignored
# Debug
#
# 0 - disabled
# 1 - enabled
# 2 - more CCcam client debug
# default is disabled
debug=1
# Delay
#
#descrambler delay allow a delaying for the dcw writing in the ECD, configuration value is im ms
# default is null
delay=0
# newcamd client
#
# 0 - disable connection to newcamd protokoll Card-Server
# 1 - Connect to a Newcamd protocol Card-Server
newcamd_client=1
# CCcam client (exeperimental only)
#
# 0 - disable connection to CCcam Card-Server
# 1 - Connect to a CCcam Card-Server
CCcam_client=0
#[url]http://www.technical-features.com/vb[/url]
# N Lines
#
N: 127.0.0.1 33000 edk2 edk2 01 02 03 04 05 06 07 08 09 10 11 12 13 14
# C Lines
#
#C: myIp 11000 user passswd no
Y una vez arrancado:
1º sbox
2º mmcamd
Observaremos en el log de mmcamd como se conecta a nuestra tarjeta gris de abonado y nos aparecen las cw de visionado:
Código:
gogy@gogy-Aspire-5920G:~$ telnet 192.168.1.10
Trying 192.168.1.10...
Connected to 192.168.1.10.
Escape character is '^]'.
STMicroelectronics Base Distribution version 2.2
Linux/sh4 2.6.23.17_stm23_A25C-SAT7111_7111-STSDK
stlinux login: root
Password:
Welcome to STMicroelectronics Base Distribution.
BusyBox v1.18.2 (2011-07-13 20:52:52 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
[root@stlinux]#cd /var/bin
[root@stlinux]#./mmcamd-e2.sh4
tuxbox mmcamd BETA_v1.0 (compiled Jun 25 2010 18:11:14)
debug level 1 newcamd client enabled
[mm0] [Keys] SoftCam.Key readed
[root@stlinux]#[mm0] [newcamd client] route = 127.0.0.1:33000
[mm0] [newcamd client] Connecting to 127.0.0.1:33000...
[mm0] [newcamd client] Login to 127.0.0.1:33000 as edk2 accepted
[mm0] [newcamd client] Card data from 127.0.0.1:33000:
Card Serial: xxxxxxx
userid:1 caid 0100 providers 3
idents: 005001 004106 004108
[mm0] [camd.socket] got 184 cmd 9F
[mm0] [capmt] service 0x778d index 0
ECM: CaID: 0x1810 -> CaPID: 0x087A ProvID: 000000
ECM: CaID: 0x0100 -> CaPID: 0x0492 ProvID: 004106
[mm0] trying caid: 0x0100 pid: 0x0492
[mm0] [newcamd client] ECM to -> 127.0.0.1:33000
[mm0] [newcamd client] <- CW from 127.0.0.1:33000 (501 msec)
[mm0] Mon Jan 23 09:18:39 2012
====== Seca ECM on CaID 0x0100, pid 0x0492 ======
0000: 81 00 61 41 06 00 00 0E 00 03 40 02 9A 1D B4 7C
0010: DF AE 41 4D C5 84 57 1E 32 33 97 DA 32 E2 70 BD
0020: 30 3A 67 7B 0D B4 47 E9 E1 6C 4E 8F 76 EC 27 C8
0030: DE 7C 3F 14 6B A2 55 10 7D 0B 1C C9 1B DA 80 F4
0040: 4E 3E C1 F1 A5 09 91 4F B8 C8 50 EE D3 2E 1A A3
0050: B8 EE 8A 89 A3 5C 55 EA 3D E8 28 82 4D 41 B0 98
0060: 0B 22 4C 72 00 00 00 00 00 00 00 00 00 00 00 00
prov: 004106
cw0:0 A2 D7 75 EE AB 0E 7C 35
cw1:0 A5 C8 A1 0E B1 8F 19 59
[mm0] [newcamd client] ECM to -> 127.0.0.1:33000
[mm0] [newcamd client] <- CW from 127.0.0.1:33000 (654 msec)
[mm0] Mon Jan 23 09:18:43 2012
====== Seca ECM on CaID 0x0100, pid 0x0492 ======
0000: 80 00 61 41 06 00 00 0E 00 2F C3 84 12 FC F1 D9
0010: 9B F8 E6 88 BF EB D3 B4 03 C2 F3 4A D3 A2 A6 09
0020: 9C A8 56 BC 13 D1 03 C7 49 A6 1E 1C 4D B7 AA 6C
0030: 2B B0 63 0B C8 CB B5 18 3A 72 B1 F1 9B 80 E8 86
0040: 82 AE 79 AB 26 76 07 32 16 90 B3 23 02 B7 F3 A3
0050: A5 3C EB 3F 53 B9 A1 EE BD C7 0C B6 BC 2F AD 0D
0060: EA EB D9 23 00 00 00 00 00 00 00 00 00 00 00 00
prov: 004106
cw0:0 86 5F 94 79 59 0F 04 6C
cw1:0 A5 C8 A1 0E B1 8F 19 59
[mm0] [newcamd client] ECM to -> 127.0.0.1:33000
[mm0] [newcamd client] <- CW from 127.0.0.1:33000 (428 msec)
[mm0] Mon Jan 23 09:18:53 2012
====== Seca ECM on CaID 0x0100, pid 0x0492 ======
0000: 81 00 61 41 06 00 00 0E 00 8A F4 DC C3 CC 3A 54
0010: 23 AB DC CB 22 38 AD DA B8 07 57 C9 1B A1 0A 95
0020: 59 B0 94 D4 45 ED EC 40 57 DD 27 05 4C 56 DB 43
0030: 15 FF D7 F0 3D 32 74 5D E8 F4 69 29 3E 6D FF A5
0040: 43 81 DB CE 73 A2 E4 4B A1 3A 91 E0 94 47 72 CF
0050: A8 83 99 F9 CB 80 78 89 14 4B 8F CF C3 89 0E 8D
0060: BF 52 DA 2F 00 00 00 00 00 00 00 00 00 00 00 00
prov: 004106
cw0:0 86 5F 94 79 59 0F 04 6C
cw1:0 B2 BF B3 24 A2 45 C9 B0
os adjunto la camd mmcamd ya preparada para conectarse internamente a sbox con protocolo newcamd activado.