Hello,
I just released pcsc-lite version 1.5.0. It is available at [1].
With this version I removed all the polling loops:
- wait for a reader change using libhal (instead of a poll in libusb)
- wait for a card insertion/removal (only if the reader and driver support it)
- wait for an event in SCardGetStatusChange()
The only driver I know that support card insertion/removal as an event
is my CCID driver when used with libusb-0.9.3 and libusb-compat. The
problem is that libusb-compat is not yet stable and has some problem.
So you should not use this feature for now.
If you use libusb-0.1.x this feature is not used and you should not
have problems.
Please fetch the new pcsc-lite version and report any problem you have. Thanks
Changelog:
pcsc-lite-1.5.0: Ludovic Rousseau
18 November 2008
- correctly handle up to PCSCLITE_MAX_READERS_CONTEXTS readers (instead
of PCSCLITE_MAX_READERS_CONTEXTS-1)
- SCardGetStatusChange()
. now returns SCARD_E_TIMEOUT instead of SCARD_S_SUCCESS if dwTimeout
== 0 (conform to Windows XP)
. add support of reader name \\?PnP?\Notification to detect reader
insertion/removal (conform to Windows XP)
. if a reader disappear also set SCARD_STATE_UNAVAILABLE in
dwEventState (more conform to Windows XP)
- SCardStatus(): add support of SCARD_AUTOALLOCATE for pcchReaderLen and
pcbAtrLen
- SCardGetStatusChange() now uses asynchronous events instead of polling
- more and/or better Doxygen documentation
- SCardTransmit(): correctly pass the pioRecvPci parameter
- SCardConnect() and SCardReconnect(): correct a bug when two
applications were calling SCardConnect() or SCardReconnect() at the
exact same time
- pcscd logs the command name sent by the application (when in debug mode)
- some other minor improvements and bug corrections
[1] https://alioth.debian.org/frs/?group_id=30105&release_id=1255
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle