service.system.pcscd-addon for release 8.

  • Just installed pcsc card reader on my RPi, OSCAM cannot access the device.

    OSCAM seems to have been linked wth the pcsc libraries but the libraries are not within the oscam add on.

    I managed to find an old add on ( service.system.pcscd-addon-7.0.1 wetek play.zip ), which when installed changed the reader status to green in oscam.

    The card I inserted is seen and I can also see the entitlements (CARDOK).

    But the decoding does not take place (no reader found for emm). not being comfortable with the wetek library, I wonder if a more upto date version is available.

    The device:

    [ 2.348202] usb 1-1.4: New USB device found, idVendor=076b, idProduct=3021

    [ 2.348215] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0

    [ 2.348220] usb 1-1.4: Product: Smart Card Reader USB

    [ 2.348223] usb 1-1.4: Manufacturer: OMNIKEY AG

    And the oscam log (last line shows that no reader is available for the emm), I think my config is correct (user and all that), but I can be wrong.

    • 2017/09/19 15:02:23 0DA47AF2 r (reader) Card_Fransat [pcsc] PCSC was opened with handle: 1729145425
    • 2017/09/19 15:02:23 0DA47AF2 r (reader) Card_Fransat [pcsc] card detected
    • 2017/09/19 15:02:23 0DA47AF2 r (reader) Card_Fransat [pcsc] ATR: 3F 77 18 00 00 D3 8A 40 01 64 90 00
    • 2017/09/19 15:02:25 0DA47AF2 r (reader) Card_Fransat [pcsc] using ecm #811 for long viaccess ecm
    • 2017/09/19 15:02:25 0DA47AF2 r (reader) Card_Fransat [pcsc] type: Viaccess (non-standard atr), caid: 0500, serial: ##########
    • 2017/09/19 15:02:25 0DA47AF2 r (reader) Card_Fransat [pcsc] providers: 5 (FFF400,041950,041960,041970,041980)
    • 2017/09/19 15:02:25 0DA47AF2 r (reader) Card_Fransat [pcsc] Maturity level [7]= older than 7 years
    • 2017/09/19 15:02:25 0DA47AF2 r (reader) Card_Fransat [pcsc] ready for requests
    • 2017/09/19 15:02:25 0DA47AF2 r (reader) Card_Fransat [pcsc] found card system viaccess
    • 2017/09/19 15:02:25 0DA47AF2 r (reader) Card_Fransat [viaccess] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max alloted of 1
    • 2017/09/19 15:02:26 0DA47AF2 r (reader) Card_Fransat [viaccess] card detected
    • 2017/09/19 15:02:26 0DA47AF2 r (reader) Card_Fransat [viaccess] serial: ##########
    • 2017/09/19 15:02:26 0DA47AF2 r (reader) Card_Fransat [viaccess] provider: 1, id: #####################, sa: ########, geo: empty
    • 2017/09/19 15:02:26 0DA47AF2 r (reader) Card_Fransat [viaccess] provider: 2, id: ############################, sa: ########, geo: FF FF FF FF
    • 2017/09/19 15:02:26 0DA47AF2 r (reader) Card_Fransat [viaccess] class: FA, expiry date: 2017/03/22 - 2018/03/22
    • 2017/09/19 15:02:26 0DA47AF2 r (reader) Card_Fransat [viaccess] class: FA, expiry date: 2017/03/01 - 2018/03/03
    • 2017/09/19 15:02:27 0DA47AF2 r (reader) Card_Fransat [viaccess] provider: 3, id: ###########################, sa: ########, geo: FF FF FF FF
    • 2017/09/19 15:02:27 0DA47AF2 r (reader) Card_Fransat [viaccess] provider: 4, id: ###########################, sa: ########, geo: FF FF FF FF
    • 2017/09/19 15:02:27 0DA47AF2 r (reader) Card_Fransat [viaccess] provider: 5, id: ###########################, sa: ########, geo: FF FF FF FF
    • 2017/09/19 15:02:28 00000000 s (main) init for all local cards done
    • 2017/09/19 15:02:28 00000000 s (emmcache) loaded 0 emmcache records from /tmp/.oscam/oscam.emmcache in 0 ms
    • 2017/09/19 15:02:28 00000000 s (emmcache) loaded 0 emmstat records from /tmp/.oscam/oscam.emmstat in 0 ms
    • 2017/09/19 15:02:28 00000000 s (anticasc) anti cascading disabled
    • 2017/09/19 15:02:28 5D86CEBA c (client) plain dvbapi-client granted (tvheadend, au=auto (2 reader))
    • 2017/09/19 15:02:28 00000000 >> OSCam << cardserver log switched, version 1.20-unstable_svn, build r11391 (armv7ve-libreelec-linux-gnueabi)
    • 2017/09/19 15:02:28 5D86CEBA c (dvbapi) dvbapi channelcache loaded from /storage/.kodi/userdata/addon_data/service.softcam.oscam/config/oscam.ccache
    • 2017/09/19 15:02:28 5D86CEBA c (dvbapi) Using TCP listen socket, API forced to DVBAPIv3 (0), userconfig boxtype: 11
    • 2017/09/19 15:02:29 5D86CEBA c (dvbapi) Client connected: 'Tvheadend 4.2.3-20 ~ LibreELEC Tvh-addon v8.2.112' (protocol version = 2)
    • 2017/09/19 15:02:29 5D86CEBA c (dvbapi) Demuxer 0 ecmpid 0 CAID: 0500 ECM_PID: 1FDF PROVID: 042820
    • 2017/09/19 15:02:29 5D86CEBA c (dvbapi) Demuxer 0 ecmpid 1 CAID: 0500 ECM_PID: 1FDC PROVID: 0419A0
    • 2017/09/19 15:02:29 5D86CEBA c (dvbapi) Demuxer 0 ecmpid 2 CAID: 0500 ECM_PID: 1FDB PROVID: 041950
    • 2017/09/19 15:02:29 5D86CEBA c (dvbapi) Demuxer 0 found 3 ECMpids and 1 STREAMpids in caPMT
    • 2017/09/19 15:02:29 5D86CEBA c (dvbapi) Demuxer 0 no suitable readers found that can be used for decoding!
  • Fine, I have a couple of them readers (Omnikey 3021 they are low priced 12 € on the web, mainly used for national ID card reading in Belgium). I'll be able to try it on a DVB-C this week-end and on a DVB-S2 next week (shouldn't make any difference though). Let me knonw where I can fetch it from.

  • Hmmm, I did a quick and dirty install this morning, but although the device is seen by the USB bus, I can't see it in OSCAM.

    LETEST:~ # lsmod

    Module Size Used by

    hci_uart 15605 1

    btbcm 5315 1 hci_uart

    bluetooth 292114 3 hci_uart,btbcm

    brcmfmac 184596 0

    brcmutil 4893 1 brcmfmac

    cfg80211 247930 1 brcmfmac

    bcm2835_gpiomem 2652 0

    rfkill 13757 4 bluetooth,cfg80211

    fixed 2407 0

    [ 2.100528] systemd[1]: Set hostname to <LibreELEC>.

    [ 2.145531] usb 1-1.2: New USB device found, idVendor=076b, idProduct=3021

    [ 2.145539] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0

    [ 2.145543] usb 1-1.2: Product: Smart Card Reader USB

    [ 2.145547] usb 1-1.2: Manufacturer: OMNIKEY AG


    oscam

    [reader]

    label = voo

    description = PCSC card reader for fransat card

    protocol = pcsc

    device = 0

    caid = 0100

    detect = cd

    mhz = 500

    ident = 0100:000000,00AA41,00AA44

    group = 1

    emmcache = 1,3,15,0

    blockemm-unknown = 1

    blockemm-g = 1

    saveemm-u = 1

    saveemm-s = 1


    OSCAM log

    • 2017/11/12 09:16:22 00000000 s (main) System name = Linux
    • 2017/11/12 09:16:22 00000000 s (main) Host name = LETEST
    • 2017/11/12 09:16:22 00000000 s (main) Release = 4.9.59
    • 2017/11/12 09:16:22 00000000 s (main) Version = #1 SMP Sun Oct 29 19:27:50 GMT 2017
    • 2017/11/12 09:16:22 00000000 s (main) Machine = armv7l
    • 2017/11/12 09:16:22 00000000 s (main) creating pidfile /tmp/.oscam/oscam.pid with pid 452
    • 2017/11/12 09:16:22 00000000 s (config) services reloaded: 0 services freed, 0 services loaded, rejected 0
    • 2017/11/12 09:16:22 00000000 s (config) userdb reloaded: 4 accounts loaded, 0 expired, 1 disabled
    • 2017/11/12 09:16:22 00000000 s (main) signal handling initialized
    • 2017/11/12 09:16:22 00000000 s (config) 390 service-id's loaded in 10 ms
    • 2017/11/12 09:16:22 00000000 s (net) monitor: initialized (fd=6, port=988)
    • 2017/11/12 09:16:22 00000000 s (net) newcamd: initialized (fd=7, port=12345, ip=255.255.255.255)
    • 2017/11/12 09:16:22 00000000 s (net) -> CAID: 0100 PROVID: 000000, 00AA41, 00AA44
    • 2017/11/12 09:16:22 00000000 s (net) newcamd: initialized (fd=8, port=12346, ip=255.255.255.255)
    • 2017/11/12 09:16:22 00000000 s (net) -> CAID: 0500 PROVID: 041950
    • 2017/11/12 09:16:22 00000000 s (stat) loadbalancer: could not open /tmp/.oscam/stat for reading (errno=2 No such file or directory)
    • 2017/11/12 09:16:22 00000000 s (main) waiting for local card init
    • 2017/11/12 09:16:22 34FA835F h (webif) webif: decompressed 183864 bytes back into 432280 bytes
    • 2017/11/12 09:16:22 34FA835F h (webif) HTTP Server running. ip=0.0.0.0 port=8888

    Whereas my working setup gives a log file on OSCAM

    • 2017/11/07 09:05:08 450FDECF h (webif) HTTP Server running. ip=0.0.0.0 port=8888
    • 2017/11/07 09:05:09 094B7B81 r (reader) Reader-Fransat [pcsc] PCSC was opened with handle: 1091085254
    • 2017/11/07 09:05:09 094B7B81 r (reader) Reader-Fransat [pcsc] card detected
    • 2017/11/07 09:05:09 094B7B81 r (reader) Reader-Fransat [pcsc] ATR: 3F 77 18 00 00 C2 7A 44 02 68 90 00
    • 2017/11/07 09:05:10 094B7B81 r (reader) Reader-Fransat [pcsc] using ecm #612 for long viaccess ecm
    • 2017/11/07 09:05:10 094B7B81 r (reader) Reader-Fransat [pcsc] type: Viaccess (standard atr), caid: 0500, serial: ##########
    • 2017/11/07 09:05:11 094B7B81 r (reader) Reader-Fransat [pcsc] providers: 6 (FFF400,041950,041960,041970,041980,041990)
    • 2017/11/07 09:05:11 094B7B81 r (reader) Reader-Fransat [pcsc] Maturity level [7]= older than 7 years
    • 2017/11/07 09:05:11 094B7B81 r (reader) Reader-Fransat [pcsc] ready for requests
    • 2017/11/07 09:05:11 094B7B81 r (reader) Reader-Fransat [pcsc] found card system viaccess
    • 2017/11/07 09:05:11 094B7B81 r (reader) Reader-Fransat [viaccess] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max alloted of 1
  • ● service.pcscd.service - PCSC lite

    Loaded: loaded (/storage/.kodi/addons/service.pcscd/system.d/service.pcscd.service; enabled; vendor preset: disabled)

    Active: active (running) since Sun 2017-11-12 13:16:58 UTC; 2min 40s ago

    Main PID: 439 (pcscd.bin)

    CGroup: /system.slice/service.pcscd.service

    └─439 pcscd.bin --foreground -c /storage/.kodi/userdata/addon_data/service.pcscd/config/reader.conf

    Nov 12 13:16:58 LETEST systemd[1]: Started PCSC lite.

    Nov 12 13:16:58 LETEST sh[439]: 00000000 /home/cvh/Git/LE-CvH/build.LibreELEC-RPi2.arm-8.2-devel/pcsc-lite-1.8.22/src/hotplug_libusb.c:141:HPReadBundleValues() Cannot open PC/SC drivers directory: /storage/.

    kodi/addons/service.system.pcscd-addon/drivers

    Nov 12 13:16:58 LETEST sh[439]: 00000054 /home/cvh/Git/LE-CvH/build.LibreELEC-RPi2.arm-8.2-devel/pcsc-lite-1.8.22/src/hotplug_libusb.c:142:HPReadBundleValues() Disabling USB support for pcscd.


    Add on is installed here's the contents of drivers' subdirectories

    LETEST:~ # ls -la /storage/.kodi/addons/service.pcscd/drivers/

    total 4

    drwxr-xr-x 4 root root 1024 Nov 12 09:08 .

    drwxr-xr-x 7 root root 1024 Nov 12 09:08 ..

    drwxr-xr-x 3 root root 1024 Nov 12 09:08 ifd-ccid.bundle

    drwxr-xr-x 2 root root 1024 Nov 12 09:08 serial

    LETEST:~ # ls -la /storage/.kodi/addons/service.pcscd/drivers/serial/

    total 77

    drwxr-xr-x 2 root root 1024 Nov 12 09:08 .

    drwxr-xr-x 4 root root 1024 Nov 12 09:08 ..

    -rw-r--r-- 1 root root 76384 Nov 12 09:08 libccidtwin.so

    LETEST:~ # ls -la /storage/.kodi/addons/service.pcscd/drivers/ifd-ccid.bundle/

    total 3

    drwxr-xr-x 3 root root 1024 Nov 12 09:08 .

    drwxr-xr-x 4 root root 1024 Nov 12 09:08 ..

    drwxr-xr-x 3 root root 1024 Nov 12 09:08 Contents

    LETEST:~ # ls -la /storage/.kodi/addons/service.pcscd/drivers/ifd-ccid.bundle/Contents/

    total 46

    drwxr-xr-x 3 root root 1024 Nov 12 09:08 .

    drwxr-xr-x 3 root root 1024 Nov 12 09:08 ..

    -rw-r--r-- 1 root root 43429 Nov 12 09:08 Info.plist

    drwxr-xr-x 2 root root 1024 Nov 12 09:08 Linux

    LETEST:~ # ls -la /storage/.kodi/addons/service.pcscd/drivers/ifd-ccid.bundle/Contents/Linux/

    total 89

    drwxr-xr-x 2 root root 1024 Nov 12 09:08 .

    drwxr-xr-x 3 root root 1024 Nov 12 09:08 ..

    -rw-r--r-- 1 root root 88212 Nov 12 09:08 libccid.so

  • Not really, I installed the Zip and beside that, I can't recall anything else then plugging in the device and configuring OSCAM for it.

    I'll check tonight if there are setup specific for the addon, but I can't recall any.

  • Nov 12 13:16:58 LETEST sh[439]: 00000000 /home/cvh/Git/LE-CvH/build.LibreELEC-RPi2.arm-8.2-devel/pcsc-lite-1.8.22/src/hotplug_libusb.c:141:HPReadBundleValues() Cannot open PC/SC drivers directory: /storage/.

    kodi/addons/service.system.pcscd-addon/drivers

    damn it, didn't read the log carefully enough ;D

    updated Index of /addons/8.2/pcscd/

    forgot to change a path -.-

  • Hi, I'm working from remote, downloaded (wget), removed former addon and unzipped the last one in addon dir.

    Rebooted same thing from what I can see.

    â service.pcscd.service - PCSC lite

    Loaded: loaded (/storage/.kodi/addons/service.pcscd/system.d/service.pcscd.service; enabled; vendor preset: disabled)

    Active: active (running) since Sun 2017-10-29 15:35:21 UTC; 2 weeks 1 days ago

    Main PID: 401 (pcscd.bin)

    CGroup: /system.slice/service.pcscd.service

    ââ401 pcscd.bin --foreground -c /storage/.kodi/userdata/addon_data/service.pcscd/config/reader.conf

    Oct 29 15:35:21 LETEST systemd[1]: Started PCSC lite.

    Oct 29 15:35:21 LETEST sh[401]: 00000000 /home/cvh/Git/LE-CvH/build.LibreELEC-RPi2.arm-8.2-devel/pcsc-lite-1.8.22/src/hotplug_libusb.c:141:HPReadBundleValues() Cannot open PC/SC drivers directory: /storage/.

    kodi/addons/service.pcscd-addon/drivers

    Oct 29 15:35:21 LETEST sh[401]: 00000056 /home/cvh/Git/LE-CvH/build.LibreELEC-RPi2.arm-8.2-devel/pcsc-lite-1.8.22/src/hotplug_libusb.c:142:HPReadBundleValues() Disabling USB support for pcscd.