OSCam in AZbox HD with original FW 5306: both server and client at once!

gorski

Registered
Messages
1,553
OK, this works - tested with my Conax CD card CAS5!!! - both as a [Newcamd] card reader/server, as well as a [CCcam] client, so no need for any other Emus, thanx to various people for sharing info, like I am trying to do now...
wink.gif


After plenty of testing, many different configurations on a couple of OSs [original FW and E2] and a couple of original FWs [4890, 5303, 5305 and 5306], as well as a few E2s [RC4, RC7, RTi 1 Fix and SPAZE Fix]...

The version of OSCam I am using, fairly successfully, with all the stops, bumps, reboots and so on, is OSCAM 1.10rc-svn build #5755, with dvbapii!!! You can find it on OSCam forum, in AZbox HD section, the "sticky" thread with bin files... But I will attach it in this thread, if I can!
smile.gif


FTP to AZbug HD [use the freeware FileZilla Client] and go to PLUGINS folder, then OpenXCAS and create a folder oscamCAS, then give it CHMOD to 755 [right click on the file -> File permissions -> 755 -> OK].

On your PC you can create various files, using a freeware application Notepad++, which you will FTP to oscamCAS folder. All except oscam module itself, which you get from the net, as mentioned and then give CHMOD to 755, as above. If it is named differently -> right click on it -> rename it to oscam and hit Enter on your keyboard.

So, here are the four main configuration files [do not deviate from them, for starters... later, try different ones...] - thanx primarily to B@mbi but also hperez, gianni, subnixonfire, Siri, belami etc. etc.:

openxcas.conf

Code:
[module]
name = oscamCAS
daemon = oscam -d 255
argument = c /PLUGINS/OpenXCAS/oscamCAS/
version = 1.00
api=Yes
wait =5sec
INFO = /tmp/ecm.info
REFRESH = 2
Note: the "-d 255" line is worth its weight in gold, so to speak...:D Now AZbug HD reads the card consistently and fairly efficiently! Thanx to Siri! :thum:

oscam.conf

Code:
# oscam.conf generated automatically by Streamboard [COLOR=#FF0000][B]OSCAM 1.10rc-svn build #5755[/B][/COLOR]
 # Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.conf.txt
 
 [global]
 logfile                       = /tmp/oscam.log
 clientmaxidle                 = 9000
 cachedelay                    = 120
 unlockparental                = 1
 nice                          = 4
 maxlogsize                    = 100
 preferlocalcards              = 1
 saveinithistory               = 1
 lb_mode                       = 100
 
 [monitor]
 port                          = 988
 nocrypt                       = 127.0.0.1,192.168.1.1-192.168.1.253
 aulow                         = 120
 hideclient_to                 = 0
 monlevel                      = 4
 appendchaninfo                = 1
 
 [newcamd]
 port                          = [B]xxxxxx[/B]@[B]xxxx:xxxxxx[/B]
 key                           = 0102030405060708091011121314
 allowed                       = 
 keepalive                     = 1
 mgclient                      = 0
 
 [cccam]
 port                          = [B]xxxxxx[/B]
 reshare                       = 2
 ignorereshare                 = 0
 forward_origin_card           = 0
 version                       = 2.2.1
 updateinterval                = 240
 minimizecards                 = 0
 keepconnected                 = 1
 stealth                       = 1
 reshare_mode                  = 0
 
 [dvbapi]
 enabled                       = 1
 au                            = 1
 boxtype                       = none
 user                          = azbox
 pmt_mode                      = 0
 request_mode                  = 0
 
 [webif]
 httpport                      = 80
 httphelplang                  = en
 httpuser                      = [B]xxxxxx[/B]
 httppwd                       = [B]xxxxxx[/B]
 httprefresh                   = 7
 httpallowed                   = 127.0.0.1,192.168.0.1-192.168.255.255
 httphideidleclients           = 0
 httpreadonly                  = 0
 httpsavefullcfg               = 0

Note: xxxxxx = this you choose, whatever it is... ergo xxxxxx = whatever you desire or whatever the CAID of your smartcard...
wink.gif


You will need to forward the ports here defined, in your modem/router. "Forwarding ports" means to open those ports up to your AZbug HD, so when your peers try to get to you the traffic will not be blocked and it will automatically be directed to AZbox HD, instead of any other device you have hooked onto your home network, via the same modem/router.

oscam.server

