
dimoni68
Amigo de Lonas
- Joined
- Jun 22, 2010
- Messages
- 75
- Reaction score
- 0
- Points
- 9
Buenno en principio esto lo uso para actualizar en decos enigma 2 mi tarjeta, seguramente servira para muchas otras.
Blanca, gris, vias, Nagra tiger, etc.
Vamos al lio.
Necesitamos.
Un letor de cards
mgcamd_1.35a
Opcional CCcam o Mbox. Mas adelante siguiente manual..... tic tac...
Cuando descarguemos el archivo mgcamd_1.35a.zip veremos que trae dentro del pack unos pocos de archivos.
Cogeremos el binario mgcamd_1.35a y lo enviaremos con el dcc a /usr/bin y le daremos atributos a 755
despues del pack cogeremos el archivo mg_cfg y lo enviaremos a /usr/keys y le daremos atributos a 644
y despues enviaremos tambien el archivo newcamd.list al mismo directorio y atributos a 644
En principio para esta primera parte ya tenemos todo.
Decir que se supone que usas un lector de cards como puede ser newcs oscam o bien sbox este manual se basara en sbox.
Vamos a ver las configs como han de quedar para que actualize nuestra tarjeta. Son mis configs y me lo hace bien.
mg_cfg
Copiar el codigo tal cual en el archivo cfg y no modifiqueis ni una coma. o bien cambiar del default copiado en /usr/keys las varaciones que podais apreciar en este codigo respecto al original del pack.
newcamd.list
Aqui hemos creado un usuario que se conectara al server newcamd de nuestro sbox. y por LAN interna
mgcamd mgcamdpass <<<<--- User de mgcamd
sbox.conf
Aqui destacar que el port newcamd sea el 14000 como en este manual (si usas otro debes cambiarlo respecto a tus configs) al igual que el del newcamd.list y sobre todo lo pongo por que es la gracia que tiene que no se ha de cambiar ni variar el server_only a 0 y se puede dejar tal cual esta cuando trabajamos en conjunto con nuestras emus, mbox, cccam, etc, por ejemplo.
users.sbox
Donde estamos autorizando al user mgcamd a conectarse al lector sbox via newcamd y asi poder acceder a la card para el visionado y la consiguiente actualizacion.
Para terminar anadiremos un script para gemini2 5.10 que esto supone que sin apagar ni reiniciar el deco podemos cambiar de emu (blue panel) actualizar y visionar un canal contratado a la vez, por un tiempo y luego una vez comprobado en la pestaña "Users" que has recibido unas cuantas emm,s Ok,s volver a tu emu preferida, cccam, mbox etc. etc. Haciendo servir de nuevo el (blue panel) sin reiniciar.
Scripts
mgcamd1.35a_sbox0.4.8#2_cam.sh <<<<---Script para Gemini2 5.10. Ubicacion /usr/script
Ncam_mgcamd1.35a_sbox0.4.8#2.sh <<<<---Script para Nabilo, Dreamelite, Blackhole. Ubicacion /usr/camscript
Mas adelante mas y mejor...eso espero.
Ejemplo practico
El lector sbox esta en marcha aqui esta parado cccam y tambien mbox.
Solo esta sbox, tarjeta, canal contratado, y mgcamd de visor, conectado a sbox a traves de newcamd.list
visto por telnet o arrancado asi para verlo
MgCamd por Telnet
Evidentemente con esto se pueden hacer compras, simular OK en blanca o gris y actualizar/activar vias 4 JSC aljeciras por ejemplo....
Mejorando....
Descargar mgcamd_1.35a.zip
Saludos.
Manual realizado por dimoni68 para Alto Consejo Jedi
PD: Si me copias el manual por lo menos citame, cita el foro. Gracias.
Priximamente script para nabilos, dream elites. <<<---anadido hoy, actualizado a 30-05-2011

