EHUOYAN
YHY522R
RFID module
Page 26 of 36
Failure
0xAA 0xBB
0x02
0x DB
0xD9
Table 39. Example
Send
AA BB 0A 24
00 09
FF FF FF FF FF FF
27
Description
AA BB
0A
24
00
09
FF FF FF FF FF FF
27
Head
Length
COMMAND
Authenticate with Key A
Read Block 09(Sector 02,2nd block )
Keys
BCC
Receive(Success)
AA BB 06 24
01 00 00 00
23
Description
AA BB
06
24
01 00 00 00
23
Head
Length
Status
4 Bytes value
BCC
Receive(Failure)
AA BB 02 DB D9
Description
AA BB
02
DB
D9
Head
Length
Error
BCC
14.2.22
Value_Inc
This command perform value increment.
Table 71. Command--:Host
Æ
YHY522R
Send
Header
Length
Command
Data
XOR Checksum
0xAA
0xBB
0x0E
0x25
Value Info:
12 bytes
BCC
Value Info: Key type +Block Key + Value
Key type: 1 byte, 0x00—Key A, 0x01—Key B
Block number: 1 byte, 0x01..0xfe (1..254)
Key: 6 bytes, default “FFFFFFFFFFFF” (*)
Value: 4 bytes value to increment, low byte first
(*)Note: If auth mode is “1”, then this key is not active, it can be any 6 data bytes.
Table 72. Response--: YHY522R
Æ
Host
Receive
Head
Length
Status
Data
XOR Checksum
Success 0xAA
0xBB 0x02 0x25
0x27
Failure 0xAA
0xBB 0x02
0xDA
0xD8
Table 73. Example
Send
AA BB 0E 25
00 09
FF FF FF FF FF FF
01 00 00 00
23
Description
AA BB
0E
23
Head
Length
COMMAND