Ver Mensaje Individual
Antiguo 08/12/2012, 17:08   #1
pepigna
Usuario Registrado
 
Fecha de ingreso: 19/oct/2005
Mensajes: 10
pepigna está en el buen camino
Desarrollar programa SSSP + CCCAM

Buenas,
Pues eso soy Ingeniero Informático y viendo la variedad de programas que rondan por internet (HDVB, gladietor....) no veo realmente alguno que me funcione bien.

El programa principalmente tendría estas características que lo distinguen de los demás:

-Posibilidad de obtener clines desde una pagina web, es decir, existirá una sección donde se añadan direcciones web, este programa detectará automaticamente los clines que hay en el código fuente de la web y los añadirá al programa.

-Posibilidad de añadir clientes en caliente.

-Me gustaría dotar de cierta inteligencia al programa, si se añaden clines que no son buenos, estos quedaría en la lista negra de clines...

-El programa estaría desarrollado en principio .NET y evidentemente iré regalando el código fuente. Si observo que se puede hacer fácilmente en C/C++ lo realizaré para ver si así el programa se puede ejecutar en LINUX e intentar arrancarlo en una Raspberry u ordenador por el estilo de tamaño reducido.

Mi idea es desarrollar un nuevo programa (desde cero), para ello necesito que me ayudéis para obtener información.

He encontrado el protocolo de comunicación SSSP con el RS232, lo pongo al final, pero no he encontrado nada de como conectarme a los servidores con CCCAM, ¿sabéis algún sitio donde poder obtener información al respecto?

Lo comentado, necesito ayuda!!!!

Algún alma caritativa que ofrezca un poco de documentación!!!

Muchas gracias.



SSSP – Simple Serial Sharing Protocol
=====================================

This Protocol defines the communication between a DVB Box and a gbox by using a RS232(serial/com/tty port) with only 4 commands to implement.


RS232 communication settings
============================
115200 8N1 (115200 Baud, 8 data bits, no parity, 1 stop bit)

To activate add in the gbox_cfg R: { 01 } for com1, or R: { 02 } for com2
W: and V: should be deactivated 00 00

When developing Software you can activate thers232 debug messages by adding 10 to the R: parameter, a example for com1 would be R: { 11 }


Format of data
==============
AB CD EF GH ....

AB = Command
CDEF = length of the data following
GH ... = data

Total length is CDEF + 3 (1 byte command + 2 bytes len)


Command 0x means from STB to gbox
Command Fx means from gbox to STB


SEND PMT = 01 (send PMT to gbox)
--------------------------------
01 xx xx yy yy zz zz zz zz data ....
xx = Len
yy = SID ( byte 2 and bytes 3 from the PMT)
zz = PMT CRC32 (last 4 bytes in the PMT)
Data = CAID1 (2 bytes) PID1 (2 bytes) PROVIDER1 (3 bytes) CAID2 PID2 PROVIDER2 ....
Provider is only used in Zeka and TiaAccess, in other systems put 00 00 00
For Zeka use 00 xx yy and for TiaAccess xx yy z0

On each channel change the DVB box must send the PMT first, on FTA Channels please send: 01 00 06 yy yy zz zz zz zz


SEND ECM = 03 (send ECM to gbox)
--------------------------------
03 xx xx yy yy ecm_data ....
xx = len
yy = pid

Note lease send every ecm only once, do not send the same ecm multiple times.


REQUESTING PIDS DATA = F1 (receive ECM pid list )
-------------------------------------------------
F1 xx xx pid1 pid2 pid3 ....
xx = Len
pidx = 2 bytes for each pid

Please send me ECM data from these pids only, close all other already open.


CW RETURN = F2 (receive ControlWords)
-------------------------------------
F2 00 10 cw1 (8 bytes) cw2 (8 bytes)


Command flow on a channel change
================================
1. DVB box sends PMT with command 01 on a channel change
2. gbox sends pid list of the ecm's it can handle with command F1
3. DVB box sends ECM's (from all pids in the pid list) with command 03
4. gbox sends CW's with command F2
5. As soon the gbox has success in decoding a ecm it sends again a F1 command with one pid only, the DVB box should close then all other pids and from now on send only ecm data from that pid.

After this command 03 and F2 will be repeated until a channel change.

On the next channel change the DVB should close all open pids and repeat the above procedure.
pepigna está desconectado
Respuesta rápida a este mensaje
Responder Citando Subir
Publicidad: Conoce las ofertas de ANUNCIATE