[Pcsclite-muscle] ACR122U NFC Card Reader
Valentin Geffroy
valentin.geffroy at iot.bzh
Tue Jan 23 08:00:17 PST 2024
Hello,
We've noticed an issue on the ACR122U NFC Card Reader. When its is
connected to a Linux based embedded board (using your reader with libusb
& pscsd 2.0.1 / ccid 1.5.5), the reader is not detected by the pcscd
daemon.
It works when we unplugged/plugged the reader again.
After a boot:
```
00000095 [281473221880224] ccid_usb.c:750:OpenUSBByName() Using USB
bus/device: 1/3
00000022 [281473221880224] ccid_usb.c:814:OpenUSBByName()
bNumDataRatesSupported is 0
00173126 [281473221880224] ccid_usb.c:1071:ReadUSB() read failed (1/3):
LIBUSB_ERROR_TIMEOUT
00055909 [281473221880224] ccid_usb.c:1095:ReadUSB() Invalid frame detected
00116065 [281473221880224] ccid_usb.c:1071:ReadUSB() read failed (1/3):
LIBUSB_ERROR_TIMEOUT
00000109 [281473221880224]
ifdhandler.c:203:CreateChannelByNameOrChannel() failed
00000184 [281473221880224] ccid_usb.c:208:close_libusb_if_needed()
libusb_exit
00004089 [281473221880224] readerfactory.c:1136:RFInitializeReader()
Open Port 0x200000 Failed (usb:072f/2200:libudev:0:/dev/bus/usb/001/003)
00000086 [281473221880224] readerfactory.c:374:RFAddReader() ACS ACR122U
PICC Interface init failed.
00000024 [281473221880224] readerfactory.c:624:RFRemoveReader()
UnrefReader() count was: 1
00000014 [281473221880224] readerfactory.c:1149:RFUnInitializeReader()
Attempting shutdown of ACS ACR122U PICC Interface 00 00.
```
After unplug/plug the reader :
```
00049715 [281473190051136] ifdhandler.c:390:IFDHGetCapabilities() tag:
0xFB3, usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000036 [281473190051136] readerfactory.c:394:RFAddReader() Using the
reader polling thread
00000417 [281473190051136] ifdhandler.c:390:IFDHGetCapabilities() tag:
0xFAE, usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000050 [281473190051136] ifdhandler.c:473:IFDHGetCapabilities() Reader
supports 1 slot(s)
02751965 [281473198443840] ifdhandler.c:1233:IFDHPowerICC() action:
PowerUp, usb:072f/2200:libudev:0:/dev/bus/usb/001/005 (lun: 0)
00000281 [281473198443840] eventhandler.c:406:EHStatusHandlerThread()
powerState: POWER_STATE_POWERED
00000071 [281473198443840] eventhandler.c:423:EHStatusHandlerThread()
Card inserted into ACS ACR122U PICC Interface 00 00
00000037 [281473198443840] Card ATR: 3B 8F 80 01 80 4F 0C A0 00 00 03 06
03 00 01 00 00 00 00 6A
00390039 [281473198443840] eventhandler.c:482:EHStatusHandlerThread()
powerState: POWER_STATE_UNPOWERED
00000200 [281473198443840] eventhandler.c:358:EHStatusHandlerThread()
Card Removed From ACS ACR122U PICC Interface 00 00
```
Do you have tips or ideas why it doesn't work at a first boot?
Thanks,
Valentin Geffroy
--
Valentin Geffroy - Embedded Engineer at IoT.bzh
valentin.geffroy at iot.bzh - https://iot.bzh
More information about the pcsclite-muscle
mailing list