Navigation Menu

Skip to content

Commit

Permalink
New values for parameter 'emmcache'.
Browse files Browse the repository at this point in the history
git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@10509 4b0bc96b-bc66-0410-9d44-ebda105a78c1
  • Loading branch information
docman committed Feb 13, 2015
1 parent 2136e6c commit 796e249
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 65 deletions.
12 changes: 9 additions & 3 deletions Distribution/doc/html/oscam.server.5.html
Expand Up @@ -476,7 +476,13 @@ <H3>The [reader] section</H3>
<DL COMPACT><DT><DD>
set EMM cache of local reader:
<P>
<BR>&nbsp;<B>usecache</B>&nbsp;=&nbsp;<B>0</B>|<B>1</B>:&nbsp;1&nbsp;=&nbsp;enable&nbsp;EMM&nbsp;caching,&nbsp;default:0
<BR>&nbsp;<B>usecache</B>&nbsp;=&nbsp;<B>0</B>|<B>1</B>||<B>2</B>
<P>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>0</B>&nbsp;=&nbsp;EMM&nbsp;caching&nbsp;disabeld&nbsp;(default)
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>1</B>&nbsp;=&nbsp;enable&nbsp;EMM&nbsp;caching&nbsp;and&nbsp;save&nbsp;EMMs&nbsp;to&nbsp;file&nbsp;after&nbsp;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stopping&nbsp;OSCam
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>2</B>&nbsp;=&nbsp;enable&nbsp;EMM&nbsp;caching,&nbsp;don't&nbsp;save&nbsp;EMMs&nbsp;to&nbsp;file&nbsp;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;after&nbsp;stopping&nbsp;OSCam
<P>
<BR>&nbsp;<B>rewrite</B>&nbsp;&nbsp;=&nbsp;determines&nbsp;how&nbsp;often&nbsp;one&nbsp;and&nbsp;the&nbsp;same&nbsp;EMM&nbsp;is
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;written,&nbsp;default:0
Expand Down Expand Up @@ -679,10 +685,10 @@ <H3>The [reader] section</H3>

<P>

<B>read_old_classes</B> = <B>0</B>|<B>1</B> <B>(Viaccess SCs only)</B>
<B>read_old_classes</B> = <B>0</B>|<B>1</B> <I>(Viaccess SCs only)</I>
<DL COMPACT><DT><DD>
0 = read only active entitlements (default)
<BR>1 = read all entitlements
1 = read all entitlements
</DL>

<P>
Expand Down
8 changes: 7 additions & 1 deletion Distribution/doc/man/oscam.server.5
Expand Up @@ -367,7 +367,13 @@ use reader as fallback for defined CAIDs only, two-digit wildcard CAIDs are poss
.RS 3n
set EMM cache of local reader:

\fBusecache\fP = \fB0\fP|\fB1\fP: 1 = enable EMM caching, default:0
\fBusecache\fP = \fB0\fP|\fB1\fP||\fB2\fP

\fB0\fP = EMM caching disabeld (default)
\fB1\fP = enable EMM caching and save EMMs to file after
stopping OSCam
\fB2\fP = enable EMM caching, don't save EMMs to file
after stopping OSCam

\fBrewrite\fP = determines how often one and the same EMM is
written, default:0
Expand Down
115 changes: 54 additions & 61 deletions Distribution/doc/txt/oscam.server.txt
@@ -1,13 +1,13 @@
oscam.server(5) File Formats Manual oscam.server(5)
oscam.server(5) File Formats Manual oscam.server(5)



NAME
oscam.server - reader configuration file for OSCam

SYNOPSIS
The server configuration file for OSCam contains reader parameters. sections in oscam.server are recurring (more than one
reader possible). At least one [reader] section is required.
The server configuration file for OSCam contains reader parameters. sections in oscam.server are recurring (more than one reader possible). At
least one [reader] section is required.

DESCRIPTIONS
The [reader] section
Expand Down Expand Up @@ -105,21 +105,20 @@ DESCRIPTIONS
status detect of card, NONE = no detection, ! = inverse, default:CD

