← Back to the chapter · Previous detail · Next detail →
Technical detail · Practice: NFC Reader Simulation
Technology-specific activation commands
Model the activation sequence as distinct states so failure injection can name exactly where the workflow stopped:
- Field on and technology polling: the reader sends each technology’s poll command, such as
REQA/WUPAfor NFC-A orSENSF_REQfor NFC-F, and listens for a technology-specific response. - Anti-collision: if more than one card answers, the reader resolves one UID or target identifier so it talks to exactly one device.
- Select and activate: the reader issues
SELECTor the technology equivalent to put the resolved target into the active state. - Protocol activation: for an NFC-A ISO-DEP card, the reader runs
RATSto learn card capabilities; NFC-B uses its own activation procedure. A Type 4 exchange then uses ISO 7816-4 application protocol data units (APDUs), including application selection by application identifier (AID) and command/response pairs. A Type 2 memory read does not use that Type 4 APDU path. - Release: the card is deactivated and the polling loop resumes.