[Pcsclite-muscle] Not enough reader entries on CentOS 7.0 with pcsc-lite 1.8.8

Ludovic Rousseau ludovic.rousseau
Wed Sep 24 10:51:15 PDT 2014


2014-09-24 18:09 GMT+02:00 Daniel Abson <Daniel.Abson at ecebs.com>:
> Hi there

Hello,

> I've got 60 OmniKey 3121 readers attached to a server running CentOS 7.0 (x86_64). I have the latest OmniKey drivers installed (ifdokccid-lnx_x64-3.9.0). All devices are listed by lusb, but only 16 readers are showing up in my Java client (which is using javax.smartcardio).
>
> Running systemctl status pcscd -l shows the following output:
>
> pcscd.service - PC/SC Smart Card Daemon
>    Loaded: loaded (/usr/lib/systemd/system/pcscd.service; static)
>    Active: active (running) since Wed 2014-09-24 17:04:07 BST; 14s ago
>  Main PID: 4986 (pcscd)
>    CGroup: /system.slice/pcscd.service
>            ??4986 /usr/sbin/pcscd --foreground --auto-exit
>
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000258 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000267 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000463 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000260 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000246 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000244 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000473 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000243 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000251 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
> Sep 24 17:04:11 eceliveisas2-ecebs-com pcscd[4986]: 00000248 hotplug_libudev.c:337:HPAddDevice() Not enough reader entries. Already found 16 readers
>
>
> I have also tried manually setting --max-thread, --max-card-handle-per-thread, --max-card-handle-per-reader to 200 in pcscd.service, with no effect, but the default for pcsclite at this version should be 200 anyway. I'm not sure what I'm missing - can you help?

It is a known limitation
https://alioth.debian.org/tracker/index.php?func=detail&aid=313579&group_id=30105&atid=410088

You need to edit pcsc-lite/src/PCSC/pcsclite.h.in and change the definition:

/** Maximum readers context (a slot is count as a reader) */
#define PCSCLITE_MAX_READERS_CONTEXTS            16


If you want definitely fix the problem just contact me.

Bye

-- 
 Dr. Ludovic Rousseau




More information about the pcsclite-muscle mailing list