Instructions
Contactless Card Read/Write Module(QM-201C-HF)User’s
Manual
c)BlockHeaderSTX=0x02,BlockEndETX=0x03.Fromheadertoend,but
notincludetheheaderSTXandtheendETX,ifthereis0x02,0x03
or 0x10 , then must add 0x10 before it.
d)Block Header STX=0x02.
e)PackageLength:thebytefromLengthitselftoChecksum,butnot
include the added byte 0x10 due to 0x02,0x03 or 0x10.
f)Command: Refer to the Command List.
g)The Content of n bytes: the parameter.
h)CheckSum:XORresultfrom[Length]tothenlastbyteof[Content],
but not include the added byte 0x10 due to 0x02,0x03 or 0x10.
i)Block End ETX=0x02.
Example:
CMD: 0x10,DATA:0x00
Block Header:0x02。
LEN:0x04(=1Byte(Len) +1Byte(CMD)+1Byte(DATA)+1Byte(CHK))
CMD:0x10,0x10. (Add 0x01 before 0x10)
DATA:0x00。
CHECKSUM:0x14(=0x04^0x10^0x00)
Package Send:0x02,0x04,0x10,0x10,0x00,0x14,0x03.
2) Respond Format(
Q
M-201C-
HF
module → MCU
)
[STX] [LEN] [CMD] [STATUS] [DATA] [CHK] [ETX]
Content
0x00:
Command Success
0xFF:Fail
The
Package
0x02
1
Content of CheckSum
n bytes
0x03
1
Length
Num of
Byte
1 1 1 n 1
Table 3
a)Asynchronism half duplex, 1 Start bit + 7 Data bits + 1 Stop bit.
b)The default transfer speed is 19200 bit/s.
Contactless Card, RFID…
www.quio-rfid.de
Page 6 / 14