nfc

How correct protect NXP NTAG215 for read/write


i've an big trouble with my NTAG215 tags.

I use this PDF below for reffer:

https://www.nxp.com/docs/en/data-sheet/NTAG213_215_216.pdf

COMMANDS

commands

I send these raw commands:

AUTH TAG ( with default password )

nfc.transceive('1B FF FF FF FF')

CHANGE DEFAULT PASSWORD

nfc.transceive('A2 85 AA BB CC DD')

SET PACK

nfc.transceive('A2 86 EE FF 00 00')

PROTECT ADDRESS 04 TO 81

nfc.transceive('A2 83 04 00 00 04')

ENABLE READ/WRITE PROTECTION

nfc.transceive('A2 84 10 00 00 00')

After send these commands, i read my NTAG215, and confirm results, but...i can read all memory blocks without PWD ( 1B command ).

I need protect these memory blocks from read without correct password.

Memory blocks

Thanks for all help guys.


Solution

  • Everything looks fine except for the last command.

    ENABLE READ/WRITE PROTECTION
    nfc.transceive('A2 84 10 00 00 00')
    

    In order to enable the protection the command must be as follows:

    nfc.transceive('A2 84 80 00 00 00')