Twin2CS v2.1
Download
View source code


History log
 - v2.1
* Fixed caid/providers reading
* Added HTTP server
* Added Multi Serial devices
 - v2.0
* Changed newcamd server to mgcamd server.
* Added a new constant for every channel to filter wrong codes, the value of this constant is the ecmtag when cw1 cycles.
installation
Linux 64 bits
extract the .zip file and execute the next commands or use a ftp/sftp software to copy files to your server
cp multics.x64 /usr/local/bin/multics
chmod 755 /usr/local/bin/multics
cp twin2cs.cfg /var/etc
cp twin2cs.channelinfo /var/etc
Linux 32 bits
extract the .zip file and execute the next commands or use a ftp/sftp software to copy files to your server
cp multics.x32 /usr/local/bin/multics
chmod 755 /usr/local/bin/multics
cp twin2cs.cfg /var/etc
cp twin2cs.channelinfo /var/etc
ppc (dm500)
extract the .zip file and execute the next commands or use a ftp software to copy files to your receiver
cp multics.ppc /var/bin/multics
chmod 755 /var/bin/multics
cp twin2cs.cfg /var/etc
cp twin2cs.channelinfo /var/etc
mips (dm800)
extract the .zip file and execute the next commands or use a ftp software to copy files to your receiver
cp multics.mips /bin/multics
chmod 755 /bin/multics
cp twin2cs.cfg /var/etc
cp twin2cs.channelinfo /var/etc
twin2cs.cfg options
SERIAL = "<serial_device_name>" , "<channelinfo_filename>"
Add new serial device with its own channelinfo
SERIAL = "/dev/ttyS0", "/var/etc/twin2cs.channelinfo0"
SERIAL = "/dev/ttyS1", "/var/etc/twin2cs.channelinfo1"
TIMEOUT = <value>
Change dcw timeout, if there is no valid cw after this lapse of time the server will send decode failed to client.
default = 5000ms
TIMEOUT = 7000 # 7 seconds
 # ecmtime from dongles are too much high and may reach 8 seconds
PORT = <port value>
mgcamd server listen port (default=0)
PORT = 23000
KEY = <des key>
Change mgcamd des key ( default = 01 02 03 04 05 06 07 08 09 10 11 12 13 14 )
KEY = 81 82 83 84 85 86 87 88 89 80 81 82 83 84
CARD = <caid>:<provider_list>
Add a card to the mgcamd server
CARD = 0604:0,1,2,3
CARD = 0B00:0
CARD = 1708:0
USER = <username> <password>
Define a new mgcamd client
USER = user1 pass1
USER = user3 pass3
HTTP SERVER
HTTP PORT: <port value>
Listening port for HTTP server. default: 5555
HTTP PORT: 12345
HTTP TITLE: <title>
Change web page title (default=Twin2CS)
HTTP TITLE: "Dongle"
HTTP USER: <username>
Basic authentification Username for the HTTP server
HTTP USER: admin
HTTP PASS: <password>
Basic authentification Password for the HTTP server
HTTP PASS: admin
twin2cs.channelinfo format
<caid>:<provider>:<sid>:<satellite_degree>:<channel_frequency>.<ecmtag_when_cw1_cycles> "channel_name"
all values are in hexadecimal.
this is an explanation of how to get the ecmtag for cw1cycle.
all that we need is the current ecm/cw and the previous cw (watching tv to check there is no freeze).
0604:000000:02C2:0DCA:2F02.80 "ADD 7.0W - ART Aflam 1"
0604:000000:02C4:0DCA:2F02.80 "ADD 7.0W - ART Aflam 2"
0B00:000000:0002:0DCA:2F9C.80 "MBC 7.0W - MBC 2 HD"


Flag Counter