Project

General

Profile

Descrambling with oscam, missing ca0 device.

Added by Harpo Wned about 9 years ago

Hello,

I'm trying to use TVHeadend 4.0.5 together with Oscam r10962. I'm using Ubuntu 14.04 x64, and my tuner is a Hauppauge WinTV-HVR4000 DVB-S/S2/T/Hybrid.

I'm not really sure if this problem is related to tvheadend or oscam, so please bear with me if it's not your problem.

Free to Air channels work fine.

When I try to watch an encrypted channel, I see this on the oscam log:
(dvbapi) ERROR: Can't open device /dev/dvb/adapter0/ca0 (errno=2 No such file or directory)

The ca0 device does not exist:
ls /dev/dvb/adapter0/
demux0 demux1 dvr0 dvr1 frontend0 frontend1 net0 net1

I checked the dvbapi documentation, and it seems to be some hardware related to the decoding. Maybe my cheap tuner does not have this hardware? Can it be decoded by software instead? Is this oscam's or tvheadend's job?


Replies (5)

RE: Descrambling with oscam, missing ca0 device. - Added by Harpo Wned about 9 years ago

Hello,

I solved it. Here's the solution in case anyone finds this error on a search:

In order to use the camd.socket file for communication between tvheadend and oscam, your tuner needs to have some descrambling hardware. This is the preferred method if available, but some cheap tuners lack this hardware.

In this case, the camd.socket method cannot be used. You have to use tcp communication instead. This will enable software csa descrambling.

So, on tvheadend:

Mode: OSCam TCP (rev >= 9574)
Address: 127.0.0.1
Port: 9000

On oscam.conf:
[dvbapi]
enabled = 1
au = 1
pmt_mode = 4
listen_port = 9000
boxtype = pc

This will get both programs communicating just fine.

RE: Descrambling with oscam, missing ca0 device. - Added by Simple Simon about 9 years ago

What EXACTLY are you trying to do? read a physical card?

RE: Descrambling with oscam, missing ca0 device. - Added by Harpo Wned about 9 years ago

Hello,

I am using a remote reader, so there's no physical card on my system.

This configuration however, shows only the configuration for the connection between oscam and tvheadend, which is the same regardless of where the keys are obtained from.

The difference between a physical and remote reader would be on the readers section, which is not shown here, as it's not specifically relevant to operation with tvheadend.

The ca0 device is the part of the tuner which performs the descrambling by hardware, once the keys are known (not the physical card reader). Hence the need to perform this descrambling by software if the tuner doesn't have it.

RE: Descrambling with oscam, missing ca0 device. - Added by Simple Simon about 9 years ago

Is the remote line an N-Line? if so Oscam isn't even needed as you just enter it into the cwc section in TVHeadend.

What kind of tuner card are you using?

RE: Descrambling with oscam, missing ca0 device. - Added by Harpo Wned about 9 years ago

Hello,

The remote protocol is cccam, so a middleware is needed.

The tuner model is on the first post.

Note that the issue is solved, I posted the answer on the second post, so that it might help other people with the same issue.

    (1-5/5)