[Muscle] How to Handle Response Error

Peter Tomlinson pwt at iosis.co.uk
Tue Nov 21 08:58:35 PST 2006


Jackie,

The whole context of smart cards is one of a carefully designed 
environment, in which the handling of errors is planned by the 
programmer who writes the software (both the terminal side software and 
the software in the card). Retries are not therefore expected unless you 
are waiting for the user to do something very basic such as insert the 
card or enter a PIN. This isn't like the internet!

For example, when you send an application select, with correct 
parameters, to a card, you probably do not know if that application is 
resident on the card. If the app is present, the select succeeds; if the 
application is not present, the select fails; if the card stops working 
(pulled out of the reader, dirty contacts, power failure...) the command 
fails.

Another example: when you write a record to a file in the card, if the 
parameters that you send are correct and the file is selected and there 
is space in the file, the command succeeds; if there is a failure, your 
application has to analyse the failure code and take the appropriate action.

Peter

jackie wong wrote:

> Dear all.
>  
> For a response that we received from a reader that correspond to a 
> command, what should we do if there is an error in the response? Should 
> we send the RETRY command to ask the reader to resent the response again 
> or just simply resent the command to the reader again.  
>  
> Is there any specific rules where for certain error we must sent RETRY 
> command and for some error we must resent the previous command again.
>  
> Please advice.
>  
> Thanks.
>  
> Regards,
> Jackie Wong
> 
> ------------------------------------------------------------------------
> Sponsored Link
> 
> Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate 
> - Click now to apply 
> <http://online.degrees.info/forms/form.jsp?ADEL=D3sPPz6WYLD7%2FD1DxMxP%2BbXooR4YcdmONmTWaUizNjh6q2wGRcnxuw%3D%3D&PI=y_mail_textlink> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Muscle mailing list
> Muscle at lists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle




More information about the Muscle mailing list