Vamos al lio.
Necesitamos.
Un letor de cards
mgcamd_1.35a
Opcional CCcam o Mbox. Mas adelante siguiente manual..... tic tac...
Cuando descarguemos el archivo mgcamd_1.35a.zip veremos que trae dentro del pack unos pocos de archivos.
Cogeremos el binario mgcamd_1.35a y lo enviaremos con el dcc a /usr/bin y le daremos atributos a 755
despues del pack cogeremos el archivo mg_cfg y lo enviaremos a /usr/keys y le daremos atributos a 644
y despues enviaremos tambien el archivo newcamd.list al mismo directorio y atributos a 644
En principio para esta primera parte ya tenemos todo.
Decir que se supone que usas un lector de cards como puede ser newcs oscam o bien sbox este manual se basara en sbox.
Vamos a ver las configs como han de quedar para que actualize nuestra tarjeta. Son mis configs y me lo hace bien.
mg_cfg
Code:
# EMM messages
#00 don't show any EMMs (default)
#01 show only valid EMMs
#02 show valid and bad EMMs with complete data display
M: { 01 }
# ECM messages
#00 don't show anything about ecm
#01 normal mode, show pids processed, decoded ecm and cw
#02 verbose mode, show valid and bad ECMs with data
C: { 01 }
# AU
#00 disable, no emm pids processed
#01 enable, emm pids always processed for soft-au and shared cards
#02 auto, emm started only if channel cant be decoded
#03 process emm pids for network cards update only
A: { 01 }
# key update (sum 01 or 02 with 04)
#01 update only new keys, default setting
#02 update all keys (used for valid PMK checking)
#04 enable TPS au
#+ tps SID, which pmt pid contains au pid
U: { 01 } 0x12c0
# config files folder (softcam, autoroll, ignore/priority)
#00 files in /var/keys
#01 files in /tmp
T: { 00 }
# network mode, use summ for several clients
#00 no network (default)
#01 newcamd netclient
#02 radegast netclient
#04 camd3 netclient
#08 gbox netclient
#32cccamd netclient, card list saved as /tmp/cccamd.info
#(ECM only, supported server version up to 2.1.1, later not work)
G: { 01 } #asi funciona de visor (solo card) y ademas actualiza
# network retry, use summ for several options
#00 disable
#01 retry every new ecm
#02 try to connect to offline shares every Q: seconds
#04 try to detect and fast reconnect to lost (and not used atm) server
#+ XX messages number and YY seconds to reconnect
#mg will reconnect to server, if no answer to last XX ecm/keepalive or
#if no answer for last ecm or keepalive sent for YY seconds
#set to 0 to disable
N: { 07 } 5 30
# network ecm timeout in seconds
K: { 05 }
# newcamd dead routes connect retry, sec
Q: { 600 }
# network shares priority
# 00 gbox, newcamd, cccamd, radegast, camd3 (default)
# 01 camd3, radegast, cccamd, gbox, newcamd
# 02 cccamd, newcamd, camd3, gbox, radegast
P: { 00 } #asi para #G: { 01 } y explicacion
# on screen display type
#00 No OSD (default)
#01 neutrino
#02 enigma
#03 relook
#+ user password for http auth
O: { 00 } username password
# on screen display Options, summ of:
#01 show emu ecm
#02 show network shares messages
#04 show decoding failed / fta
#08 show emm keys update
#+ web port to use for osd
S: { 03 } 80
# Log option, summ of:
#00 off
#01 network udp log
#02 log to console
#04 file, appended ! delete it by yourself, before it eat all your hdd
#+ IP udp-port log-file-name
L: { 03 } 172.16.1.1 28007 /tmp/mgcamd.log
# keep ecm cache, seconds
# every cache entry takes 28 bytes, so 24h cache will take *only* 240-400kb of memory,
# for openbox/elanvision users with remote shares make sense to set it higher than default value,
# to not hammer cards while timeshifting or playing crypted recordings.
E: { 15 }
# cache option, summ of:
#00 Off (default)
#01 Ecm pids cache, store pids used to decode in /tmp/ca_cache.list at exit, load at startup, same syntax as restore.list
#02 Ecm data cache, remember CW for (E:) time
#04 Emm cache for network cards, do not resend the same emm twice, cache not cleared until restart
H: { 07 }
# reread files, summ of:
#00 No (default)
#01 reread config file on channel change (including priority and ignore, but not replace/cache)
#02 reread SoftCam.Key on channel change
#04 reread SoftCam.Key if file changed
R: { 00 }
# debug, summ of
# 00 off (default)
# 01 debug ecm
# 02 debug emm
# 04 debug network ecm
# 08 debug network emm
# 16 debug network login
# 32 show mem/cpu stats every 1 min
# 64 add timestamp to log messages
D: { 00 }
# box type
# 00 autodetect, change only if you think wrong type detected.
# 01 dbox2
# 02 dreambox
# 03 triple-dragon
# 04 relook
# 05 openbox
# 06 dreambox/mips
# 08 stapi/kathrein
# 09 stapi/ipbox
# 11 stapi/openbox
B: { 00 }
# map all 180x nagra caids to 1801
# default is 01
F: { 00 }
newcamd.list
Code:
CWS_KEEPALIVE = 300
CWS_INCOMING_PORT = 21000
##CWS = 192.168.1.1 20000 dummy dummy 10 02 13 04 15 06 17 08 01 10 11 12 13 14 lan server1
##CWS_MULTIPLE = 192.168.1.2 20000:20005 dummy dummy 10 02 13 04 15 06 17 08 01 10 11 12 13 14 lan server2
CWS = 127.0.0.1 14000 mgcamd mgcamdpass 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan
mgcamd mgcamdpass <<<<--- User de mgcamd
sbox.conf
Code:
[main]
server_only=1 # 0=emu+newcamd server 1=only newcamd server
log=0 # 1=no log 1=log to /tmp/sbox.log//ALWAYS USE 0//
logudp=192.168.1.X:5042 # server ip:server port
userspath=/usr/bin/users.sbox # users list
webinterface=1 # 1=web interface on 0=web interface off
webadmin=admin:pass # user:pass for webinterface
webport=8081 # web interface port
rdgserver=0 # 0=radegast server off 1=radegast server on
rdgport=16050 # radegast server port
use_nagra=1 # 1=use as nagra card 0=use as irdeto card (only for nagra over irdeto cards)
[slot0]
active=1 # 0=inactive 1=active
sci=/dev/sci0 # lower
ncdserver=1 # 0=newcamd server off 1=newcamd server on
deskey=0102030405060708091011121314 # newcamd deskey
port=14000 # newcamd port
mhz=368 # Mhz for card in this reader, DON'T WORK ON PHOENIX INTERFACE. Example: mhz=357, mhz=368
reader=1 # 0=phoenix, 1=sci (internal reader), 2=smartreader
cache=10 # how many ecms can be cached, 0 or less=cache disabled
#Nagra tiger/ncmed Example
[TIGER601] # ROM Nagravision tiger
rsa=D8************2DE55B
[XXXXXXXX] # nagra camid (4 bytes) CamID
emm=0 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=1 # use portlist or no=0
portlistpath=/usr/keys/14000.list # path from port.list
users.sbox
Code:
NC=mgcamd mgcamdpass slot0 1
Para terminar anadiremos un script para gemini2 5.10 que esto supone que sin apagar ni reiniciar el deco podemos cambiar de emu (blue panel) actualizar y visionar un canal contratado a la vez, por un tiempo y luego una vez comprobado en la pestaña "Users" que has recibido unas cuantas emm,s Ok,s volver a tu emu preferida, cccam, mbox etc. etc. Haciendo servir de nuevo el (blue panel) sin reiniciar.
Scripts
mgcamd1.35a_sbox0.4.8#2_cam.sh <<<<---Script para Gemini2 5.10. Ubicacion /usr/script
Code:
#!/bin/sh
########################################
###### Powered by The Gemini Team ######
### http://www.i-have-a-dreambox.com ###
########################################
# camid #
# 0000 = Commom Interface #
# 0001->0099 = for User Experiment#
# 0177 = Rq-Echo-Client #
# 0178 = RqCS #
# 0179 = RqCamd #
# 0189 = OpenCam #
# 0199 = Dccamd #
# 0200->0299 = Fbiss #
# 0300->0399 = Camd3 #
# 0400->0499 = Camx #
# 0500->0599 = Camx-Radegast-CS #
# 0600->0699 = Evocamd -OLD #
# 0700->0799 = Evocamd_ronlad_cs -OLD #
# 0800->0899 = Mgcamd -OLD #
# 0900->0999 = Mgcamd_ronald_cs -OLD #
# 1000->1099 = Newcamd -OLD #
# 1100->1199 = Newcamd-ronald_CS -OLD #
# 1200->1299 = Newcamd-spider-OLD #
# 1300->1399 = Radegast #
# 1400->1499 = Ronald-CS #
# 1500->1599 = Scam #
# 1600->1699 = Scam-Ronald-CS #
# 1700->1799 = MPCS #
# 1800->1899 = NewCS #
# 2000->2099 = Camd3 #
# 2300->2399 = Camd3-NewCS #
# 2600->2699 = Camd3-MPCardserver #
# 3000->3099 = Evocamd #
# 3100->3199 = Evocamd-Ronald-CS #
# 3200->3299 = Evocamd-NewCS #
# 3300->3399 = Evocamd-MPCardserver #
# 4000->4099 = Mgcamd #
# 4100->4199 = Mgcamd-Ronald-CS #
# 4200->4299 = Mgcamd-NewCS #
# 4300->4399 = Mgcamd-MPCS #
# 5000->5099 = Newcamd-Betad #
# 5100->5199 = Newcamd-Cardserver #
# 5200->5299 = Newcamd-Spider #
# 5300->5399 = Newcamd-NewCS #
# 5400->5499 = Newcamd-MPCS #
# 6000->6099 = CCcam #
# 6100->6199 = CCcam-Capmtserver #
# 6200->6299 = CCcam-NewCS #
# 6300->6399 = CCcam-MPCS #
# 7000->7099 = Mbox #
# 7100->7199 = Mbox-NewCS #
# 9500->9599 = reserved #
# 9600->9699 = reserved #
# 9700->9799 = reserved #
# 9800->9899 = reserved #
# 9900->9999 = reserved #
########################################
CAMD_ID=0030
CAMD_NAME="MgCamd/Sbox"
CAMD_BIN=mgcamd_1.35a
CAMD_CS_SRV_BIN=sbox
INFOFILE_A=ecm.info
INFOFILE_B=ecm1.info
INFOFILE_C=ecm2.info
INFOFILE_D=ecm3.info
#Expert window
INFOFILE_LINES=1111111111000000
#Zapp after start
REZAPP=0
########################################
logger $0 $1
echo $0 $1
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
remove_tmp
/usr/bin/$CAMD_CS_SRV_BIN &
sleep 15
/usr/bin/$CAMD_BIN &
;;
stop)
killall -9 $CAMD_CS_SRV_BIN $CAMD_BIN 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
Code:
#!/bin/sh
CAMNAME="MgCamd - Sbox"
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
/usr/bin/sbox &
sleep 10
/usr/bin/mgcamd_1.35a &
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall sbox 2>/dev/null
killall mgcamd_1.35a 2>/dev/null
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
Ejemplo practico
El lector sbox esta en marcha aqui esta parado cccam y tambien mbox.
Solo esta sbox, tarjeta, canal contratado, y mgcamd de visor, conectado a sbox a traves de newcamd.list

