cancel
Showing results for 
Search instead for 
Did you mean: 

NFC ndef format

Luke_abc
Associate III

Hi,

I have a use case where I need to read and write to an NFC tag. The read and write operation will always be done by an MCU (via st25R) and not by any other device (eg:- android device).

Should I use the NDEF format for the data in this case ? What is the advantage of using NDEF ?

 

 

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Ulysses HERNIOSUS
ST Employee

Hi Luke_abc,

 

The main advantage of NDEF is interoperability by giving semantic to the data. Android and Apple iPhones will read nowadays NDEF messages automatically. Android phones will know how to interpret most of the data contained in NDEF. iPhone will automatically open a few types of NDEF messages.

If you are using only one type of tag and only some proprietary data then probably no need to use NDEF, just make sure that your data is not by mistake interpreted as NDEF.

If you are using various different tags then it may become interesting to at least NFC Forum capability containers and maybe put proprietary TLVs into the NDEF file or use some mime-types. This helps you to manage different memory layouts, memory access etc. for most memory tags.

I hope this gives you some ideas what to consider.

BR, Ulysses

View solution in original post

3 REPLIES 3
Brian TIDAL
ST Employee

Hi,

NDEF (NFC Data Exchange Format) is a standardized message format used by NFC (Near Field Communication) devices to exchange data. The advantage of using NDEF over writing raw data on a tag is that NDEF provides a standardized way of formatting and organizing data, making it easier for different devices to read and interpret the data on the tag.

For the use case you have described, I believe there is not real advantage of using NDEF.

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Ulysses HERNIOSUS
ST Employee

Hi Luke_abc,

 

The main advantage of NDEF is interoperability by giving semantic to the data. Android and Apple iPhones will read nowadays NDEF messages automatically. Android phones will know how to interpret most of the data contained in NDEF. iPhone will automatically open a few types of NDEF messages.

If you are using only one type of tag and only some proprietary data then probably no need to use NDEF, just make sure that your data is not by mistake interpreted as NDEF.

If you are using various different tags then it may become interesting to at least NFC Forum capability containers and maybe put proprietary TLVs into the NDEF file or use some mime-types. This helps you to manage different memory layouts, memory access etc. for most memory tags.

I hope this gives you some ideas what to consider.

BR, Ulysses

Luke_abc
Associate III

Thanks @Ulysses HERNIOSUS  and @Brian TIDAL