Unitech mr350 mkii Software Guide

Page of 33
 
10
 
2.2 Power-on Smart Card
 
This function informs Smart Card reader to supply power to VCC pin on Smart card and it also 
needs to send pointer of ATR (Answer to reset) structure to get its status 
 
Entry Parameter 
INT 06H 
AH  =    1 
POWER ON Smart Card 
            ES:DI=   
Buffer of ATR structure 
 
 
Output Value 
AH  =  0    Successfully power-on 
                   
 
If AH=0 CX = ATR length 
1    Time-out ( 1 Sec ,RETRY=1 ) 
2    No card present 
4    Data pin not stable 
Parity error 
 
Below is ATR structure   
   typedef struct 
   { 
      int Smart CardType;   
 
; Reserve for Future Use 
       int AtrReady; 
 
; 0 = OK   
; 1 = Timeout   
; 2 = No card   
; 4 = data not stable   
; 5 = Parity error 
      int AtrLen;   
 
; holds ATR length ,from TS to TCK 
      unsigned char AtrBuf[MaxATR]; 
; holds ATR char, at most 32   
; character ( refer to ISO-7816-3,6.1.4) 
      int HistLen; 
 ; holds the number of history char, from T1 to 
; TK 
      int HistOffset; 
 
; History char start from Atr_buf[Hist_offset] 
   } S_OPEN_ICC;