Testing & Compliance

Digital Test

Testing of the digital protocol layer: bit encoding, frame format, CRC calculation, and command-response sequences. Ensures proper implementation of NFC-A, NFC-B, NFC-F, or NFC-V protocols.

También conocido como: digital test protocol test

What Is Digital Testing?

Digital testing is the verification of an NFC device's or tag's digital protocol layer implementation against the specifications defined in the NFC Forum Test Suite. While analog testing focuses on the physical RF characteristics, digital testing validates the logical correctness of bit encoding, frame structure, error detection, command-response sequences, and protocol state machines for NFC-A, NFC-B, NFC-F, and NFC-V protocols.

What Digital Tests Verify

Digital test specifications cover the data link and protocol layers:

Test Area Description Example Parameters
Bit encoding Correct Manchester or Modified Miller coding Transition positions, bit boundaries
Frame format Start-of-frame, data, CRC, end-of-frame Parity bits, SOF/EOF patterns
CRC calculation Error detection integrity CRC-A (ISO 14443A), CRC-B (ISO 14443B)
Command set Protocol command implementation REQA, ATQA, SELECT, READ, WRITE
Response timing Frame delay time (FDT) FDT_listener, FDT_poller (microseconds)
State machine Protocol state transitions IDLE -> READY -> ACTIVE -> HALT
Error handling Response to invalid commands NAK, timeout behavior

Poller (Reader) Digital Tests

Digital tests for NFC readers verify the correct generation of protocol commands:

Anti-collision sequence. The reader must execute the anti-collision algorithm correctly, handling single and multiple tags in the field. For NFC-A, this involves sending REQA/WUPA, processing ATQA, and performing the cascade levels of the SELECT command to resolve 4-byte and 7-byte UIDs.

Command encoding. Each command must be properly formatted with correct bit encoding, parity bits (NFC-A), CRC, and frame delimiters. The test equipment decodes the reader's output and validates every bit position.

State management. The reader must correctly manage protocol states: transitioning from polling to activation, handling tag responses, and properly deactivating the session with HLTA or DESELECT commands.

Listener (Tag) Digital Tests

Digital tests for NFC tags verify correct response to reader commands:

Command processing. The tag must correctly parse incoming commands, validate CRC, and execute the requested operation (READ, WRITE, AUTH). Invalid commands must be rejected with appropriate error responses.

Response formatting. Tag responses must use the correct bit encoding (Manchester subcarrier for tag-to-reader in NFC-A), include proper CRC, and comply with frame format specifications.

Timing compliance. The tag must respond within the specified Frame Delay Time (FDT). For NFC-A, the tag must begin its response exactly 1172/fc (86.4 microseconds) after the end of the reader's command. Timing violations cause the reader to discard the response.

Memory operations. READ commands must return the correct data from the addressed memory block. WRITE commands must store data correctly and return appropriate acknowledgment. Attempts to write to locked pages must be rejected.

Common Digital Test Failures

Frequent issues caught by digital testing include:

  • Incorrect CRC calculation. A single-bit CRC error causes the reader or tag to reject the frame entirely.
  • Timing violations. Tag response outside the FDT window, causing the reader to miss the response.
  • State machine errors. Tag accepting commands in incorrect states (e.g., processing WRITE after HALT).
  • Anti-collision bugs. Reader failing to resolve multiple tags or selecting the wrong UID during cascade.

These issues may appear to work in simple bench tests but fail under specific conditions, which is precisely why formal certification testing is necessary for interoperability assurance. Modern test platforms combine analog and digital testing into integrated suites for comprehensive validation.

Related Terms

Preguntas frecuentes

The NFC glossary is a comprehensive reference of technical terms, acronyms, and concepts used in Near Field Communication technology. It is designed for developers, product managers, and engineers who work with NFC and need clear definitions of terms like NDEF, APDU, anti-collision, and ISO 14443.

Each glossary term is cross-referenced with related NFC chips, standards, and other terms. For example, the term 'AES-128' links to chips that support AES encryption (NTAG 424 DNA, DESFire EV2/EV3), and the term 'ISO 14443' links to all chips compliant with that standard.

Yes. NFCFYI provides glossary definitions in 15 languages including English, Korean, Japanese, Chinese, Spanish, Portuguese, Hindi, Arabic, French, Russian, German, Turkish, Vietnamese, Indonesian, and Thai. Use the language selector in the header to switch languages.