EHUOYAN
YHY521X
Manual
Page 33 of 36
Table 99. Command--:Host
Æ
YHY521X
Send
Header
Length
Command
Data
XOR Checksum
0xAA
0xBB
0x02
0x42
-
0x40
Table 100. Response--: YHY521X
Æ
Host
Receive
Head
Length
Status
Data
XOR Checksum
Success 0xAA
0xBB Len
0x40
URL
BCC
Failure 0xAA
0xBB 0x02
0xBD
-
0xBF
Table 101. Example
Send
AA BB 02 42 40
Description
AA BB
02
42
40
Head
Length
COMMAND
BCC
Receive(Success)
AA BB 0E 42
01
65 68 75 6F 79 61 6E 2E 63 6F 6D 63
Description
AA BB
0E
42
01
65 .. 6D
63
Head
Length
Status
http://www.
ehuoyan.com
BCC
Receive(Failure)
AA BB 02 BD BF
Description
AA BB
02
BD
BF
Head
Length
Error
BCC
14.2.32
Ntag_Write_URL
This command can write the NDEF URL data into the NTAG213 chip.
For example to write ‘
http://www.
ehuoyan.com/’, the red string will
replace by ‘0x01’, else will translate to ascii code string
‘
6568756F79616E2E636F6D’. At the same time, you can LOCK this tag.
Table 102 Command--:Host
Æ
YHY521X
Send
Header
Length
Command
Data
XOR Checksum
0xAA
0xBB
Len1
0x43
Data
BCC
Data=Lock+Len2+URL Pre+URL End
Lock: 00-writable, 01-lock
Len2: Length of the web, max length is up to 130 bytes.