Project

General

Profile

OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP)

Added by Gary Brown about 10 years ago

Hi all I thought i'd post this info here for people to copy to setup there OSCAMs for use with clines and tvheadend (no need for cccam)

once you have OSCAM configured as bellow you can use campt connection with the following settings
Mode = 4
Socket = /tmp/camd.socket
port = 9000

Please note with the settings bellow,I cannot explain what some/most settings are for I just know this is what works for me.

oscam.conf

[global]
logfile = stdout
fallbacktimeout = 3
bindwait = 5
nice = -1
maxlogsize = 200
waitforcards = 0
preferlocalcards = 1
lb_mode = 1
lb_save = 100
lb_savepath = /usr/local/stat
lb_auto_timeout_t = 26000

[anticasc]
enabled = 1

[cache]

[newcamd]

[dvbapi]
enabled = 1
au = 1
request_mode = 1
user = tvheadend
boxtype = pc

[webif]
httpport = 8888
httprefresh = 2
httppollrefresh = 2
httpallowed = 127.0.0.1,192.168.0.0-192.168.254.254

oscam.user

[account]
user = tvheadend
pwd = tvheadend
group = 1
au = 1
uniq = 0

oscam.server REPLACE the parts in itallics

[reader]
label = NAME
protocol = cccam
device = IP/ADDRESS,_PORT_
user = username
password = password
inactivitytimeout = 30
group = 1
emmcache = 1,1,2
cccversion = 2.3.0
cccmaxhops = 5
ccckeepalive = 1

if you want biss key support use the following reader below as well
[reader]
label = myconstantcw
enable = 0
protocol = constcw
device = /etc/oscam/bissconstant.cw
caid = 2600
group = 1


Replies (9)

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Marcel Meurer about 10 years ago

thx for writing those infos down. i have a few follow-up questions though.
what settings do you use in your tvheadend CA section? What versions of TVhead and Osacm are you using?
thx in advance.

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by thomas temp almost 10 years ago

Gary Brown wrote:

once you have OSCAM configured as bellow you can use campt connection with the following settings
Mode = 4
Socket = /tmp/camd.socket
port = 9000

thanks Gary.

I'm in the same boat --- I have a Cline (which works well in my TV box) ans want let it work in TVheadend + Oscam.

However, I haven't figure out yet.

the CSA section I'm using is code work client (CWC) while I noticed you used campt section. Probably that's the problem.

Could you please let me now how to configure the oscam as above?

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Openelec Junkie over 9 years ago

I'm using Openelec 5.0.8, TVHeadend and OSCAM with a CLINE and I'd just like to share my settings that work perfectly using newcamd (for some reason I was getting a connection rejected error (unknown user) when using camd, not sure why) so here they are:

oscam.conf

[global]
logfile = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/oscam.log
disableuserfile = 0
clienttimeout = 9000
nice = -1
usrfile = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/oscamuser.log
cwlogdir = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/cw
emmlogdir = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/emm
lb_save = 100
suppresscmd08 = 1

[cache]
delay = 25

[cs378x]
port = 9000
serverip = 127.0.0.1

[newcamd]
port = 15050@****:000000
serverip = 127.0.0.1
keepalive = 1

[dvbapi]
enabled = 1
au = 1
request_mode = 1
user = tvheadend
boxtype = pc

[webif]
httpport = 8888
httprefresh = 2
httppollrefresh = 2
httpallowed = 127.0.0.1,192.168.0.0-192.168.254.254
oscam.user

[account]
user = tvheadend
pwd = tvheadend
au = share1
group = 1

oscam.server

[reader]
label = share1
protocol = cccam
device = <your_server>,<your_port>
user = your username
password = your password
inactivitytimeout = 30
cacheex = 1
group = 1
emmcache = 1,1,0,0
cccversion = 2.2.1
cccmaxhops = 2
ccckeepalive = 1
cccreshare = 1

In TVHeadend CA tab add a Newcamd account with the relevant username and password and port number for the user above and with the hostname as localhost. Make sure the newcamd key is all zeros or it doesn't connect correctly. You can copy and paste the key from the newcamd config in the OSCAM web ui.

Hopefully this helps someone as I had a nightmare trying to work this out.

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Openelec Junkie over 9 years ago

Updated config much easier using DVBAPI -

[dvbapi]
enabled = 1
au = 1
request_mode = 1
user = tvheadend
boxtype = pc-nodmx

The screenshot attached shows the config in TVHEADEND CA's

It really is that simple. I'm not sure why everywhere says anything about newcamd as it is quite flaky. Using the setup above is rock solid and a lot faster to descramble on a single box setup.

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Jay Tee over 9 years ago

Newcamd setup:

I found out that the "DES Key" in Tvheadend needs to be entered (or copy&paste) is following format:

0102030405060708091011121314

instead of:

01:02:03:04:05:06:07:08:09:10:11:12:13:14

Otherwise OSCAM logfile will show the errors:

(newcamd) client connected to xxxxxx port
(newcamd) Connection closed to client
(client) anonymous disconnected from 192.168.0.xxx

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Matt Writer over 9 years ago

Jay Tee wrote:

Newcamd setup:

please stop using newcamd in tvheadend, there is absolutely no reason for it.
look at the post above you, and use the dvbapi solution (as of now, oscam even supports net protocol dvbapi connections, so the two don't even need to be physically on the same machine).

everything else related to connecting to some server, some readers you physically have, some exotic adapters, some shady source ( :P ) can then be done entirely in oscam (without even touching anything of the tvheadend setup) and thus avoiding any confusion and / or touching any weird (and possibly less than legal) subjects about descrambling.

set tvheadend to behave as a dvbapi client for oscam, that makes sure that tvheadend will receive ANY kind of descrambling from oscam, no need to setup any caids etc in tvheadend, no des keys, no nothing ... make tvheadend act like a tuner, the way it's meant to be. you'll thank us if you can change your oscam any way you want without the need to pay attention to your settings in tvheadend (just set tvheadend to use default dvbapi settings of oscam, and you're all set).

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Jay Tee over 9 years ago

It's not obvious in the posts above how to setup Tvheadend and DVBapi to connect to OSCAM server other than on the local machine, i.e. 192.168.0.xxx. Maybe someone can provide an example?

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Matt Writer over 9 years ago

Jay Tee wrote:

It's not obvious in the posts above how to setup Tvheadend and DVBapi to connect to OSCAM server other than on the local machine, i.e. 192.168.0.xxx. Maybe someone can provide an example?

what do you mean not obvious ?
IP is entered where it says IP ofc (it says "Camd.socket Filename / IP Address (TCP mode)") and Port is obviously entered where it says "Listen / Connect Port".

There are no username and password, you're doing a dvbapi connection, not a newcamd connection.

RE: OSCAM SETUP FOR CLINES AND TVHEADEND (MY SETUP) - Added by Anonymous over 8 years ago

I followed this setup, oscam's reader access starts well and Tvh logs in successfully. But when I open a decrypted channel, Tvh hangs and I end up with the error message at the oscam log :
"(dvbapi) ERROR: Can't open device /dev/dvb/adapter0/demux0 (errno=2 No such file or directory)"

My setup is a openelec box with Tvh 4.1-1233 and SAT>IP from an OctopusNet device. Is that able to use DVBapi ?

    (1-9/9)