EHUOYAN
YHY521X
Manual
Page 14 of 36
Table 17. Response--: YHY521X
Æ
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 YHY521X 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
Configure command--: Host
Æ
YHY521X
AA BB 12 04
03
00 FF FF FF FF FF FF
00
05 06
03 04
01
60
08
78
Description:
03
:
Auto code
00 FF FF FF FF FF FF
:
Auth key A and key string
00
: Read block 0
01
: Auth mode 1
08
: Baud code,115200bps
If success then reset the YHY521X to active this function. The reader will read the card
block itself when there is a card into the RF field and then output the block data to host, at
the same time the buzzer would beep one time if it is connecting to a buzzer. Below is the
output string example.
YHY521X
Æ
Host----
AA BB 12
51
5E C0 E0 7A 04 88 04 00 47 51 35 56 61 10 28 08
EB
Description: