# /var/tuxbox/config/newcamd/newcamd.conf
#
# newcamd mandatory settings
#
# Use emulator?
EMU = yes
# if both control word server and emulator keys are available for the
# channel, which method should be tried first?
PREFER_EMU = yes
# Autoupdate for Emu and Control Word Servers
# AU is always yes if there are betad UDS control word server
# connected to newcamd
AU = yes
#
# OSD
#
# number of seconds to show the newcamd OSD, works on enigma only
# 0 seconds -> OSD off
# 1 second -> show "Can't decode" messages only
OSD_TIMEOUT = 0
# Recent Enigma versions come with a new option "Use http authentication"
# in the Expert Setup menu. If this option is enabled, the Enigma web server
# requires all clients to authorize themselves with username (root) and
# password (usually dbox2 or dreambox). The following option tells newcamd
# about the authentication username and password to use for the web server
# in order to be able to display its on screen information.
OSD_WEB_LOGIN = root:dreambox
#
# newcamd debug options
#
# dumps all ca systems used by a channel on the console
SHOW_ALL_CA_SYSTEMS = no
# print debug messages about ECM handling
DEBUG_ECM = yes
# print debug messages about EMM handling
DEBUG_EMM = no
# print debug messages about Control Word Server (CWS)
DEBUG_CWS = yes
# print debug messages about dbox2 CAM (cam-alpha.bin)
DEBUG_CAM = yes
# hex dump of entire PAT
SHOW_PAT = no
# hex dump of entire PMT
SHOW_PMT = no
# hex dump of entire ECM
SHOW_ECM = no
# hex dump of entire CAT
SHOW_CAT = no
# hex dump of entire EMM (AU)
SHOW_EMM = no
# show network ECM messages being sent and received from/to the cardservers
SHOW_CWS_ECM = no
# show network EMM messages being sent and received from/to the cardservers
SHOW_CWS_EMM = no
# hex dump of EMMs with wrong signature
EMM_REPORT_WRONG_SIG = no
#
# newcamd optional settings
#
# Delay between reception of new control word and writing them into
# the CSA registers
# this is a default, can be changed for each individual key in keylist
DEFAULT_CW_DELAY = 0
# reload config on every channel zap
RELOAD_CONFIG_ON_ZAP = yes
# reload keylist on every channel zap
RELOAD_KEYLIST_ON_ZAP = no
# write osd ca info to file
CA_INFO_FILE = /tmp/cainfo.txt
#
# newcamd mandatory settings for control word servers (cws)
#
# Cardserver list
#
# <hostname> <port> <username> <password> <14 byte triple-des key in hex> <lan/wan> <cardserver name> [noecm]
#
# wan connections will be dropped and rebuild if newcamd is told so by camdcmd
# (see admin options)
#
# If the last word in the CWS line is noecm, newcamd will not attempt to send
# any ecms to that card, it will only send EMMs (AU) if userid is 1. Useful if
# you want to merge several cards of one provider into one port using
# cardspider.
#
# hostname = uds to use betad, port is the serial port in that case
#
# CWS = uds 1 dummy dummy
# CWS = linux.domain.com 10000 dummy2 dummy2 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserver
# CWS = 127.0.0.1 10000 dummy3 dummy3 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserver
CWS = uds 0 local local
CWS_MULTIPLE = 127.0.0.1 10000:10001 local local 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserver
#
# newcamd optional settings for using control word servers (cws)
#
# Timeout for cardserver login in 100ms
CWS_CONNECT_TIMEOUT = 20
# Port to listen for incoming cardserver connections (reverse login)
# and/or admin connections
CWS_INCOMING_PORT = 12000
# Port to get a list of all connected cardservers, just telnet to it
CWS_DEBUG_PORT = 12001
# send keep alive messages to servers to keep connections from dying by
# unreasonable router NAT timeouts, make sure all cardservers/spiders you
# conntect to are v5.25 or newer, otherwise you'll loose connection to them,
# if set to yes
# seems this feature is commonly misunderstood, it only keeps connections
# open even if no data packets are using it for while (NAT routers tend to
# forget about established tcp connections when they are inactive), it is
# NOT to automatically reconnect to servers, see also Q&A in readme.txt
CWS_KEEPALIVE = no
#
# newcamd admin control options
# (incoming port is the same as CWS_INCOMING_PORT)
#
# <password> <14 byte des key>
#
ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00
darunter dieses...
newcamd.list mit nur ne 1 drinnen sonst nix
danach dieses...
newcs.xml
<?xml version="1.0"?>
<!--
For setup-issues, look in readme.txt!
If there are other troubles, try different forums or irc channels around

)
The configfile are NOT case-sensitive, and shouldnt care about dos/unix cr/lf.
** This is the example file for Dreambox/TD etc. that use SCI interfaces.
-->
<newCSconfig>
<readers name="SCI">
<device>
<name>Lower Cardreader</name>
<type>sci</type>
<mhz>600</mhz>
<node>/dev/sci0</node>
<parity>odd</parity>
<reset>normal</reset>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<!-- <boxkey>0000000000</boxkey> -->
<!-- <rsa>0000000000</rsa> -->
<irdeto-camkey>0000000000000000</irdeto-camkey>
<irdeto-camkey-data>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</irdeto-camkey-data>
<crypto-special>No</crypto-special>
<ipk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ipk>
<ucpk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ucpk>
<PTShandshake>No</PTShandshake>
<carddetect>yes</carddetect>
<newcamd_port>15000</newcamd_port>
<autosid>Yes</autosid>
<Seca-PPV>no</Seca-PPV>
<pincode>0000</pincode>
<priority>round</priority>
</device>
<device>
<name>Lower Cardreader</name>
<type>
smartreader</type>
<mhz>600</mhz>
<node>/dev/ttyUSB0</node>
<parity>odd</parity>
<reset>normal</reset>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<!-- <boxkey>0000000000</boxkey> -->
<!-- <rsa>0000000000</rsa> -->
<irdeto-camkey>0000000000000000</irdeto-camkey>
<irdeto-camkey-data>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</irdeto-camkey-data>
<crypto-special>No</crypto-special>
<ipk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ipk>
<ucpk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ucpk>
<PTShandshake>No</PTShandshake>
<carddetect>yes</carddetect>
<newcamd_port>15001</newcamd_port>
<autosid>Yes</autosid>
<Seca-PPV>no</Seca-PPV>
<pincode>0000</pincode>
<priority>round</priority>
</device>
</readers>
<radegastserver>
<enabled>No</enabled>
<port>16000</port>
<allow>
<hostname>localhost</hostname>
</allow>
</radegastserver>
<cache>
<emm>20</emm>
<ecm>-1</ecm>
</cache>
<debug>
<password>NewCSpwd</password>
<level>normal</level>
<type>init</type>
<output>console,tcp</output>
<console_options>normal,init</console_options>
<tcp_port>1001</tcp_port>
<tcp_options>normal,init</tcp_options>
</debug>
<newcamdserver>
<enabled>Yes</enabled>
<name>newcs</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<user>
<name>dummy</name>
<password>dummy</password>
<hostname>localhost</hostname>
<au>on</au>
</user>
</newcamdserver>
</newCSconfig>
danach dieses...
newcs.xml.example
<?xml version="1.0"?>
<!--
For setup-issues, look in readme.txt!
If there are other troubles, try different forums or irc channels around

)
The configfile are NOT case-sensitive, and shouldnt care about dos/unix cr/lf.
** This is the example file for Dreambox/TD etc. that use SCI interfaces.
-->
<newCSconfig>
<readers name="SCI">
<device>
<name>Lower Cardreader</name>
<type>sci</type>
<mhz>600</mhz>
<node>/dev/sci0</node>
<parity>odd</parity>
<reset>normal</reset>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<!-- <boxkey>0000000000</boxkey> -->
<!-- <rsa>0000000000</rsa> -->
<irdeto-camkey>0000000000000000</irdeto-camkey>
<irdeto-camkey-data>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</irdeto-camkey-data>
<crypto-special>No</crypto-special>
<ipk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ipk>
<ucpk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ucpk>
<PTShandshake>No</PTShandshake>
<carddetect>yes</carddetect>
<newcamd_port>10000</newcamd_port>
<autosid>Yes</autosid>
<Seca-PPV>no</Seca-PPV>
<pincode>0000</pincode>
<priority>round</priority>
</device>
<device>
<name>Upper Cardreader</name>
<type>sci</type>
<mhz>600</mhz>
<node>/dev/sci1</node>
<parity>odd</parity>
<reset>normal</reset>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<!-- <boxkey>0000000000</boxkey> -->
<!-- <rsa>0000000000</rsa> -->
<irdeto-camkey>0000000000000000</irdeto-camkey>
<irdeto-camkey-data>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</irdeto-camkey-data>
<crypto-special>No</crypto-special>
<ipk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ipk>
<ucpk>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</ucpk>
<PTShandshake>No</PTShandshake>
<carddetect>yes</carddetect>
<newcamd_port>10001</newcamd_port>
<autosid>Yes</autosid>
<Seca-PPV>no</Seca-PPV>
<pincode>0000</pincode>
<priority>round</priority>
</device>
</readers>
<radegastserver>
<enabled>No</enabled>
<port>16000</port>
<allow>
<hostname>localhost</hostname>
</allow>
</radegastserver>
<cache>
<emm>20</emm>
<ecm>-1</ecm>
</cache>
<debug>
<password>NewCSpwd</password>
<level>normal</level>
<type>init</type>
<output>console,tcp</output>
<console_options>normal,init</console_options>
<tcp_port>1001</tcp_port>
<tcp_options>normal,init</tcp_options>
</debug>
<newcamdserver>
<enabled>Yes</enabled>
<name>newcs</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<user>
<name>local</name>
<password>local</password>
<hostname>localhost</hostname>
<port>12000</port>
<au>on</au>
<sidoverride>off</sidoverride>
<spider>No</spider>
<rate>2</rate>
</user>
</newcamdserver>
</newCSconfig>
unter /usr/keys ist dieses zu finden...
ignore.list
# ignore irdeto chids, nova example:
I: { 00 28 }
I: { 00 15 }
I: { 00 13 }
# ignore viaccess providers
V: { 02 0A 10}
V: { 02 0A 20}
# ignore seca providers
S: { 00 72 }
S: { 00 84 }
# ignore caids
X: { 06 26 }
mgcamd-1.38.zip
mg_cfg
# 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: { 02 }
# 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
G: { 01 }
# 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, radegast, camd3 (default)
# 01 camd3, radegast, newcamd, gbox
# 02 newcamd, camd3, gbox, radegast
P: { 00 }
# 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-******
# 04 relook
# 05 openbox
B: { 00 }
peer.cfg
# sample peer.cfg for gbox client in mgcamd
# syntax the same as in cwshare.cfg,
# you can just copy cwshare.cfg to this file.
# see below for supported tags, others not supported (yet).
# max cards to send ecm too + preffered cards ids (up to 32)
X: { 05 } 1234 ABCD
# max card's distance to use for ecm
I: ( 05 }
# resend after 2 seconds, re-sync (send to all) after 3 seconds
N: { 0 0 0 0 2000 3000 }
# same, but for NDS cards
S: { 0 0 0 0 400 500 }
# my host and password
M: { my.dyndns.com { 1234ABCD }}
# peers, unlimited number, but only up to 32 unique ports to listen
# host, port to listen, remote port, password, levels (ignored)
D: { peer1.dyndns.com { 2471 3471 { ABCD1234 { 9 9 }}}}
D: { peer2.dyndns.com { 2471 3471 { 6789ABCD { 9 9 }}}}
# ignore ids
Y: { 01 02 }
Y: { 02 03 }
# always save ids
G: { 03 04 }
G: { 04 05 }
# virtual cards
V: { 01 { 05 00 7C 00 }}
V: { 02 { 18 01 04 01 }}
V: { 02 { 18 01 05 01 }}
V: { 03 { 18 01 40 01 }}
V: { 03 { 18 01 41 01 }}
priority.list
# use this via prov first
V: { 00 78 00 }
# use this seca prov first
S: { 80 00 }
# use this caid first
X: ( 06 02 }
replace.list
# replace old with new {{ sid } { caid } { provid } { ecmpid } { newcaid } { newprovid } { newecmpid }}
# multivision 1 example
# R: {{ 515 } { 500 } { 7C00 } { A0 } { 500 } { 7800 } { A1 }}
# OR put this ecm on top if new* = 0
# R: {{ 515 } { 500 } { 7800 } { A1 } { 0 } { 0 } { 0 }}
# replace old caid > newcaid example
# X: {{ 624 } { 604 }}