Search code examples
ubuntuserverpcsc

Limit of 16 cardreaders in pcsc on Ubuntu Server


I have 24 cardreaders in pcsc on Ubuntu server 20.04. I have read that pcsc has a limit of 16 readers & you need to change the pcslite.h file to add more readers. Changed the following line in /usr/include/PCSC/pcsclite.h from: #define PCSCLITE_MAX_READERS_CONTEXTS 16

to: #define PCSCLITE_MAX_READERS_CONTEXTS 24

Do i need to change some other files before it's working? I still only see 16 readers connected.


Solution

  • Editing a C header or source files has no effect on the running program.

    After editing the source file I think you should recompile the project to facilitate the changes in the executables.