
Page
50
of
77
Copyright © Access-IS 2020
7.10 MIFARE Ultralight write block
Use this command to write data to the specified block.
Note: This command is applicable ONLY to MIFARE Ultralight cards and fails if executed on other
MIFARE card types.
7.10.1 MIFARE Ultralight command bytes
MIFARE Ultralight command bytes
Command header
Command code
Block number
Block data
[0x00]
[0x22]
MIFARE Ultralight write block
Block number
4 bytes of data
7.10.2 MIFARE Ultralight response bytes
MIFARE Ultralight response bytes
Response header
Response code
Block number
Status bytes
[0x00]
[0x23]
Block number
[0x90][0x00]
Success
Failure
Refer to page 55 for information on MIFARE failure status codes.
7.10.3 Example
This command successfully writes one block (block number 4) with 4 bytes of data.
There is no authentication feature on Ultralight cards.
USB
Command:
[0x00][0x22][0x04]]0x01][0x02][0x03][0x04]
Response:
[0x00][0x23][0x04][0x90][0x00]
Serial
Command:
[0x6F][0x07][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x22][0x04][0x01][0x02][0x03][0x04]
Response:
[0x80][0x05][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x23][0x04][0x90][0x00]