- 10 Abr 2009
- 1.334
- 9
- 0
As the devil lies in the detail, I better give you what I work with...
Firstly, I do not know if I use the correct format/other files, in relation to the "trunk" (= "main file" in OSCam jargon?) I use, from the sticky thread in the OSCam forum AZbox HD section.
Honestly, I wouldn't know where to start, getting the correct complete package, so that everything is correctly teamed up... I mean, even when one goes into the trunk and starts reading - different parts have at the very top that they refer to an earlier version of OSCam, not the latest, so that is a bit confusing to a newbie like myself, who is also not from IT/technical science...
I must point out that I do know a few things about GBox, MBox, CCcam, how to configure them, to forward ports etc. I have no problems being a client to my Leete las normas. But getting an OSC going and setting up a server seems a good challenge... Especially, as OSCam itself is growing every day - which is great to see!!! However, it makes it more difficult, more complex for newbies like myself. Ergo, I need help, please!
And the correct, careful configuration of it all is not exactly unimportant, as we all know... So, as I am NOT lazy and I LOVE LEARNING, here is the lot I use:
module.seq [in OpenXCAS folder]
mgcamd
oscamCAS
#newcs
#MboxCAS
#SboxCAS
#MultiCAS
oscam.conf [all that follow are in oscamCAS folder]
# oscam.conf generated automatically by Streamboard OSCAM 0.99.4svn build #2940
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.conf.txt
[global]
logfile = stdout
disablelog = 0
disableuserfile = 0
usrfileflag = 0
clienttimeout = 5
fallbacktimeout = 2500
clientmaxidle = 120
cachedelay = 1
bindwait = 120
netprio = 0
clientdyndns = 1
resolvedelay = 30
unlockparental = 1
nice = -1
serialreadertimeout = 1500
maxlogsize = 10
waitforcards = 1
preferlocalcards = 1
saveinithistory = 1
readerrestartseconds = 5
readerautoloadbalance = 0
readerautoloadbalance_save = 0
[newcamd]
port = 20000@0B00:000000
key = 0102030405060708091011121314
allowed = 127.0.0.1,192.168.0.0-192.168.255.255
keepalive = 1
mgclient = 1
[cccam]
port = 12000
reshare = 2
version = 2.1.3
[dvbapi]
enabled = 1
au = 1
boxtype = azbox
user = local
pmt_mode = 0
priority =
[webif]
httpport = 80
httpuser = user
httppwd = pass
httprefresh = 5
httpallowed = 192.168.0.1-192.168.255.255
httphideidleclients = 0
httpreadonly = 0
[anticasc]
enabled = 1
numusers = 0
sampletime = 2
samples = 10
penalty = 0
aclogfile = ./oscam_ac.log
denysamples = 8
fakedelay = 1000
=
oscam.server
# oscam.server generated automatically by Streamboard OSCAM 0.99.4svn build #2978
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.server.txt
[reader]
label = azbox-internal
enable = 1
protocol = internal
device = 0
mode = 10
services = 0B00
caid = 0B00
detect = cd
mhz = 357
cardmhz = 357
ident = 0B00:000000
group = 1
emmcache = 1,1,3
ecmcache = 0
blockemm-unknown = 0
blockemm-s = 0
blockemm-g = 0
lb_weight = 100
auprovid =
=
oscam.srvid
#Canal Digital Sweden
0B00:000000
=
oscam.user
# oscam.user generated automatically by Streamboard OSCAM 0.99.4svn build #2947
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.user.txt
[account]
user = username
pwd = pass
disabled = 0
expdate =
group = 1
hostname = xxxx.dyndns.org
uniq = 1
sleep = 0
monlevel = 0
au = azbox-internal|0
services = myservices
caid = 0B00
betatunnel = 0
ident = 0B00:000000
cccmaxhops = 2
cccreshare = 2
keepalive = 0
numusers = 0
penalty = 0
openxcas.conf
[module]
name = oscamCAS
daemon = oscam
argument = c /PLUGINS/OpenXCAS/oscamCAS/
version = 1.00
api=Yes
wait =5sec
=
oscam.provid
# provider table
#
# format: <caid>:<provid>|<provider>|<satellite>|<language>
0B00:000000|Canal Digital|Sweden
=
oscam.services
[Canal Digital]
caid=0B00
srvid=0B00
=
oscam.srvid
#Canal Digital Sweden
0B00:000000
=
oscam.tiers
0B00:0B00|Canal Digital
=
dvbapi_fix-v3.diff
=
I use the latest MGcamd to connect to OSCam, as a client. Here is the newcamd.list
CWS = 127.0.0.1 20000 mgcamd mgcamd 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan local
CWS_INCOMING_PORT = 12000
Just to add that MGcamd works as a CS client via the net, i.e. from my Leete las normas but as you can see - not a sausage in terms of connecting to OSCam Newcamd as card reader/server, sadly...
=
This is the log with latest OSCam trunk 4798, from the binaries sticky thread in this section:
AZBox[oscamCAS]$ ./oscam -d 255
Warning: keyword 'clientdyndns' in global section not recognized
Warning: keyword 'resolvedelay' in global section not recognized
2011/03/07 10:46:52 400 s >> OSCam << cardserver started version 1.00-unstable_svn, build #4798 (mips-azbox-linux)
2011/03/07 10:46:52 400 s version=1.00-unstable_svn, build #4798, system=mips-azbox-linux, nice=-1
2011/03/07 10:46:52 400 s client max. idle=120 sec, debug level=255
2011/03/07 10:46:52 400 s max. logsize=10 Kb
2011/03/07 10:46:52 400 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=1 ms
2011/03/07 10:46:52 400 s share updater thread started
2011/03/07 10:46:52 400 s auth size=4976
2011/03/07 10:46:52 400 s services reloaded: 0 services freed, 1 services loaded
2011/03/07 10:46:52 400 s reader 'azbox-internal' provid filter(s):
2011/03/07 10:46:52 400 s CAID #0: 0B00
2011/03/07 10:46:52 400 s provid #0: 000000
Warning: keyword 'ecmcache' in reader section not recognized
2011/03/07 10:46:52 400 s user 'xxxx' provid filter(s):
2011/03/07 10:46:52 400 s CAID #0: 0B00
2011/03/07 10:46:52 400 s provid #0: 000000
2011/03/07 10:46:52 400 s userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled
2011/03/07 10:46:52 400 s signal handling initialized (type=sysv)
2011/03/07 10:46:52 400 s oscam.srvid loading failed, old format
2011/03/07 10:46:52 400 s 1 tier-id's loaded
2011/03/07 10:46:52 400 s 1 provid's loaded
2011/03/07 10:46:52 400 s can't open file "/PLUGINS/OpenXCAS/oscamCAS/oscam.ird" (errno=2) irdeto guessing not loaded
[OPENXCAS_API:Mon Mar 7 10:46:52.669] load_xcas_control:98 ## loaded controller ID = 0x19760507
osdep_msq_server_open : key_request 0x62C4B094 key_response 0x62C4B095
osdep_msq_server_open : request msq is already created
osdep_msq_server_open : response msq is already created
osdep_msq_client_connect : key_request 0x62C4B094 key_response 0x62C4B095
2011/03/07 10:46:52 400 s monitor: disabled
2011/03/07 10:46:52 400 s camd33: disabled
2011/03/07 10:46:52 400 s camd35: disabled
2011/03/07 10:46:52 400 s cs378x: disabled
2011/03/07 10:46:52 400 s newcamd: Bind request failed, waiting another 119 seconds
2011/03/07 10:46:53 0 share-update 2139094304 2139094308
2011/03/07 10:46:53 0 reported/updated +0/-0/dup 0 of 0 cards to sharelist
2011/03/07 10:46:53 400 s newcamd: Bind request failed, waiting another 118 seconds
etc. etc. etc.
2011/03/07 10:50:51 400 s cccam: Bind request failed, waiting another 1 seconds
2011/03/07 10:50:52 400 s cccam: Bind request failed, giving up
2011/03/07 10:50:52 400 s radegast: disabled
2011/03/07 10:50:52 400 s http thread started
2011/03/07 10:50:52 400 s creating thread for device 0
2011/03/07 10:50:52 400 s loadbalancer: can't read from file /tmp/.oscam/stat
2011/03/07 10:50:52 400 s waiting for local card init
2011/03/07 10:50:52 C04 h HTTP Server couldn't bind on port 80 (errno=125). Not starting HTTP!
2011/03/07 10:50:52 1005 r reader thread started (thread= 1005, label=azbox-internal, device=0, detect=cd, mhz=357, cardmhz=357)
2011/03/07 10:50:52 1005 r IFD: Opening device 0
2011/03/07 10:50:52 1005 r openxcas sc: init
2011/03/07 10:50:52 1005 r openxcas sc: init failed (-1)
2011/03/07 10:50:52 400 s init for all local cards done
2011/03/07 10:50:52 400 s can't open file "/PLUGINS/OpenXCAS/oscamCAS/oscam.ac" (errno=2) anti-cascading table not loaded
2011/03/07 10:50:52 400 s anticascader thread started
2011/03/07 10:50:52 1806 c plain dvbapi-client granted (anonymous, au=off)
2011/03/07 10:50:52 1806 c dvbapi: can't open priority file /PLUGINS/OpenXCAS/oscamCAS/oscam.dvbapi
=
So, can we have a clean start, please, because it seems from reading here:
http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.conf.txt
I may have mismatched files, i.e. old format. That is, the new trunk I use and my older trunk accompanying files are not on speaking terms...
In other words, as I already asked,
-the complete file package and then
-some sorting out of this mess I seem to have started with, thanx to my lack of information...
Meanwhile, MGcamd is working fine as a CS client, from the net...
Please, help me give my 'local' back to my Leete las normas...:llorar:
Thanx in advance!!!:rosas:
Firstly, I do not know if I use the correct format/other files, in relation to the "trunk" (= "main file" in OSCam jargon?) I use, from the sticky thread in the OSCam forum AZbox HD section.
Honestly, I wouldn't know where to start, getting the correct complete package, so that everything is correctly teamed up... I mean, even when one goes into the trunk and starts reading - different parts have at the very top that they refer to an earlier version of OSCam, not the latest, so that is a bit confusing to a newbie like myself, who is also not from IT/technical science...
I must point out that I do know a few things about GBox, MBox, CCcam, how to configure them, to forward ports etc. I have no problems being a client to my Leete las normas. But getting an OSC going and setting up a server seems a good challenge... Especially, as OSCam itself is growing every day - which is great to see!!! However, it makes it more difficult, more complex for newbies like myself. Ergo, I need help, please!
And the correct, careful configuration of it all is not exactly unimportant, as we all know... So, as I am NOT lazy and I LOVE LEARNING, here is the lot I use:
module.seq [in OpenXCAS folder]
mgcamd
oscamCAS
#newcs
#MboxCAS
#SboxCAS
#MultiCAS
oscam.conf [all that follow are in oscamCAS folder]
# oscam.conf generated automatically by Streamboard OSCAM 0.99.4svn build #2940
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.conf.txt
[global]
logfile = stdout
disablelog = 0
disableuserfile = 0
usrfileflag = 0
clienttimeout = 5
fallbacktimeout = 2500
clientmaxidle = 120
cachedelay = 1
bindwait = 120
netprio = 0
clientdyndns = 1
resolvedelay = 30
unlockparental = 1
nice = -1
serialreadertimeout = 1500
maxlogsize = 10
waitforcards = 1
preferlocalcards = 1
saveinithistory = 1
readerrestartseconds = 5
readerautoloadbalance = 0
readerautoloadbalance_save = 0
[newcamd]
port = 20000@0B00:000000
key = 0102030405060708091011121314
allowed = 127.0.0.1,192.168.0.0-192.168.255.255
keepalive = 1
mgclient = 1
[cccam]
port = 12000
reshare = 2
version = 2.1.3
[dvbapi]
enabled = 1
au = 1
boxtype = azbox
user = local
pmt_mode = 0
priority =
[webif]
httpport = 80
httpuser = user
httppwd = pass
httprefresh = 5
httpallowed = 192.168.0.1-192.168.255.255
httphideidleclients = 0
httpreadonly = 0
[anticasc]
enabled = 1
numusers = 0
sampletime = 2
samples = 10
penalty = 0
aclogfile = ./oscam_ac.log
denysamples = 8
fakedelay = 1000
=
oscam.server
# oscam.server generated automatically by Streamboard OSCAM 0.99.4svn build #2978
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.server.txt
[reader]
label = azbox-internal
enable = 1
protocol = internal
device = 0
mode = 10
services = 0B00
caid = 0B00
detect = cd
mhz = 357
cardmhz = 357
ident = 0B00:000000
group = 1
emmcache = 1,1,3
ecmcache = 0
blockemm-unknown = 0
blockemm-s = 0
blockemm-g = 0
lb_weight = 100
auprovid =
=
oscam.srvid
#Canal Digital Sweden
0B00:000000
=
oscam.user
# oscam.user generated automatically by Streamboard OSCAM 0.99.4svn build #2947
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.user.txt
[account]
user = username
pwd = pass
disabled = 0
expdate =
group = 1
hostname = xxxx.dyndns.org
uniq = 1
sleep = 0
monlevel = 0
au = azbox-internal|0
services = myservices
caid = 0B00
betatunnel = 0
ident = 0B00:000000
cccmaxhops = 2
cccreshare = 2
keepalive = 0
numusers = 0
penalty = 0
openxcas.conf
[module]
name = oscamCAS
daemon = oscam
argument = c /PLUGINS/OpenXCAS/oscamCAS/
version = 1.00
api=Yes
wait =5sec
=
oscam.provid
# provider table
#
# format: <caid>:<provid>|<provider>|<satellite>|<language>
0B00:000000|Canal Digital|Sweden
=
oscam.services
[Canal Digital]
caid=0B00
srvid=0B00
=
oscam.srvid
#Canal Digital Sweden
0B00:000000
=
oscam.tiers
0B00:0B00|Canal Digital
=
dvbapi_fix-v3.diff
Código:
Index: module-dvbapi.c
=
--- module-dvbapi.c (revisión: 4114)
+++ module-dvbapi.c (copia de trabajo)
@@ -1865,7 +1865,7 @@
while ((ret = openxcas_get_message(&msg, 0)) >= 0) {
cs_sleepms(10);
- process_client_pipe(dvbapi_client, NULL, 0);
+ /* process_client_pipe(dvbapi_client, NULL, 0); */
chk_pending(tp);
if (ret) {
Index: oscam.c
=
--- oscam.c (revisión: 4114)
+++ oscam.c (copia de trabajo)
@@ -2632,6 +2632,13 @@
for (--i; i>=0; i--) {
if (cl->ecmtask[i].rc>=99) { // check all pending ecm-requests
+ er=&cl->ecmtask[i];
+ if (check_cwcache1(er, cl->grp)) { //Schlocke: caching dupplicate requests from different clients
+ er->rc = 1;
+ send_dcw(cl, er);
+ }
+ }
+ if (cl->ecmtask[i].rc>=99) { // check all pending ecm-requests
int act, j;
er=&cl->ecmtask[i];
tpc=er->tps;
Index: oscam-config.h
=
--- oscam-config.h (revisión: 4114)
+++ oscam-config.h (copia de trabajo)
@@ -12,7 +12,7 @@
#ifndef HAVE_DVBAPI
#if !defined(OS_CYGWIN32) && !defined(OS_HPUX) && !defined(OS_FREEBSD) && !defined(OS_MACOSX)
-//#define HAVE_DVBAPI
+#define HAVE_DVBAPI
#endif
#endif
=
I use the latest MGcamd to connect to OSCam, as a client. Here is the newcamd.list
CWS = 127.0.0.1 20000 mgcamd mgcamd 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan local
CWS_INCOMING_PORT = 12000
Just to add that MGcamd works as a CS client via the net, i.e. from my Leete las normas but as you can see - not a sausage in terms of connecting to OSCam Newcamd as card reader/server, sadly...
=
This is the log with latest OSCam trunk 4798, from the binaries sticky thread in this section:
AZBox[oscamCAS]$ ./oscam -d 255
Warning: keyword 'clientdyndns' in global section not recognized
Warning: keyword 'resolvedelay' in global section not recognized
2011/03/07 10:46:52 400 s >> OSCam << cardserver started version 1.00-unstable_svn, build #4798 (mips-azbox-linux)
2011/03/07 10:46:52 400 s version=1.00-unstable_svn, build #4798, system=mips-azbox-linux, nice=-1
2011/03/07 10:46:52 400 s client max. idle=120 sec, debug level=255
2011/03/07 10:46:52 400 s max. logsize=10 Kb
2011/03/07 10:46:52 400 s client timeout=5000 ms, fallback timeout=2500 ms, cache delay=1 ms
2011/03/07 10:46:52 400 s share updater thread started
2011/03/07 10:46:52 400 s auth size=4976
2011/03/07 10:46:52 400 s services reloaded: 0 services freed, 1 services loaded
2011/03/07 10:46:52 400 s reader 'azbox-internal' provid filter(s):
2011/03/07 10:46:52 400 s CAID #0: 0B00
2011/03/07 10:46:52 400 s provid #0: 000000
Warning: keyword 'ecmcache' in reader section not recognized
2011/03/07 10:46:52 400 s user 'xxxx' provid filter(s):
2011/03/07 10:46:52 400 s CAID #0: 0B00
2011/03/07 10:46:52 400 s provid #0: 000000
2011/03/07 10:46:52 400 s userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled
2011/03/07 10:46:52 400 s signal handling initialized (type=sysv)
2011/03/07 10:46:52 400 s oscam.srvid loading failed, old format
2011/03/07 10:46:52 400 s 1 tier-id's loaded
2011/03/07 10:46:52 400 s 1 provid's loaded
2011/03/07 10:46:52 400 s can't open file "/PLUGINS/OpenXCAS/oscamCAS/oscam.ird" (errno=2) irdeto guessing not loaded
[OPENXCAS_API:Mon Mar 7 10:46:52.669] load_xcas_control:98 ## loaded controller ID = 0x19760507
osdep_msq_server_open : key_request 0x62C4B094 key_response 0x62C4B095
osdep_msq_server_open : request msq is already created
osdep_msq_server_open : response msq is already created
osdep_msq_client_connect : key_request 0x62C4B094 key_response 0x62C4B095
2011/03/07 10:46:52 400 s monitor: disabled
2011/03/07 10:46:52 400 s camd33: disabled
2011/03/07 10:46:52 400 s camd35: disabled
2011/03/07 10:46:52 400 s cs378x: disabled
2011/03/07 10:46:52 400 s newcamd: Bind request failed, waiting another 119 seconds
2011/03/07 10:46:53 0 share-update 2139094304 2139094308
2011/03/07 10:46:53 0 reported/updated +0/-0/dup 0 of 0 cards to sharelist
2011/03/07 10:46:53 400 s newcamd: Bind request failed, waiting another 118 seconds
etc. etc. etc.
2011/03/07 10:50:51 400 s cccam: Bind request failed, waiting another 1 seconds
2011/03/07 10:50:52 400 s cccam: Bind request failed, giving up
2011/03/07 10:50:52 400 s radegast: disabled
2011/03/07 10:50:52 400 s http thread started
2011/03/07 10:50:52 400 s creating thread for device 0
2011/03/07 10:50:52 400 s loadbalancer: can't read from file /tmp/.oscam/stat
2011/03/07 10:50:52 400 s waiting for local card init
2011/03/07 10:50:52 C04 h HTTP Server couldn't bind on port 80 (errno=125). Not starting HTTP!
2011/03/07 10:50:52 1005 r reader thread started (thread= 1005, label=azbox-internal, device=0, detect=cd, mhz=357, cardmhz=357)
2011/03/07 10:50:52 1005 r IFD: Opening device 0
2011/03/07 10:50:52 1005 r openxcas sc: init
2011/03/07 10:50:52 1005 r openxcas sc: init failed (-1)
2011/03/07 10:50:52 400 s init for all local cards done
2011/03/07 10:50:52 400 s can't open file "/PLUGINS/OpenXCAS/oscamCAS/oscam.ac" (errno=2) anti-cascading table not loaded
2011/03/07 10:50:52 400 s anticascader thread started
2011/03/07 10:50:52 1806 c plain dvbapi-client granted (anonymous, au=off)
2011/03/07 10:50:52 1806 c dvbapi: can't open priority file /PLUGINS/OpenXCAS/oscamCAS/oscam.dvbapi
=
So, can we have a clean start, please, because it seems from reading here:
http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.conf.txt
I may have mismatched files, i.e. old format. That is, the new trunk I use and my older trunk accompanying files are not on speaking terms...
In other words, as I already asked,
-the complete file package and then
-some sorting out of this mess I seem to have started with, thanx to my lack of information...
Meanwhile, MGcamd is working fine as a CS client, from the net...
Please, help me give my 'local' back to my Leete las normas...:llorar:
Thanx in advance!!!:rosas: