![Advanced Card Systems ACM1281U-C7 Скачать руководство пользователя страница 16](http://html1.mh-extra.com/html/advanced-card-systems/acm1281u-c7/acm1281u-c7_reference-manual_2855859016.webp)
ACM1281U-C7
– Reference Manual
Version 1.02
www.acs.com.hk
Page 16 of 44
www.acs.com
.hk
5.1.3.2.
Authentication for MIFARE 1K/4K
This command is used to authenticate the MIFARE 1K/4K card (PICC) using the keys stored in the
reader. Two types of authentication keys are used: Type_A and Type_B.
Command
Command
Class INS
P1
P2
P3
Data In
Authentication
6 Bytes (Obsolete)
FFh
88h 00h
Block Number
Key Type
Key Number
Command
Class INS
P1
P2
Lc
Data In
Authentication
10 Bytes
FFh
86h 00h
00h
05h
Authenticate Data Bytes
Where:
Authenticate Data Bytes
(5 Bytes)
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Version
01h
00h
Block Number
Key Type
Key Number
Where:
Block Number
(1 Byte)
The memory block to be authenticated.
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.