visto por telnet o arrancado asi para verlo
MgCamd por Telnet
Code:
root@dm800:/usr/bin# mgcamd_1.35a &
root@dm800:/usr/bin# tuxbox mgcamd v1.35a by mixvt (compiled Jan 26 2010 15:59:2 0)
[mg] Net:33:7:2:5s Show ecm:1, emm:1 Up:1 Au:1 Dir:0 Osd:no:80:0 Cache:7 Log:3:1 72.16.1.1:28007 Reread:0
[mg] Ecm cache time: 15
Box type: mips dreambox (dm7025, dm800)
/dev/dvb/adapter0/ca3 error 2: No such file or directory
Conax.Key error 2: No such file or directory
SoftCam.Key error 2: No such file or directory
AutoRoll.Key error 2: No such file or directory
Conax.Key error 2: No such file or directory
[config] newcamd route = mgcamd:127.0.0.1:14000
newcamd keep alive: 300, incoming port: 21000
[mgcam] emm thread started
[newcamd] Connecting to 127.0.0.1:14000...
got 104 cmd 9F
[mg0] namespace EEEE0000 t-id 51 on-id 22D4
[mg0] descramble on 1, source 0
[mg0] service 3B2 index 0 pmt pid 3E8 (1), pids: video 0x03E9, audio 0x03EB 0x0 3EC 0x03ED 0x03EE
[mg0] ECM: CaID: 0x1XX2 -> CaPID: 0x1XX0 ProvID: 00XX00
[newcamd] Login to 127.0.0.1:14000 as mgcamd accepted (0ms)
[newcamd] Card data from 127.0.0.1:14000 (1ms):
EMM enabled: UA yes SA yes GA yes, Card serial: XXXXXXXX
Userid 1 caid 1X12 providers 1
Idents: XX6E11
ids: XXXXXXXX
[mg0] -> ECM to newcamd 127.0.0.1:14000
[mg0] <- CW from newcamd 127.0.0.1:14000 (239ms)
[mg0] 239 msec -- Mon May 30 14:15:33 2011
system: Nagra
caid: 0x1X12
pid: 0x1XX0
prov: 000XX0
cw0:0 0C A7 2XXXXXXXXXXXXXXXXX4 F2
cw1:0 B0 24 DA XXXXXXXXXXXXXXXXXC 32
[mgcamd] emm started
Starting emm for newcamd shared card
*EMM: CaID: 0x1X12 -> CaPID: 0x1XX6 ProvID: 000XX0
[mg0] -> ECM to newcamd 127.0.0.1:14000
[mg0] <- CW from newcamd 127.0.0.1:14000 (256ms)
[mg0] 256 msec -- Mon May 30 14:15:35 2011
system: Nagra
caid: 0x1X12
pid: 0x1XX0
prov: 00XX00
cw0:0 0C A7 XXXXXXXXXXXXC4 F2
cw1:0 9E XXXXXXXXXXXX D0 74 9E
[mg0] <- CW from newcamd 127.0.0.1:14000 (245ms)
etc etc..
[newcamd] EMM-S (0x1fd6) -> 127.0.0.1:14000
[newcamd] EMM answer from 127.0.0.1:14000, 3:83
[mg0] -> ECM to newcamd 127.0.0.1:14000
[mg0] <- CW from newcamd 127.0.0.1:14000 (242ms)
[mg0] 242 msec -- Mon May 30 14:18:30 2011
system: Nagra
caid: 0x1X12
pid: 0x1XX0
prov: 00XX00
cw0:0 A8 5CXXXXXA 98 71
cw1:0 78 1D EXXXXXXXXXXXX97 56
[mg0] -> ECM to newcamd 127.0.0.1:14000
[mg0] <- CW from newcamd 127.0.0.1:14000 (245ms)
[mg0] 245 msec -- Mon May 30 14:18:35 2011
system: Nagra
caid: 0x1X12
pid: 0xXXe0
prov: 00XX00
cw0:0 A8 5XXXXXXXXXXXXXX98 71
cw1:0 5E 12 01XXXXXXXXXXXXX D6
[mg0] -> ECM to newcamd 127.0.0.1:14000
[mg0] <- CW from newcamd 127.0.0.1:14000 (242ms)
[mg0] 242 msec -- Mon May 30 14:18:40 2011
system: Nagra
caid: 0x1X12
pid: 0x1XX0
prov: 00XX00
cw0:0 A4 XXXXXXXXX 80 BF
cw1:0 5E 12 XXXXXXXXXX D6
[mg0] -> ECM to newcamd 127.0.0.1:14000
[mg0] <- CW from newcamd 127.0.0.1:14000 (244ms)
[mg0] 244 msec -- Mon May 30 14:18:45 2011
system: Nagra
caid: 0x1XX2
pid: 0x1XX0
prov: 000000
cw0:0 A4XXXXXXXXXXXE 80 BF
cw1:0 11 0XXXXXXXXXXXX 9D
[newcamd] EMM-S (0x1fd6) -> 127.0.0.1:14000
[newcamd] EMM answer from 127.0.0.1:14000, 3:83
etc
etc..
Mejorando....
Descargar mgcamd_1.35a.zip
Saludos.
Manual realizado por dimoni68 para Alto Consejo Jedi
PD: Si me copias el manual por lo menos citame, cita el foro. Gracias.
Priximamente script para nabilos, dream elites. <<<---anadido hoy, actualizado a 30-05-2011
Last edited: