[Pcsclite-muscle] Increasing connected smart card reader count limit

Ludovic Rousseau ludovic.rousseau
Tue May 3 00:51:08 PDT 2016


2016-05-03 8:32 GMT+02:00 Vincas Dargis <vindrg at gmail.com>:

> Hi,
>

Hello,


>
> We in our company have unusual use case, so that we need to have a lot
> of smart cards permanently connected and ready to be used 24/7.
>
> I've seen patch [1] that reduced PCSCLITE_MAX_READERS_CONTEXTS down to
> 16 (currently, we need >20 and growing).
>
> Is this only constant that would be enough to be increased if needed?
>

No. You also need to change CCID_DRIVER_MAX_READERS in the CCID driver (if
you use this driver)
https://github.com/LudovicRousseau/CCID/blob/master/src/ccid_ifdhandler.h#L50

This is a known "feature" reported in [1].
Contact me if you want to help fix this limitation.


>
> I've seen [2] some "interesting" constants like
> PCSC_MAX_CONTEXT_THREADS, PCSC_MAX_CONTEXT_CARD_HANDLES and
> PCSC_MAX_READER_HANDLES  but these are set to 200 which is more than
> enough if I want to increase PCSCLITE_MAX_READERS_CONTEXTS up to 127
> (AFAIK max USB devices, well minus hubs but whatever), right?
>
> There aren't any concurrent transaction limit? We would have single
> daemon that will connect to pcscd and _may_ have lot's of transactions
> for different cards opened when needed.
>
> P.S. maybe someone have seen USB smart card reader "bank" with lot's of
> slots?
>

No. Not yet.
Can you share a picture of such reader?
Or a picture of your setup?

I could wrote a blog article [1] about supporting a large number of
readers. having pictures to illustrate the article would be good.

Bye,

[1]
https://alioth.debian.org/tracker/index.php?func=detail&aid=313579&group_id=30105&atid=410088
[2] http://ludovicrousseau.blogspot.fr/

-- 
 Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20160503/813bb3a4/attachment.html>



More information about the pcsclite-muscle mailing list