Update binary blocks – ACS ACR1283L User Manual

Page 25

Advertising
background image

ACR1283L – Reference Manual

[email protected]

Version 1.00

www.acs.com.hk

Page 25 of 55

Maximum 16 bytes for Mifare Ultralight.

Maximum 48 bytes for Mifare 1K. (Multiple Blocks Mode; 3 consecutive blocks)

Maximum 240 bytes for Mifare 4K. (Multiple Blocks Mode; 15 consecutive blocks)

Example 1: 0x10h (16 bytes). The starting block only. (Single Block Mode)
Example 2: 0x40h (64 bytes). From the starting block to starting block+3. (Multiple Blocks Mode)

Note: For safety reason, the Multiple Block Mode is used for accessing Data Blocks only. The

Trailer Block is not supposed to be accessed in Multiple Blocks Mode. Please use Single Block

Mode to access the Trailer Block.


Read Binary Block Response Format (Multiply of 4/16 + 2 Bytes)

Response

Data Out

Result

Data (Multiply of 4/16 Bytes)

SW1

SW2


Read Binary Block Response Codes

Results

SW1 SW2

Meaning

Success

90 00h

The operation is completed successfully.

Error

63 00h

The operation is failed.


Examples:
// Read 16 bytes from the binary block

0x04h

(Mifare 1K or 4K)

APDU = {FF B0 00

04

10h}


// Read 240 bytes starting from the binary block

0x80h

(Mifare 4K)

// Block 0x80h to Block 0x8Eh (15 blocks)
APDU = {FF B0 00

80

F0h}

5.3.2.2.4. Update Binary Blocks

This command is used for writing a multiple of “data blocks” into the PICC. The data block/trailer block

must be authenticated first before executing the Update Binary Blocks command.

Update Binary APDU Format (Multiple of 16 + 5 Bytes)

Command

Class

INS

P1

P2

Lc

Data In

Update Binary

Blocks

FFh

D6h

00h

Block

Number

Number of Bytes

to Update

Block Data

(Multiple of 16 Bytes)

Where:

Block Number (1 Byte): The starting block to be updated.
Number of Bytes to Update (1 Byte):

Multiply of 16 bytes for Mifare 1K/4K or 4 bytes for Mifare Ultralight

Advertising