Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIBUSB_ERROR_TIMEOUT && ACS ACR39U ICC reader? #147

Closed
triple-it opened this issue Aug 30, 2022 · 3 comments
Closed

LIBUSB_ERROR_TIMEOUT && ACS ACR39U ICC reader? #147

triple-it opened this issue Aug 30, 2022 · 3 comments
Assignees

Comments

@triple-it
Copy link

Hi,

Is the ACS ACR39U also not supported?
See below..

Versions

  • smart card reader driver name and version
  • pcsc-lite version
  • the output of the command /usr/sbin/pcscd --version
root@triplemobile5:~# /usr/sbin/pcscd --version
pcsc-lite version 1.8.26.
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2018 by Ludovic Rousseau <[email protected]>.
Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
Report bugs to <[email protected]>.
Enabled features: Linux x86_64-pc-linux-gnu libsystemd serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd filter configdir=/etc/reader.conf.d
root@triplemobile5:~# 

Platform

  • Operating system or GNU/Linux distribution name and version: Ubuntu 20.04.1 LTS (focal)
  • Smart card middleware name and version
  • Smart card reader manufacturer name and reader model name: ACS ACR39U ICC reader
  • Smart card name

Issue

  • What do you do?
  • What result do you expect?
  • What result do you get instead?

Log

Then you shall generate a complete log (do not truncate it).

