Project

General

Profile

Help with oscam descrambling

Added by void walker about 5 years ago

I have searched the internet for days now, trying to figure this out, but it's just impossible. I have not found any page/wiki clearly describing oscam to someone that never had experience with it.

I want to descramble some channels, using a dvb-c tuner, nagra2 is the system.
I have the SoftCam.key in /var/keys, I have installed the latest oscam-smod (https://github.com/Schimmelreiter/oscam-smod), latest tvheadend from git.
Tvheadend CA config is using "CAPMT (Linux Network DVBAPI)", 127.0.0.1 port 9000 - it connects succesfully to oscam.
Oscam configs are like this (at the moment, I keep trying random stuff hoping it will make it work):
oscam.conf:
[dvbapi]
enabled = 1
au = 1
pmt_mode = 4
listen_port = 9000
user = tvh
read_sdt = 2
write_sdt_prov = 1
boxtype = pc

user.conf
[account]
user = tvh
pwd = tvh
group = 1

oscam.server:
[reader]
label = emulator
protocol = emu
device = emulator
#disablecrccws_only_for = 0E00:000000
#caid = 0500,0604,090F,0E00,1010,1801,2600,2602,2610,4AE1
detect = cd
#ident = 0500:000000,023800,021110,007400,007800;0604:000000;090F:000000;0E00:000000;1010:000000;1801:000000,007301,001101,002111;2600:000000;2602:000000;2610:000000;4AE1:000011,000014,0000FE
group = 1
emmcache = 2,1,2,1
emu_auproviders = 0604:010200;0E00:000000;1010:000000;2610:000000;4AE1:000011,000014,0000FE

[reader]
label = softcamkey
description = digicw
protocol = constcw
device = /var/keys/SoftCam.Key
caid = 0E00,0500,1801,2600
group = 1
reconnecttimeout = 0

The emulator part I got from here (the default oscam-emu config): https://github.com/oscam-emu/oscam-patched/wiki/Basic-config
In tvheadend I get this in the logs: 2019-09-24 03:45:35.587 subscription: 0091: service instance is bad, reason: No descrambler
Oscam logs show no attempts to decode anything, just a succesful user connection, and also the 3 keys that I have in SoftCam.key being loaded into memory.
I have no idea what caid and ident are supposed to mean or how they work.
I am not sure if the protocol I am supposed to use is "constcw" or "emulator"

Please help, this has worn out my mental health considerably.

Edit: omg i did it, it works. I think I had to restart tvheadend too as well as oscam between config file edits.