Code:
[reader]
 label = azbox-internal
 enable = 1
 protocol = internal
 device = 0
 services = [B]whichever_card_you_have[/B]
 caid = [B]xxxx[/B]
 ident = [B]xxxx:xxxxxx[/B]
 detect = cd
 mhz = 357
 cardmhz = 357
 group = 1
 emmcache = 1,1,2
 lb_weight = 500
 
 
 [reader]
 label = [B]xxxxxx[/B].dyndns.biz
 enable = 1
 protocol = cccam
 device = [B]xxxxxx[/B].dyndns.biz,17000
 user = [B]xxxxxx[/B]
 password = [B]xxxxxx[/B]
 lb_weight = 100
 #inactivitytimeout = 1
 reconnecttimeout = 30
 #audisabled = 1
 group = 2
 cccversion = 2.2.1
 cccmaxhops = 1
 ccckeepalive = 1
 #emmcache = 1,2,2
 #fallback = 1
  
 (...plus as many servers of your colleagues as you have, like the second   example above...)

A note, to explain the name of the file: the first [reader] is your [internal or embedded card] reader, the "server" primarily for yourself, to which the OSCam client part hooks onto, internally, to open the channels.

All the following ones are external [readers]. They are also servers but they are the servers of your peers, to which you hook onto, as a client. I.e. their readers read their cards, not just for themselves, but for you, too.

Hence all are simply "readers", whether local [yours] or remote [virtual, via internet].

The details marked xxxxxx in those you get from your colleagues/peers, like username, password, port and dyndns domain name. Those are necessary to be able to hook onto their servers.

As a client in CCcam protocol one does not need to open various ports, Only servers [your colleagues/"peers" giving you access to their cards] need to do that.

For now, let's just say that your embedded cardreader/internal reader/server should be in Group 1, whereas your CCcam peers should be in Group 2. If you have many C lines you can sub-divide them further, to make it all better optimised/efficient. Or you can add Newcamd ones in Group 3, GBox ones in Group 4 etc. etc. We shall come to that later.

Here's an example:

Code:
http://streamboard.gmc.to/wiki/index.php/OSCam/en/examples/Sky_HD_and_MTV-Unlimited
Many Original smartcards' details are here:

Code:
http://streamboard.gmc.to:8001/wiki/CardsList
oscam.user

Code:
[account]
 user       = azbox
 group      = 1,2
 au         = azbox-internal
 monlevel   = 4
 uniq       = 0
 services   = all
 betatunnel = 1833.FFFF:1702
 keepalive  = 1
 
 [account]
 user       = [B]xxxxxx[/B]
 pwd        = [B]xxxxxx[/B]
 monlevel   = 2
 uniq       = 1
 group      = 1
 au         = 1
 
 (...and so on, as many as you have...)
Note: the file is called oscam.user because in it you are setting various "users" or "clients" to your "server". Each "user" in your file has an "account" with the server. I.e. a user will use your server/services, whether internally [the first one is you and you will hook onto your own card reader/server] or externally.

Externally speaking: partially, you allow your peers access to your server right here, by setting up their username and password. The other parts to allow them access to your server, with which you create C (for your CCcam clients) or N (for your Newcamd clients) lines for your peers/colleagues, are from oscam.conf file, which we will discuss a little bit later, in the P.P.S.

You can divide the [readers] and [accounts] into groups.

For instance, your own internal server [the first "reader"] is in group 1.

All the other "readers" of a certain protocol are in group 2. The next protocol goes to group 3, next one to Group 4 etc.

The very first "account", i.e. "user" has to be in all the groups [for instance, 1,2,3,4], in order to hook both onto your own [internal] server/reader, as well as your colleague's [external] readers/servers. So, this first user [which is yourself] must hook onto both your internal reader/server [group 1], as well as external readers [groups 2, 3, 4 etc.].

The other users/accounts are, in my case, Newcamd protocol clients of mine [me being a server, in this case, passing my smartcard to them], i.e. they are getting access solely to my smartcard [internal] reader/server by being placed in Group 1. That way they will not draw from anything but my smartcard/reader.

Apparently, Newcamd server is meant for this purpose, so this is how it is supposed to be used. The N-lines you [partially] create from this file [oscam.user] and [partially] from Newcamd part of oscam.conf file, are to be given to your colleagues, people you trust. With those lines you pass only your card and nothing else and this is how it is done. These [users] are connected to my internal reader/server via Group 1 and thereby not connected to the CCcam protocol, which busy traffic is placed in Group 2.

This is enough for you to be both a [Newcamd protocol] server, as well as [mainly CCcam] client. You give your card in return for other people's cards. No need to pay for "CS services", run by our little CS entrepreneurs, spoiling the fun for us!!!
wink.gif


I will attach the rest of the files here, including the module itself, so you don't have to search for it too much...
a26.gif
guitar1.gif


A must info is here:

Code:
http://streamboard.gmc.to/wiki/index.php/OSCam/en
Btw, don't be afraid to keep checking out the new versions...
sip%21.gif


Cheers! :cool:

P.S. More details, as to how to work with FileZilla Client and so on - in my "Alternative guide for AZ..."

P.P.S. Thanx to B@mbi, how you create your N and C lines [my translation]:

N-lines

In relation to the parameters from oscam.conf file, one forms an N-line, for a user who uses a CS-server, capable of working with N-lines (like CCcam server, OSCam server…):

Code:
[newcamd]
 port = AAAAA@xxxx:000000
 key = xxxxxxxxxxxxxxxxxxxx
 …
Ergo, N-lines, if you want to give those to anyone, are made like so:

Code:
N: your.dyndns.org AAAAA username1 password1 xxxxxxxxxxxxxxxxxxxx
You must add a user with those details to your oscam.user configuration file, using the specified username1 and password 1.

AAAAA is the port for your NewCamd server in OSCam and it must be opened/directed/forwarded in your router, towards AZbug HD's IP address.

C-lines:

Using the parameters from your oscam.conf file one forms a C-line for a user on CCcam or OSCam servers, using the C-line as a connection with remote cardreaders:

Code:
[cccam]
 port = BBBBB
 …
Code:
C: your.dyndns.org BBBBB username2 password2 no
In your oscam.user file add a user with username2 & password2.

So, BBBBB is a port for your CCcam server in OSCam and it has to be opened/directed/forwarded in your modem/router towards the AZbug HD's IP-address.
 
Last edited:

reddevils

Registered
Messages
27
need help

Hi Gorski

i need some help already stated my replay to you under help in Portugese so if i repeated. sorry

I going to try the Oscam like you stated download the link, un 7_zip got tar.gz but did not understand which file was the module, just started to formate the files with notepad ++. E2 i reading the guide.

just one point in one off the file its set up as CCcam and newcamd work together as one? can that be edit so its oscam - newcam or could all 3 be used. eg spliterdata.txt

or am i putting a spanner in the works

reddevil
 

gorski

Registered
Messages
1,553
Read slowly and do as you are reading it, step by step...

It's all there... exactly how you need it to be...
 

reddevils

Registered
Messages
27
Am in the process off testing OSCam in my system, i need some pointer from y or any one in this forum. at present i have no peers have original card but now fails to open brasil channels amazona 60W telefoinca 7211, if i setup as a reader only for home use on me network, (my plain is later to have 3 azbox in house) share one card, what do i need to do. am i wright that in the CCcam and newcs i should have 127.0.01 as the internal address plus the AZBOX own ip address. so that means the same in the OScam plus the caid #### At presnt i do not have any ports open would that effect the updates for keys, becouse before the clocks change the card worked, when channels were lost i put card in for 30m take out bingo.
and i just seen an another forum that cccam 2.2.1 is only for E2 am using this with muiltCAS on OFW

azboxtvsdk 2.2 to update keys but that gone a bit funny on me ran today and lost all channls.

so y can see iam having a bit of a :mad:days and weeks at sorting this out help me head becoming cloudy. or SP here i come:)
 

gorski

Registered
Messages
1,553
Once again, you need to do it, step by step, slowly - as you are reading my guide, do it at the same time - and as you are doing it, things will begin to clear up... You'll see... ;)

Instead of DynDNS address you simply put the home network IP address (192.168.x.x) and that's it. The rest is the same.

For some CAS you will need BK/IRD/whatever...

Good luck!
 

reddevils

Registered
Messages
27
more if

Y you right keep reading, i tested oscamCAS failed to open any, so going through to to see what missing.

i see in the guide that there is NewCS 1.20RC13, now i need some clearing in this

it talks about viaccess am i right that newcs.xml can read negra cards, any type of card keys?

am steel unable to unlock portugues (Brasil) like Telecine, globo brasil. tried muiltiCAS 1.70D no go. am sure that the problem is the newcs or Cccam is not fully detecting the card.

now that am lookig deep in side the software, do muiltCAS newcs cccam store or fetch form other folders like /var/bin. when i check this out looks to me a bit empty, i have see on other forum that these are need. if that the case can you say where i need to look at and check.

