<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-02-18 16:17 GMT+01:00 Wolfgang Pichler <span dir="ltr"><<a href="mailto:wpichler@callino.at" target="_blank">wpichler@callino.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br></blockquote><div><br></div><div>Hello,<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
we have a very interessting problem using a Gemalto IDBridge K30 with pcscd - libccid.<br>
<br>
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.<br></blockquote><div><br></div><div>Can you send me the output.txt for the 2 different readers please?<br></div><div>See <a href="https://pcsclite.alioth.debian.org/ccid.html#CCID_compliant">https://pcsclite.alioth.debian.org/ccid.html#CCID_compliant</a><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
For the problem<br>
<br>
- all tokens do work on my old development machine with libccid 1.4.22 from ubuntu (x64)<br>
- 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:<br>
<br>
<br>
00007876 ccid.c:78:ccid_open_hack_pre() ZLP fixup<br>
00000038 ccid_usb.c:1101:InterruptRead(<wbr>) before (0)<br>
00000025 ccid_usb.c:1102:InterruptRead(<wbr>) timeout (1000 ms)  Â  Â  Â  Â  <- I’ve inserted this statement - and tried to increase timeout from 100ms to 1000ms - did not help<br>
01000190 ccid_usb.c:1144:InterruptRead(<wbr>) after (0) (2)<br>
00000307 -> 000000 65 00 00 00 00 00 00 00 00 00<br>
00001742 <- 000000 81 00 00 00 00 00 00 00 00 00<br>
00001119 -> 000000 65 00 00 00 00 00 01 00 00 00<br>
00000487 <- 000000<br>
00000029 commands.c:1110:<wbr>CmdGetSlotStatus() Not enough data received: 0 bytes<br>
<br>
<br>
As you can see here - i have already tried a version with the ZLP fixup - but it did not help.<br></blockquote><div><br></div><div>The ZLP fix is not correct for all cases (especially for "slow" computers).<br></div><div>Try to increase the timeout value of the libusb_bulk_transfer() call from 10 to 100 ms. It should be near line 790.<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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 ;-)<br></blockquote><div><br></div><div>The problem is related to the reader firmware.<br><br></div><div>Bye<br clear="all"></div></div><br>-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>