ZcoRE3-2400_User_Manual_V1.0
6.
RAEMESH Module Command Interface (RMCI)
Serial port setting
6.1.1
6.1.2
Between RDTE and RRCM: 38400 bps, 8N1
Between SDTE and SRCM: 19200 bps, 8N1
Package format
Packet format as listed below:
SOP
Length
Command Code
Command Data
EOP
Byte 1 1
1
0~n
1
z
The minimum length for one packet is 4 bytes long. The Length is 0x20 based. E.g. the total
length of a packet without command data is 4, the Length byte is 0x20 + 4 = 0x24.
z
The SDTE or RDTE always initiate the communication with Radio module (RRCM,
SRCM). Radio module responses to the command it received.
z
The Command Code for packet sent from SDTE or RDTE to Radio module is even, the
response from Radio module to SDTE or RDTE is 1 higher than the command code.
z
Command Data can be empty.
Table 5.1: Byte definition of packet
Byte Number
Name
Comment
0
SOP
Radio Protocol beginning of packet. This is always ‘[’ (0x5B)
1
Length
Total length of 0x20, include ‘[’ and ‘]’.
2
Command Code
0x20 ~ 0xFF.
**Excluding: 0x5A~0x5F and 0x7A~0x7F.
**0xF0~0xFF are reserved for common commands such as help, version etc.
Even for packet sent from SDTE or RDTE to RCM.
Odd for packet response from RCM to SDTE or RDTE.
3 Command
Data
Hex
… …
…
N+3
EOP
Radio protocol end of packet. This is always ‘]’ (0x5D).
Notes:
1.
Always perform a Network Joining for FFD before using it. A coordinator must be
presented when perform the network joining. Command: 5B24505D.
2.
Check RCM’s information when turn on the radio. Command: 5B24605D.
3.
Wait at least 5s for RCM to finish the initialization.
11