cancel
Showing results for 
Search instead for 
Did you mean: 

I2C routine to write NDEF message into M24LR04

yvan
Associate
Posted on January 23, 2014 at 15:38

Hello Everyone,

I have the same request than ramirez_prieto.valen, I'm looking for an I2C routine in order to write an NDEF message in a M24LR04 tag, but I haven't foud anything about that. Obviously the AN3408 is important for understand NDEF MESSAGE structure, however It's would be very interesting to have an I2C routine. I've tried to write this routine but It seems to be wrong and since 3 days I have tried to debug it.

 I don't know  for example if the CC field his automatically set or if it's defined by the user, furthermore I don't know how to manage user memory area when there is already a previous NDEF message. there are not informations concerning these issues.

An example would be very nice

#nfc-phone-support #ndef #m24lr
1 ACCEPTED SOLUTION

Accepted Solutions
Anais GALLIGANI
Senior II
Posted on January 23, 2014 at 16:50

Hi,

Thanks for your interest,

The NDEF message are described per the NFC Forum.

http://members.nfc-forum.org/specs/

So yes the CC file is defined per  the user ;

If there is a NDEF message that has already been created, it is needed to write on it again, then the new lenght will demarcate the new structure.

AN3408 describe how to write the CC file and how to write NDEF in M24LRxx product.

On the FW of the M24LR-discovery might help you for the NDEF.

http://www.st.com/web/en/catalog/tools/PF258104

Have a nice day,

ST NFC/RFID Dynamic support

View solution in original post

2 REPLIES 2
Anais GALLIGANI
Senior II
Posted on January 23, 2014 at 16:50

Hi,

Thanks for your interest,

The NDEF message are described per the NFC Forum.

http://members.nfc-forum.org/specs/

So yes the CC file is defined per  the user ;

If there is a NDEF message that has already been created, it is needed to write on it again, then the new lenght will demarcate the new structure.

AN3408 describe how to write the CC file and how to write NDEF in M24LRxx product.

On the FW of the M24LR-discovery might help you for the NDEF.

http://www.st.com/web/en/catalog/tools/PF258104

Have a nice day,

ST NFC/RFID Dynamic support

kseverinkangas
Associate II
Posted on December 08, 2014 at 12:50

Hi,

I have the same problem. I have gone through the mentioned documents (especially AN3408), but I'm not able to write an URI by I2C that is recognizable by a NFC phone. The NFC-V reader can read my messages fine. I also noted that if I write an URI by NFC-V reader it is not recognized by Android's default NFC handlers. I'm using Samsung S3, but I also have tried other fresher Android phones. I am using M24LR16E-R (ROBOT board). Is it possible to have Android phone support for this tag?

BR,

Kari