Search code examples
nfcrfidiso-15693

Change AFI in RFID with NFC


I can't find information about if it's possible change AFI number in RFID chip with NFC. I'm sure it's possible read AFI number with NFC. AFI number has some special block on RFID chip thats reason why I'm not sure if it's possible change it. Thank you


Solution

  • For a ISO 15693 tag you can use the NfcV command transceive(byte[] data) to send a "write AFI" command to the tag, followed by a "Lock AFI" command to lock the AFI value.

    Write AFI has the command code 0x27. Lock AFI has the command code 0x28.

    This should work as long as the RFID chip supports AFI (AFI is optional) and the AFI of that tag has not been programmed beforehand.

    You can find more details about AFI in the ISO 15693-3.

    See: See Android reference for transceive()