Hi,

should the poll() method of an OCF CardTerminal implement a physical or
electrical (by requesting the card) card presence detection ?
The problem is : if you implement just a physical detection (through the reader)
and the card is inserted upside down, it's impossible to notify the framework
that actually there's no card inserted.

I mean : in the getCardID() method of the CardTerminal called by the framework
when card presence is detected, you have to return an ATR (but it's null since
you can't read it) and then the framework throws an exception, which has to be
caught by the application. It has to notify the user to it insert the card
correctly, shutdown and restart OCF...

Or has anyone another idea to my problem ?

Dominique



 ----------------------------------------------------------------
 INFORMATION    AUTOMATIC VIRUS CHECK (GEMPLUS)   No virus known.
 ----------------------------------------------------------------







---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

Reply via email to