AET62 Reference Manual
Version 1.0
Page 8 of 37
idvation GmbH
Otto-Hesse-Straße 19 / T5
Phone +49 6151 4923021
D-64293 Darmstadt
Fax +49 6151 3689296
www.idvation.com
4.1.2.
ATR format for ISO 14443 Part 4 PICCs
Byte
Value
(Hex)
Designation
Description
0
3B
Initial Header
1
8N
T0
Higher nibble 8 means: no TA1, TB1, TC1 only TD1 is following.
Lower nibble N is the number of historical bytes (HistByte 0 to HistByte N-1)
2
80
TD1
Higher nibble 8 means: no TA2, TB2, TC2 only TD2 is following.
Lower nibble 0 means T = 0
3
01
TD2
Higher nibble 0 means no TA3, TB3, TC3, TD3 following.
Lower nibble 1 means T = 1
4
to
3+N
XX
T1
Historical Bytes:
ISO14443A:
The historical bytes from ATS response. Refer to the ISO14443-4
specification.
ISO14443B:
The higher layer response from the ATTRIB response (ATQB). Refer to the
ISO14443-3 specification.
XX
XX
XX
Tk
4+N
UU
TCK
Exclusive-oring of all the bytes T0 to Tk
Table 3: ATR format for ISO 14443 Part 4 PICCs
We take for example, an ATR for DESFire which is:
DESFire (ATR) =
3B 86 80 01 06 75 77 81 02 80 00
ATR
Initial Header
T0
TD1
TD2
ATS
T1
Tk
TCK
3B
86
80
01
06
75 77 81 02 80
00
This ATR has 6 bytes of ATS which is: [06 75 77 81 02 80]
Note:
Use the APDU “FF CA 01 00 00” to distinguish the ISO14443A-4 and ISO14443B-4
PICCs, and retrieve the full ATS if available. The ATS is returned for ISO14443A-3 or
ISO14443B-3/4 PICCs.
Another example would be the ATR for ST19XRC8E which is:
ST19XRC8E (ATR)
= 3B 8C 80 01 50 12 23 45 56 12 53 54 4E 33 81 C3 55
ATR
Initial Header
T0
TD1
TD2
ATS
T1
Tk
TCK
3B
86
80
01
50
12 23 45 56 12 5 54 4E 33 81 C3
55
Since this card follows ISO 14443 Type B, the response would be ATQB which is
50 12 23 45 56 12
53 54 4E 33 81 C3
is 12 bytes long with no CRC-B
Note:
You can refer to the ISO7816, ISO14443 and PCSC standards for more details.