[Pcsclite-muscle] ACS ACR122U A9 issues

Vazma vazma
Wed Mar 8 01:30:04 PST 2017


Hi,

Actually I receive this error when I run the mfcuk command. I am not touching or removing any card reader or card. As I said I tried the same in 2 different operation systems but in the same computer and I had the same issue.

Cheers,

vazma



Sent with [ProtonMail](https://protonmail.com) Secure Email.


-------- Original Message --------
Subject: Re: [Pcsclite-muscle] ACS ACR122U A9 issues
Local Time: 7 March 2017 9:50 AM
UTC Time: 7 March 2017 08:50
From: ludovic.rousseau at gmail.com
To: Talks about MUSCLE <pcsclite-muscle at lists.alioth.debian.org>




Hello,

2017-03-07 8:07 GMT+01:00 Godfrey Chung <godfreyhkchung at gmail.com>:

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20170308/423a4c33/attachment.html>



More information about the pcsclite-muscle mailing list