ATR
ProtocolAnswer to Reset -- the initial response sent by a contact smart card after power-on, containing interface and card identification data.
ATR
The Answer to Reset (ATRATRProtocolInitial response from card after power-on.Click to view →) is the first data a contact smart card transmits after being powered on and receiving a reset signal from the reader. Defined by ISO 7816 Part 3, the ATR encodes the card's communication capabilities, supported protocols, and identification data in a compact binary format that can be up to 33 bytes long.
ATR Byte Layout
The ATR follows a structured format starting with an initial character (TS) that establishes the bit-encoding convention:
| Byte(s) | Name | Description |
|---|---|---|
| TS | Initial character | 3B = direct convention, 3F = inverse convention |
| T0 | Format byte | Encodes presence of TA1-TD1 and number of historical bytes |
| TAi, TBi, TCi, TDi | Interface bytes | Protocol parameters, voltage class, guard time |
| T1..Tk | Historical bytes | Card identification, OS version, chip type |
| TCK | Check byte | XOR checksum (mandatory when T=1T=1ProtocolBlock-oriented smart card protocol.Click to view → is offered) |
The interface bytes define parameters such as the clock-rate conversion factor (Fi/Di) that determines baud rate, the waiting time, and which transmission protocols (T=0 or T=1) the card supports.
ATR Parsing in Practice
Developers and integrators frequently parse ATRs to identify card type and capabilities before sending APDUs. The historical bytes often contain the card vendor and product identifiers in a TLV-encoded structure, making ATR databases a practical tool for card identification. The Card Type Identifier tool on this site decodes ATR bytes into human-readable fields.
Warm Reset vs Cold Reset
A cold reset involves powering the card from scratch (VCC off then on), while a warm reset only toggles the RST line. Both trigger a fresh ATR. If the reader wants to change communication parameters, it issues a PPS (Protocol and Parameter Selection) request after the initial ATR, before sending any application-level commands.
Contactless Cards
ISO 14443ISO 14443StandardStandard for contactless smart cards.Click to view → contactless cards do not use ATR. Instead, they respond with an ATS (Answer to Select) in Type A, or an ATQB + ATTRIB sequence in Type B. The ATS carries similar information — frame sizes and protocol options — but in a format specific to ISO 14443.
Related Content
Smart Card Fundamentals
Getting Started…Card Type Identifier to identify an unknown card from its ATR or physical markings. Internal Architecture Every…
Contact vs Contactless vs Dual-Interface
Getting Started…an unknown card supports from its physical inspection or ATR. Contact Cards and ISO 7816 Contact cards expose a contact…
Smart Card Reader Setup Guide
Getting Started…see the reader name and, when a card is inserted, its ATR printed to the console. Common pitfall: if SCardSvr is set…
SIM Card Types Explained
Getting Started…smart cards which may also negotiate T=1 . The ATR transmitted at power-on identifies voltage class and…
Understanding ISO 7816
Standards & Protocols…and test ISO 7816-4 commands interactively, and the ATR Parser to decode reset response bytes. Parts 1–15 Overview…
ISO 14443 Deep Dive
Standards & Protocols…banking cards, and access badges worldwide. Use the ATR Parser to decode the ATS (Answer To Select) returned by…
ISO 7816 Parts Guide
Standards & Protocols…contacts — electrical interface and transmission protocols ATR , T=0 , T=1 , PPS 7816-4 Organisation, security and…
APDU Command Reference
Programming…Data... SW1 SW2 Support is signalled in the card's ATR historical bytes or by the response to SELECT MF. Not all…
Часто задаваемые вопросы
The smart card glossary is a comprehensive reference of technical terms, acronyms, and concepts used in smart card technology. It covers protocols (APDU, T=0, T=1), security (Common Criteria, EAL, HSM), hardware (SE, EEPROM, contact pad), and applications (EMV, ePassport, eSIM). It serves developers, product managers, and engineers.
Yes. SmartCardFYI provides glossary definitions in 15 languages including English, Korean, Japanese, Chinese, Spanish, Portuguese, Hindi, Arabic, French, Russian, German, Turkish, Vietnamese, Indonesian, and Thai.