Project

General

Profile

Need help: Any experts on oscam/tvheadend here?

Added by Anders R about 13 years ago

Hello ppl.
Really need som help here; this used to work w/tvheadend+newcs, but after fiddling with newcs.xml it won't work anymore.
Tried a lot of different newcs options, then switched to oscam. Still noe luck.

Tvheadend 2.12 (also tried latest svn)
Norwegian (Telenor) IPTV solution (h264, HE-AAC, multicast, rtp)
Conax encryption, CAID 0b04
CAS5 card, not paired
Oscam 1.20 svn

Oscam connects to the card, identifies the packages, caid, find all entitlements etc.
The card works in STB

Unencrypted channels works.

When accessing an encrypted channel in TvHeadend:

oscam.log
-----------------------------------
011/08/21 14:27:49 9E0BD60 c client connected to 15050 port
2011/08/21 14:27:49 9E0BD60 c encrypted newcamd:15050-client 127.0.0.1 granted (tvheadend, au=on (1 reader))
2011/08/21 14:27:49 9E0BD60 c user tvheadend authenticated successfully (generic)
2011/08/21 14:27:49 9E0BD60 c AU enabled for user tvheadend on reader omnikey
2011/08/21 14:28:00 9E07660 r ecm:
2011/08/21 14:28:00 9E07660 80 70 6C 70 65 64 20 3A 42 AC 52 77 A6 3E C2 57
2011/08/21 14:28:00 9E07660 FD BC 59 54 AE 0C FE 4F 64 91 54 55 4A EB 86 11
2011/08/21 14:28:00 9E07660 BD 16 B0 77 FD 6D 63 0E 7A 51 43 EA 5E 4C 80 BE
2011/08/21 14:28:00 9E07660 EC 4C 2B E1 2E EB 9E A3 09 A7 2A 19 C6 2A 03 24
2011/08/21 14:28:00 9E07660 07 E0 AF 85 5A B9 25 B2 8C 49 A7 65 28 35 B5 8A
2011/08/21 14:28:00 9E07660 52 51 64 64 0F 3E 7A 9D 04 77 0D 1C 49 91 3B E1
2011/08/21 14:28:00 9E07660 1B 3B A4 18 23 25 D0 D1 55 33 02 03 50 02 00
2011/08/21 14:28:01 9E07660 r Error processing ecm for caid 0B04, srvid 0000 (servicename: ) on reader omnikey.
2011/08/21 14:28:01 9E0BD60 c tvheadend (0B04&000000/0000/6F:D6D7): not found (226 ms) by omnikey (of 1 avail 1)
2011/08/21 14:28:01 9E0BD60 c cw:
2011/08/21 14:28:01 9E0BD60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2011/08/21 14:28:01 9E07660 r ecm:
2011/08/21 14:28:01 9E07660 81 70 6C 70 65 64 20 3F 8B 26 82 E2 3A 72 8B 6C
2011/08/21 14:28:01 9E07660 FF D5 D9 ED 48 CF 9A 26 B5 29 DB 9B 9A C3 CC 2F
2011/08/21 14:28:01 9E07660 01 33 21 01 F9 D9 F0 96 69 A7 33 2E E7 41 36 20
2011/08/21 14:28:01 9E07660 D5 BC 57 C3 46 F0 C0 8C 2F 62 EE EA 93 F5 60 EA
2011/08/21 14:28:01 9E07660 99 67 8F 16 E0 FE 64 AA 5C 9C C2 02 4E 18 6F 5A
2011/08/21 14:28:01 9E07660 58 1A E6 97 8D 10 88 10 E6 3A C7 9E 6F 34 4C 78
2011/08/21 14:28:01 9E07660 B7 88 E4 9A 2D BD 2A 88 5A F2 02 03 50 02 00
2011/08/21 14:28:02 9E07660 r Error processing ecm for caid 0B04, srvid 0000 (servicename: ) on reader omnikey.
2011/08/21 14:28:02 9E0BD60 c tvheadend (0B04&000000/0000/6F:7A98): not found (216 ms) by omnikey (of 1 avail 1)
-------------------------------

Configs:
oscam.conf:
------------------------------

[global]
usrfile = /opt/oscam/oscamuser.log
logfile = /opt/oscam/oscam.log
cwlogdir = /opt/oscam/etc/cw
clienttimeout = 10000
nice = -1
preferlocalcards = 1
saveinithistory = 1

[newcamd]
port = 15050@0b04:000000
key = 0102030405060708091011121314

[webif]
httpport = 15080
httpuser = myuser
httppwd = mypassword
httpallowed = 127.0.0.1,10.0.0.1,10.0.0.189
-------------------------------------
oscam.user:
------------------------------------

[account]
user = tvheadend
pwd = hts
uniq = 0
group = 1
ident = 0b04:000000
caid = 0b04
au = omnikey


oscam.server:
-------------------------------------

[reader]
label = omnikey
protocol = pcsc
device = 0
pincode = 1234
caid = 0B04
detect = cd
mhz = 368
cardmhz = 368
group = 1
emmcache = 1,3,2
------------------------------


Replies (4)

RE: Need help: Any experts on oscam/tvheadend here? - Added by Anonymous about 13 years ago

Hi

I have no problem using "HTS Tvheadend git-9d775da" and "OSCam cardserver v0.99.4svn, build #3146" with Omnikey Cardman 3021 or Adteknik USB Phoenix (http://www.adteknik.se/english/usbphoenix.htm).

From your oscam config file I think you are using the wrong caid for conax. Try to use 0B00 insted of 0B04.

Her are mine Oscam config files. I the oscam.server I have commented out use of the Omnikey Card Reader because for the moment I use the Adteknik USB Phoenix which I can overclock.

oscam.conf

[global]

[newcamd]
key = 0102030405060708091011121314
port = 15050@0B00:000000
keepalive = 1

[webif]
httpport = 8888
httpuser = dummy
httppwd = dummy
httpallowed = 127.0.0.1,10.0.0.0-10.0.0.255

oscam.server

#Omnikey Cardman 3021
#[reader]
#label = omnikey
#protocol = pcsc
#device = 0
#detect = CD
#group = 1
#emmcache = 1,3,2
#caid = 0B00

#AD-Teknik AB Multiprogrammer 3.6 USB
[reader]
label = adteknik
protocol = mp35
detect = CD
device = /dev/adph0
mhz = 600
group = 1
emmcache = 1,3,2
caid = 0B00

oscam.user

[account]
user = oscam
pwd = oscam
group = 1
au = adteknik

Hope it helps
Harald

RE: Need help: Any experts on oscam/tvheadend here? - Added by Anders R about 13 years ago

Takk for svar. :-)

On startup oscam reports:
2011/08/24 11:05:49 9FD9660 r type: Conax, caid: 0B04, serial: 1326000140, hex serial: 4f09280c, card: v64

Both Oscam and newcs identifies caid as 0B04; and TvHeadend sends CAID 0B04 in the requests.
The weird part is that this used to work.

I've attached a .zip file with the last versions of my oscam config files, a -d 255 log of oscam startup+trying to decode 2 channels.
Also included is a 20s raw dump of an encrypted channel.

If anyone can see what's wrong I'd love to know what I've done wrong, and if possible what to do to fix it.

info.zip (17.5 MB) info.zip logs, configs + streamdump

RE: Need help: Any experts on oscam/tvheadend here? - Added by Anonymous about 13 years ago

Hei igjen

I not an expert, but after checking the oscam.log I see error about writing ECM message to the cardreader through the PCSC daemon:

write to cardreader omnikey:
2011/08/24 11:16:00 9D9A660 DD CA 00 00 04
2011/08/24 11:16:00 9D9A660 r sending 5 bytes to PCSC : DD CA 00 00 04
2011/08/24 11:16:00 9D9A660 r received 6 bytes from PCSC with rv=0 : 31 02 00 00 90 12
2011/08/24 11:16:00 9D9A660 r PCSC doapi (0 ) (T=0), 6
2011/08/24 11:16:00 9D9A660 r Error processing ecm for caid 0B04, srvid 0000 (servicename: ) on reader omnikey.

This is maybe the same issues I have had when I tried to switch from Fedora 11 to Archlinux. On Fedora everything works with PCSC, ccid and vdr-sc, but on Archlinux nothing works. I used the same vdr-sc config on the archlinux box, but nothing works. After lots of investigation I suspected archlinux had a issue with PCSC and buggy vdr-sc code. So I bought a Adteknik usb-serial reader which didn't used PCSC and it worked.

Check on your Linuxbox if PCSC (PCSC-tools,pcsc-perl) and ccid are installed and have the same version as you had before you got this problems?

Harald

RE: Need help: Any experts on oscam/tvheadend here? - Added by Anders R about 13 years ago

Hello again.
I have now set up another pc - ubuntu 11.04, with a smartmouse reader (no pcsc - direct access to ttyUSB0).
The infinity works, I can see my entitlements etc, but i still get the same error. (tvheadend (0B04&000000/0000/6F:484A): not found (0 ms) by reader-1 (of 1 avail 1)

Same config files except for oscam.server, which has mouse instead of pcsc.

I also tried newcs 1.67 rc1 with the infinity on this pc - same story. Newcs communicates with the card, can't descramble.

[ 22:04:49 ] [ Conax ] Viewing status: 0000
[ 22:04:49 ] [ 0B04 ] Card ECM took: 0s 273102us
[ 22:04:49 ] [ SID ] Updating SID 0000 for Reader 0 (Smartmouse) bad - SO is: 0
[ 22:04:49 ] [ ECM Cache ] Adding dynamic Cache entry at 3
[ 22:04:49 ] [ ECM Cache ] Hits 1 Total 4
[ 22:04:49 ] [ 0B04 ] Ecm Cache Add took: 0s 21us
[ 22:04:53 ] [ Newcamd:15051 ] ECM <- tvheadend
[ 22:04:53 ] [ SID ] Checking for SID 0000 for Reader 0 (Smartmouse) - SO is: 0
[ 22:04:53 ] [ Newcamd:15051 ] Accepted SID 0000 on Reader 0 (Smartmouse) from tvheadend
[ 22:04:53 ] [ ECM Added] [CAID 0000][Provider 00000000][SID 0000]
[ 22:04:53 ] [ ECM Cache ] Hits 2 Total 5 [CRC 52E69717] - returning -2
[ 22:04:53 ] [ 0B04 ] Ecm Cache Check took: 0s 14us [CRC 52e69717]
[ 22:04:53 ] [ ECM ] Cache Hit - Returning value -2

Even set up newcs on a windows-pc with omnikey reader - same problem here.

I'm starting to think they've done something to the stream.
Shouldn't tvHeadedend send the SID inn the request?

I'm really at a loss here.. any help would be appreciated!!

    (1-4/4)