![EHUOYAN YHY522R User Manual Download Page 29](http://html.mh-extra.com/html/ehuoyan/yhy522r/yhy522r_user-manual_2368779029.webp)
EHUOYAN
YHY522R
RFID module
Page 29 of 36
D8
DA
Error
BCC
14.2.25
Sector_Read
This command reads data from the appointed sector. One sector has
3 blocks(48 bytes, sector 0 to 31) . This command would not read the
tailor block.
Table 80. Command--:Host
Æ
YHY522R
Send
Header
Length
Command
Data
XOR Checksum
0xAA
0xBB
0x0A
0x2A
Sector Info:
8 bytes
BCC
Sector Info: Key type + Sector Key
Key type: 1 byte, 0x00—Key A, 0x01—Key B.
Sector number: 1 byte, 0x00..0x1F (0..31) (*)
Key: 6 bytes, default “FFFFFFFFFFFF”
(*)Note: If auth mode is “1”, then this key is not active, it can be any 6 data bytes.
Table 81. Response--: YHY522R
Æ
Host
Receive
Head
Length
Status
Data
XOR Checksum
Success 0xAA
0xBB Len
0x2A
Sector data: 49
Bytes
BCC
Failure 0xAA
0xBB 0x02
0xD5
0xD7
Len:-----
0x33 (51)—if sector is 0-31
Sector data: Sector number(1 byte) + Blocks data(48 Bytes)
Table 82. Example
Send
AA BB 0A 2A
00
01
FF FF FF FF FF FF
21
Description
AA BB
0A
2A
00
01
FF FF FF FF FF FF
21
Head
Length
COMMAND
Authenticate with Key A
Read Sector 01
Keys
BCC
Receive(Success)
AA BB 33 2A
01
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 18
Description
AA BB
33
2A
01
00 .. 00
18
Head
Length
Status
Sector 01
48 Bytes Data of Sector 01
BCC
Receive(Failure)
AA BB 02 D5 D7
Description
AA BB
02
D5
Head
Length
Error