User's Manual
TSC-RF013
M
o
dule
Protocol
Manual
I
、
Descriptions
M
andato
ry
Fields
O
ptional
Fields
Command
Format
:
Requ
est:
STX
LENS
FLAGS
C
OMMAND
DATA
1
DATA
2
...
DATA
n
C
R
C
0x02
8
bits
8
bits
8
bits
8bits
8bits
...
n*8bits
16bits
Response:
STX
LENS
R
esponse
Code
DATA
1
DATA
2
...
DATA
n
C
R
C
0x02
8
bits
8
bits
8bits
8bits
...
n*8bits
16bits
STX
is
the
ASCII
code
for
a
Start
o
f
Transmi
ssion.
(
STX
=
0x02
)
LENS
specifies
how
many
bytes
are
in
the
request
or
the
response,
n
ot
including
the
[STX]
and
not
i
n
cl
uding
the
[
L
ENS].
FLAGS
specify
command
options.
COMMAN
D
specifies
the
comm
a
nd
type
o
f
the
host
reques
t.
Response
Code
specifies
the
response
message
from
the
module.
DATA
1
,
DATA
2
,
...
,
DATA
n
are
optional
for
the
command
type
data.
CRC
is
a
two-byte
field
calcula
ted
by
th
e
h
ost
contr
o
ller.
The
CRC
is
calculated
over
all
th
e
fields
in
the
request
or
res
ponse
not
incl
uding
the
i
n
itiato
r
and
terminator
byte
s
.
The
CRC
polynomial,
x
16
+
x
12
+
x
5
+
1
=
0x8408,
is
used
in
a
for
w
ard
CRC
calculatio
n
with
a
preset
value
of
0x0000.
- 2 -