Hi!

lsusb -v shows the field 'iSerial'. I have some readers which use '0'
for this field, which means they don't include a serial number. A value
bigger than 0 is the index to the USB string, which contains the actual
serial number.

You could try to use a hash of the full USB descriptor as identifier.
This works if readers of the same type differ in some fields. However, I
don't know if this will always work for any kind of reader family.

Cheers, Frank.

On Friday, November 09 at 09:38AM, Jean-Michel Pouré - GOOZE wrote:
> Dear all,
> 
> Simple question as usual.
> 
> Readers with smartcards have a serial number, i.e.:
> opensc-tool --serial
> Using reader with a card: Feitian ePass2003 01 00
> 68 35 10 17 17 05 12 01 h5......
> 
> But do smartcard readers without smartcard have serial numbers?
>  
> Running lsusb -v on hardware, I don't see any serial number for each
> smartcard reader connected to a USB hub.
> 
> The reason for the question is that I would like to build a 8x8
> smartcard readers bench when readers are numbered from 1 to 64. The
> bench could be used for testing or mass initialization.
> 
> How to identify a smartcard reader plugged using USB 
> BEFORE a smartcard is inserted in the reader?
> 
> Kind regards,
> -- 
>                   Jean-Michel Pouré - Gooze - http://www.gooze.eu



> _______________________________________________
> opensc-devel mailing list
> opensc-devel@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-devel

-- 
Frank Morgner

Virtual Smart Card Architecture http://vsmartcard.sourceforge.net
OpenPACE                        http://openpace.sourceforge.net
IFD Handler for libnfc Devices  http://sourceforge.net/projects/ifdnfc

Attachment: pgpjNOwSt4RA1.pgp
Description: PGP signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to