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. The data format consists of NDEF Messages and NDEF Records.
The NDEF format is used to store and exchange information like URIs, plain text, etc., using a commonly understood format. NFC tags like Mifare Classic cards can be configured as NDEF tags, and data written to them by one NFC device (NDEF Records) can be understood and accessed by any other NDEF compatible device. NDEF messages can also be used to exchange data between two active NFC devices in “peer-to-peer” mode. By adhering to the NDEF data exchange format during communication, devices that would otherwise have no meaningful knowledge of each other or common language are able to share data in an organized, mutually understandable manner.
NDEF is an NFC Forum data format. The data formats are implemented in NdefMessage
and NdefRecord
. This class provides methods to retrieve and modify the NdefMessage
on a tag.
There are currently four NFC Forum standardized tag types that can be formatted to contain NDEF data.
- NFC Forum Type 1 Tag (
NFC_FORUM_TYPE_1
), such as the Innovision Topaz - NFC Forum Type 2 Tag (
NFC_FORUM_TYPE_2
), such as the NXP MIFARE Ultralight - NFC Forum Type 3 Tag (
NFC_FORUM_TYPE_3
), such as Sony Felica - NFC Forum Type 4 Tag (
NFC_FORUM_TYPE_4
), such as NXP MIFARE Desfire
It is mandatory for all Android devices with NFC to correctly enumerate Ndef
on NFC Forum Tag Types 1-4, and implement all NDEF operations as defined in this class.
Some vendors have their own well defined specifications for storing NDEF data on tags that do not fall into the above categories. Android devices with NFC should enumerate and implement Ndef
under these vendor specifications where possible, but it is not mandatory. getType()
returns a String describing this specification, for example MIFARE_CLASSIC
is com.nxp.ndef.mifareclassic
.
Android devices that support MIFARE Classic must also correctly implement Ndef
on MIFARE Classic tags formatted to NDEF.
Related Products
Related Articles
NXP Semiconductors Presents the MIFARE SAM AV3
Securing Connected Systems with NXP Semiconductors More and more of daily life has become contactless. As we navigate through our lives, people around the world use devices like smartphones, wearables and smart cards to do things like pay for purchases,
Safetrust Modernizes HID iCLASS® Readers with MIFARE® DESFire® EV3 Security
FREMONT, Calif., Nov. 09, 2020 -- Safetrust, a pioneer in virtual credential solutions, introduces the SABRE MODULE, a 30-second plug-in upgrade that adds DESFire EV3 and remote management capabilities to installed HID iCLASS readers. The module simplifies the transition from
NXP, Mastercard, and Xiaomi Expand Global Reach for Mobile Payments into Europe
July 18, 2020 -- NXP Semiconductors (NASDAQ:NXPI), Mastercard, and Xiaomi Inc. today announced they are bringing more convenient and secure contactless experiences to Russia as the first phase of a European-wide roll-out with NXP's mobile wallet solution. Powering mobile payments for
NXP Introduces MIFARE DESFire EV3 IC, Ushers In New Era of Security and Connectivity for Contactless Smart City Services
June 02, 2020 09:00 ET Service providers and end users can benefit from convenient and reliable contactless access and payment solutions Enhanced feature set increases security for smart city installations Mobile and multi-application support allow service providers to collaborate in
ACS Launches ACM1252U-Z6 Small NFC Reader Module
HONG KONG, 9 Mar, 2020 - Advanced Card Systems Ltd. (ACS), Asia Pacific's top supplier and one of the world's top 3 suppliers of PC-linked smart card readers (Source: Frost & Sullivan), launches the ACM1252U-Z6 Small NFC Reader Module. The ACM1252U-Z6 shares
ACS Launches ACR1251T USB Token NFC Reader II
HONG KONG, 9 Mar, 2020 - Advanced Card Systems Ltd. (ACS), Asia Pacific's top supplier and one of the world's top 3 suppliers of PC-linked smart card readers (Source: Frost & Sullivan), launches the ACR1251T USB Token NFC Reader II. The ACR1251T