[Pcsclite-muscle] ReinerSCT Cyberjack e-com: readerfactory.c:1097:RFInitializeReader() Open Port 0x200000 Failed (usb:0c4b/0401:libudev:0:/dev/bus/usb/001/012)

TT my.nl.abos
Tue Nov 15 03:50:42 PST 2016


Hi,

I am hoping you might be able to help me.

I never had problems running the reader, but now I do and don't know
what to try anymore :(

But first things first:

//////////////////////////////////////////////////
//// Versions

    * CCID driver version: community/ccid 1.4.25-1 [installed]
    * pcsc-lite version: community/pcsclite 1.8.16-1 [installed]
    * smart card reader name: ReinerSCT Cyberjack e-com [#1#]
    * the output of the command "/usr/sbin/pcscd --version":
pcsc-lite version 1.8.16.
Copyright (C) 1999-2002 by David Corcoran <corcoran at musclecard.com>.
Copyright (C) 2001-2015 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
Report bugs to <pcsclite-muscle at lists.alioth.debian.org>.
Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev
usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd
configdir=/etc/reader.conf.d

#1#: aur/pcsc-cyberjack 3.99.5_SP10-2 (29, 0.01) [installed]
(((

source=("http://support.reiner-sct.de/downloads/LINUX/V${pkgver}/pcsc-cyberjack_${_pkgver}.tar.tar")

sha256sums=('11099c29594a73db19a4a0d9c448308c9c1ec3868862fd3838d0849b0debc7a8')

    ./configure \
        --prefix=/usr \
        --mandir=/usr/share/man/man8 \
        --sysconfdir=/etc/"${pkgname}"  \
        --enable-udev \
        --with-usbdropdir=$(pkg-config libpcsclite --variable=usbdropdir)

    make
)))



//////////////////////////////////////////////////
//// Platform

    * Operating system or GNU/Linux distribution name and version:
      archlinux
      Linux horizon 4.8.7-nvme #1 SMP PREEMPT Tue Nov 15 10:28:13 CET
2016 x86_64 GNU/Linux (archlinux kernel + nvme powersaving patch)

    Smart card middleware name and version: hmmm I am not sure what you
mean (I know what a middleware would be in general, but how do I
determine this in my context ?), sorry !
    Reader manufacturer name: ReinerSCT
    Reader model name: cyberJack e-com
    Smart card name: Sparkasse HBCI card



//////////////////////////////////////////////////
//// Log

 * Killed any running pcscd process
 * Started pcscd exactly as described bellow:
sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu
--color | tee log.txt

Reader was first NOT plugged, then (after line:
     00000108 hotplug_libudev.c:294:get_driver() Looking for a driver
for VID: 0x2109, PID: 0x0812, path: /dev/bus/usb/002/002
I plugged it.

Please find the log.txt attached.




//////////////////////////////////////////////////
//// Some additional info (each starts with ####)

#### ls -la /var/run/pcscd
total 4
drwxr-xr-x  2 root root  80 Nov 15 12:46 .
drwxr-xr-x 20 root root 460 Nov 15 11:08 ..
srw-rw-rw-  1 root root   0 Nov 15 12:46 pcscd.comm
-rw-r--r--  1 root root   7 Nov 15 12:46 pcscd.pid


#### ls -la /dev/bus/usb/001/009
crw-rw-r-- 1 root root 189, 8 Nov 15 11:54 /dev/bus/usb/001/009


#### lsusb -vvv # section about cyberjack:

Bus 001 Device 009: ID 0c4b:0401 Reiner SCT Kartensysteme GmbH cyberJack
pinpad(a2)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        16
  idVendor           0x0c4b Reiner SCT Kartensysteme GmbH
  idProduct          0x0401 cyberJack pinpad(a2)
  bcdDevice            0.01
  iManufacturer           1 Reiner-SCT
  iProduct                2 cyberJack e-com(f)
  iSerial                 3 7091604504
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               96mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
        DEVICE CLASS:  36 21 00 10 00 07 03 00 00 00 a0 0f 00 00 40 1f
00 00 00 58 27 00 00 90 d0 03 00 00 fe 00 00 00 07 00 00 00 00 00 00 00
30 00 01 00 0e 01 00 00 ff ff 00 00 03 01
Device Status:     0x0000
  (Bus Powered)

#### ps faux|grep pcscd   # pcscd is running as root
root     13784  0.0  0.0  71812  5408 pts/7    S+   12:46   0:00
 \_ sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu
--color
root     13786  0.0  0.0  26480  2460 pts/7    Sl+  12:46   0:00
 |   \_ pcscd --foreground --debug --apdu --color


### HISTORY of this issue:
The reader always worked fine.
I am now trying it the first time on a new DELL XPS 13 notebook under
archlinux.


#### Do you have any idea what I can try ?

Thanks a lot for any hint. Because for now I fell stuck on how to
further debug this :(

Knuth
-------------- next part --------------
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000119 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
00000011 pcscdaemon.c:266:main() Force colored logs
00000063 configfile.l:281:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000026 configfile.l:315:DBGetReaderListDir() Skipping non regular file: .
00000003 configfile.l:315:DBGetReaderListDir() Skipping non regular file: ..
00000004 configfile.l:353:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000081 pcscdaemon.c:567:main() pcsc-lite 1.8.16 daemon ready.
00004934 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000211 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000222 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x2109, PID: 0x2812, path: /dev/bus/usb/001/002
00000189 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000200 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x04F3, PID: 0x2234, path: /dev/bus/usb/001/003
00000183 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000195 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0C45, PID: 0x670C, path: /dev/bus/usb/001/004
00000199 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0C45, PID: 0x670C, path: /dev/bus/usb/001/004
00000260 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
00000182 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
00000193 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x2109, PID: 0x0812, path: /dev/bus/usb/002/002
00000224 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x8153, path: /dev/bus/usb/002/003
00000234 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x2109, PID: 0x0812, path: /dev/bus/usb/002/002
99999999 hotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add
00000272 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0C4B, PID: 0x0401, path: /dev/bus/usb/001/014
00000019 hotplug_libudev.c:433:HPAddDevice() Adding USB device: REINER SCT cyberJack pp_a2
00000113 readerfactory.c:1066:RFInitializeReader() Attempting startup of REINER SCT cyberJack pp_a2 (7091604504) 00 00 using /usr/lib/pcsc/drivers/libifd-cyberjack.bundle/Contents/Linux/libifd-cyberjack.so
00003063 readerfactory.c:951:RFBindFunctions() Loading IFD Handler 3.0
00014585 readerfactory.c:1097:RFInitializeReader() Open Port 0x200000 Failed (usb:0c4b/0401:libudev:0:/dev/bus/usb/001/014)
00000010 readerfactory.c:372:RFAddReader() REINER SCT cyberJack pp_a2 (7091604504) init failed.
00000007 readerfactory.c:605:RFRemoveReader() UnrefReader() count was: 1
00000003 readerfactory.c:1117:RFUnInitializeReader() Attempting shutdown of REINER SCT cyberJack pp_a2 (7091604504) 00 00.
00000002 readerfactory.c:988:RFUnloadReader() Unloading reader driver.
00000095 hotplug_libudev.c:520:HPAddDevice() Failed adding USB device: REINER SCT cyberJack pp_a2



More information about the pcsclite-muscle mailing list