root@triplemobile5:~# sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color
00000000 [140107061897152] debuglog.c:299:DebugLogSetLevel() debug level=debug
00000011 [140107061897152] debuglog.c:320:DebugLogSetCategory() Debug options: APDU
00000004 [140107061897152] pcscdaemon.c:353:main() Force colored logs
00000113 [140107061897152] configfile.l:293:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000011 [140107061897152] configfile.l:329:DBGetReaderListDir() Skipping non regular file: ..
00000004 [140107061897152] configfile.l:329:DBGetReaderListDir() Skipping non regular file: .
00000003 [140107061897152] configfile.l:369:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000021 [140107061897152] pcscdaemon.c:663:main() pcsc-lite 1.8.26 daemon ready.
00002729 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000084 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000084 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x03F0, PID: 0x0024, path: /dev/bus/usb/001/007
00000091 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000106 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x8087, PID: 0x0A2B, path: /dev/bus/usb/001/008
00000080 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x8087, PID: 0x0A2B, path: /dev/bus/usb/001/008
00000128 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
00000081 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
00000080 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x2500, PID: 0x0020, path: /dev/bus/usb/002/004
00000081 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x2500, PID: 0x0020, path: /dev/bus/usb/002/004
00000082 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x2500, PID: 0x0020, path: /dev/bus/usb/002/004
00000083 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x2500, PID: 0x0020, path: /dev/bus/usb/002/004
00000079 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x2500, PID: 0x0020, path: /dev/bus/usb/002/004
00000228 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000094 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000098 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x072F, PID: 0xB100, path: /dev/bus/usb/003/002
00000005 [140107061897152] hotplug_libudev.c:440:HPAddDevice() Adding USB device: ACS ACR39U ICC Reader
00000020 [140107061897152] readerfactory.c:1074:RFInitializeReader() Attempting startup of ACS ACR39U ICC Reader 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000107 [140107061897152] readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000015 [140107061897152] ifdhandler.c:1961:init_driver() Driver version: 1.4.31
00000365 [140107061897152] ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000005 [140107061897152] ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00000105 [140107061897152] ifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000003 [140107061897152] ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:072f/b100:libudev:0:/dev/bus/usb/003/002
00000007 [140107061897152] ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:072f/b100:libudev:0:/dev/bus/usb/003/002
00000005 [140107061897152] ccid_usb.c:269:OpenUSBByName() interface_number: 0
00000002 [140107061897152] ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/2
00000003 [140107061897152] ccid_usb.c:302:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000348 [140107061897152] ccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00000004 [140107061897152] ccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver
00000003 [140107061897152] 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.
00002469 [140107061897152] ccid_usb.c:406:OpenUSBByName() Try device: 3/2
00000005 [140107061897152] ccid_usb.c:416:OpenUSBByName() vid/pid : 072F/B100
00000003 [140107061897152] ccid_usb.c:482:OpenUSBByName() Checking device: 3/2
00000003 [140107061897152] ccid_usb.c:553:OpenUSBByName() Trying to open USB bus/device: 3/2
00132297 [140107061897152] ccid_usb.c:659:OpenUSBByName() Found Vendor/Product: 072F/B100 (ACS ACR39U ICC Reader)
00000005 [140107061897152] ccid_usb.c:661:OpenUSBByName() Using USB bus/device: 3/2
00000002 [140107061897152] ccid_usb.c:722:OpenUSBByName() bNumDataRatesSupported is 0
00000578 [140107061897152] ccid_usb.c:1306:InterruptRead() before (0), timeout: 100 ms
00011618 [140107061897152] ccid_usb.c:1352:InterruptRead() after (0) (0)
00000005 [140107061897152] NotifySlotChange: 50 03 
00000003 [140107061897152] -> 000000 65 00 00 00 00 00 00 00 00 00 
03000113 [140107061897152] ccid_usb.c:896:ReadUSB() read failed (3/2): -7 LIBUSB_ERROR_TIMEOUT
00000007 [140107061897152] -> 000000 65 00 00 00 00 00 01 00 00 00 
00100130 [140107061897152] ccid_usb.c:896:ReadUSB() read failed (3/2): -7 LIBUSB_ERROR_TIMEOUT
00000054 [140107061897152] -> 000000 65 00 00 00 00 00 02 00 00 00 
00100137 [140107061897152] ccid_usb.c:896:ReadUSB() read failed (3/2): -7 LIBUSB_ERROR_TIMEOUT
00000055 [140107061897152] ifdhandler.c:194:CreateChannelByNameOrChannel() failed
00000004 [140107061897152] ccid_usb.c:939:CloseUSB() Closing USB device: 3/2
00000006 [140107061897152] ccid_usb.c:951:CloseUSB() Last slot closed. Release resources
00000016 [140107061897152] ccid_usb.c:189:close_libusb_if_needed() libusb_exit
00000082 [140107061897152] readerfactory.c:1105:RFInitializeReader() Open Port 0x200000 Failed (usb:072f/b100:libudev:0:/dev/bus/usb/003/002)
00000004 [140107061897152] readerfactory.c:376:RFAddReader() ACS ACR39U ICC Reader init failed.
00000004 [140107061897152] readerfactory.c:610:RFRemoveReader() UnrefReader() count was: 1
00000004 [140107061897152] readerfactory.c:1125:RFUnInitializeReader() Attempting shutdown of ACS ACR39U ICC Reader 00 00.
00000004 [140107061897152] readerfactory.c:987:RFUnloadReader() Unloading reader driver.
00000050 [140107061897152] hotplug_libudev.c:526:HPAddDevice() Failed adding USB device: ACS ACR39U ICC Reader
00000311 [140107061897152] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
01459921 [140107061897152] winscard_msg_srv.c:256:ProcessEventsServer() Common channel packet arrival
00000036 [140107061897152] winscard_msg_srv.c:267:ProcessEventsServer() ProcessCommonChannelRequest detects: 7
00000005 [140107061897152] pcscdaemon.c:133:SVCServiceRunLoop() A new context thread creation is requested: 7
00000167 [140107044869888] winscard_svc.c:340:ContextThread() Authorized PC/SC client
00000014 [140107044869888] winscard_svc.c:343:ContextThread() Thread is started: dwClientID=7, threadContext @0x564256df8b80
00000013 [140107044869888] winscard_svc.c:361:ContextThread() Received command: CMD_VERSION from client 7
00000006 [140107044869888] winscard_svc.c:373:ContextThread() Client is protocol version 4:4
00000004 [140107044869888] winscard_svc.c:396:ContextThread() CMD_VERSION rv=0x0 for client 7
00000033 [140107044869888] winscard_svc.c:361:ContextThread() Received command: ESTABLISH_CONTEXT from client 7
00000006 [140107044869888] winscard.c:215:SCardEstablishContext() Establishing Context: 0x7E9DC8FF
00000004 [140107044869888] winscard_svc.c:461:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 7
00000032 [140107044869888] winscard_svc.c:361:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
00675528 [140107044869888] winscard_svc.c:354:ContextThread() Client die: 7
00000030 [140107044869888] winscard.c:229:SCardReleaseContext() Releasing Context: 0x7E9DC8FF
00000037 [140107044869888] winscard_svc.c:1055:MSGCleanupClient() Thread is stopping: dwClientID=7, threadContext @0x564256df8b80
00000003 [140107044869888] winscard_svc.c:1063:MSGCleanupClient() Freeing SCONTEXT @0x564256df8b80

If somebody could hand me some tips to debug this nicely, I'm interested!

@LudovicRousseau
Copy link
Owner

This reader is in the "Should work but untested by me" list
https://ccid.apdu.fr/ccid/shouldwork.html#0x072F0xB100

Do you still have the same problem (LIBUSB_ERROR_TIMEOUT) after unplug and replug of the reader?

@LudovicRousseau
Copy link
Owner

@triple-it with no comment from your side I will close this issue.

@LudovicRousseau
Copy link
Owner

No news since 2 months.
Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants