ACS ACR122U A9 issues

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

ACS ACR122U A9 issues

Vazma
Hi,

I have an ACS ACR122U A9 reader and seems that everything is working fine when I am building and running pcsclite -f -d in combination with pcsc_scan. The card reader type and the card type can be read correctly wihout any issues.

Now when I am trying to execute mfcuk -C -R 0:A -s 250 -S 250 -v 3 I receive in the output of the pcscd this error:

03751139 ccid_usb.c:1132:WriteUSB() write failed (4/19): -1 LIBUSB_ERROR_IO
00000029 ifdwrapper.c:369:IFDStatusICC() Card not transacted: 612
00000014 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: ACS ACR122U 00 00
00000031 ccid_usb.c:1721:InterruptRead() libusb_submit_transfer failed: LIBUSB_ERROR_IO

and also in the dmesg I have lots of those errors:

[ 6016.093106] usb 4-1.3: usbfs: process 30162 (pcscd) did not claim interface 0 before use

My setup information is:

Reader type: ACS ACR122U A9, (ACS ACR122U 00 00 )
Driver version:libacsccid1  1.1.4-1  amd64      
pcsc-lite version 1.8.18
Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d
OS: Kali Linux (I have the same behaviour in ubuntu 16.04)

in the log.txt file I am running the command with the LIBCCID_ifdLogeLevel flag as you mention in the  pcsclite page and after a while I am also running the mfcuk -C -R 0:A -s 250 -S 250 -v 3 command which produces the errror  LIBUSB_ERROR_IO which I mentioned above.


Let me know if I am missing any information.

Cheers,

vazma

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

log.txt (35K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ACS ACR122U A9 issues

Godfrey Chung-3
Hi Vazma

> My setup information is:
>
> Reader type: ACS ACR122U A9, (ACS ACR122U 00 00 )
> Driver version:libacsccid1  1.1.4-1  amd64
> pcsc-lite version 1.8.18
> Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev
> usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd
> configdir=/etc/reader.conf.d
> OS: Kali Linux (I have the same behaviour in ubuntu 16.04)

Are you running in Virtual Machine?

Regards

Godfrey

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ACS ACR122U A9 issues

Vazma
Hi and sorry for the late ansewr,

no i am running locally without any usb hub.

Thank you,

vazma


Sent with ProtonMail Secure Email.

-------- Original Message --------
Subject: Re: [Pcsclite-muscle] ACS ACR122U A9 issues
Local Time: 23 February 2017 7:30 AM
UTC Time: 23 February 2017 06:30
To: Talks about MUSCLE <[hidden email]>

Hi Vazma

> My setup information is:
>
> Reader type: ACS ACR122U A9, (ACS ACR122U 00 00 )
> Driver version:libacsccid1 1.1.4-1 amd64
> pcsc-lite version 1.8.18
> Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev
> usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd
> configdir=/etc/reader.conf.d
> OS: Kali Linux (I have the same behaviour in ubuntu 16.04)

Are you running in Virtual Machine?

Regards

Godfrey

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


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ACS ACR122U A9 issues

Godfrey Chung-3
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.

Did you disable PN533 kernel modules?

Regards

Godfrey

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ACS ACR122U A9 issues

Ludovic Rousseau
Hello,

2017-03-07 8:07 GMT+01:00 Godfrey Chung <[hidden email]>:
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
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ACS ACR122U A9 issues

Vazma
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 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
To: Talks about MUSCLE <[hidden email]>

Hello,

2017-03-07 8:07 GMT+01:00 Godfrey Chung <[hidden email]>:
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.

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

--
 Dr. Ludovic Rousseau


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: ACS ACR122U A9 issues

Godfrey Chung-3
Hi Vazma

> 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.

According to the log, I can't find any command generated by mfcuk
program. Maybe you configure libnfc talking to the reader directly and
cause problem in the driver.

Regards

Godfrey

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