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

Long delay #149

Closed
jeremyherbert opened this issue Sep 24, 2022 · 1 comment
Closed

Long delay #149

jeremyherbert opened this issue Sep 24, 2022 · 1 comment
Assignees
Labels

Comments

@jeremyherbert
Copy link

jeremyherbert commented Sep 24, 2022

Versions

  • USB (OMNIKEY 5021 CL)
  • 1.9.9 (compiled from release tarball)
  • the output of the command /usr/sbin/pcscd --version:
pcsc-lite version 1.9.9.
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2022 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 libusb usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/run/pcscd filter configdir=/usr/local/etc/reader.conf.d
MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16

Platform

  • Xubuntu 22.04 (running on VMware Fusion 12.2.4)
  • OMNIKEY 5021 CL

Issue

  • I have built and installed pcscd 1.9.9 and ccid 1.5.0 on a clean OS install (in a VM). I used ./configure --disable-libudev --enable-libusb for pcscd and just ./configure for ccid. Then make && sudo make install for both. I also copied src/92_pcscd_ccid.rules to /etc/udev/rules.d.
  • pcscd takes a long time to start up when using the drivers from HID (~60 seconds)
  • pcscd takes a long time to close when CTRL+C is pressed (~60 seconds)
  • It is using the HID drivers: https://www.hidglobal.com/drivers/30476
  • This is not listed as a supported reader
  • I will also send an email to the HID support email about this report

Log

This is a log of:

  1. start pcscd
  2. plug in reader
  3. wait for reader to startup
  4. place card on reader and remove
  5. unplug + replug USB
  6. wait for reader to startup
  7. place card on reader and remove

log.txt

00000000 debuglog.c:390:DebugLogSetLevel() debug level=debug
00000049 debuglog.c:411:DebugLogSetCategory() Debug options: APDU
00000008 [140398588667840] pcscdaemon.c:356:main() Force colored logs
00000042 [140398588667840] utils.c:82:GetDaemonPid() Can't open /run/pcscd/pcscd.pid: No such file or directory
00000507 [140398588667840] configfile.l:369:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000028 [140398588667840] pcscdaemon.c:666:main() pcsc-lite 1.9.9 daemon ready.
00014031 [140398580270656] hotplug_libusb.c:507:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000175 [140398580270656] hotplug_libusb.c:517:HPEstablishUSBNotifications() Polling forced every 1 second(s)
18018628 [140398580270656] hotplug_libusb.c:621:HPAddHotPluggable() Adding USB device: 3:5:0
00003269 [140398580270656] readerfactory.c:1093:RFInitializeReader() Attempting startup of OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00 using /usr/local/lib/pcsc/drivers/ifdokccid_linux_x86_64-4.3.3-3-a973c36ed296.bundle/Contents/Linux/ifdokccid.so
00001059 [140398580270656] readerfactory.c:968:RFBindFunctions() Loading IFD Handler 3.0
[HID Global] HID Global OMNIKEY CCID driver x86_64 4.3.3-3-a973c36ed296 [email protected]
62809479 [140398580270656] readerfactory.c:398:RFAddReader() Using the reader polling thread
07921753 [140398550836800] eventhandler.c:406:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000039 [140398550836800] eventhandler.c:423:EHStatusHandlerThread() Card inserted into OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00
00000014 [140398550836800] Card ATR: 3B 81 80 01 80 80 
00689380 [140398550836800] eventhandler.c:482:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
01745670 [140398550836800] eventhandler.c:358:EHStatusHandlerThread() Card Removed From OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00
05166924 [140398550836800] ifdwrapper.c:364:IFDStatusICC() Card not transacted: 617
00000040 [140398550836800] utils.c:98:SendHotplugSignal() Send hotplug signal to pcscd (pid=1509)
00000296 [140398588663360] pcscdaemon.c:193:signal_thread() Received signal: 10
00000031 [140398588663360] hotplug_libusb.c:807:HPReCheckSerialReaders()
00563243 [140398580270656] hotplug_libusb.c:776:HPRemoveHotPluggable() Removing USB device[0]: 3:5:0
00000040 [140398580270656] readerfactory.c:628:RFRemoveReader() UnrefReader() count was: 1
00000012 [140398580270656] eventhandler.c:175:EHDestroyEventHandler() Stomping thread.
00000010 [140398580270656] eventhandler.c:204:EHDestroyEventHandler() Waiting polling thread
00436711 [140398550836800] eventhandler.c:336:EHStatusHandlerThread() Error communicating to: OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00
00400535 [140398550836800] eventhandler.c:504:EHStatusHandlerThread() Die
00000746 [140398580270656] eventhandler.c:215:EHDestroyEventHandler() Thread stomped.
00000029 [140398580270656] readerfactory.c:1147:RFUnInitializeReader() Attempting shutdown of OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00.
00087261 [140398580270656] readerfactory.c:1005:RFUnloadReader() Unloading reader driver.
11008493 [140398580270656] hotplug_libusb.c:621:HPAddHotPluggable() Adding USB device: 3:6:0
00006801 [140398580270656] readerfactory.c:1093:RFInitializeReader() Attempting startup of OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00 using /usr/local/lib/pcsc/drivers/ifdokccid_linux_x86_64-4.3.3-3-a973c36ed296.bundle/Contents/Linux/ifdokccid.so
00000370 [140398580270656] readerfactory.c:968:RFBindFunctions() Loading IFD Handler 3.0
[HID Global] HID Global OMNIKEY CCID driver x86_64 4.3.3-3-a973c36ed296 [email protected]
62849345 [140398580270656] readerfactory.c:398:RFAddReader() Using the reader polling thread
05062683 [140398550836800] eventhandler.c:406:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000027 [140398550836800] eventhandler.c:423:EHStatusHandlerThread() Card inserted into OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00
00000009 [140398550836800] Card ATR: 3B 81 80 01 80 80 
00689639 [140398550836800] eventhandler.c:482:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
08639340 [140398550836800] eventhandler.c:358:EHStatusHandlerThread() Card Removed From OMNIKEY CardMan (076B:5340) 5021 CL (OKCM0031605161348166145746305620) 00 00
@LudovicRousseau
Copy link
Owner

I do not, and can't, support the HID drivers.

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

No branches or pull requests

2 participants