[Pcsclite-muscle] Gemalto IDBridge K30 (480A1473), Not enough data received: 0 bytes

Ludovic Rousseau ludovic.rousseau at gmail.com
Sun Feb 26 13:53:55 UTC 2017


2017-02-18 16:17 GMT+01:00 Wolfgang Pichler <wpichler at callino.at>:

> Hi all,
>

Hello,


>
> we have a very interessting problem using a Gemalto IDBridge K30 with
> pcscd - libccid.
>
> I do have serveral of these devices - they are nearly identically - the
> only difference i found is that bNumDataRatesSupp is 50 and on the other
> devices it is 53.
>

Can you send me the output.txt for the 2 different readers please?
See https://pcsclite.alioth.debian.org/ccid.html#CCID_compliant


>
> For the problem
>
> - all tokens do work on my old development machine with libccid 1.4.22
> from ubuntu (x64)
> - on the destination system - a raspberry pi 3b (also tested pi 2b) only
> the tokens with bNumDataRatesSupp=50 do work - the one with
> bNumDataRatesSupp=53 will fail with:
>
>
> 00007876 ccid.c:78:ccid_open_hack_pre() ZLP fixup
> 00000038 ccid_usb.c:1101:InterruptRead() before (0)
> 00000025 ccid_usb.c:1102:InterruptRead() timeout (1000 ms)          <-
> I’ve inserted this statement - and tried to increase timeout from 100ms to
> 1000ms - did not help
> 01000190 ccid_usb.c:1144:InterruptRead() after (0) (2)
> 00000307 -> 000000 65 00 00 00 00 00 00 00 00 00
> 00001742 <- 000000 81 00 00 00 00 00 00 00 00 00
> 00001119 -> 000000 65 00 00 00 00 00 01 00 00 00
> 00000487 <- 000000
> 00000029 commands.c:1110:CmdGetSlotStatus() Not enough data received: 0
> bytes
>
>
> As you can see here - i have already tried a version with the ZLP fixup -
> but it did not help.
>

The ZLP fix is not correct for all cases (especially for "slow" computers).
Try to increase the timeout value of the libusb_bulk_transfer() call from
10 to 100 ms. It should be near line 790.

So the problem must be somehow related to the dataRates - maybe i do try to
> exclude the extra datarates in the source - maybe it then just works ;-)
>

The problem is related to the reader firmware.

Bye

-- 
 Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20170226/5726bddd/attachment.html>


More information about the Pcsclite-muscle mailing list