[Pcsclite-muscle] IDBridge K3000 is not found by pcsc_scan

Nikolaos Kakouros nkak at kth.se
Thu Apr 19 04:35:53 PDT 2018


Hello,

I have a IDBridge K3000 device. I am trying to use it on either Arch Linux (fully updated) or Ubuntu 16.04.2 installed on a Dell laptop with an Intel i5 processor. I have tried with different USB ports. In both cases, I fail.

On Arch Linux, I compiled the USB CCID driver from a fresh git checkout. The version of pcsc-lite is 1.8.23 and the version of pcsc-tools is 1.5.2.

On Ubuntu 16.04, I used apt to install whatever is in the repos. So, pcsc-tools is 1.4.25, libccid is 1.4.22 and pcscd is 1.8.14. The output of pcscd --version is:

pcsc-lite version 1.8.14.
Copyright (C) 1999-2002 by David Corcoran <corcoran at musclecard.com>.
Copyright (C) 2001-2011 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
Report bugs to <muscle at lists.musclecard.com>.
Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d

Sorry for the sans serif font but if I include formatting the email bounces back.

The device is recognized by the Linux kernel. The output of dmesg is:

[ 4904.459100] usb 1-3: new high-speed USB device number 33 using xhci_hcd
[ 4904.600782] usb 1-3: New USB device found, idVendor=08e6, idProduct=8140
[ 4904.600784] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4904.600786] usb 1-3: Product: IDBridge K3000
[ 4904.600787] usb 1-3: Manufacturer: GEMALTO
[ 4904.600788] usb 1-3: SerialNumber: C840357100001E52

I run pcscd in debug mode (sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt). When the usb device is plugged in, it reacts and I see:

10516944 hotplug_libudev.c:651:HPEstablishUSBNotifications() USB Device add
00000176 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x08E6, PID: 0x8140, path: /dev/bus/usb/001/035
00000207 hotplug_libudev.c:651:HPEstablishUSBNotifications() USB Device add
00000137 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x08E6, PID: 0x8140, path: /dev/bus/usb/001/035

The sudo ./src/parse utility shows:

Parsing USB bus/device: 08E6:8140 (bus 1, device 35)
 idVendor:  0x08E6  iManufacturer: GEMALTO
 idProduct: 0x8140  iProduct: IDBridge K3000
  NOT a CCID/ICCD device

The details of the usb drive as detected by sudo lsusb -v are:

Bus 001 Device 035: ID 08e6:8140 Gemalto (was Gemplus)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x08e6 Gemalto (was Gemplus)
  idProduct          0x8140
  bcdDevice            2.10
  iManufacturer           1 GEMALTO
  iProduct                2 IDBridge K3000
  iSerial                 3 C840357100001E52
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           57
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              200mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.02
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     110
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

I searched the mailing list and the only relevant thread I found was http://lists.infradead.org/pipermail/pcsclite-muscle/2017-May/000885.html . If I understood correctly there, some fixes are already in the latest version.

Am I doing sth wrong? Could there be sth wrong with the specific USB device I have? Can I somehow overcome this issue?

Thank you for your time.
Nikolaos



More information about the pcsclite-muscle mailing list