![EHUOYAN YHY522R User Manual Download Page 17](http://html.mh-extra.com/html/ehuoyan/yhy522r/yhy522r_user-manual_2368779017.webp)
EHUOYAN
YHY522R
RFID module
Page 17 of 36
AA BB 12 04 02 00 FF FF FF FF FF FF 00 00 00 00 00 00 00
03
17 // Scan UID, baud
9600
AA BB 12 04
03
00 FF FF FF FF FF FF 00 00 00 00 00 00 00 05 10//Auto mode 3, scan block
AA BB 12 04 07 00 FF FF FF FF FF FF 00 00 00 01 02 00 00 05 17// Auto mode 7, scan sector1-2
14.2.4
Download_Keys
This command can load up to 40 groups keys to the YHY522R ’s EEPROM, all
the data stored in the EEPROM is encrypted. When
auth mode
is
1
, the reader
will use the EEPROM’s key to auth the card. After reset this keys will active.
Table 19. Command--: Host
Æ
YHY522R
Send
Header
Length
Command
Data
XOR Checksum
0xAA
0xBB
0x09
0x05
7 bytes
Sector: 1 byte
Keys: 6 bytes
BCC
Sector: 0—0x27 (mifare 4 k card has 40 sectors)
Keys: KeyA or KeyB, default FF FF FF FF FF FF.
Table 20. Response--: YHY522R
Æ
Host
Receive
Head
Length
Status
Data
XOR Checksum
Success 0xAA
0xBB 0x02 0x05
0x07
Failure 0xAA
0xBB 0x02
0xFA
0xF8
Table 21. Example
Send
AA BB 09 05 01 FF FF FF FF FF FF 0D
Description
AA BB
09
05
01
FF FF FF FF FF FF
0D
Head
Length
COMMAND
Sector 01
Key
BCC
Receive(Success)
AA BB 02 03 01
Description
AA BB
02
05
07
Head
Length
Status
BCC
Receive(Failure)
AA BB 02 FC FE
Description
AA BB
02
FA
F8
Head
Length
Error
BCC
14.2.7
Antenna_Control
This command set the antenna power on or off .
Table 28. Command--:Host
Æ
YHY522R
Send
Header
Length
Command
Data
XOR Checksum