Update-Binary command
The Update-Binary command is used to write data to the contactless NFC tag/card. The command is applicable only for storage cards (MIFARE Classic/UL, Felica, ISO15693 and Jewel/Topaz cards). The format of the request and response for the command is as described below.
Command | Class | INS | P1 | P2 | Lc | Data In |
---|---|---|---|---|---|---|
Update-Binary | 0xFF | 0xD6 | Address MSB | Address LSB | Length of Data In | Data |
MIFARE Family
Command | CLA | INS | P1 | P2 | Lc |
---|---|---|---|---|---|
UL WRITE 4 | 0xFF | 0xD6 | 0x00 | 0x00 to 0x15 | 0x04 |
CL 1k WRITE 16 | 0xFF | 0xD6 | 0x00 | 0x00 to 0x3F | 0x10 |
CL 4k WRITE 16 | 0xFF | 0xD6 | 0x00 | 0x00 to 0xFF | 0x10 |
Jewel Family
Command | CLA | INS | P1 | P2 | Lc |
---|---|---|---|---|---|
WRITE1-E | 0xFF | 0xD6 | Block Number | Block Offset | 0x01 |
WRITE8-E | 0xFF | 0xD6 | Block Number | 0x00 | 0x08 |
Felica Family
Command | CLA | INS | P1 | P2 | Lc | Data In | |||
---|---|---|---|---|---|---|---|---|---|
UPDATE | 0xFF | 0xD6 | 0x00 | 0x00 | Length of Data In | Number of Service | Service code list | Number of blocks | Block list |
ISO15693 Family
Command | CLA | INS | P1 | P2 | Le |
---|---|---|---|---|---|
WRITE | 0xFF | 0xD6 | Block Number | 0x00 | 0x4 |
Response Format
Response | |
---|---|
SW1 | SW2 |
Related topics
Near field communication (NFC) design guide