1

I am working on a project where I'm using M24LR64E-R ISO 15693. My problem is that I have written a simple program that can write and read an NDEF message with multiple text records using a normal NFC tag (NFC type V - ISO 15693).

How can I write my NDEF message to a specific location on memory and eventually read these records and display them on my application using M24LR64E-R ISO 15693.

I have been searching both here and online for how to write and read NDEF message with multiple records to and from a specific memory location on NFC-V but couldn't find anything.

Michael Roland
  • 39,663
  • 10
  • 99
  • 206
DaGuy
  • 65
  • 1
  • 6

1 Answers1

1

The NDEF abstraction layer was designed to be an astraction of the actual memory layout of NFC tags. It works on top of several different tag platforms (which have different memory structures and layout). As a result, NDEF is not well-suited for storing data to specific memory locations inside a tag.

As a result, NDEF APIs do not support writing to specific locations inside a tag. From the perspective of the NDEF API, the NFC tag is a container that contains exactly one NDEF message (potentially consisting of multiple NDEF records).

What you could do, however, is to use only parts of the NDEF API (i.e. NdefRecord and NdefMessage) and take care of reading and writing to the yourself using low-level IO methods.

Michael Roland
  • 39,663
  • 10
  • 99
  • 206
  • Thnx a lot for your answer, it contained the information i was looking for – DaGuy May 08 '18 at 18:39
  • I want to ask you if you can direct me to some sources that explain your provided answer since i want to use it as a reference in a report. Thnx again (hope you dont misunderstand me, i know that your answer is korrekt since i tried it to do it but they always reside at the top of the nfc tag memory) – DaGuy May 08 '18 at 20:18
  • @DaGuy Besides my own literature (e.g. [*Anwendungen und Technik von Near Field Communication (NFC)*](https://www.springer.com/book/9783642054969)) probably the most direct reference would be [*An Introduction to Near-Field Communication and the Contactless Communication API*](http://www.oracle.com/technetwork/articles/javame/nfc-140183.html) by C. Enrique Ortiz. Also, the introductory part of the NFC Forum NDEF specification has some hints in it. – Michael Roland May 09 '18 at 07:15