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_NO_DEVICE after reader reset #208

Open
martonbenedek opened this issue Sep 3, 2024 · 5 comments
Open

LIBUSB_ERROR_NO_DEVICE after reader reset #208

martonbenedek opened this issue Sep 3, 2024 · 5 comments

Comments

@martonbenedek
Copy link

Versions

pcsc v2.3.0
ccid v1.6.1

Platform

Linux Kernel v6.1.28
VIX TECHNOLOGY SECURE READER (USB)

Issue

We have been using pcsc and ccid for a long time and has been working well with Linux Kernel 5.4.31
We recently upgraded to Kernel 6.1.28, pcsc and ccid still working well, however there seems to be an issue when the reader is reset (or power cycled through a USB hub), pcsc will fail to re-detect the reader, logs showing libusb_open failed: LIBUSB_ERROR_NO_DEVICE.
This requires a restart of pcscd, then reader is working again.
Again, this issue seems only apparent in Linux Kernel 6.1.28, no issue in Kernel 5.4.31.

Log attached

taipan2_log_pcscd230_ccid161.txt

@LudovicRousseau
Copy link
Owner

What is the output of the command /usr/sbin/pcscd --version?

@LudovicRousseau
Copy link
Owner

I do not have the "VIX TECHNOLOGY SECURE READER" reader in the list of CCID device.
Please follow https://ccid.apdu.fr/#CCID_compliant

@martonbenedek
Copy link
Author

/usr/sbin/pcscd --version

pcsc-lite version 2.2.0
Copyright (C) 1999-2002 by David Corcoran [email protected].
Copyright (C) 2001-2024 by Ludovic Rousseau [email protected].
Copyright (C) 2003-2004 by Damien Sauveron [email protected].
Report bugs to [email protected].
Enabled features: Linux arm-ostl-linux-gnueabi usb libusb usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd filter configdir=/usr/etc/reader.conf.d
MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16

We have added our reader (https://vixtechnology.com/products/devices) to the ccid package, see attached output of parse.
output.log

@LudovicRousseau
Copy link
Owner

Try building pcsc-lite with libudev instead of libusb.

Another idea is to enable DEBUG_HOTPLUG in src/hotplug_libusb.c to get more logs.

@LudovicRousseau
Copy link
Owner

Any news?

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

No branches or pull requests

2 participants