cardmhz = mhz
set standard SC frequency in units of 10 kHz, for Irdeto SC set to 600 mhz, for Dreambox DM800 / DM8000 set to 2700
mhz, for Dreambox DM7025 set to 8300 mhz, for older PowerPC Dreambox STBs set to 3150 mhz, refer to OVERCLOCKING,
default:357
set standard SC frequency in units of 10 kHz, for Irdeto SC set to 600 mhz, for Dreambox DM800 / DM8000 set to 2700 mhz, for Dreambox DM7025 set
to 8300 mhz, for older PowerPC Dreambox STBs set to 3150 mhz, refer to OVERCLOCKING, default:357

mhz = frequency
set reader frequency in units of 10 kHz, if mhz > cardmhz you are in overclocking mode. For Smargo readers and Dreambox
internal readers frequency will be set by ATR if autospeed is set to 1, default:357
set reader frequency in units of 10 kHz, if mhz > cardmhz you are in overclocking mode. For Smargo readers and Dreambox internal readers frequency
will be set by ATR if autospeed is set to 1, default:357

autospeed = 0|1
1 = sets mhz according to ATR. Currently only used for smartreader, Smargo and Dreambox internal protocol, other read‐
ers will be adapted to use this parameter as well. If You wan't to overclock you're card set it to 0, default:1
1 = sets mhz according to ATR. Currently only used for smartreader, Smargo and Dreambox internal protocol, other readers will be adapted to use
this parameter as well. If You wan't to overclock you're card set it to 0, default:1

deprecated = 0|1
First the SC will be initialized in normal mode. If it fails, the SC will be automatically reverted to deprecated mode,
so that the SC speed will not be changed and the communication will remain on normal ATR speed of 9600 baud.
First the SC will be initialized in normal mode. If it fails, the SC will be automatically reverted to deprecated mode, so that the SC speed will
not be changed and the communication will remain on normal ATR speed of 9600 baud.

1 = use deprecated SC mode only, default:0

Expand Down Expand Up @@ -180,10 +179,8 @@ DESCRIPTIONS
12 = NDS Videoguard 1+
2 = NDS Videoguard 2

aeskeys = CAID #0@provid:AES key #0 CAID #0[,AES key #1 CAID #0],...[;CAID #1@provid:AES key #0 CAID #1[,AES key #1 CAID
#1],...]...
multiple 16 bytes AES keys for Viaccess SCs (the used postprocessing AES key is specified through the D2 nano of the
ECM)
aeskeys = CAID #0@provid:AES key #0 CAID #0[,AES key #1 CAID #0],...[;CAID #1@provid:AES key #0 CAID #1[,AES key #1 CAID #1],...]...
multiple 16 bytes AES keys for Viaccess SCs (the used postprocessing AES key is specified through the D2 nano of the ECM)

special AES keys:

Expand All @@ -192,8 +189,7 @@ DESCRIPTIONS

example:

aeskeys =
0500@012345:000102030405060708090a0b0c0d0e0f;0500@543210:000102030405060708090a0b0c0d0e0f,0,0f0e0d0c0b0a090807060504030201
aeskeys = 0500@012345:000102030405060708090a0b0c0d0e0f;0500@543210:000102030405060708090a0b0c0d0e0f,0,0f0e0d0c0b0a090807060504030201

key = DES key
key for newcamd remote reader encryption
Expand Down Expand Up @@ -249,8 +245,7 @@ DESCRIPTIONS
1 = ignore caid and provid settings of reader due faulty clients, default:0

inactivitytimeout = seconds
inactivity timeout for all TCP based remote readers, -1 = reconnect on network failure for newcamd, even in idle,
default:0
inactivity timeout for all TCP based remote readers, -1 = reconnect on network failure for newcamd, even in idle, default:0

reconnecttimeout = seconds
reconnect if missing answers from a remote reader, default:30
Expand All @@ -268,15 +263,20 @@ DESCRIPTIONS
1 = define reader as fallback, standard and fallback reader must have the same group, default:0

fallback_percaid = <CAID>[:<ident>[,ident]]...[;<CAID>[:<ident>[,ident]]...]....
use reader as fallback for defined CAIDs only, two-digit wildcard CAIDs are possible, fallback_percaid overrules fall‐
back, default:none
use reader as fallback for defined CAIDs only, two-digit wildcard CAIDs are possible, fallback_percaid overrules fallback, default:none

example: fallback_percaid = 1234:234567;89;10:345678

emmcache = usecache,rewrite,logging
set EMM cache of local reader:

usecache = 0|1: 1 = enable EMM caching, default:0
usecache = 0|1||2

0 = EMM caching disabeld (default)
1 = enable EMM caching and save EMMs to file after
stopping OSCam
2 = enable EMM caching, don't save EMMs to file
after stopping OSCam

rewrite = determines how often one and the same EMM is
written, default:0
Expand Down Expand Up @@ -389,8 +389,7 @@ DESCRIPTIONS
1 = enable global EMM filter for Viaccess SCs, default:0, for camd35/cs357x protocol only

read_old_classes = 0|1 (Viaccess SCs only)
0 = read only active entitlements (default)
1 = read all entitlements
0 = read only active entitlements (default) 1 = read all entitlements

saveemm-u = 0|1
1 = save unique EMMs to log file, default:0
Expand All @@ -411,8 +410,8 @@ DESCRIPTIONS
savenano = all

readnano = [path]filename
write file (usually a copy of a file saved by savenano) to your smartcard, if no path is specified, the specified file
is searched for in the configuration directory, only valid for physical readers, default:none
write file (usually a copy of a file saved by savenano) to your smartcard, if no path is specified, the specified file is searched for in the con‐
figuration directory, only valid for physical readers, default:none

example: readnano = write.emm
readnano = /var/oscam/write.emm
Expand All @@ -429,8 +428,7 @@ DESCRIPTIONS
use this reader as local in loadbalancer's reader selection, default:none

lb_whitelist_services = <services>,<services>...
reader assignement to service group for channels which may never be blocked by the loadbalancer to the reader ,
default=none
reader assignement to service group for channels which may never be blocked by the loadbalancer to the reader , default=none

lb_weight = weight
the higher the value the higher the probability for reader selection in load balacing mode, default:100
Expand Down Expand Up @@ -493,55 +491,51 @@ DESCRIPTIONS
OVERCLOCKING
· Dreambox and other internal readers

For Dreambox and other internal readers the highest possible clockrate will be auto detected. The mhz parameter lets
you override the values chosen by OSCam, if it differs from 357 and 358, but usually you will not set any value for
mhz.
For Dreambox and other internal readers the highest possible clockrate will be auto detected. The mhz parameter lets you override the values cho‐
sen by OSCam, if it differs from 357 and 358, but usually you will not set any value for mhz.

For certain Dreamboxes (especially PPC clones) the default mhz parameter leads to slow ECM times and/or "not found"
ECMs. By setting mhz to values like 200, 300, 400, ... 1600 you can find a value that works for your receiver and your
card. The higher the mhz value, the slower the ECM time (strange enough).
For certain Dreamboxes (especially PPC clones) the default mhz parameter leads to slow ECM times and/or "not found" ECMs. By setting mhz to values
like 200, 300, 400, ... 1600 you can find a value that works for your receiver and your card. The higher the mhz value, the slower the ECM time
(strange enough).

If you choose the value too low, your card is not recognized (no ATR or "card not supported"). If you choose the value
too high, you get slow ECM times. Our experience is that either no mhz line, or a line mhz = 1000 works best.
If you choose the value too low, your card is not recognized (no ATR or "card not supported"). If you choose the value too high, you get slow ECM
times. Our experience is that either no mhz line, or a line mhz = 1000 works best.

· Phoenix / Smartmouse reader

Overclocking does not work with Windows and Mac OS X. Set mhz equivalent to the frequency of the reader. OSCam can
not set the frequency of the reader.
Overclocking does not work with Windows and Mac OS X. Set mhz equivalent to the frequency of the reader. OSCam can not set the frequency of the
reader.

· Smargo Smartreader+

Use protocol = smargo for the FDDI kernel drivers (no libusb needed) or (not recommended) use protocol = smartreader
for OSCam's driver implementation based on libusb.
Use protocol = smargo for the FDDI kernel drivers (no libusb needed) or (not recommended) use protocol = smartreader for OSCam's driver implemen‐
tation based on libusb.

