EHUOYAN
YHY522R
RFID module
Page 15 of 36
D[9]: RFU-default 0x00
D[10]:RFU-default 0x00
D[11]:Start sector to be scan
D[12]:End sector to be scan
D[13]:Auth mode -----
Define the auth mode----
0—Auth directly from host, default mode
1—The YHY522R will use the downloaded keys for authentication card
D[14]:RFU -----
Reserved For future Used. Default
0x60
.
D[15]:Baud code -----
See table 5 for the baud rate code.
Table 17. Response--: YHY522R
Æ
Host
Receive
Head
Length
Status
Data
XOR Checksum
Success 0xAA
0xBB 0x02 0x04
0x06
Failure 0xAA
0xBB 0x02
0xFB
0xF9
Table 18. Example 1 ---Auto read card id, Auto code=0x02
Send
AA BB 12 04
02
00 FF FF FF FF FF FF 00 00 00 00 00 00 00
08
1C
Description
AA BB
12
04
02
00..00
08
1C
Head
Length
COMMAND
Auto code—auto read id
Any data
Baud code---115200bps
BCC
Receive(Success)
AA BB 02 04 06
Description
AA BB
02
04
06
Head
Length
Status
BCC
Receive(Failure)
AA BB 02 FB F9
Description
AA BB
02
FC
FE
Head
Length
Error
BCC
If success then reset the YHY522R to active this function. The reader will read the card id
itself when there is a card into the RF field and then output the id to host, at the same time
the buzzer would beep one time if it is connecting to a buzzer.
Example 2 ---Auto read card block, Auto code=0x03