how to monitor smart card reader's hot plug event?
Hello! I wan't to use PC/SC API to monitor a USB smartcard reader's plug event, but after I plug out the reader and wait for a while, the pcscd will exit, and if I continue to call PCSC functions, some functions will cause segment fault. Can I get a message when a reader is plugged out, or can I configure pcscd so that it won't exit until system restart? Thank you !
2015-08-18 9:17 GMT+02:00 liuddd <liudy75@163.com>:
Hello!
Hello,
I wan't to use PC/SC API to monitor a USB smartcard reader's plug event, but after I plug out the reader and wait for a while, the pcscd will exit, and if I continue to call PCSC functions, some functions will cause segment fault.
If you get a crash in a PC/SC function then it is a bug in PC/SC and youd should report it.
Can I get a message when a reader is plugged out, or can I configure pcscd so that it won't exit until system restart? Thank you !
Have a look at the program pcsc_scan from pcsc-tools [1]. Bye [1] http://ludovic.rousseau.free.fr/softwares/pcsc-tools/ -- Dr. Ludovic Rousseau
participants (2)
-
liuddd
-
Ludovic Rousseau