Hey Cedric, you need to understand dvbapi's concept, whereas dvbapi is always on all boxes a local connection. Means you an oscam installation localy on your VDR, what can provide local services or connect to a second instance. These remote connections are always defined as readers within oscam. I appended a HowTo, I guess you will get a feeling what to do. There's an example, oscam connecting to a camd3 local, but this can reside on any other ip address instead of 127.0.0.1 It's not for public distribution now you have it at all from me … ;-) Due to many stability issues I stopped using dvbapi in Feb. this year and went back to sc connecting to oscam using newcamd, this runs rocksolid since that time, incl. updating my Provider cards … === Kind regards fnu From: vdr-bounces@xxxxxxxxxxx [mailto:vdr-bounces@xxxxxxxxxxx] On Behalf Of cedric.dewijs@xxxxxxxxxx Hi All, 013/12/24 16:14:37 14F4DA8 c [DVBAPI] Receiver sends PMT command 3 for channel 001F 2013/12/24 16:14:37 14F4DA8 c [DVBAPI] Receiver wants to demux srvid 001F on adapter 0000 camask 0001 index 0000 2013/12/24 16:14:37 14F4DA8 c [ADD PID 0] CAID: 0B00 ECM_PID: 0BCB PROVID: 000000 2013/12/24 16:14:37 14F4DA8 c Found 1 ECMpids and 2 STREAMpids in PMT 2013/12/24 16:14:37 14F4DA8 c [DVBAPI] Receiver wants to demux srvid 001F on adapter 0000 camask 0001 index 0000 2013/12/24 16:14:37 14F4DA8 c New program number: 001F (0B00:001F unknown) [pmt_list_management 3] 2013/12/24 16:14:37 14F4DA8 c [DVBAPI] Demuxer #0 no suitable readers found that can be used for decoding! 2013/12/24 16:14:37 14F4DA8 c [DVBAPI] Demuxer #0 (re)starting decodingrequests on all 1 ecmpids! 2013/12/24 16:14:37 14F4DA8 c [DVBAPI] Demuxer #0 no suitable readers found that can be used for decoding! 2013/12/24 16:14:37 14F4DA8 c [DVBAPI] Demuxer #0 (re)starting decodingrequests on all 1 ecmpids! 2013/12/24 16:14:38 14F4DA8 c [DVBAPI] Demuxer #0 no suitable readers found that can be used for decoding! 2013/12/24 16:14:38 14F4DA8 c [DVBAPI] Demuxer #0 (re)starting decodingrequests on all 1 ecmpids! 2013/12/24 16:14:38 14F4DA8 c [DVBAPI] Demuxer #0 no suitable readers found that can be used for decoding! 2013/12/24 16:14:39 14F4DA8 c [DVBAPI] Demuxer #0 (re)starting decodingrequests on all 1 ecmpids! 2013/12/24 16:14:39 14F4DA8 c [DVBAPI] Demuxer #0 no suitable readers found that can be used for decoding! 2013/12/24 16:14:39 14F4DA8 c ERROR: Can't open device /dev/dvb/adapter0/ca0 (errno=2 No such file or directory Dec 24 16:14:37 debian vdr: [14383] DVBAPI: 0.0 set CAM decrypt (SID 31, caLm 4, HasCaDescriptors 1) Dec 24 16:14:37 debian vdr: [14808] streamdev-livestreaming thread started (pid=14370, tid=14808) Dec 24 16:14:37 debian vdr: [14807] streamdev-writer thread started (pid=14370, tid=14807) Dec 24 16:14:37 debian vdr: [14809] receiver on device 1 thread started (pid=14370, tid=14809) Dec 24 16:14:37 debian vdr: [14810] TS buffer on device 1 thread started (pid=14370, tid=14810) Dec 24 16:14:39 debian vdr: [14383] client (HTTP) 192.168.31.112:58954 has closed connection Dec 24 16:14:39 debian vdr: [14383] streamdev-server: closing HTTP connection to 192.168.31.112:58954 Dec 24 16:14:39 debian vdr: [14808] streamdev-livestreaming thread ended (pid=14370, tid=14808) Dec 24 16:14:39 debian vdr: [14383] DVBAPI: 0.0 set CAM decrypt (SID 31, caLm 5, HasCaDescriptors 1) Dec 24 16:14:39 debian vdr: [14810] TS buffer on device 1 thread ended (pid=14370, tid=14810) Dec 24 16:14:39 debian vdr: [14809] buffer stats: 0 (0%) used Dec 24 16:14:39 debian vdr: [14809] receiver on device 1 thread ended (pid=14370, tid=14809) Dec 24 16:14:39 debian vdr: [14807] streamdev-writer thread ended (pid=14370, tid=14807) Dec 24 16:14:39 debian vdr: [14383] buffer stats: 0 (0%) used Dec 24 16:08:51 debian vdr: [14370] loading plugin: /usr/lib/vdr/plugins/libvdr-dvbapi.so.1.7.28 Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/setup.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/sources.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/diseqc.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/scr.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/channels.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/timers.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/commands.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/reccmds.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/svdrphosts.conf Dec 24 16:08:51 debian vdr: [14370] loading /var/lib/vdr/keymacros.conf Dec 24 16:08:52 debian vdr: [14370] DVBAPI: Probe: capturing device 0/0 (subsystem ID 00000000) Dec 24 16:08:52 debian vdr: [14370] DVBAPI: creating standard device 0/0 Dec 24 16:08:52 debian vdr: [14370] new device number 1 Dec 24 16:08:53 debian vdr: [14370] frontend 0/0 provides DVB-T with QPSK,QAM16,QAM64 ("DiBcom 7000PC") Dec 24 16:08:53 debian vdr: [14370] DVBAPI: Using software decryption on card 0/0 Dec 24 16:08:53 debian vdr: [14370] DVBAPI: SCCIAdapter: built caid table with 1 caids for 65 channels Dec 24 16:08:53 debian vdr: [14370] found 1 DVB device Dec 24 16:08:53 debian vdr: [14380] SC-CI adapter on device 0 thread started (pid=14370, tid=14380) Dec 24 16:08:53 debian vdr: [14370] initializing plugin: dvbapi (1.0.5): DVBAPI type SOFTCAM Dec 24 16:08:53 debian vdr: [14370] DVBAPI: plugin version 1.0.5 initializing (VDR 1.7.28) Dec 24 16:08:53 debian vdr: [14370] SVDRP listening on port 6419 Dec 24 16:08:53 debian vdr: [14370] starting plugin: dvbapi Dec 24 16:08:53 debian vdr: [14370] DVBAPI: plugin started Dec 24 16:08:53 debian vdr: [14370] DVBAPI: 0.0: doReply changed, reset triggered Dec 24 16:08:53 debian vdr: [14370] DVBAPI: 0.0: now using CAIDs version 16843009 Dec 24 16:08:53 debian vdr: [14370] DVBAPI: 0.0: status 'present' Dec 24 16:08:53 debian vdr: [14370] DVBAPI: 0.0: status 'reset' Dec 24 16:08:54 debian vdr: [14370] DVBAPI: 0.0: status 'ready' Dec 24 16:08:54 debian vdr: [14380] CAM 1: module ready Dec 24 16:08:54 debian vdr: [14380] DVBAPI: CaInfo: 0.0 sending CA info Dec 24 16:08:55 debian vdr: [14380] CAM 1: replies to QUERY - multi channel decryption possible Dec 24 16:08:55 debian vdr: [14370] switching to channel 1 Dec 24 16:08:55 debian vdr: [14370] CAM 1: assigned to device 1 Dec 24 16:08:55 debian vdr: [14370] DVBAPI: Forcing transfermode on card 0/0 Dec 24 16:08:55 debian vdr: [14370] setting watchdog timer to 60 seconds Dec 24 16:08:55 debian vdr: [14370] ERROR: no OSD provider available - using dummy OSD! Dec 24 16:08:56 debian vdr: [14370] max. latency time 1 seconds Dec 24 16:08:58 debian vdr: [14370] DVBAPI: Forcing transfermode on card 0/0 [global] nice = -1 WaitForCards = 1 # logging pidfile = /var/run/oscam.pid logfile = /var/log/oscam/oscam.log usrfile = /var/log/oscam/oscamuser.log cwlogdir = /var/log/oscam/cw # monitor [monitor] port = 8988 aulow = 120 monlevel = 1 # protocols [newcamd] key = 000102030405060708090A0B0C0D port = 15050@0B00:0E030 [dvbapi] enabled = 1 au = 1 boxtype = pc user = vdr pmt_mode = 4 request_mode = 1
[reader] label = reader1 protocol = mouse detect = CD device = /dev/ttyUSB0 group = 1 emmcache = 1,3,2 services = services1 caid = 0B00 mhz = 500 cardmhz = 500
# definition of services # # format: # [name] # caid=CAID[,CAID]... # provid = provider ID[,provider ID]... # srvid = service ID[,service ID]... [services1] caid=0B00 provid=0E030 srvid=
# user configuration [account] user = user1 pwd = password1 monlevel = 0 uniq = 0 group = 1 au = 1 ident = 0B00:0E030 caid = 0B00 # user for group 2 with monitor access, AU enabled #[account] user = user2 pwd = password2 monlevel = 0 uniq = 0 group = 1 au = 1 ident = 0B00:0E030 caid = 0B00 |
==================== HowTo Oscam @ Ubuntu ==================== ================================================ Example: ORF ICE card @ smargo & AustriaSat Keys ================================================ #/> sudo apt-get install build-essential cmake g++ gcc libusb-1.0-0-dev libpcsclite-dev libpcsclite1 libssl-dev subversion #/> cd /usr/local/src #/> sudo svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn #/> cd oscam-svn #/> sudo mkdir build_dir #/> cd build_dir #/> sudo cmake -DWITH_SSL=1 /usr/local/src/oscam-svn #/> sudo make #/> sudo make install #/> sudo cp utils/list_smargo /usr/local/bin ----------------------------------- Only in case of a new installation: ----------------------------------- #/> sudo chmod +x /usr/local/bin/list_smargo -------------------------------------- Only in case of an update, to restart: -------------------------------------- #/> sudo killall -9 oscam #/> sudo list_smargo Looking for smartreader with an out endpoint = 0x82 : bus 004, device 002 : 0403:6001 Smartreader (Device=004:002 EndPoint=0x82 insert in oscam.server 'Device = Serial:12345678') => Remember the serial exactly like printed! In this example : "Serial:12345678" the word "Serial" belongs to it! ========================================================== Copy static linked binary "camd3" also to "/usr/local/bin" ========================================================== =========================================================== Configuration under /usr/local/etc: ----------------------------------------------------------- => please use your own IP range, ports, users and passwords =========================================================== #################################################### /usr/local/etc/oscam.conf: ---------------------------------------------------- [global] logfile = /var/log/oscam.log usrfile = /var/log/oscamuser.log WaitForCards = 1 CacheDelay = 120 saveinithistory = 1 maxlogsize = 1024 [dvbapi] enabled = 1 au = 1 boxtype = pc user = dvbapi pmt_mode = 1 reopenonzap = 1 request_mode = 1 [webif] httpport = 19042 httphelplang = de httpuser = http httppwd = ptth httprefresh = 7 httpallowed = 127.0.0.1,192.168.69.0-192.168.69.255 ### camd3 protocol port (udp) for oscam-to-oscam access [cs357x] Port = 19043 --------------------------------------------------- ############################ /usr/local/etc/oscam.dvbapi: ------------- P: 0648 P: 0D95 P: 0D05 I: 0 ------------ ###################################### /usr/local/etc/oscam.ird (empty file): -------------------------------------- -------------------------------------- ########################################################################################################################################## /usr/local/etc/oscam.server: ------------------------------------------------------------------------------------------------------------------------------------------ ### Physical smartreader smargo connected thru USB [reader] label = ORF enable = 1 protocol = smartreader device = Serial:12345678 detect = CD group = 1 services = orf emmcache = 1,1,2 ### down to here ORF just in cryptoworks mode ### additional from here ORF in Irdeto mode caid = 0648 cardmhz = 600 mhz = 600 force_irdeto = 1 rsakey = DF57B08C0F13E67BD17AD37EAAF4EAA25393F8A0EFE8ACE6708AAF97C985CBA8A6C13826963BD3092EB9FC72F773A430724706AA5E1D14E1747842D32069A12D boxkey = 1122334455667788 ### Virtual reader camd3 running on local host for key file [reader] label = AUSTRIASAT enable = 1 protocol = camd35 device = 127.0.0.1,38086 user = AustriaSat password = taSairtsuA group = 2 services = austriasat caid = 0D05 ----------------------------------------------------------------------------------------------------------------------------------------- ###################################################################################################### /usr/local/etc/oscam.services: ------------------------------------------------------------------------------------------------------ [orf] caid = 0648,0D95 provid = 000000,000004 srvid = 132F,1330,3332,332D,33A5,33A7,32C9,32CA,32CB,32CC,32CD,32CE,32CF,32D0,32D1,32D2,32D3,32D4,4E27 [austriasat] caid = 0D05 provid = 00000,000010 srvid = 0025,003B,6FEE,6FEF,6FF0,6FF3,6FFF,0046,2EFE,07FA,07FF,4461,4462,31FA ------------------------------------------------------------------------------------------------------ ############################################ /usr/local/etc/oscam.srvid: -------------------------------------------- ####### ORF ####### 0648,0D95:32C9|ORF|ORF1|TV| 0648,0D95:32CA|ORF|ORF2|TV| 0648,0D95:32CB|ORF|ORF2 Wien|TV| 0648,0D95:32CC|ORF|ORF2 NiederÖsterreich|TV| 0648,0D95:32CD|ORF|ORF2 Burgenland|TV| 0648,0D95:32CE|ORF|ORF2 OberÖsterreich|TV| 0648,0D95:32CF|ORF|ORF2 Salzburg|TV| 0648,0D95:32D0|ORF|ORF2 Tirol|TV| 0648,0D95:32D1|ORF|ORF2 Vorarlberg|TV| 0648,0D95:32D2|ORF|ORF2 Steiermark|TV| 0648,0D95:32D3|ORF|ORF2 Kärnten|TV| 0648,0D95:32D4|ORF|ATV+|TV| 0648,0D95:33A7|ORF|ATV2|TV| 0648,0D95:3332|ORF|Austria 9 TV|TV| 0648,0D95:332D|ORF|ORF III|TV| 0648,0D95:33A5|ORF|ORF SPORT+|TV| 0648,0D95:4E27|ORF|Puls 4 Austria|TV| 0648,0D95:132F|ORF|ORF1 HD|TV| 0648,0D95:1330|ORF|ORF2 HD|TV| ### AustriaSat #### 0D05:0025|Austriasat|AXN Deutschland|TV| 0D05:003B|Austriasat|Sportdigital.tv|TV| 0D05:6FEE|Austriasat|MTV Hits|TV| 0D05:6FEF|Austriasat|MTV Dance|TV| 0D05:6FF0|Austriasat|VH-1 (Video Hits One)|TV| 0D05:6FF3|Austriasat|MTV Rocks|TV| 0D05:6FFF|Austriasat|MTV Music|TV| 0D05:0046|Austriasat|Alpenglühen TVX|TV| 0D05:2EFE|Austriasat|RTL Living|TV| 0D05:07FA|Austriasat|Hustler TV|TV| 0D05:07FF|Austriasat|Animax|TV| 0D05:4461|Austriasat|Sat 1 emotions|TV| 0D05:4462|Austriasat|Kabel Eins Classics|TV| 0D05:31FA|Austriasat|Dorcel TV|TV| ---------------------------------------------- ############################################# /usr/local/etc/oscam.user: --------------------------------------------- ### an user for camd3 connection per oscam/sc [account] user = vdr1 pwd = 1rdv group = 1 au = ORF services = orf caid = 0648,0D95 ### an user for camd3 connection per oscam/sc [account] user = vdr2 pwd = 2rdv group = 1 au = ORF services = orf caid = 0648,0D95 ### dvbapi account, must have! [account] user = dvbapi pwd = group = 1,2 au = ORF services = orf,austriasat caid = 0648,0D95,0D05 --------------------------------------------- ################################ /usr/local/etc/camd3.config: -------------------------------- BOXTYPE=9 UDP_PORT=38086 HTTP_PORT=38084 HTTP_ADMIN=Camd3 HTTP_PASSWORD=3dmaC LOG=0 USERS=/usr/local/etc/camd3.users KEYS=/usr/local/etc/camd3.keys -------------------------------- ################################ /usr/local/etc/camd3.keys: -------------------------------------------------------------------- # ****** AustriaSat ****** 0D05:000010:0000000000:00:0000000000000000C2E01777E69B850D // ECM 00 0D05:000010:0000000000:01:0000000000000000307E4DAC065BA686 // ECM 01 0D05:000010:0000000000:06:0987CF2A611D // SYSTEM -------------------------------------------------------------------- ########################### /usr/local/etc/camd3.users: --------------------------- AustriaSat:taSairtsuA --------------------------- ########################### ===================================== Startup configuration upstart & udev: ===================================== ############################################################# /etc/init/oscam.conf: ------------------------------------------------------------- # OSCam - Open Source Conditional Access Module # # OSCam is mainly a protocol- and cross-platform card server. description "open source conditional access module" start on smargo-add stop on smargo-remove stop on runlevel [016] respawn exec /usr/local/bin/oscam ------------------------------------------------------------- ##################################################### /etc/init/camd3.conf: ----------------------------------------------------- # Camd3 description "camd3" start on smargo-add stop on smargo-remove stop on runlevel [016] respawn exec /usr/local/bin/camd3 /usr/local/etc/camd3.config ----------------------------------------------------- ################################################################################################################################################# /etc/udev/rules.d/50-oscam.rules: ------------------------------------------------------------------------------------------------------------------------------------------------- SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ACTION=="add", RUN+="/sbin/initctl --quiet emit --no-wait smargo-add" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ACTION=="remove", RUN+="/sbin/initctl --quiet emit --no-wait smargo-remove" ------------------------------------------------------------------------------------------------------------------------------------------------- #################################################################################################################################################
_______________________________________________ vdr mailing list vdr@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr