|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Ludovic Rousseau (ludovic.rousseau
gmail.com)
Date: Tue Aug 07 2012 - 06:29:20 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2012/8/7 Raghavendhra Chowdary MV <raghavendhra.chowdary
geodesic.com>:
> 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
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]