Hello, I have no objection to report more information about the smart card reader at the HAL interface. But as you said we should be careful of the names we use.
2009/1/22 Stanislav Brabec <[email protected]>: > Here is a short example, what I intend to do: > > <?xml version="1.0" encoding="UTF-8"?> > <deviceinfo version="0.2"> > <device> > <match key="info.subsystem" string="usb"> > <match key="usb.vendor_id" int="0x076b"> > <match key="usb.product_id" int="0x3821"> > <merge key="info.category" type="string">smart_card_reader</merge> > <append key="info.capabilities" > type="strlist">smart_card_reader</append> > <append key="info.capabilities" > type="strlist">smart_card.iso</append> > <append key="info.capabilities" > type="strlist">smart_card.class3</append> > <append key="info.capabilities" > type="strlist">smart_card.ccid</append> > <append key="info.capabilities" > type="strlist">smart_card.ccid</append> > <merge key="info.pcsc.driver" type="string">ccid</merge> > </match> > </match> > </match> > </device> > </deviceinfo> Do not confuse smart_card and smart_card_reader. I do not know what "smart_card.class3" could be. "smart_card_reader.class3" may be valid. It is the reader that is class 3, not the smart card. The information you should report are what you can do with the reader, not how it works. So it may be: - manufacturer name - product name - class 1 - class 2 : pinpad - class 3 : pinpad + display - number of slots ? But not: - ccid : this is of no use to the application - openct : idem You could reports all the fields of the USB CCID descriptor. See [2] for an example. But that may be too much and non-CCID reader do not report all these values. PC/SC defines different ways to use a class 2/3 readers for PIN entry. Not all readers support the same features. This is a new mess for applications supporting different class 2/3 readers :-( I don't think it is possible to report information about the smart card without connecting to the reader (using OpenCT, pcsc-lite, or another framework). I don't even know what kind of information you can get. My program ATR_analysis [1] tries to identify the smart card from the ATR. But the information is not 100% accurate in all cases. Regards, [1] http://ludovic.rousseau.free.fr/softwares/pcsc-tools/index.html [2] http://svn.debian.org/viewsvn/pcsclite/trunk/Drivers/ccid/readers/GemPCPinpad.txt?rev=2649&view=auto -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
