Hi guys its me again
This time im using the JACCAL framework to access my reader, but im facing some exceptions. Below is my code:
try {
String[] readers;
JaccalPCSC jaccalPcsc = new JaccalPCSC();
// Retrieve the list of the readers bind to the system
readers = jaccalPcsc.getReaderList();
for(int i=0; i<readers.length; i++){
System.out.println(readers);
}
jaccalPcsc.connectCard(readers[0], PCSC.SCARD_SHARE_DIRECT, PCSC.SCARD_PROTOCOL_T1);
} catch (JaccalPCSCException e) {
e.printStackTrace();
}
Every time i am connected to the reader through its diagnostic tool, and run the above code, i get the following error
com.jaccal.pcsc.JaccalPCSCException: JaccalPCSC: PCSC Error (connect): 0x8010000B
which is a 'sharing violation' error (Reasonable enough).
Then i perform 'card disconnect' using the diagnostic tool, remove the card from the reader and run the code again. What i get is this:
com.jaccal.pcsc.JaccalPCSCException: JaccalPCSC: PCSC Error (connect): 0x80100069
which is a 'removed card' error (This is reasonable enough too)
But here is the problem. When i run my program after having inserted the card into the reader i get:
com.jaccal.pcsc.JaccalPCSCException: JaccalPCSC: PCSC Error (connect): 0x80100066
an 'UNRESPONSIVE CARD' error. I always get this error, no matter of what possible combinations of values in the *jaccalPcsc.connectCard(String cardReaderName, int shareMode, int protocolType)* method i use.
Dont forget to mention that when i connect to the reader through the diagnostic tool i use Share Mode *Direct* and Protocol type *T1*.
What do i have to do to overcome the unresponsive card error?
Am i missing something? Could pls anyone shed some light on the problem?
regards!
evsav