2010/5/20 Ludovic Rousseau <[email protected]>:
> 2010/5/19 Ludovic Rousseau <[email protected]>:
>> 2010/5/19 Andreas Jellinghaus <[email protected]>:
>>> maybe there is even a portable way that works on windows too?
>>
>> I don't think so.
>> And pcsc-lite on Mac OS X does not show the serial number.
>>
>> PCSC defines a SCARD_ATTR_VENDOR_IFD_SERIAL_NO but it is the serial
>> number of the IFD (driver) not the device.
>
> I was wrong. IFD = Interface Device. It is the reader. The driver is
> IFD Handler in PC/SC terminologie.
>
> So SCARD_ATTR_VENDOR_IFD_SERIAL_NO is the serial number of the device
> and is a PC/SC documented attribute.
>
> http://msdn.microsoft.com/en-us/library/aa379559%28VS.85%29.aspx
> SCARD_ATTR_VENDOR_IFD_SERIAL_NO = Vendor-supplied interface device
> serial number.
>
> It should work under Windows if the reader has a serial number.
>
> I will try to implement it also on the Free Software side.

Added in revision 4956 [1].
I also added a Unitary Test program [2] which outputs:
$ ./SCardGetAttrib.py
PC/SC Readers: ['SCM SCR 331 [CCID Interface] (80000F3A) 00 00',
'Gemalto Prox-DU [Prox-DU Contactless_09A00795] (09A00795) 01 00',
'Gemalto Prox-DU [Prox-DU Contact_09A00795] (09A00795) 02 00']
SCM SCR 331 [CCID Interface] (80000F3A) 00 00 : 80000F3A
Command successful.
Gemalto Prox-DU [Prox-DU Contactless_09A00795] (09A00795) 01 00 : 09A00795
Command successful.
Gemalto Prox-DU [Prox-DU Contact_09A00795] (09A00795) 02 00 : 09A00795
Command successful.

I have not tried my Python sample on Windows.

Bye

[1] 
http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2010-May/004508.html
[2] 
http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/SCardGetAttrib.py

-- 
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to