Ludovic Rousseau wrote: > 2009/1/23 Stanislav Brabec <sbra...@suse.cz>:
> > A separately maintained package would be another possible way to > > distribute FDI files: Scan all available driver packages, create a list > > of all known readers, their USB/PCI ids and capabilities (class, card > > format,...). > > I was thinking of generating the FDI file(s) dynamically. pcsc-lite > knows all the vendorID and productID of the USB devices it supports > thanks to the Info.plist of each driver. Yes, it is possible as well. Major part of this work can be cone automatically using a bit of XML magic. > The best place to place an FDI would be in the driver package. The > driver knows which USB device it can manage. But to be backward > compatible the solution should work without changing every driver > package (binary and source code). Agree. > Once the FDI files are in place pcscd could just listen to events > containing smart_card_reader capability. Yes, if data from plist will be available to HAL, you can do it. In such case, you may even generate key info.pcscd.driver and move even driver selection heuristic to HAL. (benefits: It makes possible out-of-package FDI file in /etc/hal, which assigns driver to a new ID. It makes possible to assign driver to /dev/ttyS1). > I guess that having two FDI files (one form OpenCT and one from > pcsc-lite) for the same USB device and doing the same action is not a > problem? > OpenCT and pcsc-lite do not work well together since they both (want > to) claim the device. HAL will successfully merge both FDI files and send signal to all listeners. The rest of the story is not a problem of HAL. > PS: I am new to HAL and the FDI files :-) Me too. I spent two weeks of learning all this around to be able to correctly fix problems reported for smart cards and UPSes. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbra...@suse.cz Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel