[Pcsclite-muscle] Gemalto (was Gemplus) GemPC Key SmartCard Reader not working in debian stretch

Sébastien Chaumat euidzero
Tue May 23 14:25:45 PDT 2017


Kernel output

10341.496256] usb 1-1: new full-speed USB device number 26 using xhci_hcd
[10341.641725] usb 1-1: New USB device found, idVendor=08e6, idProduct=3438
[10341.641732] usb 1-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[10341.641736] usb 1-1: Product: USB SmartCard Reader
[10341.641739] usb 1-1: Manufacturer: Gemalto
[10341.641742] usb 1-1: SerialNumber: CF4B23C4

lsusb -v in attachement

Le lun. 22 mai 2017 ? 11:07, Ludovic Rousseau <ludovic.rousseau at gmail.com>
a ?crit :

> 2017-05-22 10:16 GMT+02:00 Wolfgang Pichler <wpichler at callino.at>:
>
>> Hi,
>>
>
> Hello,
>
>
>> i did had the same bug - it seems that some Gemalto Sticks (not all) have
>> a problem in the firmware intitalize procedure. Because of this problem you
>> get a too big usb read bytes request - which will then fail?
>>
>
> Very interesting.
>
> Can you send me the output of the GNU/Linux command "lsusb -v" for your
> bogus device?
> And also the lines logged by the Linux kernel when you connect the device.
>
> Same question with a non-bogus device if you have one.
>
> How have you found the work around?
> Have you used a USB hardware spy or something similar?
>
> I am surprised to see that changing the _reception_ buffer length has an
> effect. The USB device should not know this buffer size. But I am not a USB
> expert.
>
>
>> Attached a workaround for this problem - which does work for me.
>>
>> But as stated - this is a workaround - not a real bug fix.
>>
>
> The workaround has a bad size effect that reader responses of more than
> 4096 bytes would have problems.
> Before I apply any workaround I need to understand why your change makes
> the reader work.
>
> Bye
>
> --
>  Dr. Ludovic Rousseau
> _______________________________________________
> Pcsclite-muscle mailing list
> Pcsclite-muscle at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20170523/adf769c6/attachment-0001.html>
-------------- next part --------------
Bus 001 Device 026: ID 08e6:3438 Gemalto (was Gemplus) GemPC Key SmartCard Reader
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x08e6 Gemalto (was Gemplus)
  idProduct          0x3438 GemPC Key SmartCard Reader
  bcdDevice            2.00
  iManufacturer           1 Gemalto
  iProduct                2 USB SmartCard Reader
  iSerial                 3 CF4B23C4
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           93
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               50mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.01  (Warning: Only accurate for version 1.0)
        nMaxSlotIndex           0
        bVoltageSupport         7  5.0V 3.0V 1.8V
        dwProtocols             3  T=0 T=1
        dwDefaultClock       4800
        dwMaxiumumClock      4800
        bNumClockSupported      0
        dwDataRate          12903 bps
        dwMaxDataRate      825806 bps
        bNumDataRatesSupp.     53
        dwMaxIFSD             254
        dwSyncProtocols  00000000
        dwMechanical     00000000
        dwFeatures       00010230
          Auto clock change
          Auto baud rate change
          NAD value other than 0x00 accepted
          TPDU level exchange
        dwMaxCCIDMsgLen       271
        bClassGetResponse      00
        bClassEnvelope         00
        wlcdLayout           none
        bPINSupport             0
        bMaxCCIDBusySlots       1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      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               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              16
Device Status:     0x0000
  (Bus Powered)



More information about the pcsclite-muscle mailing list