Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

searching for ways to check if the card is inserted in smartcard reader

JavaCard Applet Development Related Questions and Answers.
shyjarod
Posts: 12
Joined: Wed Jul 29, 2015 1:45 am
Points :18
Contact:

searching for ways to check if the card is inserted in smartcard reader

Post by shyjarod » Tue Sep 01, 2015 3:44 am

As far as I know, Mode of Enquiry is the only way to check if the card is inserted in the smart card reader.
Check if the card is in the reader at set intervals during a "while" circulation.

I've already browse the code of scuba. It also uses the same way to confirm the card and then sends CardEvent.

Is there any interrupt check methods?
For example, register a card change function. When the card is extracted from the reader, it can inform me. In this case, I needn't to write the while circulation. In my opinion, Mode of Enquiry is not an excellent method after all.

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: searching for ways to check if the card is inserted in smartcard reader

Post by UNKNwYSHSA » Wed Nov 04, 2015 3:13 am

Use the SCardStatusChange function.
You can have a look at implementation of CardMonitor class in pyScard project.
The class CardMonitor detect card status changing and notice CardMonitorObservers.
pySCard based on PCSC functions, so, you can implement the monitor function with other lanaguage(s) which can use PCSC functions.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 36 guests

JavaCard OS : Disclaimer