i my need:mecry: s y in SP
 

gorski

Registered
Messages
1,553
If there's no joy on this forum, re. your Nagra card, come to the Spanish one for AZboxHD dot es and ask...

In the meantime, keep reading s l o w l y and doing it as you go along...

Good luck and see you in Sao in February, maybe...
 

reddevils

Registered
Messages
27
Oscam v

download to me PC, extracted file, but only opens folder 1-5 do not know what is oscam file, tried to FTP as Tar.gz to TMP file was unable to locate which folder would i need if to extract by FTP. unable to get OScam to work the version am using 5741 am trying to install your version have been unable to install. need some:mecry:
 

gorski

Registered
Messages
1,553
Crikey!

Module is the biggest of them, usually has a long name. Right click on it and RENAME to oscam. Hit ENTER button on your keyboard.

CHMOD to 755.

Restart AZ HD.

That's for future reference.

I attached one for you here...

Good luck!
 

gorski

Registered
Messages
1,553
Here is a (part of) Nagra example for you, from the links provided above - using OFW (NOT E2!):

http://streamboard.gmc.to/wiki/OSCam/en/examples/Sky_HD_and_MTV-Unlimited

oscam.server

Code:
[reader]
detect    = CD
device    = /dev/ttyUSB1
protocol  = mouse
[B]rsakey[/B]    = <Enter your RSA Key here>
[B]boxkey[/B]    = <Enter your Box Key here>
label     = reader2
emmcache  = 1,3,2
caid      = 1830
ident     = 1830:000000,003411,008011
services  = hdp
group     = 2


Combine it with this, which is from my machine....


opexcas.conf

Code:
[module]
name = oscamCAS
daemon = oscam -d 255
argument = c /PLUGINS/OpenXCAS/oscamCAS/
version = 1.00
api=Yes
wait =5sec
INFO = /tmp/ecm.info
REFRESH = 2


oscam.conf


Code:
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.conf.txt

[global]
#usrfile                       = /tmp/oscamuser.log
#logfile                       = /tmp/oscam.log
#maxlogsize                    = 100
disablelog                    = 1
disableuserfile               = 1
clientmaxidle                 = 9000
cachedelay                    = 120
unlockparental                = 1
nice                          = -1
preferlocalcards              = 1
saveinithistory               = 1
lb_mode                       = 100

[monitor]
port                          = 988
nocrypt                       = 127.0.0.1,192.168.1.1-192.168.1.254
aulow                         = 120
hideclient_to                 = 0
monlevel                      = 4
appendchaninfo                = 1

[newcamd]
port                          = xxxxx@xxxx:000000
key                           = 0102030405060708091011121314
allowed                       = 
keepalive                     = 1
mgclient                      = 0

[cccam]
port                          = xxxxx
reshare                       = 1
ignorereshare                 = 0
forward_origin_card           = 1
version                       = 2.2.1
updateinterval                = 240
minimizecards                 = 0
keepconnected                 = 1
stealth                       = 1

[dvbapi]
enabled                       = 1
au                            = 1
boxtype                       = none
user                          = azbox

[webif]
httpport                      = 80
httphelplang                  = en
httpuser                      = xxxxxxxx
httppwd                       = xxxxxxxx
httprefresh                   = 7
httpallowed                   = 127.0.0.1,192.168.0.1-192.168.255.255
httphideidleclients           = 0
httpreadonly                  = 0
httpsavefullcfg               = 0
oscam.dvbapi (for my needs - yours will be different!]

