New Omnikey readers not detecting card in clean Ubuntu with Oscam?

There are 6 replies in this Thread which was already clicked 1,712 times. The last Post () by dbstaff.

  • Hi, i have a clean installed ubuntu server 12.04, then compiled oscam binary with Simplebuild.


    Then next i installed almost everything possible with PCSC for Omnikey readers ("opensc pcscd libccid" + "pcsc-tools" + "libpcsc-lite") then rebooted linux, but my Vi*sat 090F card is not detected in oscam??


    Only thing i have not installed, is Omnikey driver since i got told that was not really necessary to have them working at first!?!



    [IF I TYPE 'LSUSB' IN TERMINAL I GET]:
    root@ubuntu:~# lsusb
    Bus 003 Device 002: ID 076b:3021 OmniKey AG CardMan 3121
    Bus 004 Device 002: ID 076b:3021 OmniKey AG CardMan 3121
    Bus 005 Device 002: ID 17ef:602d Lenovo
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub



    [IF I TYPE 'PCSC_SCAN' IN TERMINAL I GET]:
    root@ubuntu1:~# pcsc_scan
    PC/SC device scanner
    V 1.4.18 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
    Compiled with PC/SC lite version: 1.7.4
    Using reader plug'n play mechanism
    Scanning present readers...
    Waiting for the first reader...


    [IF I THEN DISABLE OSCAM STARTUP SCRIPT AND MAKE LINUX START WITOUT OSCAM, AND THEN TYPE 'PCSC_SCAN' I GET]:
    root@ubuntu1:~# pcsc_scan
    PC/SC device scanner
    V 1.4.18 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
    Compiled with PC/SC lite version: 1.7.4
    Using reader plug'n play mechanism
    Scanning present readers...
    0: OmniKey CardMan 3121 00 00
    1: OmniKey CardMan 3121 01 00
    Sat Dec 6 19:20:07 2014
    Reader 0: OmniKey CardMan 3121 00 00
    Card state: Card removed,
    Reader 1: OmniKey CardMan 3121 01 00
    Card state: Card inserted,
    ATR: 3F 7F 11 25 03 33 B0 09 69 FF 4A 50 70 00 00 56 54 01 00 00


    ATR: 3F 7F 11 25 03 33 B0 09 69 FF 4A 50 70 00 00 56 54 01 00 00
    + TS = 3F --> Inverse Convention
    + T0 = 7F, Y(1): 0111, K: 15 (historical bytes)
    TA(1) = 11 --> Fi=372, Di=1, 372 cycles/ETU
    10752 bits/s at 4 MHz, fMax for Fi = 5 MHz => 13440 bits/s
    TB(1) = 25 --> Programming Param P: 5 Volts, I: 1 milliamperes
    TC(1) = 03 --> Extra guard time: 3
    + Historical bytes: 33 B0 09 69 FF 4A 50 70 00 00 56 54 01 00 00
    Category indicator byte: 33 (proprietary format)


    Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
    3F 7F 11 25 03 33 B0 09 69 FF 4A 50 70 00 00 56 54 01 00 00
    Viasat Baltic (satellite card, NDS)



    [WHAT OSCAM SAYS AFTER RESTART FROM WEBIF]:
    2014/12/07 12:55:36 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r10040 (x86_64-linux-gnu-ssl-libusb-pcsc)
    2014/12/07 12:55:36 0 s creating pidfile /tmp/.oscam/oscam.pid with pid 1670
    2014/12/07 12:55:36 0 s userdb reloaded: 4 accounts loaded, 0 expired, 0 disabled
    2014/12/07 12:55:36 0 s signal handling initialized
    2014/12/07 12:55:36 0 s 611 service-id's loaded in 1 ms
    2014/12/07 12:55:36 0 s monitor: initialized (fd=6, port=XXX)
    2014/12/07 12:55:36 0 s cccam: initialized (fd=7, port=XXXX)
    2014/12/07 12:55:36 0 s Binary without TONGFANG module - no EMM processing for TONGFANG possible!
    2014/12/07 12:55:36 0 s Binary without Bulcrypt module - no EMM processing for Bulcrypt possible!
    2014/12/07 12:55:36 0 s Binary without Griffin module - no EMM processing for Griffin possible!
    2014/12/07 12:55:36 0 s Binary without DGCrypt module - no EMM processing for DGCrypt possible!
    2014/12/07 12:55:36 0 s viasat [pcsc] creating thread for device 0
    2014/12/07 12:55:36 0 s viasat [pcsc] creating thread for device 1
    2014/12/07 12:55:36 0 s loadbalancer: can't read from file /tmp/.oscam/stat
    2014/12/07 12:55:36 B60DD0 r viasat [pcsc] Cannot open device: 1
    2014/12/07 12:55:36 B5EEC0 r viasat [pcsc] Cannot open device: 0
    2014/12/07 12:55:36 C00008C0 h webif: decompressed 94636 bytes back into 241448 bytes
    2014/12/07 12:55:36 C00008C0 h HTTP Server running. ip=0.0.0.0 port=XXXXX



    I have tried most Omnikey guides here on forum, but i just can't get it to work..i really hope someone with knowledge could help here...ANY help appreciated very much :)



    f89cbb26.jpg

  • able2 ...i tried to do so, and this is what Oscam is saying now:


    2014/12/07 14:28:17 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r10040 (x86_64-linux-gnu-ssl-libusb-pcsc)
    2014/12/07 14:28:17 0 s creating pidfile /tmp/.oscam/oscam.pid with pid 1444
    2014/12/07 14:28:17 0 s userdb reloaded: 4 accounts loaded, 0 expired, 0 disabled
    2014/12/07 14:28:17 0 s signal handling initialized
    2014/12/07 14:28:17 0 s 611 service-id's loaded in 1 ms
    2014/12/07 14:28:17 0 s monitor: initialized (fd=6, port=988)
    2014/12/07 14:28:17 0 s cccam: initialized (fd=7, port=17000)
    2014/12/07 14:28:17 0 s Binary without TONGFANG module - no EMM processing for TONGFANG possible!
    2014/12/07 14:28:17 0 s Binary without Bulcrypt module - no EMM processing for Bulcrypt possible!
    2014/12/07 14:28:17 0 s Binary without Griffin module - no EMM processing for Griffin possible!
    2014/12/07 14:28:17 0 s Binary without DGCrypt module - no EMM processing for DGCrypt possible!
    2014/12/07 14:28:17 0 s viasat [pcsc] creating thread for device 1
    2014/12/07 14:28:17 0 s loadbalancer: can't read from file /tmp/.oscam/stat
    2014/12/07 14:28:17 D542C0 r viasat [pcsc] Wrong pcsc_reader index: 1
    2014/12/07 14:28:17 D542C0 r viasat [pcsc] Cannot open device: 1
    2014/12/07 14:28:17 DC0008C0 h webif: decompressed 94636 bytes back into 241448 bytes


    The red color text...does that mean i should put other Device number to reader? i have 6 usb ports on pc, but don't know which usb port number this omnikey have if you can follow me? :)

  • change device to 0


    have you edited this init.d/pcscd??




    nano /etc/init.d/pcscd


    There look next lines:


    # if you need to pass arguments to pcscd you should edit the file


    # /etc/default/pcscd and add a line


    # DAEMON_ARGS=”–your-option”


    And please change it to:


    # if you need to pass arguments to pcscd edit to:


    # /etc/default/pcscd and add a line


    DAEMON_ARGS=”–"error”




    save and exit
    check Omnikey and card are seen with


    pcsc_scan

    Edited once, last by able2 ().

  • able2... first, Thank you very much for trying helping me out. I tried to do as you described in above post and to my big surprise, i had already edited the PCSC Daemon file (pcscd) in /init.d ...BUT her's what i discovered:


    My code lines did look like this before getting your post:
    # if you need to pass arguments to pcscd edit to:
    # /etc/default/pcscd and add a line
    DAEMON_ARGS="-e"


    But yours did look like this (see small difference in last line):
    # if you need to pass arguments to pcscd you should edit the file
    # /etc/default/pcscd and add a line
    DAEMON_ARGS="-"error"


    So which one is more right than the other? And am i not right that these code lines in the pcscd file, is used for stopping never-ending log messages from pacs reader!?! -at least this is what the author of the Tuto is saying...http://linuxsat-support.com/showthread.php?t=1712


    But summa sumara is that after reboot with your posted code lines i got the omnikey reader to detect the card for the first time :thumb::thumb: -but then after normal oscam restart from webif, the reader could not detect card again or maybe oscam could not detect reader! Have you any idea what to do from here mate?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!