1ATR_ANALYSIS(1p) User Commands ATR_ANALYSIS(1p)
2
3
4
6 ATR_analysis - analyse a smart card ATR
7
9 ATR_analysis [ATRstring]
10
12 ATR_analysis is used to parse the ATR (Answer To Reset) sent by a smart
13 card.
14
15 The command also tries to find the card model using an ATR database
16 stored in a text file smartcard_list.txt.
17
18 The smartcard_list.txt file is searched in ./, /usr/local/pcsc/ and
19 /usr/share/pcsc/ directories.
20
21 Example:
22 $ ATR_analysis '3B A7 00 40 18 80 65 A2 08 01 01 52'
23 ATR: 3B A7 00 40 18 80 65 A2 08 01 01 52
24 + TS = 3B --> Direct Convention
25 + T0 = A7, Y(1): 1010, K: 7 (historical bytes)
26 TB(1) = 00 --> Programming Param P: 0, I: 0
27 TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
28 -----
29 TC(2) = 18 --> Work waiting time: 960 x 24 x (Fi/F)
30 + Historical bytes: 80 65 A2 08 01 01 52
31
32 Possibly identified card:
33 3B A7 00 40 18 80 65 A2 08 01 01 52
34 Gemplus GPK8000
35
37 Maybe many bugs since I am not a ISO 7816 expert.
38
40 smartcard_list.txt
41
43 pcscd(8), pcsc_scan(1)
44
46 Ludovic Rousseau <ludovic.rousseau@free.fr>
47
48
49
50Version: 1.3 October 2005 ATR_ANALYSIS(1p)