-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Reader not detected when disconnecting / connecting usb hub #20
Comments
This is because the 3021 reader is added before it has been completely removed (from pcscd point of view). Do you have the same problem if you use my CCID driver instead? |
Can you try to apply the attached patch and try again? --- /var/folders/5h/3d1x67_x5g30t36wypgxpmpc0000gn/T//OepuQa_readerfactory.c 2017-06-08 15:45:31.000000000 +0200
+++ src/readerfactory.c 2017-06-08 15:45:14.000000000 +0200
@@ -241,7 +241,8 @@ LONG RFAddReader(const char *readerNameL
lpcStripReader[tmplen - 6] = 0;
if ((strcmp(readerName, lpcStripReader) == 0) &&
- (port == sReadersContexts[i]->port))
+ (port == sReadersContexts[i]->port)
+ && (strcmp(device, sReadersContexts[i]->device) == 0))
{
Log1(PCSC_LOG_ERROR, "Duplicate reader found.");
return SCARD_E_DUPLICATE_READER; |
It seems it doesn't happen but I can't use your driver because I'm using
Compiling it now. Thanks!! |
After some initial testing it looks like it works correctly. I'll give more feedback in a few days. Thanks a lot @LudovicRousseau ! |
Scenario description
OS: Debian Jessie
[email protected]
[email protected]
Two card readers connected through a USB HUB. The readers are:
OMNIKEY CardMan (076B:5121) 5121
OMNIKEY CardMan (076B:3021) 3021
I'm using the proprietary ccid driver from OMNIKEY
From time to time, if the hub is disconnected and connected immediately the second reader(3021) is not correctly opened by pcscd even though is correctly detected by the kernel. The relevant logs from pcscd seem to be:
Find attached the full pcscd log:
log2.txt
Any help with this issue would be appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: