Description
The Answer To Reset (ATR) is a critical initialization protocol defined in 3GPP specifications that governs the communication establishment between a terminal device (such as a mobile phone or IoT device) and a UICC (Universal Integrated Circuit Card) or SIM card. When a terminal device applies power to the UICC and sends a reset signal, the UICC responds with the ATR message, which contains essential information about the card's capabilities, communication parameters, and operational characteristics. This exchange occurs at the physical and electrical layer interface, establishing the foundation for all subsequent communication between the terminal and the smart card.
The ATR message structure follows ISO/IEC 7816-3 standards and consists of multiple fields that define the card's communication parameters. These include the initial character (TS), format byte (T0), interface bytes (TA1, TB1, TC1, TD1), historical bytes, and check byte (TCK). The TS character indicates whether the card uses direct or inverse convention for data transmission. The T0 byte specifies the number of historical bytes and indicates the presence of interface bytes TA1 through TD1. Interface bytes define critical parameters such as clock rate conversion factor, programming voltage requirements, guard time values, and additional protocol type selection.
From a technical implementation perspective, the ATR exchange occurs during the cold reset or warm reset procedures when the terminal first powers the UICC. The terminal sends a reset pulse on the RST line, and the UICC responds with the ATR sequence on the I/O line. This handshake establishes the electrical characteristics, transmission protocols (T=0 or T=1), and timing parameters for subsequent Application Protocol Data Unit (APDU) exchanges. The historical bytes within the ATR may contain card-specific information, including manufacturer data, card capabilities, and supported applications, which the terminal uses to configure its communication stack appropriately.
The ATR plays a fundamental role in 3GPP networks by ensuring interoperability between diverse terminal equipment and UICC cards from multiple manufacturers. It enables the terminal to adapt its communication parameters to match the specific requirements of the inserted UICC, supporting backward compatibility and forward compatibility across different card generations. This automatic parameter negotiation eliminates the need for manual configuration and allows seamless operation of subscriber identity modules across various network technologies, from 2G GSM through 5G NR and beyond. The ATR mechanism also provides initial security validation by confirming that the UICC is responding correctly before sensitive authentication procedures begin.
Purpose & Motivation
The Answer To Reset protocol was created to establish a standardized method for initializing communication between terminal devices and smart cards in mobile telecommunications systems. Before standardization, proprietary initialization protocols created interoperability issues between different manufacturers' equipment, limiting the flexibility of network operators and increasing costs for device certification. The ATR protocol, based on ISO/IEC 7816 standards, provides a universal handshake mechanism that enables any compliant terminal to communicate with any compliant UICC, regardless of manufacturer.
The primary problem ATR solves is the automatic negotiation of communication parameters between devices that may have different electrical characteristics, timing requirements, and protocol capabilities. Without this standardized initialization sequence, terminals would need pre-configured knowledge of each possible UICC type, making global roaming impossible and complicating device manufacturing. The ATR allows the UICC to declare its capabilities to the terminal, enabling the terminal to adapt its communication stack dynamically. This is particularly important as UICC technology has evolved from basic SIM cards to sophisticated multi-application platforms supporting USIM, ISIM, and various value-added services.
Historically, the adoption of ATR in 3GPP specifications (beginning with Release 4) represented a formalization of smart card communication standards that were already widely used in the industry. By incorporating ISO/IEC 7816 standards into 3GPP specifications, the organization ensured that mobile network authentication and subscriber identity management would maintain compatibility with broader smart card ecosystems. This approach addressed limitations of earlier proprietary solutions while providing a foundation for future enhancements in security, performance, and functionality as UICC technology advanced through subsequent 3GPP releases.
Key Features
- Standardized initialization sequence following ISO/IEC 7816-3
- Automatic negotiation of communication parameters between terminal and UICC
- Support for both T=0 (character-oriented) and T=1 (block-oriented) transmission protocols
- Dynamic adaptation of electrical characteristics and timing parameters
- Backward compatibility across multiple generations of UICC technology
- Provision of historical bytes for card identification and capability indication
Evolution Across Releases
Initial incorporation of ATR protocol into 3GPP specifications, establishing standardized UICC-terminal communication initialization. Defined the complete ATR sequence structure including TS, T0, interface bytes, historical bytes, and TCK. Specified support for both T=0 and T=1 protocols with automatic negotiation capabilities, enabling interoperability between diverse terminal and UICC implementations.
Defining Specifications
| Specification | Title |
|---|---|
| TS 21.111 | 3GPP TS 21.111 |
| TS 21.905 | 3GPP TS 21.905 |
| TS 31.121 | 3GPP TR 31.121 |