RC11xx(HP)-TM
RC25xx(HP)-TM
RC17xx(HP)-TM
2016 Radiocrafts AS
RC11xx(HP)/25xx(HP)/17xx(HP)-TM Data Sheet rev. 1.48 Page 26 of 86
2016 Tiny Mesh AS
Radiocrafts
Embedded Wireless Solutions
group identifier.
Example: Commands addressed for '255 255 255 003' will be accepted by any router belonging to
group #3, identified by one of the group bytes in the module
GROUP TABLE
set to '3'
Command Acknowledge
On receiving a command packet, the Router or End Device will perform a validity check of the received
data before executing the command. If the
COMMAND ACKNOWLEDGE
function is enabled, the device
will return an event packet indicating if the packet was accepted.
Note: Broadcast and Group commands will only generate response packets if the
COMMAND NUMBER
is set larger than 127
9
•
The selectable
COMMAND NUMBER
will be returned in the
MESSAGE DATA MSB
field of the
response packet.
•
A
COMMAND RECEIVED AND EXECUTED
Event Message will be returned if the received
command passes the test criteria.
•
If command data or arguments are out of range, a
COMMAND REJECTED, NOT EXECUTED
Event packet will be returned. The
MESSAGE DATA LSB
field of the returned packet will indicate
the reason for rejecting the command
.
Gateway Devices in Packet Mode will generate ACK or NAK response to Commands if the
ACK/ NAK
serial port handshake has been enabled. The response packet format is a short form of the regular
COMMAND RECEIVED AND EXECUTED
or
COMMAND REJECTED, NOT EXECUTED
event packets,
truncated immediately following the
MESSAGE DATA LSB FIELD.
Command Packet Format
Byte #
Field
Size
Description
Control and Status request
Change Configuration
1
Start character
1
10 (0x0A) Equals length of string
40 (0x28) Equals string length
2
Node Address
4
Configured value of destination node, or use broadcast ID
(255 255 255 255) if command for all units.
Gateway devices will respond to commands where Node Address = Unique ID (UID),
or where Unique ID = 0 0 0 0
10
6
Command
Number
1
User selectable. This number will be returned as part of the Acknowledge packet
from the Router on completed command execution
7
Packet Type
1
3 (0x03) Fixed value
8
Command
Argument
1
1 (0x01) Set Outputs
2 (0x02) Set PWM
5 (0x05) Set Gateway in Config Mode
16 (0x10) Get NID
17 (0x11) Get Status
18 (0x12) Get DID Status
19 (0x13 Get Configuration Memory
20 (0x14) Get Calibration Memory
21 (0x15) Force Router Reset
22 (0x16) Get Packet Path
3 (0x03) Set Configuration
9
Data 1
1
Set Outputs: Bitmap for setting GPIO 0..7
Set PWM: 0-100 % duty cycle.
For other Command arguments, this byte is
don't care.
Data 1..33 (32 bytes)
1
st
. Byte = address
2
nd
. Byte= value
…..
9
Introduced with Tinymesh™ release 1.40
10
Introduced with Tinymesh™ release 1.43