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 25 of 86
2016 Tiny Mesh AS
Radiocrafts
Embedded Wireless Solutions
Packet Mode Operation
When configured for packet mode operation, serial data and command packets may be broadcast to all
devices, addressed to a group of devices, or addressed to a specific Router or End Device. Packet
mode allows for setting and reading of the GPIO pins on the module, as well as reading the two
analogue inputs, and activating the PWM output control for dimmer or speed control applications. Digital
and analogue inputs may be set to trigger messages on input condition changes.
Routers will acknowledge receipt and acceptance of commands and data. The Acknowledge packet will
be available on the Gateway UART.
The Gateway Device will provide additional, bi directional ACK / NAK handshake for error free
connection to an external host
Gateway in Packet Mode
All data entered on the Gateway UART in Packet mode must follow strict formatting rules. The following
tables describe packet formatting for transmitted and received packets. Please note data must be
entered in one, contiguous string of bytes.
Note: Any time gap of more than the configured
SERIAL PORT TIME OUT
value will cause the Gateway
to treat the entered data as a complete packet. If a time-out should occur before the intended end of the
packet, the Gateway will not recognize the packet format, and the packet will be discarded (lost).
Router in Packet Mode
Router Devices behave similarly in Transparent and Packet mode. All packets will always be routed to
the Gateway Device. Packet formatting and addressing is handled automatically by the Router firmware,
and binary serial data may be entered to the Router UART without packet formatting and address
information. Serial data packets will be transmitted immediately when the UART buffer is full (256 bytes),
or after a configurable
SERIAL PORT TIME OUT
time gap between characters.
Note: To switch between Transparent and Packet Mode operation, only the Gateway configuration
needs to be changed.
Transmitting Command and Configuration Packets from Gateway
Gateway commands may be used to transmit serial data, to set or read GPIO pins, to enquire module
operating status, or to alter settings in the Configuration Memory of Router Devices.
All GPIO pins are initially configured as digital inputs with no triggering enabled. The desired GPIO
function must be configured by altering the
CONFIGURATION MEMORY
settings, to enable functions
such as Analogue input, PWM control, Digital Output or Input Trigger functions.
Tinymesh™ modules may be configured through the UART in Configuration Mode (
CONFIGURATION
COMMANDS
), or while operating in a live mesh network by issuing
SET CONFIGURATION
commands
from the Gateway Device.
Note: To avoid losing connection with devices in a live mesh network, the
RF CHANNEL
,
RF DATA RATE
,
UNIQUE_ID
and
SYSTEM_ID
may only be changed through Gateway Commands before the
SYSTEM_ID
has been changed from the factory default setting.
The Command Packet formats for module control, inquiry and configuration, are shown in the
COMMAND PACKET FORMAT
table.
Group and Broadcast Addressing
Commands may be broadcast to all devices in a network by selecting '255 255 255 255' as the
NODE
ADDRESS
.
Router and End Devices may also be assigned to addressing groups, by entering up to eight different
single-byte group identifier addresses in the configurable module
GROUP TABLE.
The most significant
byte of the
UNIQUE_ID
in the command
NODE ADDRESS
is interpreted as a group identifier by the
receiving device.
The addressing
structure for group commands is '255 255 255 nnn', where the 'nnn' byte represents the