Instructions

NFC &
MIFARE & ISO14443AB & ISO15693 & ISO18000 & ISO7816 IC Card Module www.quio-rfid.de
Copyright © 2003-2022 Quick Ohm Küpper & Co. GmbH. All rights reserved. 37/101
5.5 MIFARE 1K/4K/mini Card Commands
5.5.1 MIFARE Request
MIFARE series cards request, please refer to ISO14443 TYPE A Request.
5.5.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 refers 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
Example:
Send: 0x00 0C 00 21 00 01 FF FF FF FF FF FF 2C
Return: 0x00 14 01 21 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 34
5.5.3 MIFARE 1K/4K Multi-Blocks Read
Function: Read multi data blocks in the same sector. This 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.