Page 1 of 1

two questions about waitExtension

Posted: Mon Aug 31, 2015 2:49 am
by mabel
I have two questions about waitExtension function.
Q1: If the card doesn't implement automatic timer mechanism, how long is the waiting time waitExtension function request from CAD?
Q2: If there is a long-playing processing, how should I request ?
Thanks a lot.

Re: two questions about waitExtension

Posted: Wed Nov 04, 2015 8:15 am
by Larson
1. As far as I know, almost all the cards have implemented automatic timer mechanism.
2. You may use this method waitExtension()
The related description in the API doc is as follows:
public static void waitExtension() throws APDUException
Note:
1-In T=0 protocol, a NULL procedure byte is sent to reset the work waiting time.
2-In T=1 protocol, the implementation needs to request the same T=0 protocol work waiting time quantum by sending a T=1 protocol request for wait time extension.


Check the ISO7816-3 to calculate the waiting time
WT =WIx960xFi/f