Re: ACS ACR122U A9 issues

Ludovic Rousseau <[email protected]> Tue, 7 Mar 2017 09:50:58 +0100
Newsgroups gmane.comp.lib.muscle
Message-ID <CAGstE8BxSKHC4W22pHxg_CegmtQ9daDeiBPrzDHXLAtZkFKVLg@mail.gmail.com>
Hello,

2017-03-07 8:07 GMT+01:00 Godfrey Chung <[email protected]>:

> Hi Vazma
>
> >
> > no i am running locally without any usb hub.
> >
>
> According to the log,
>
>  [36m00000005 [0m  [34mifdhandler.c:372:IFDHPolling()
> usb:072f/2200:libudev:0:/dev/bus/usb/004/023 (lun: 0) 600000 ms [0m
>  [36m00000004 [0m ccid_usb.c:1705:InterruptRead() before (0)
>  [36m04641736 [0m ccid_usb.c:1751:InterruptRead() after (0) (5)
>  [36m00000021 [0m ccid_usb.c:1794:InterruptRead() InterruptRead
> (4/23): LIBUSB_TRANSFER_NO_DEVICE
>
> It seems that the reader is removed during the operation.
>

This is a strange error code.

00000005 ifdhandler.c:372:IFDHPolling()
usb:072f/2200:libudev:0:/dev/bus/usb/004/023 (lun: 0) 600000 ms
00000004 ccid_usb.c:1705:InterruptRead() before (0)
04641736 ccid_usb.c:1751:InterruptRead() after (0) (5)
00000021 ccid_usb.c:1794:InterruptRead() InterruptRead (4/23):
LIBUSB_TRANSFER_NO_DEVICE
00400493 ifdhandler.c:2382:IFDHICCPresence()
usb:072f/2200:libudev:0:/dev/bus/usb/004/023 (lun: 0)
00000026 -> 000000 65 00 00 00 00 00 0D 00 00 00
00000044 ccid_usb.c:1132:WriteUSB() write failed (4/23): -1 LIBUSB_ERROR_IO
00000008 ifdwrapper.c:369:IFDStatusICC() Card not transacted: 612
00000007 eventhandler.c:333:EHStatusHandlerThread() Error communicating to:
ACS ACR122U 00 00


When the device is removed you should get LIBUSB_ERROR_NO_DEVICE but you
get LIBUSB_ERROR_IO instead.
When libusb_bulk_transfer() returns LIBUSB_ERROR_NO_DEVICE the driver
returns STATUS_NO_SUCH_DEVICE and the reader should be removed at the PC/SC
level.
https://github.com/LudovicRousseau/CCID/blob/master/src/ccid_usb.c#L823

Your device (or your kernel USB stack) may be in a strange state.

Bye

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle