13 NFC Protocols: Mode Foundations
More
Depth: Practitioner
Progress saves as you read. Mark sections complete as you go; your progress appears in the sidebar.
13.1 Start With the Decision
This section: Start With the Decision
Name Who Starts the Tap and Who Decides
13.2 Route Overview
This section: Route Overview — This is part 1 of 2.
This is part 1 of 2. Continue with NFC Protocols: Handover Boundaries.
13.3 Part Objectives
This section: Part Objectives
- Test nfc as specialized hf rfid with a concrete scenario and pass criteria.
- Validate peer-to-peer mode with a concrete scenario and pass criteria.
13.4 Chapter Roadmap
This section: Chapter Roadmap
- Start With the Story
- Key Concepts
- In 60 Seconds
- Quick Check: NFC Mode
- Prerequisites
- NFC as Specialized HF RFID
- Layer Separation Prevents Design Drift
- Operating Modes
- One Radio, Three Roles
- Phoebe’s Field Notes: Why 106/212/424 kbps Are Fractions of 13.56 MHz
- Eddie’s Math Bridge: Divide the 13.56 MHz Field Clock
- Reader/Writer Mode
- Card Emulation Mode
- Peer-to-Peer Mode
13.5 Start With the Story
This section: Start With the Story — Picture a phone that can read a poster but fails when asked to act like an access card.
Name Who Starts the Tap and Who Decides
Picture a phone that can read a poster but fails when asked to act like an access card. Both actions use a tap, yet they assign power, roles, data, and trust in different ways.
Near field communication, or NFC, lets nearby devices exchange small records. A protocol means the shared rules for that exchange. The operating mode says who starts, who answers, and which interface appears.
Trace one reader-to-tag flow and one phone-as-card flow. Record field owner, initiator, selected technology, data type, policy decision, and fallback. Try no target, two targets, an unsupported type, and a rejected record.
This runway does not make proximity equal to trust. The deeper sections explain operating modes, activation, tag technologies, record formats, handover, and the evidence each application needs.
The same phone can read a tag, emulate a card, or exchange data with another device, but those modes have different responsibilities. Confusing the mode usually means confusing who starts, who answers, and what evidence the system can trust.
Use this chapter to slow the tap into roles and protocols. Separate reader/writer, card emulation, peer-to-peer, handover, tag technology, and NDEF so each design decision has the right boundary.
13.7 Learning Objectives
This section: Learning Objectives
By the end of this chapter, you will be able to:
- Compare reader/writer, card emulation, peer-to-peer, and handover boundaries without mixing their responsibilities.
- Separate RF interface, tag technology, NDEF payload, and application-policy layers.
- Describe polling, anti-collision, selection, and activation at the level needed for design review.
- Choose tag and NDEF patterns from application needs instead of assuming all NFC tags are interchangeable.
- Define release evidence for NFC flows, including device coverage, failure handling, fallback, and trust-boundary checks.
13.8 Quick Check: NFC Mode
This section: Quick Check: NFC Mode
13.9 Prerequisites
This section: Prerequisites
Before diving into this chapter, you should have completed:
- NFC Fundamentals: NFC range, tap intent, and the difference between active and passive participants.
- RFID Fundamentals: HF RFID concepts, tag selection, and reader-controlled timing.
13.10 NFC as Specialized HF RFID
This section: NFC as Specialized HF RFID — NFC sits inside the HF RFID family, but it adds operating modes and application conventions that ordinary RFID systems do not always provide.
NFC sits inside the HF RFID family, but it adds operating modes and application conventions that ordinary RFID systems do not always provide. A useful review starts by separating the layers before arguing about tag type or user experience.
Figure 13.1 moves from RF activation to application policy.
The stack in Figure 13.1 separates RF activation from tag or card protocol, NDEF content, and application policy. A reader first polls, resolves collisions, selects, and activates a target. The next layer may expose tag memory, ISO-DEP commands, or a peer service; NDEF then supplies a URI, text, or handover record. None of those layers alone authorizes an IoT action. The app must parse the record, check its schema and context, apply policy, log the result, and handle fallback. Diagnose a failed tap from the bottom upward, but approve action only after the policy layer has its own evidence.
An NFC tap can look simple to the user while several different layers are involved:
- RF and activation decide which nearby target is selected and which low-level protocol is active.
- Tag technology or card protocol decides whether the reader sees tag memory, ISO-DEP APDUs, or a peer link.
- NDEF provides a portable envelope for small records, but it does not prove that the payload is safe or authorized.
- Application policy maps the tap to an IoT action such as pairing, opening a maintenance record, selecting a device profile, or logging an inspection.
13.11 Operating Modes
This section: Operating Modes — NFC designs should name the mode first, then state who powers the field, who initiates commands, and where policy is enforced.
NFC designs should name the mode first, then state who powers the field, who initiates commands, and where policy is enforced.
Figure 13.2 distinguishes reader/writer, peer, and card-emulation roles.
In reader/writer mode, an active reader powers a passive tag and reads or writes NDEF data. A peer exchange instead has two active endpoints that negotiate a small exchange or handover. In card emulation, a device presents a credential-like interface to a terminal, so issuer and verifier policy become central. These modes share a close-range radio, but their evidence is different: tag decoding, peer-session result, or credential decision. Choose the mode from the intended task and test the role boundary, rather than treating any successful tap as the same application event.
13.12 One Radio, Three Roles
This section: One Radio, Three Roles — All NFC runs at 13.56 MHz over a few centimetres, but a single NFC chip can take different roles on different taps.
All NFC runs at 13.56 MHz over a few centimetres, but a single NFC chip can take different roles on different taps. A phone may read a poster tag in reader/writer mode, present a credential to a cabinet reader in card emulation mode, and exchange a setup token with another powered device through peer-to-peer or handover. The role switch changes who owns timing, who owns the RF field, and which software boundary must approve the result.
Figure 13.3 assigns each NFC mode a different application owner.
The three exchanges in Figure 13.3 assign different owners to the same radio. In reader/writer mode, a phone reads a passive GW-142 label; the app validates its URI and asks whether the signed-in technician may configure that gateway. Peer mode exchanges a setup token between powered endpoints, then policy and freshness checks precede a Bluetooth or Wi-Fi handover. In card emulation, the phone answers a cabinet reader under issuer and verifier rules. Each mode has a different data owner and fallback, so a successful RF exchange says little about permission. Name the role and policy owner before choosing a commissioning or access design.
Use an IoT commissioning review as the concrete test. If a phone taps a gateway label to open https://ops.example/setup/GW-142, the phone is in reader/writer mode and the passive label only supplies a small record. The app must still validate the URI, bind it to an authenticated technician session, and ask policy whether this gateway can be configured.
If the same phone is presented to a cabinet reader as a service credential, it is in card emulation mode. The reader powers the field, sends commands, and the phone answers only if the credential application allows that reader application. If two powered devices exchange a setup token, peer-to-peer or handover may apply, but the follow-on Bluetooth, Wi-Fi, Thread, or backend session carries the durable connection.
A useful mode decision names four things before release: the physical role, the payload type, the policy owner, and the fallback. For reader/writer, fallback might be a printed asset ID. For card emulation, fallback might be a manual credential check or denied-entry message. For handover, fallback might be a setup code when the follow-on carrier fails.
The data-rate discussion rests on the carrier and coupling mechanism, not just three memorised numbers. Inspect Figure 13.4 to place the labelled 13.56 MHz reader beside the tag’s Antenna coil before following the protocol timing.
Read Figure 13.4 from the magnetic field (near-field coupling) between the reader and Contactless Card / Tag to its explicit conclusion, Like a transformer, not a radio link. A passive tag harvests energy from that overlapping field and replies by load modulation rather than launching an independent travelling wave. That physical account connects back to the chapter’s rates: the protocol’s subcarrier and coding choices are organized around the 13.56 MHz field, while successful operation still depends on coil overlap and coupling.
13.13 Reader/Writer Mode
This section: Reader/Writer Mode — Reader/writer mode is the default pattern for smart posters, asset tags, commissioning labels, maintenance tags, and many IoT field workflows.
Reader/writer mode is the default pattern for smart posters, asset tags, commissioning labels, maintenance tags, and many IoT field workflows. The reader creates the RF field, polls for targets, activates one tag, and performs reads or writes. The tag responds only when selected and powered by the reader field.
Use reader/writer mode when the physical object can carry a passive tag and the application can treat the tap as an input signal. The tag can hold a short identifier, a URI, a configuration hint, or a small signed payload. It should not be treated as the authority for high-impact decisions unless the application verifies the data and the deployment threat model supports that choice.
13.14 Card Emulation Mode
This section: Card Emulation Mode — Card emulation mode lets a device respond to an external reader as if it were a contactless card.
Card emulation mode lets a device respond to an external reader as if it were a contactless card. The external reader still controls the RF field and command timing. The emulating device decides, through its local policy and credential storage model, whether it can answer the requested application.
Use card emulation when the environment already has readers that expect card behavior, such as access terminals, fare gates, equipment cabinets, or dedicated service tools. The important design question is not only “can the phone emulate a card?” but also “which application owns the credential, which reader applications are accepted, and how are failed or ambiguous taps handled?”
13.15 Peer-to-Peer Mode
This section: Peer-to-Peer Mode — Peer-to-peer mode uses NFCIP-1 so two active devices can exchange data over an NFC link.
Peer-to-peer mode uses NFCIP-1 so two active devices can exchange data over an NFC link. LLCP provides a link layer for peer services, and SNEP is one way to exchange NDEF messages over that link.
The two powered peers first negotiate a link they can both implement. The initiator proposes communication parameters during activation; the target answers with its capabilities. The agreed values bound data rate, active or passive communication behavior, timing, and the maximum information field that can be carried in one protocol data unit. In the classic teaching profile, the data block is at most 256 bytes. That is a block limit, not a promise of 256 bytes of application payload: protocol control and framing consume part of the exchange, and a larger message needs segmentation, acknowledgements, and recovery.
Walk a short setup exchange:
- Discover and activate. One device polls, the other answers, and anti-collision leaves one target selected.
- Negotiate. The peers agree parameters that fit both endpoints, including the maximum data unit they will accept.
- Bind a service. LLCP identifies the peer service; SNEP or another agreed protocol carries the small record.
- Exchange setup evidence. Send a carrier choice, device identifier, ephemeral public key, nonce, or setup token—not an unbounded media object.
- Confirm the boundary. Both applications validate the record, user intent, freshness, and authorization before enabling another radio.
- Transfer elsewhere. Bluetooth or Wi-Fi owns the longer-range or higher-bandwidth session, including its own key establishment, retry, reconnect, and throughput behavior.
For example, an NFC tap can identify a speaker and carry authenticated Bluetooth handover data. The devices then stop treating NFC as the transport and establish the audio link over Bluetooth. This reduces discovery and device-selection friction, but proximity is not authorization: the application still has to reject stale or substituted handover records and make failure visible.
Do not assume general-purpose phone-to-phone P2P is available in a deployed device. Many systems instead use NFC for a small handover message and move the longer session to Bluetooth, Wi-Fi, Thread commissioning, or an application backend. Treat P2P as a specific capability to verify, not as something every NFC device will expose to applications.
13.16 Continue to the Next Part
This section: Continue to the Next Part — Carry this evidence into NFC Protocols: Handover Boundaries, which begins with Handover Boundary.
Carry this evidence into NFC Protocols: Handover Boundaries, which begins with Handover Boundary.
Find help
3 reviewed answers.
Where should I start in a module?
Open the module page from the sidebar to see its chapters in order. Use the module map to return to a topic you need.
Modules and pathsReviewed
What can I try when a project does not work?
Check the symptom, then work through the diagnostic steps. Keep the error message and the smallest example that reproduces it.
When you are stuckReviewed
How do interactive examples work?
Use the interactive guide to check how examples and simulations work before changing your project.
Interactive examples guideReviewed
