EHUOYAN
YHY521X
Manual
Page 27 of 36
Description
AA BB
02
27
25
Head
Length
Status
BCC
Receive(Failure)
AA BB 02 D9 DB
Description
AA BB
02
D8
DA
Head
Length
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
Æ
YHY521X
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--: YHY521X
Æ
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