![EHUOYAN YHY522R User Manual Download Page 19](http://html.mh-extra.com/html/ehuoyan/yhy522r/yhy522r_user-manual_2368779019.webp)
EHUOYAN
YHY522R
RFID module
Page 19 of 36
Send
AA BB 03 13 00 10
Description
AA BB
03
13
00
10
Head
Length
COMMAND
Auto off
BCC
Receive(Success)
AA BB 02 13 11
Description
AA BB
02
13
11
Head
Length
Status
BCC
Receive(Failure)
AA BB 02 EC EE
Description
AA BB
02
EC
EE
Head
Length
Error
BCC
14.2.13
Change_Card_Keys
This command will change the card’s authentication keys. The card
needs to be put on the field when performing this action.
Table 45. Command--:Host
Æ
YHY522R
Send
Header
Length
Command
Data
XOR Checksum
0xAA
0xBB
0x1A
0x06
Key Info:
24 bytes
BCC
Key Info: Key type +Sector Old Key + New Key + Key A+ Access bits + Key B
Key type: 1 byte, 0x00—Key A, 0x01—Key B.
Sector number: 1 byte, 0x00..0x27 (0..39)
Old Key: 6 bytes, default “FFFFFFFFFFFF” (*)
Key A: 6 bytes new key
Access bits: 4 bytes---‘ FF 07 80 69’
Key B: 6 bytes ----default ‘FF FF FF FF FF FF’
(*)Note: If auth mode is “1”, then this key is not active, it can be any 6 data bytes.
Table 46. Response--: YHY522R
Æ
Host
Receive
Head
Length
Status
Data
XOR Checksum
Success 0xAA
0xBB 0x02 0x06
0x04
Failure 0xAA
0xBB 0x02
0xF9
0xFB
Table 47. Example
Send
AA BB 1A 06
00 08
FF FF FF FF FF FF
00 11 22 33 44 55
FF 07
80 69 FF FF FF FF FF FF
14
(*)
Description
AA BB
1A
06
00
Head
Length
COMMAND
Key type A