2011/8/7 Sebastian Schmidt <[email protected]>:
> Upstream commit r4987 ("Use libusb-1.0 instead of libusb-0.1") breaks
> communication with my reader (REINER SCT cyberJack RFID basis, USB
> 0c4b:9102).
>
> When sending an APDU to the reader, e.g. via scriptor, libccid hangs
> while waiting for data from the reader.
>
> The pcscd log shows:
> 00000009 APDU: 60
> 00000010 ifdhandler.c:1283:IFDHTransmitToICC() 
> usb:0c4b/9102:libudev:0:/dev/bus/usb/002/047 (lun: 0)
> 00000018 commands.c:1456:CmdXfrBlockAPDU_extended() T=0 (extended): 1 bytes
> 00000020 -> 000000 6F 01 00 00 00 00 0C 00 00 00 60
> 00006239 <- 000000 80 00 00 00 00 00 0C 80 02 00 80 08 00 00 00 00 0C 00 00 
> 00 AF 04 01 01 01 00 16 05
> 00000025 commands.c:1391:CCID_Receive() Time extension requested: 0x02
> (now hangs there)
>
> So what's happening is that libusb_bulk_transfer in ReadUSB returns two
> messages at once, CCID_Receive calls ReadUSB again but the data already
> has been read. For some reason this used to be different with libusb
> 0.x - I have no idea whether this is a timing issue or what not:

Can you reproduce the problem with a "recent" libusb?
Try with the version available at
http://ludovicrousseau.blogspot.com/2011/05/new-version-of-libusb-part-2.html

Thanks

-- 
 Dr. Ludovic Rousseau



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to