2012/5/25 Nguyễn Hồng Quân <[email protected]>: > Hi, > Here is the log with libusb & pcscd
Thanks. pcscd is sending logs to stdout. But libusb is using stderr. So the two log flows are not synchronous and not ordered correctly. I guess you have redirected the output in a file to send me. Can you try again but without a redirection. After the error occurs cut and paste the log lines in a file. That should solve the ordering issue. I failed to see this in the first log. 04406360 winscard.c:1551:SCardTransmit() Send Protocol: T=1 04406367 APDU: 00 CA 00 6E 00 08 00 04406374 ifdhandler.c:1292:IFDHTransmitToICC() usb:20a0/4107:libudev:0:/dev/bus/usb/003/003 (lun: 0) 04406379 commands.c:2035:CmdXfrBlockTPDU_T1() T=1: 7 and 2050 bytes 04406383 openct/proto-t1.c:571:t1_build() more bit: 0 04406392 sending: 00 40 07 00 CA 00 6E 00 08 00 EB 04406414 -> 000000 6F 0B 00 00 00 00 08 00 00 00 00 40 07 00 CA 00 6E 00 08 00 EB 18232119 ccid_usb.c:677:ReadUSB() read failed (3/3): -7 Invalid argument You are using an extended APDU with a Le=00 08 00 i.e. 2048 bytes. The reader is expecting 2048+2 bytes from the card. Can you check the same APDU command is used with a USB 2.0 port? What is the reader response? Bye -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
