Caution! Article for developers

Information on this page is intended particularly for users with advanced technical knowledge.

Node Telemetry

Jan 9, 2024 · 6 minutes to read

Treon Gateway Treon Gateway 2 Treon Gateway in Protective Enclosure


From Treon Aito Release 7.1 for Gateway onward, it is possible to enable sending telemetry data from the nodes in the mesh network to the MQTT broker. This can be very helpful in monitoring the deployment quality and performance of the mesh network.

Additionally in versions 7.2 and higher, you can also access this feature from Configuration UI under the name “Mesh Diagnostics”. You can use it to see the connection strength between devices.

For example, issues such as low connection quality between individual nodes, long routing chains that may lead to increased power consumption, or message buffers maxing out on select nodes can easily be identified.

Please note: The feature already exists in Treon Aito Release 7.0 for Gateway, but needs to be activated manually in this release version.

The telemetry data will be sent to your backend with a time interval that is specified JSON format. An example of the data is:



The fields are defined as following:

TimestampUnix epoch (ms) when the Treon Gateway received the message.
HopCountThe number of “hops” the node is away from sink. The Treon Gateway has a HopCount of 0. A node connected directly to the gateway has a HopCount of 1.
TravelTimeThe time messages take to reach the sink.
NextHopRSSIThe RSSI (signal strength) in dBm for the next node closer to sink.
NextHopAddrThe Wirepas address of the next node closer to sink.
SinkAddrThe Wirepas address of the Treon Gateway the node is connected to.
RoleThis value is represented in decimal, but Wirepas documentation can show these as hex sometimes. 130 is Routing ON, 3 is non-routing and 20 is for the sink (Treon Gateway).
AccessCycleHow many milliseconds the node sleeps in between access cycles.
NextHopCostA calculated value for Wirepas diagnostics that is used by nodes to select the optimal route to the sink.
SensorNodeIdThe serial number the node uses. In this data set and apart from this value, the nodes are identified by their Wirepas address instead.

Please also see the full JSON specification according to JSON Schema.

Fig.: The Node Telemetry feature gives important information about the nodes within in the mesh network.


Activating Node Telemetry with SSH

In Treon Aito Release 7.0 for Gateway, the Node Telemetry feature needs to be activated manually via a small configuration change when connected to the Treon Gateway via SSH.

  1. Connect via SSH to the Treon Gateway.
  2. Active the desired Diagnostic Interval with the command:
sudo sed -i "/DiagnosticInterval=/c\DiagnosticInterval=600" /opt/iotgw/conf.d/wirepas_override.conf

Replace 600 with the desired Diagnostic Interval value in seconds. The only accepted values are: 0, 30, 60, 120, 300, 600 and 1800. A value of 0 will deactivate diagnostics completely.

  1. Create a .conf file in /opt/iotgw/conf.d/:
echo -e "[Startup]\nDataProcessors3 += WpDiag" > /opt/iotgw/conf.d/nodetelemetry.conf
  1. Apply the changes with: sudo systemctl restart iotgw


Activating Node Telemetry with DM commands

In Treon Aito Release 7.1.1 for Gateway and higher, the Node Telemetry feature can also be activated via Device Management commands.

  1. To activate/deactivate Node Telemetry with DM commands, you need to first enable the feature by turning it on or off with the following commands
Turn ON  
{"Ver": "2", "Cmd": "set", "T" : [33580,0],"Res":[7],"Val": ["AQ=="],"I":22}  

Turn OFF  
{"Ver": "2", "Cmd": "set", "T" : [33580,0],"Res":[7],"Val": ["AA=="],"I":22}  
  1. Optional you can change the diagnostic interval with the following command
{"Ver": "2", "Cmd": "set", "T" : [33580,0],"Res":[5],"Val": ["AAA="],"I":22}  

Replace 600 with the desired value in seconds. The only accepted values are: 0,30,60,120,300,600 and 1800. A value of 0 will deactivate diagnostics.

Time(seconds)base64 encoded
  1. You need to reboot the Treon Gateway to apply the changes with the command:
{"Ver": "2", "Cmd": "execute", "T" : [3,0],"Res":[4],"Val": ["AA=="],"I":22}


Using Node Telemetry

The diagnostic data you receive as JSON message will look as follows:

IntervalTime interval between node telemetry status messages in milliseconds
TimestampTime in Epoch Unix Time
HopCountHow many hops between the device and the sink
DeviceTypeDevice type is currently shown as ‘unknown’ (device type can be identified via Node Inventory feature)
TravelTimeDiagnostic message travel time from device to sink in milliseconds
NextHopRSSIEnergy signal strength (RSSI) to the next hep on the route to the sink in dBm
NextHpAddrWirepas address of the next hop on the route to the sink
SinkAddrWirepas address of the sink
RoleRouting role: 130 = routing node; 3 = non-routing node
AccessCycleCurrent standard latency time
NextHopCostWirepas value, basis for mesh network self-organisation (higher value = higher cost)
SensorNodeIdSerial number of the Treon product
GatewayIDSerial number of the Treon Gateway

In the process of self-organisation and optimization, the Wirepas mesh network takes multiple factors into account. This means that the NextHopCost value only states the cost factor of sending data to the next Wirepas device, not of sending the data to the sink.





In this example there is 1 Treon Gateway with 8 Treon Industrial Nodes:
1 Treon Industrial Node is connected directly to the Treon Gateway and is non-routing.
1 Treon Industrial Node is connected directly to the Treon Gateway and set to routing, though not routing any data.
1 Treon Industrial Node is connected directly and routing the data from 5 other nodes.

Using the data from NodeTelemetry, you can build the following topology tree in your backend:

Fig.: The Node Telemetry data can be used to visualise the mesh network topology.


Treon Support

You still have questions? Our dedicated team of experts is happy to help you! Please contact Treon Support directly by e-mail.

Did you know? Treon offers Premium Support and Maintenance Packages for our customers. Get even more out of Treon and boost your sales - inquire now about features and prices!


Was this article helpful? Let us know.