Contactless Card Read/Write Module
(
YW-201
)
User’s Manual
a)
Asynchronism half duplex,
1 Start bit + 7 Data bits + 1 Stop bit.
b)
The default transfer speed is 19200 bit/s.
c)
Block Header STX=0x02, Block End ETX=0x03. From header to end ,but
not include the header STX and the end ETX, if there is 0x02,0x03
or 0x10 , then must add 0x10 before it.
d)
Block Header STX=0x02.
e)
Package Length: the byte from Length itself to Checksum, but not
include the added byte 0x10 due to 0x02,0x03 or 0x10.
f)
Command: Refer to the Command List.When the MCU send the command
to the module, the module send back this command to the MCU.
g)
Status: Operation result. Success: 0x00. Fail: 0xFF.
h)
During the communication, command content.
i)
CheckSum: XOR result from [
Length
] to then last byte of [
Content
],
but not include the added byte 0x10 due to 0x02,0x03 or 0x10.
j)
Block End ETX=0x02.
5.2 IIC Protocol
Table 4
1)
Format of TXD(MCU
→
YW-201 Module)
[Address of
module](W/R)
[LEN]
[CMD]
[DATA]
[CHK]
Write
:
0xA0
Content
Read
:
0xA1
Package Length
Command
The
Content of
n bytes
CheckSum
Num of
Byte
1 1
1
n
1
a)
Address of module (W/R)
:
b)
When Write to module, the Address is 0xA0.
c)
When Read from module, the Address is 0xA1.
d)
Package Length: the byte from Length itself to Checksum.
Contactless Card, RFID… Page 7 / 15
http://www.youwokeji.com.cn