Caution! Article for developers

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

Changing the Wirepas Network Parameters of Treon devices

Jun 6, 2022 · 2 minutes to read

Treon Gateway Treon Industrial Node Treon Industrial Node 6 Treon Node Treon Asset Node

This article describes the procedure to change the Wirepas network parameters of your Treon devices.

Please note: This article is for Treon Gateways with a Treon Aito release version of 6.0 or higher and a Wirepas network release version 5.x.

Please note: Make sure you know what network you are changing your devices too. There is no possible way to hardware reset the Nodes to undo the changes afterward!

 

Configuring Treon Gateway

Use the command configure_sink which requires sudo as first stept to make changes to the Treon Gateway. The main commands to use are r- to read the current configuration and -r –json if you want it in json format.

You can use -h for help and explanations.

 

Apply a new configuration with -c FILE.JSON. There is an example configuration in /usr/treon/wirepas/node_config.json, this file can be copied to a different folder and edit there. Any field missing in the json should be left as it was.

The most important fields needed are:

{
"network_address": "12345678",
"network_channel": "26",
"cipher_key":"ffffffffffffffffffffffffffffffff",
"authentication_key":"ffffffffffffffffffffffffffffffff"
}

For the cipher_key and the authentification_key, if 32 times “f” is used, the result is equivalent to disabling the encryption key.

CommandDescription
-hHelp
-rRead the values
-wWrite
-iSpecify a target

 

The most likely values to be used here are:

FieldValue
network_address2
network_channel3
cipher_key13
authentication_key14

 

Configuring the Nodes

To configure the Nodes, the script located in “python3 /opt/nodeconfig/remote_command.py -h” needs to be used.

 

Example:

Command to read the network address:

python3 /opt/nodeconfig/remote_command.py -r 2

Command to change the Node with the id ‘1234abcd’ to network ‘12345678’ in channel ‘26’ with the encryption key disabled:

python3 /opt/nodeconfig/remote_command.py -w 2=12345678,3=26,13=ffffffffffffffffffffffffffffffff, 14=ffffffffffffffffffffffffffffffff -i 1234abcd

   


Was this article helpful? Let us know.
Next
Previous