Code:
# oscam.dvbapi - DVBAPI configuration file for OSCam - DVBAPI settings
# ***** Ignore *****
##### Sky DE i ORF - 19.2E #####
I: 09C4:000000
#I: 1702:000000
##### Total TV - 16E #####
#I: 091F:000000:0008
##### ignore every CAID that was not handled before #####
#I: 0
# ***** Priority *****
##### Canal Digital Sweden 1W #####
P: 0B00:000000:6010
P: 0B00:000000:6020
P: 0B00:000000:6030
P: 0B00:000000:6040
P: 0B00:000000:6050
P: 0B00:000000:6060
P: 0B00:000000:6070
P: 0B00:000000:6080
##### MTV-Networks - 19.2E #####
P: 0B00:000000:6FF1
P: 0B00:000000:6FFA
P: 0B00:000000:6FEF
P: 0B00:000000:6FEE
P: 0B00:000000:6FFF
P: 0B00:000000:6FF3
P: 0B00:000000:6FF0
##### Sky DE i ORF - 19.2E #####
#P: 09C4:000000
P: 1702:000000
##### Sportdigital TV - 19.2E #####
P: 1702::0045
##### Canal Sat France - 19.2E #####
P: 0100:003315
P: 0100:003311
##### TNT Sat France - 19.2E #####
P: 0500:030B00
##### HRT - 13E #####
P: 0500:020a00
##### Cifra+ - 13E #####
P: 0100:000068
##P: 0100:000065
##### D+ - 19.2E #####
P: 0100:004106
##### Sky Italia - 13E #####
P: 093B:000000
##### KD - 23.6E #####
#P: 1722:000000
##### HD+ - 19.2E #####
#P: 1830:000000
#P: 1830:003411
# ***** Mapping *****
##### map caid 1830 always to provider 003411 - 19.2E #####
#M: 1830 1830:003411


oscam.server


Code:
# internal reader = my server

[reader]
label = azbox-internal
enable = 1
protocol = internal
device = 0
mode = 1
services = your_provider
caid = xxxx
ident = xxxx:000000
detect = cd
mhz = 357
cardmhz = 357
group = 1
emmcache = 1,3,2
lb_weight = 500

#external readers = my peer's servers

#Newcamd servers

[reader]
label = xxxxxxxx
enable = 0
protocol = newcamd
device = xxxxxx.dyndns.org,xxxxx
user = xxxxxxxx
password = xxxxxxxx
key = 0102030405060708091011121314
caid = 0500
ident = 0x00:xxxxxx,xxxxxx
services = whichever
reconnecttimeout = 30
group = 3
emmcache = 1,3,2

oscam.user

Code:
# Read more: http://streamboard.gmc.to/oscam/browser/trunk/Distribution/doc/txt/oscam.user.txt

[account]
user                          = azbox
pwd                           = 
group                         = 1,2,3
au                            = 1

[account]
user                          = xxxxxx
pwd                           = xxxxxxxx
group                         = 1
uniq                          = 0
monlevel                      = 2
au                            = 0
caid                          = xxxx

Best of luck!:cool:

P.S. this will cost you a few of the best caipirihnas!!!:p
 
Last edited:

reddevils

Registered
Messages
27
Thanks

Thanks am going to try again tommorrow, don't knwo what happen today but when i was editing some how all plugins, OpenCAS deleted, unit locked up when i got did get the unit back up nada nada, so today put another dish that i have for Star one 70W if no good i point to 43W so i have 60W and 70W or 43W, thanks for the stuff i booked. i will try and try.:thum: for y stuff.
 

reddevils

Registered
Messages
27
need help raskey boxkey

Were and how do i find the rsakey and boxkey for oscam, that's probely why muiltcas newcs is not working for me?

when i do get oscamCAS ready to test, do i need to have in modul.seq

oscamCAS
newcs
cccam
#MultiCAS
#MboxCAS
#ect

what other EMU do i need to support oscamCAS do i need to have CCCam 2.2.1 with dvbapiCAS i am using old FW 0.9.5309.
 

gorski

Registered
Messages
1,553
Were and how do i find the rsakey and boxkey for oscam, that's probely why muiltcas newcs is not working for me?

Yes.

You find them in your receiver or card. It needs some special SW/skills...

when i do get oscamCAS ready to test, do i need to have in modul.seq

Yes, you need to add OSCam to it. This is what it should look like:

Code:
oscamCAS
#newcs
#cccam
#MultiCAS
#MboxCAS

what other EMU do i need to support oscamCAS do i need to have CCCam 2.2.1 with dvbapiCAS i am using old FW 0.9.5309.

None. Please, read slowly what is written above...
 

reddevils

Registered
Messages
27
Thanks again

Got that, i need to chack y say to combine the oscam.server with opencas.conf still keep name as .server and keep .conf, and that sw for finding things as i know its not a done thing;)
 

reddevils

Registered
Messages
27
just checking when edit note++

just need to check, when wrighting in note++, i take it y can use tab and space bar to move the =?

enabe (Tab) = 1
detedt = cd

i like to keep in a nice line, if its just space i go nuts

like i said am no programer
 

patelkaushikp

Registered
Messages
39
i have problems in azbox Premium HD + with Mcas

unknown card.(0000)

SW Versiom : 5020 & 5309

anybody know where is problems ?
 
Top