-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
[Question] Max readers limit #8
Comments
No real reason. It is historical (and easier). Feel free to propose a patch to use a (dynamic) list instead of an (fixed) array. |
I wish i could, but I'm not that familiar with C. For now, I'm just editing the header files, and re-compiling when needed. Thanks for the answer. |
I is a known "limitation". |
Oh okay. Cool, that it's on your to-do list. We're using this software in multiple servers, having 36 cardreaders attached. So making new binaries, with the limit changed in the source, has not been a problem. :) |
Maybe it's worth adding that this limit also applies to the maximum number of available slots. Since every slot of a single reader is treated as a new reader, it is not possible to add more readers (or slots) when a reader with 16 slots is attached. |
I've never thought of, that a reader could consist of several slots. But that makes sense. |
@frankmorgner, do you know a reader with 16 slots? The maximum I have in my list is 6 slots for the Elatec TWN4 SmartCard NFC https://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x09D80x0427 but that is a NFC reader so I guess it is 6 "virtual" readers to handle 6 NFC cards at the same time. The Gemplus GemCore POS Pro Smart Card Reader https://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x08E60x3479 should have 5 real (SIM card) slots. Not so many (21) readers have more than 1 slots |
Sure, I have a virtual reader that supports many many slots: https://github.com/frankmorgner/vsmartcard/blob/master/virtualsmartcard/src/ifd-vpcd/ifd-vpcd.c#L36. However, I've choses two slots as default which is enough for most use cases and doesn't block too much space in pcscd. |
Olla tkx |
@catafestaxx change |
#define PCSCLITE_MAX_READERS_CONTEXTS 16 |
Scanning present readers... |
That is correct, also change |
Hello LudovicRousseau , Can you please help me with Lenovo USB Keyboard SmartCard 17ef:6055 authentication for RDP,FREERDP. |
With composite USB devices the pcscd daemon does not know which USB interface correspond to the CCID reader. So all the interfaces are tried and this generated critical errors in the logs. Like: 00000005 readerfactory.c:1110:RFInitializeReader() Open Port 0x200000 Failed (usb:096e/080a:libudev:0:/dev/bus/usb/003/013) 00000002 readerfactory.c:375:RFAddReader() FT ePass2003Auto init failed. When the driver reports IFD_NO_SUCH_DEVICE then the logs now have a PCSC_LOG_INFO level so are no more displayed in red and no more present by default. Fixes Salsa issue #8 https://salsa.debian.org/rousseau/PCSC/-/issues/8 "Do not report an error if the wrong interface is used by the driver"
Hi, I'm having trouble to understand the relationship between pcsc-lite and libccid. libccid doesn't seem to be a dependency of pcsc-lite. I've downloaded the source of pcsc-lite from the website can build it without libccid (on debian). If I want to increase the reader limit do I also have to install libccid from source and patch CCID_DRIVER_MAX_READERS? |
@cwimberger Yes, libccid needs to patched and installed as well. |
Hi, I have 24 cardreaders in pcscd on Ubuntu server 20.04. Do i need to change some other files before it's working? |
Hello, I would like to know if there is a theorical limit ? (Other than max 255 USB devices including hubs) |
Yes, 255 is the theoretical limit. In practice you are more limited. |
I'm using ubuntu 22, when I change PCSCLITE_MAX_READERS_CONTEXTS to something other than 16 everything stops working. I put 16 again and it starts working again. I'm also changing CCID. Am I missing something? |
@jcardus yes, you are missing something. |
Hello @LudovicRousseau, thanks for you response. The problem was that meson install apparently doesn't replace /usr/sbin/pcscd. I realized that invoking manually it would work but from the system deamon it wouldn't because it was still referencing the old version. I ended up copying /usr/local/sbin/pcscd to /usr/sbin/pcscd and it started working. |
I have same problem here... limit 16 But how to compile using Ubuntu 23? |
@frankviana I can provide a custom Ubuntu package. |
I sent you a message. Thanks |
I'm using Lubuntu 23, then I need more 24 card readers. After 15, I have message error ( SCardGetStatusChange: Invalid parameter given.) lsusb show all connected and recognized.
|
Hi Ludovic! First, what a great service!
I was wondering, what is the reason behind the limit of 16 card readers, in both pcsc, and libccid?
The text was updated successfully, but these errors were encountered: