EHUOYAN
YHY521X
Manual
Page 31 of 36
Receive
Head
Length
Status
Data
XOR Checksum
Success
0xAA
0xBB
Len 0x40 Text BCC
Failure 0xAA
0xBB 0x02
0xBF
-
0xBD
Table 94. Example
Send
AA BB 02 40 42
Description
AA BB
02
40
42
Head
Length
COMMAND
BCC
Receive(Success)
AA BB 0C 40
30 31 32 33 34 35 36 37 38 39 4D
Description
AA BB
0C
40
30 .. 39
4D
Head
Length
Status
“0-9” ascii
代码
BCC
Receive(Failure)
AA BB 02 BF BD
Description
AA BB
02
BF
BD
Head
Length
Error
BCC
14.2.30
Ntag_Write_Text
This command can write the NDEF text data into the NTAG213 chip.
Table 95 Command--:Host
Æ
YHY521X
Send
Header
Length
Command
Data
XOR Checksum
0xAA
0xBB
Len1
0x41
Data
BCC
Data=Lock+Len2+Text
Lock: 00-rewrite, 01-Lock(read only)
Len2: length of the text, up to 58 bytes
;
Text: NFC NDEF ascii code.
-------------------------------------------------------------------
Table 96. Response--: YHY521X
Æ
Host
Receive
Head
Length
Status
Data
XOR Checksum
Success 0xAA
0xBB 0x02
0x41
BCC
Failure 0xAA
0xBB 0x02
0xBE
0xBC
Table 97. Example
Send
AA BB 0E 41 00 0a 30 31 32 33 34 35 36 37 38 39 44
Description
AA BB
0E
41
00
0a
Head
Length
COMMAND
Unlock
Text length