[Pcsclite-muscle] Multiple identical USB card readers
Ludovic Rousseau
ludovic.rousseau at gmail.com
Wed Jun 4 04:38:25 PDT 2025
Le mer. 4 juin 2025 à 12:41, UAB Molėtų radijas ir televizija
<it at mrtv.lt> a écrit :
> Hello,
Hello,
> after installing multiple identical pcsc USB card readers on an Ubuntu
> 24.04 server, the following problem occurs: when the server is rebooted,
> the numbering of the USB card readers often changes. Is there any way to
> prevent the readers from swapping?
If you are lucky your smart card readers provide a serial number and
you can identify them with it.
See "What is in a PC/SC reader name?"
https://blog.apdu.fr/posts/2010/05/what-is-in-pcsc-reader-name/
You can also use SCARD_ATTR_CHANNEL_ID to get the USB bus and address
of your readers.
See "SCARD_ATTR_CHANNEL_ID and USB devices"
https://blog.apdu.fr/posts/2020/04/scardattrchannelid-and-usb-devices/
Bye
--
Dr. Ludovic Rousseau
More information about the pcsclite-muscle
mailing list