Company news Industry news Technical communication

How to program a right nfc message to nfc tags?

NFC NDEF basics

With many different high level applications needing to transfer data over the NFC radio interface, the concept of the NFC NDEF is to be able to send data of any format over the interface while still being able to retain the air interface data format.hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

An NDEF message is composed of one or more NDEF records. There can be multiple records in a NDEF message.hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

The limit for the number of records that can be encapsulated into an NFC NDEF message depends upon the application in use and the tag type used.hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

In order that the system knows where the messages begin and end, the first record in a message is marked with the MB or Message Begin flag set and the last record in the message is marked with the ME or Message End flag set. The minimum message length is one record. This is achieved by setting both the MB and the ME flag in the same record.hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

To ensure that the data capability is used efficiently, NFC NDEF records do not incorporate an index number - the index number within the message is implicitly assigned by the order in which the records occur.hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

 hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

NFC NDEF message structurehA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider
NFC NDEF data exchange format message structure

 hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

It can be seen that the NDEF is exchanged in messages that comprise of a sequence of records.hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

Each record consists of two parts:hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider

  • Header:   The header for the NDEF exchange includes indicator for a number of elements:hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider
    hA5GEENFC: A Global RFID tag, NFC tag, RFID Solution Provider
    • Payload length:   The payload length is always included in the NDEF header by a specific field. The payload length field is one octet for short records but for normal records it is four octets long. Short records are indicated by setting a flag bit known as the SR or short record flag to a value of 1. Zero is a valid payload length.
    • Payload type:   The payload type of a record indicates the kind of data being carried in the payload of that record. This may be used to guide the processing of the payload at the discretion of the user application. The format of the Payload Type field value is indicated using the TNF, Type Name Format field.
    • Payload identification:   An optional payload identifier allows the applications to identify the payload carried within an NDEF record.
  • Payload:   The payload can be of one of a variety of different types: URL, MIME media, or NFC-specific data type. For NFC-specific data types the payload contents must be defined in an NFC Record Type Definition file, RTD.

Copyright@ 2024 GEE NFC LIMITED. All right reserved.Term of UsePrivacy Policy

Sales

Technique

Post-service

If we are not online, please click on the button a message, we will respond to you as soon as possible.
FEEDBACK
*Name:
*Email:
*Content