Set the reader frequency with the native Smargo Smartreader+ tool (srp_tools). If not setting mhz and cardmhz, OSCam
tries to set the baudrate automatically, according to the maximum speed indicated by ATR. Overclocking is possible.
Set the reader frequency with the native Smargo Smartreader+ tool (srp_tools). If not setting mhz and cardmhz, OSCam tries to set the baudrate
automatically, according to the maximum speed indicated by ATR. Overclocking is possible.

OSCam tries to set the baudrate automatically. A standard serial port has limited baudrate settings, so SC overclocking
might not work. When using a serial reader the best way for overclocking is connecting it to a FTDI based USB to serial
port adapter.
OSCam tries to set the baudrate automatically. A standard serial port has limited baudrate settings, so SC overclocking might not work. When using
a serial reader the best way for overclocking is connecting it to a FTDI based USB to serial port adapter.

If overclocking does not work, verify the effective baudrate in the logfile. If it deviates too much from the requested
baudrate, the SC will not be recognized (no ATR) and the value for mhz should be adjusted again. The higher the baudrate,
the more accurate the effective baudrate can be.
If overclocking does not work, verify the effective baudrate in the logfile. If it deviates too much from the requested baudrate, the SC will not be
recognized (no ATR) and the value for mhz should be adjusted again. The higher the baudrate, the more accurate the effective baudrate can be.

CACHE EXCHANGE
· pull mode (on request: cache exchange from remote to local OSCam)

ECM requests will be forwarded to the remote cache exchange partner. If the CW could not be found in the cache of the
remote exchange partner, a not found will be answered. If the CW could not be found in the cache of the remote exchange
partner but a pending ECM request is open, the request will be re-initiated after the wait time defined in cacheexwait‐
time.
ECM requests will be forwarded to the remote cache exchange partner. If the CW could not be found in the cache of the remote exchange partner, a
not found will be answered. If the CW could not be found in the cache of the remote exchange partner but a pending ECM request is open, the
request will be re-initiated after the wait time defined in cacheexwaittime.

· push mode (continuous: cache exchange from remote to local OSCam)

CWs from the remote cache exchange partner will be forwarded to the local cache. Forwarding only works while the camd
camd 3.5x / 3.57x or CCcam protocol connection between the local and remote OSCam has been established.
CWs from the remote cache exchange partner will be forwarded to the local cache. Forwarding only works while the camd camd 3.5x / 3.57x or CCcam
protocol connection between the local and remote OSCam has been established.

· reverse push mode (continuous: cache exchange from local to remote OSCam)

CWs from the local cache will be forwarded to the remote cache exchange partner. Forwarding only works while the camd
camd 3.5x / 3.57x or CCcam protocol connection between the remote and local OSCam has been established.
CWs from the local cache will be forwarded to the remote cache exchange partner. Forwarding only works while the camd camd 3.5x / 3.57x or CCcam
protocol connection between the remote and local OSCam has been established.

EXAMPLES
· serial mouse compatible reader
Expand Down Expand Up @@ -657,10 +651,9 @@ EXAMPLES
caid = 1100

SEE ALSO
list_smargo(1), oscam(1), oscam.ac(5), oscam.cacheex(5), oscam.cert(5), oscam.conf(5), oscam.dvbapi(5), oscam.guess(5),
oscam.ird(5), oscam.provid(5), oscam.ratelimit(5), oscam.services(5), oscam.srvid(5), oscam.tiers(5), oscam.user(5),
oscam.whitelist(5)
list_smargo(1), oscam(1), oscam.ac(5), oscam.cacheex(5), oscam.cert(5), oscam.conf(5), oscam.dvbapi(5), oscam.guess(5), oscam.ird(5),
oscam.provid(5), oscam.ratelimit(5), oscam.services(5), oscam.srvid(5), oscam.tiers(5), oscam.user(5), oscam.whitelist(5)



oscam.server(5)
oscam.server(5)

0 comments on commit 796e249

Please sign in to comment.