Technical Manual

East Wind Technologies, Inc.
Copyright ©
2022 East Wind Technologies, Inc. All rights reserved.
24/66
3.4
MIFARE 1K/4K/mini Card Commands
3.4.1 MIFARE Request
MIFARE series cards request, please refer to
ISO14443 TYPE A Request.
3.4.2 MIFARE 1K/4K Data Block Read
Function: Read MIFARE 1K/4K one block data.
Host sends:
Frame
0x21
Key ID
Block
Key
Checksum
Key ID: 1 byte, Key identifier
BIT0 = 0:Key A; BIT0 = 1: Key B;
BIT1=0: using the key in the command; BIT1=1: using the key downloaded by
command 0x2D;
BIT6:BIT5:BIT4:BIT3:BIT2: if use the downloaded key, this is the index of the key;
BIT7=0: The block need to be certified via using the above key;
BIT7=1: The block has been authenticated and passed. Do not need authentication
again. (This operation and automatic detecting card could not be used at the same time);
(IMPORTANT: more information please refer to Chapter 5.3 about Key identifier).
Block: 1 byte, Block number to read, 0 to 0x3F for S50; 0 to 0xFF for S70; Key:
6 bytes, the key of the card.
Success:
Frame
0x21
Data
Checksum
Data: 16 bytes card data
Failure:
Frame
0xDE
Checksum
3.4.3 MIFARE 1K/4K Multi-Blocks Read
Function: Read multi data blocks in the same sector. The function is supported only in the
same sector. If crossing sectors, the reading will fail.
Host sends:
Frame
0x2A
Key ID
Start Block
Blocks
Key
Checksum
Key ID: 1 byte, key identifier;
Start Block: 1 byte, the start block to be read;
Blocks: 1 byte, number of blocks to be read. All blocks need in same sector.
Key: 6 bytes, the key of the card.
Success: