2012/8/7 Raghavendhra Chowdary MV <[email protected]>:
> I am using PN512 contactless reader chip integrated on my device and wrote
> our own IFD handler driver for that in which we are using serial
> communication which is happenning in the IFD Handler level. As the continous
> polling of IFDICCPresence() which will do serial communication continuously
> until the pcscd is killed hence looking for reduction in polling or almost
> stopping the polling during the idle time.

The best solution is to modify your driver to add support of
TAG_IFD_POLLING_THREAD_WITH_TIMEOUT [1].
pcscd will use a callback function in the driver. The driver will
return only after the timeout has expired or a card event occurred.

The other solution is to change the value of PCSCLITE_STATUS_POLL_RATE
in pcscd.h
The default value is 400ms.
If you increase the delay to 1 minute you will not be notified a new
card is present "immediately" but after 30 seconds on average. It is a
trade-off.

Bye

[1] 
http://pcsclite.alioth.debian.org/api/group__IFDHandler.html#ga799aa26945bbd3f61aaa57107f63ae0b

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

Reply via email to