Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does NDEF formatting map to the NFC tag structure

I have been looking for the differences between NDEF formatted and normal NFC tag. Let consider 1k Mifare classic tags. These have 16 sectors and 4 blocks each.

Once you format a tag as NDEF, what "internal" changes occur on the tag? Or what sort of formatting does happens so we can call it NDEF formattted?

like image 615
hellowahab Avatar asked Dec 10 '14 10:12

hellowahab


People also ask

What is NDEF NFC?

The NFC Data Exchange Format ( NDEF) is a standardized data format that can be used to exchange information between any compatible NFC device and another NFC device or tag.

What is NDEF tag text?

NDEF is a binary format structured in messages, each of which can contain several records, as shown in Figure 4-1. Each record is made up of a header, which contains metadata about the record, such as the record type, length, and so forth, and the payload, which contains the content of the message.

What NDEF compliant?

NDEF stands for NFC Data Exchange Format it is a specification created by the NFC Forum which defines a common data format for devices and tags compliant with NFC Forum standards. NDEF is a standardization norm for exchanges between two NFC devices, an NFC device and a tag.


1 Answers

NDEF "formatted" means that a tag is capable of holding a NDEF message. This means that

  • for tags with flat memory structure (e.g. NFC Forum Type 1 and Type 2 tags), certain pages are filled with defined values (e.g. the "capability container") that let an NFC device determine that the tag adheres to a certain version of the Tag Operation specification and that it contains a defined amount of NDEF formatted data in a defined memory area.

  • for tags with a file-system based memory structure (e.g. NFC Forum Type 3 and Type 4 tags), a certain file and directory structure exists on the tag and meta information (e.g. contained in a capability container file with a well-known file ID for Type 4 tags) indicates the location, size and other parameters that allow an NFC device to access the NDEF formatted data.

For standard NFC tags, this formatting (and the commands necessary to interact with the tags) are defined by the NFC Forum in the Tag Operation specifications (get them from the NFC Forum website). In addition some manufacturers like NXP have defined mapping documents that describe how to use their proprietary RFID tags (i.e. non-NFC Forum tag types) such as MIFARE Classic to store NDEF data. These mapping documents describe the data structures that need to be present on a tag to be identified as container for an NDEF message.

like image 130
Michael Roland Avatar answered Nov 16 '22 22:11

Michael Roland