nfcapdundef

Writing NDEF message as raw binary


I want to write an NDEF message (containing a text NDEF record) to an NFC tag (Mifare Ultralight TYPE 2) using APDU commands. Tag has 4 byte memory banks starting form 0x00 to 0x2B. Which memory location should I write raw binary representation of my NDEF message?


Solution

  • In Type 2 specification, the data blocks start at byte 0x10

    See page 5 for a brief overview of type2 memory spec and memory structures on page 29:

    https://github.com/somq/nfccard-tool/blob/master/docs/NFCForum-TS-Type-2-Tag_1.1.pdf

    Also, here is an example empty NDEF message written to the tag memory enter image description here