Comments (6)
This reader "ACS ACR122U PICC Interface" is in the "Unsupported" list
https://ccid.apdu.fr/ccid/unsupported.html#0x072F0x2200
So I am not very surprised it does not work as expected.
I would need a complete pcscd log as documented in https://ccid.apdu.fr/#support
from pcsc-tools.
Thanks @LudovicRousseau!
As I told you before, this happens only when Linux starts; once Linux starts if we unplug then replug the wire, it starts working normally.
:~$ /usr/sbin/pcscd --version
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2015 by Ludovic Rousseau <[email protected]>.
Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
Report bugs to <[email protected]>.
Enabled features: Linux arm-unknown-linux-gnueabihf libsystemd serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d
:~$ sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt
00000000 debuglog.c:299:DebugLogSetLevel() debug level=debug
00000124 debuglog.c:320:DebugLogSetCategory() Debug options: APDU
00000020 [-1225039744] pcscdaemon.c:352:main() Force colored logs
00000227 [-1225039744] utils.c:82:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory
00000513 [-1225039744] configfile.l:284:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000072 [-1225039744] configfile.l:360:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000209 [-1225039744] configfile.l:321:DBGetReaderListDir() Skipping non regular file: .
00000026 [-1225039744] configfile.l:321:DBGetReaderListDir() Skipping non regular file: ..
00000039 [-1225039744] pcscdaemon.c:662:main() pcsc-lite 1.8.24 daemon ready.
00021693 [-1225039744] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00001425 [-1225039744] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00001352 [-1225039744] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x2109, PID: 0x3431, path: /dev/bus/usb/001/002
00001415 [-1225039744] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x072F, PID: 0x2200, path: /dev/bus/usb/001/003
00000040 [-1225039744] hotplug_libudev.c:436:HPAddDevice() Adding USB device: ACS ACR122U PICC Interface
00000275 [-1225039744] readerfactory.c:1075:RFInitializeReader() Attempting startup of ACS ACR122U PICC Interface 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00001146 [-1225039744] readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000138 [-1225039744] ifdhandler.c:1961:init_driver() Driver version: 1.4.30
00004230 [-1225039744] ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000038 [-1225039744] ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00000882 [-1225039744] ifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000028 [-1225039744] ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:072f/2200:libudev:0:/dev/bus/usb/001/003
00000021 [-1225039744] ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:072f/2200:libudev:0:/dev/bus/usb/001/003
00000044 [-1225039744] ccid_usb.c:269:OpenUSBByName() interface_number: 0
00000019 [-1225039744] ccid_usb.c:270:OpenUSBByName() usb bus/device: 1/3
00000019 [-1225039744] ccid_usb.c:302:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00004029 [-1225039744] ccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00000034 [-1225039744] ccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver
00000021 [-1225039744] ccid_usb.c:322:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00016819 [-1225039744] ccid_usb.c:406:OpenUSBByName() Try device: 1/3
00000042 [-1225039744] ccid_usb.c:416:OpenUSBByName() vid/pid : 072F/2200
00000019 [-1225039744] ccid_usb.c:483:OpenUSBByName() Checking device: 1/3
00000019 [-1225039744] ccid_usb.c:554:OpenUSBByName() Trying to open USB bus/device: 1/3
00236444 [-1225039744] ccid_usb.c:660:OpenUSBByName() Found Vendor/Product: 072F/2200 (ACS ACR122U PICC Interface)
00000019 [-1225039744] ccid_usb.c:662:OpenUSBByName() Using USB bus/device: 1/3
00000008 [-1225039744] ccid_usb.c:722:OpenUSBByName() bNumDataRatesSupported is 0
00004434 [-1225039744] ccid_usb.c:1306:InterruptRead() before (0)
00033011 [-1225039744] ccid_usb.c:1352:InterruptRead() after (0) (0)
00000017 [-1225039744] NotifySlotChange: 50 03
00000012 [-1225039744] -> 000000 65 00 00 00 00 00 00 00 00 00
00021952 [-1225039744] <- 000000 81 00 00 00 00 00 02 02 81 00
00000017 [-1225039744] -> 000000 65 00 00 00 00 00 01 00 00 00
00049896 [-1225039744] <- 000000 81 00 00 00 00 00 00 02 81 00
00000013 [-1225039744] ccid_usb.c:920:ReadUSB() Duplicate frame detected
00100263 [-1225039744] ccid_usb.c:898:ReadUSB() read failed (1/3): -7 LIBUSB_ERROR_TIMEOUT
00000019 [-1225039744] -> 000000 65 00 00 00 00 00 02 00 00 00
00007938 [-1225039744] <- 000000 81 00 00 00 00 00 01 02 81 00
00000012 [-1225039744] ccid_usb.c:920:ReadUSB() Duplicate frame detected
00100244 [-1225039744] ccid_usb.c:898:ReadUSB() read failed (1/3): -7 LIBUSB_ERROR_TIMEOUT
00000014 [-1225039744] ifdhandler.c:194:CreateChannelByNameOrChannel() failed
00000008 [-1225039744] ccid_usb.c:941:CloseUSB() Closing USB device: 1/3
00000011 [-1225039744] ccid_usb.c:951:CloseUSB() Last slot closed. Release resources
00000076 [-1225039744] ccid_usb.c:189:close_libusb_if_needed() libusb_exit
00000369 [-1225039744] readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:072f/2200:libudev:0:/dev/bus/usb/001/003)
00000016 [-1225039744] readerfactory.c:376:RFAddReader() ACS ACR122U PICC Interface init failed.
00000008 [-1225039744] readerfactory.c:610:RFRemoveReader() UnrefReader() count was: 1
00000016 [-1225039744] readerfactory.c:1126:RFUnInitializeReader() Attempting shutdown of ACS ACR122U PICC Interface 00 00.
00000007 [-1225039744] readerfactory.c:987:RFUnloadReader() Unloading reader driver.
00000142 [-1225039744] hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: ACS ACR122U PICC Interface
00000646 [-1225039744] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x2109, PID: 0x3431, path: /dev/bus/usb/001/002
00001382 [-1225039744] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
Hope this makes sense!
from pcsc-tools.
You are using the CCID driver version 1.4.30.
Upgrade to version 1.5.0 and try again.
https://packages.debian.org/bookworm/libccid
from pcsc-tools.
Thank you @LudovicRousseau, but still we're facing the same:
root@raspberrypi:/home/pi# sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt
00000000 debuglog.c:299:DebugLogSetLevel() debug level=debug
00000086 debuglog.c:320:DebugLogSetCategory() Debug options: APDU
00000020 [-1224806272] pcscdaemon.c:352:main() Force colored logs
00000259 [-1224806272] utils.c:82:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory
00000876 [-1224806272] configfile.l:284:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000074 [-1224806272] configfile.l:360:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000334 [-1224806272] configfile.l:321:DBGetReaderListDir() Skipping non regular file: .
00000105 [-1224806272] configfile.l:321:DBGetReaderListDir() Skipping non regular file: ..
00000046 [-1224806272] pcscdaemon.c:662:main() pcsc-lite 1.8.24 daemon ready.
00025338 [-1224806272] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00001700 [-1224806272] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00001592 [-1224806272] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x2109, PID: 0x3431, path: /dev/bus/usb/001/002
00002000 [-1224806272] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x072F, PID: 0x2200, path: /dev/bus/usb/001/003
00000043 [-1224806272] hotplug_libudev.c:436:HPAddDevice() Adding USB device: ACS ACR122U PICC Interface
00000422 [-1224806272] readerfactory.c:1075:RFInitializeReader() Attempting startup of ACS ACR122U PICC Interface 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00001414 [-1224806272] readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000173 [-1224806272] ifdhandler.c:2071:init_driver() Driver version: 1.5.0
00006158 [-1224806272] ifdhandler.c:2088:init_driver() LogLevel: 0x0003
00000039 [-1224806272] ifdhandler.c:2099:init_driver() DriverOptions: 0x0000
00001373 [-1224806272] ifdhandler.c:2112:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000029 [-1224806272] ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:072f/2200:libudev:0:/dev/bus/usb/001/003
00000021 [-1224806272] ccid_usb.c:252:OpenUSBByName() Reader index: 0, Device: usb:072f/2200:libudev:0:/dev/bus/usb/001/003
00000104 [-1224806272] ccid_usb.c:284:OpenUSBByName() interface_number: 0
00000020 [-1224806272] ccid_usb.c:285:OpenUSBByName() usb bus/device: 1/3
00000019 [-1224806272] ccid_usb.c:317:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00004880 [-1224806272] ccid_usb.c:335:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00000039 [-1224806272] ccid_usb.c:336:OpenUSBByName() ifdProductString: Generic CCID driver
00000021 [-1224806272] ccid_usb.c:337:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00017471 [-1224806272] ccid_usb.c:421:OpenUSBByName() Try device: 1/3
00000043 [-1224806272] ccid_usb.c:431:OpenUSBByName() vid/pid : 072F/2200
00000018 [-1224806272] ccid_usb.c:502:OpenUSBByName() Checking device: 1/3
00000018 [-1224806272] ccid_usb.c:573:OpenUSBByName() Trying to open USB bus/device: 1/3
00233253 [-1224806272] ccid_usb.c:679:OpenUSBByName() Found Vendor/Product: 072F/2200 (ACS ACR122U PICC Interface)
00000021 [-1224806272] ccid_usb.c:681:OpenUSBByName() Using USB bus/device: 1/3
00000008 [-1224806272] ccid_usb.c:744:OpenUSBByName() bNumDataRatesSupported is 0
00004595 [-1224806272] ccid_usb.c:1473:InterruptRead() before (0), timeout: 100 ms
00032707 [-1224806272] ccid_usb.c:1519:InterruptRead() after (0) (0)
00000017 [-1224806272] NotifySlotChange: 50 03
00000011 [-1224806272] -> 000000 65 00 00 00 00 00 00 00 00 00
00022508 [-1224806272] <- 000000 81 00 00 00 00 00 02 02 81 00
00000015 [-1224806272] ccid_usb.c:1020:ReadUSB() Invalid frame detected
03000470 [-1224806272] ccid_usb.c:993:ReadUSB() read failed (1/3): LIBUSB_ERROR_TIMEOUT
00000054 [-1224806272] -> 000000 65 00 00 00 00 00 01 00 00 00
00077633 [-1224806272] <- 000000 81 00 00 00 00 00 00 02 81 00
00000032 [-1224806272] ccid_usb.c:1020:ReadUSB() Invalid frame detected
00100404 [-1224806272] ccid_usb.c:993:ReadUSB() read failed (1/3): LIBUSB_ERROR_TIMEOUT
00000044 [-1224806272] -> 000000 65 00 00 00 00 00 02 00 00 00
00000626 [-1224806272] <- 000000 81 00 00 00 00 00 01 02 81 00
00000030 [-1224806272] ccid_usb.c:1020:ReadUSB() Invalid frame detected
00100424 [-1224806272] ccid_usb.c:993:ReadUSB() read failed (1/3): LIBUSB_ERROR_TIMEOUT
00000037 [-1224806272] ifdhandler.c:202:CreateChannelByNameOrChannel() failed
00000019 [-1224806272] ccid_usb.c:1039:CloseUSB() Closing USB device: 1/3
00000029 [-1224806272] ccid_usb.c:1051:CloseUSB() Last slot closed. Release resources
00000214 [-1224806272] ccid_usb.c:204:close_libusb_if_needed() libusb_exit
00001290 [-1224806272] readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:072f/2200:libudev:0:/dev/bus/usb/001/003)
00000034 [-1224806272] readerfactory.c:376:RFAddReader() ACS ACR122U PICC Interface init failed.
00000019 [-1224806272] readerfactory.c:610:RFRemoveReader() UnrefReader() count was: 1
00000018 [-1224806272] readerfactory.c:1126:RFUnInitializeReader() Attempting shutdown of ACS ACR122U PICC Interface 00 00.
00000022 [-1224806272] readerfactory.c:987:RFUnloadReader() Unloading reader driver.
00000505 [-1224806272] hotplug_libudev.c:523:HPAddDevice() Failed adding USB device: ACS ACR122U PICC Interface
00001753 [-1224806272] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x2109, PID: 0x3431, path: /dev/bus/usb/001/002
00003491 [-1224806272] hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
from pcsc-tools.
The reader does answer with the correct sequence number, unless you reboot the reader doing unplug/replug.
I suggest to use another reader model.
You can also report the problem to ACS and hope for a fix.
from pcsc-tools.
Thank you @LudovicRousseau - will try that!
from pcsc-tools.
Related Issues (20)
- pcsc_scan under Ubuntu requirements: libgtk3-perl HOT 1
- pcsc_scan ISO/IEC 14443-4B ? HOT 2
- How to submit misrecognized card HOT 3
- Reader AK910 HKey not detected HOT 2
- Need to add new DOD CAC card HOT 2
- can not compile under windows HOT 2
- how to compile the pcsc_scan.exe with UNICODE on Windows platform HOT 5
- Non-relevant application to strings of red color code HOT 4
- Observations HOT 1
- File LICENCE not in tar.bz2 archive HOT 1
- configure fails
- compile from git fails HOT 5
- Please add more maps to the database HOT 1
- SCardEstablishContext: Service was stopped. HOT 2
- SCardGetStatusChange for PNP notification return SCARD_E_TIMEOUT HOT 10
- try setup in raspberry pi HOT 13
- Update to smartcard_list.txt for ATR 3BB2110010800016 HOT 3
- pcsc scan : waiting for the first reader HOT 1
- ACR122u is visible only after disconnection and reconnection HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcsc-tools.