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 27 of 86
2016 Tiny Mesh AS
Radiocrafts
Embedded Wireless Solutions
Byte #
Field
Size
Description
10
Data 2
1
Set Outputs: Bitmap for clearing GPIO 0..7
For other command arguments, this byte is
don't care.
32
rd
. Byte=last address
33
rd
. Byte=last value
Address=00 indicates last valid
address.(see example)
Note: The sequence of the UIDs below are UID0-UID4
Command Example:
Set Router Configuration, Router UID 1 2 3 4,
Configure GPIO 0 as Output, default High, (Config Address 16 = 0)
Configure GPIO 7 as pulse width modulated output, (Config Address 23= 3)
Configure GPIO 4 as Input, negative edge trigger (Config Address 28 = 2)
Decimal notation
40 1 2 3 4 6 3 3 16 1 23 3 28 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Hex Notation
28 1 2 3 4 6 3 3 10 1 17 3 1C 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Copy & Paste string for CCTool
'40 1 2 3 4 6 3 3 16 0 23 3 28 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'
For more examples and practical demo cases, continue to
Demo Board Exercises
Transmit Serial Data Packet from Gateway
Enter Serial Data Packets to be transmitted to individual Router Devices, using the following packet
format. Maximum packet size is 120 bytes. Payload data bytes may be any format (binary data). Please
note the start byte is a calculated value
Byte #
Field
Size
Description
1
Start Byte
1
Calculated value, total number of bytes, including Start Byte
2
Node Address
4
Configured value of destination router, or use broadcast ID (255 255 255
255) if Serial Data Packet for all units.
6
Command
Number
1
User selectable number, returned as part of the Acknowledge packet from
the Router on completed command execution
7
Packet Type
1
17 (0x11) Fixed value
8
Serial Data
1..120
Binary data
Example
1, Send text string '
Hello'
from Gateway to Router with UID 0 0 1 2, packet no 6
Decimal notation
Hex Notation
12 0 0 1 2 6 17 72 101 108 108 111
C 0 0 1 2 6 11 48 65 6c 6c 6F
Received Packet Formats
Packets received by the Gateway in Packet Mode, will be delivered on the module UART TXD-pin in the
following formats. The packet Header is identical for all packet types, while the data payload formatting
(starting at data byte # 18) will be formatted differently when receiving serial data and command
responses requiring larger amounts of data.
Byte #
Field name
Size
Description
1
Start Character
1
Total number of bytes in the message, including start character
2
System ID
4
System wide ID, must be identical for all devices in a system
6
Origin ID
4
Address of Router that created the message
10
Origin RSSI
1
RSSI from first receiver to originating node
11
Origin Network Level
1
'Hop' level, number of vertical hops to reach Gateway
12
Hop Counter
1
Number of actual hops from Router to Gateway
13
Message Counter
2
Unique number maintained by originating node
15
Latency Counter
2
Time in 10 ms resolution from message creation to delivery
17
Packet Type
1
Event 2 (0x02) or Serial data in 16 (0x10)
General Event Packet Format (Packet Type 0x02)
Byte #
Field name
Size
Description