EHUOYAN
YHY522R
RFID module
Page 12 of 36
14.2 Commands and Response
After power on or reset YHY522R , the RED led will flash one time, It means
that YHY522R is ready.
If a Mifare
®
tag detected by the module, pin IRQ will change from “1” to “0”
and the red led on board will light till the tag moves out of rf field.
The RED led will flash during data stream exchanging between host and
YHY522R .
14.2.1
Detect_Clone
This command will detect the UID clone card, if it is a clone card, it will
Code
Command
Description
SYSTEM COMMANDS
0x03
MSleep
Module Sleep(Hard Power Down)
0x04
MConfigure
Configure parameters to the module
0x05
Download_Keys
Download auth keys to the module
0x11
Antenna_Control
Control Antenna on or off
0x13
Sense_Mode
Set Auto Sense Mode
RFID COMMANDS
0x06
Change_Card_Keys
Change the Card’s Key
0x12
Card_Sleep
Card Sleep(Halt)
0x19
Card_Type
Read Card Type
0x20
Card_ID
Read Card UID
S50 commands
0x0c
Detect_Clone
Detect a clone card
0x21
Block_Read
Read Data From Card Block, 16 bytes
0x22
Block_Write
Write Data Into Card Block, 16 bytes
0x23
Value_Init
Initialize block data to Value format, 4 bytes
0x24
Value_Read
Read Value, 4 bytes
0x25
Value_Inc
Increase Value, 4 bytes, Low Byte First
0x26
Value_Dec
Decrease Value, 4 bytes, Low Byte First
0x27
Value_Backup
Backup Value to Another Block
0x2a
Sector_Read
Read One Sector
0x2b
Sector_Write
Write One Sector
NTAG213 commands
0x28
Pages_Read_UL
Read out 4 pages of the UL data,
0x29
Page_Write_UL
Write in 4 bytes data into 1 page to the UL chip
0x40
Ntag_Read_Text
Read NFC text from NTAG chip
0x41
Ntag_Write_Text
Write NFC text into NTAG chip