Forums » Descrambling »
How to connect tvheadend to OSCAM on different machine with capmt
Added by James Dean almost 10 years ago
Hello!
I have the following setup:
OSCAM on Router
TVheadend on Synology NAS
Now I want to connect tvheadend to oscam using dvbapi.
When I select capmt with oscam tcp I get always a strange port replied (I enter eg. port 1 and the error is that it can't connect to port 65536, different error with different ports).
Any ideas on this??
Thanks!
KR,
James
Replies (3)
RE: How to connect tvheadend to OSCAM on different machine with capmt - Added by James Dean almost 10 years ago
OK ... somehow strange ...
The configures port is when used multiplied with 65536.
When dividing by 65536 in the source and recompile the port is fine and connection works.
But: Still no descrambling.
TVheadend says:
2014-12-17 14:24:11.000 [ INFO]:capmt: Router: mode 3 connected to xxx.xxx.xxx.xxx:12025 (single)
2014-12-17 14:24:11.000 [ DEBUG]:capmt: Router: adding ECMPID=0x10E (270), CAID=0xD95 (3477) PROVID=0x0 (0)
2014-12-17 14:24:11.000 [ DEBUG]:capmt: Router: Trying to obtain key for service "ORF1 HD"
2014-12-17 14:24:11.000 [ TRACE]:capmt: Router: Sending message to socket 23 (sid 4911)
2014-12-17 14:24:11.000 [ TRACE]:capmt: 9F 80 32 82 00 24 03 13 2F 03 00 19 01 82 02 00 ..2..$../.......
2014-12-17 14:24:11.000 [ TRACE]:capmt: 08 81 08 00 00 00 00 03 EF 00 01 84 02 00 6B 09 ..............k.
2014-12-17 14:24:11.000 [ TRACE]:capmt: 04 0D 95 E1 0E 01 00 01 00 06 ..........
2014-12-17 14:24:11.002 [ TRACE]:capmt: Router: Received message from socket 23
2014-12-17 14:24:11.002 [ TRACE]:capmt: 08 80 3C 6F 2B 00 00 01 0E 80 00 00 00 00 00 00 ..<o+...........
2014-12-17 14:24:11.002 [ TRACE]:capmt: 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 ................
2014-12-17 14:24:11.002 [ TRACE]:capmt: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2014-12-17 14:24:11.002 [ TRACE]:capmt: 00 00 00 00 00 00 00 00 00 00 00 00 00 0B B8 00 ................
2014-12-17 14:24:11.002 [ TRACE]:capmt: 00 00 04
Oscam says:
2014/12/17 14:24:11 AF98E0 c [DVBAPI] Receiver wants to demux srvid 132F on adapter 0008 camask 0100 index 0000 pmtpid 0000
2014/12/17 14:24:11 AF98E0 c New program number: 132F (ORF1 HD) [pmt_list_management 3]
2014/12/17 14:24:11 AF98E0 c [DVBAPI] Demuxer #0 trying to descramble PID #0 CAID 0D95 PROVID 000000 ECMPID 010E ANY CHID PMTPID 0000 VPID 0001
But nothing happens.
oscam.conf :
[dvbapi]
enabled = 1
pmt_mode = 4
listen_port = 12025
boxtype = pc
Any ideas why it is not working??
Or does anyone have a log-file how it should look like??
Thanks!
KR,
James
RE: How to connect tvheadend to OSCAM on different machine with capmt - Added by James Dean almost 10 years ago
Small update!
As the posted Bug 2259 was fixed absolutely quickly I replaced capmt.c with the fixed version (no need for dividing anymore).
Nevertheless it is not working!
KR,
James
RE: How to connect tvheadend to OSCAM on different machine with capmt - Added by James Dean almost 10 years ago
Update on this issue!
As I it didn't work to connect via OSCAM tcp-mode to another machine I installed a OSCAM instance on my Synology NAS (where also tvheadend is running).
Status:- tvheadened connects to OSCAM
- OSCAM sees the connection and asks for the key at the OSCAM-server
- OSCAM receives the key
- Screen stays black
OSCAM log:
2014/12/18 15:58:45 10193D18 c dvbapi (0D95&000004/0000/132F/F0:FA3974EDDBED965C2DFB5700EC0A04C8): found (218 ms) by Router_Keller - ORF 1 HD [CW-ICE]
2014/12/18 15:58:55 10193D18 c dvbapi (0D95&000004/0000/132F/F0:B50D5EDBBD26E5E77767388BC3F74E76): found (218 ms) by Router_Keller - ORF 1 HD [CW-ICE]
2014/12/18 15:59:05 10193D18 c dvbapi (0D95&000004/0000/132F/F0:C7B2168CAFE21CC1204116388112D7DA): found (219 ms) by Router_Keller - ORF 1 HD [CW-ICE]
tvheadend log:
2014-12-18 15:51:50.685 [ INFO]:capmt: Router active
2014-12-18 15:51:50.686 [ DEBUG]:capmt: Router: Created socket 27
2014-12-18 15:51:50.687 [ INFO]:capmt: Router: mode 3 connected to xxx.xxx.xxx.xxx:12025 (single)
2014-12-18 15:52:01.992 [ INFO]:capmt: Router: Starting CAPMT server for service "ORF1 HD" on adapter 8 seq 0x0001
2014-12-18 15:52:01.992 [ DEBUG]:capmt: Router: New caid 0x0D95 for service "ORF1 HD"
2014-12-18 15:52:01.992 [ DEBUG]:capmt: Router: adding ECMPID=0x10E (270), CAID=0xD95 (3477) PROVID=0x0 (0)
2014-12-18 15:52:01.992 [ DEBUG]:capmt: Router: Trying to obtain key for service "ORF1 HD"
Obviously tvheadend doesn't recognize that the key was received ...
Any ideas on this??
Thanks!
KR,
James