eecs 598-2:smartcards lecture 4 peter honeyman citi answer to reset o sequence of up to 33 bytes, conveyed asynchronously o 10 bit character format o start, 8 ( data, even parity o total number of 1's is even o bit time = 372/f o natural frequency for 9.6 kbps is 3.5712 MHz o direct convention: H = 1, L = 0 o inverse convention: H = 0, L = 1 answer to reset o TS o bit signalling and ordering o establishes direct or inverse convention o TS = 0x3b: direct convention o lsb first (same as rs-232) o TS = 0x3f: inverse convention o msb first o 0x03 when viewed direct T0 o mandatory format character o announces the first interface characters and all the historical characters TA(i), TB(i), TC(i), TD(i) o optional interface characters, some global (data rate, transmission protocol), some specific o presence is indicated by a bit map in T0 o TA1: bit rate o TB1, TB2: vestigial o TC1: stop bits o TD(i) has bitmap for T{A,B,C,D}(i+1) answer to reset o T1, T2, ..., TK o optional historical characters o presence indicated by a number coded in the format character o discretionary values, e.g., id o TCK o optional xor check character o presence depends on the value(s) in some interface characters some atr strings some atr strings some atr strings some atr strings transmission protocol o T=0: asynchronous, half-duplex, byte-oriented o break protocol (?) o T=1: asynchronous, half-duplex, block-oriented o T=2: asynchronous, full-duplex, block-oriented o T=14: national norms transmission protocol o T=other: not prominent o synchronous standards exist for legacy memory cards T=0 o CLA: class designation o 0, 8x, 9x, B0 to CF o INS: instruction o always even, always acked by self o P1, P2: instruction specific o P3: length T=1 o I-block: information o application layer data transparency o R-block: reception and acknowledgement o alternating bit o ack or nak o S-block: system o protocol control T=1 o NAD: node address, vestigial o PCB: protocol control byte o signals {I,R,S}-block o LEN: o APDU o EDC