ACR1281U-C1 – Application Programming Interface
Version 1.08
www.acs.com.hk
Page 60 of 96
Note: For MIFARE 1K card, it has a total of 16 sectors and each sector consists of 4
consecutive blocks. For example, Sector 00h consists of Blocks {00h, 01h, 02h and 03h};
Sector 01h consists of Blocks {04h, 05h, 06h and 07h}; the last sector 0Fh consists of Blocks
{3Ch, 3Dh, 3Eh and 3Fh}.
Once the authentication is done successfully, there is no need to do the authentication again
provided that the blocks to be accessed belong to the same sector. Please refer to the
MIFARE 1K/4K specification for more details.
Key Type
(1 byte)
60h = Key is used as Key A key for authentication.
61h = Key is used as Key B key for authentication.
Key Number
(1 byte)
00h – 1Fh
=
Non-volatile memory for storing keys. The keys are
permanently stored in the reader and will not be erased even if the
reader is disconnected from the PC. It can store up to 32 keys inside
the reader non-volatile memory.
20h (Session Key)
=
Volatile memory for temporarily storing keys.
The keys will be erased when the reader is disconnected from the
PC. Only 1 volatile memory is provided. The volatile key can be used
as a session key for different sessions. Default value = FF FF FF FF
FF FFh.
Response
Response
Data Out
Result
SW1
SW2
Where:
SW1 SW2
= 90 00h means the operation is completed successfully.
= 63 00h means the operation failed.
Sectors
(Total of 16 sectors. Each
sector consists of 4
consecutive blocks)
Data Blocks
(3 blocks, 16 bytes per
block)
Trailer Block
(1 block, 16 bytes)
Sector 0
00h ~ 02h
03h
Sector 1
04h ~ 06h
07h
..
..
Sector 14
38h ~ 0Ah
3Bh
Sector 15
3Ch ~ 3Eh
3Fh
Table 7
: MIFARE 1K Memory Map
1 KB