Caution! Article for developers

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

Change the Wirepas Network Parameters

Jan 27, 2023 · 3 minutes to read

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 to. There is no possible way to hardware reset the Nodes to undo the changes afterward!

First you will have to connect to the Gateway via SSH. You need root user rights which you can acquire by typing ‘sudo -i’ in the command interface. This example shows you how to move your Treon Gateway and the connected nodes to another Wirepas network.

First you should check that all the nodes are currently connected to the Gateway. (See How to check the Node data flow) Only then should you change the network, channel, keys etc. of your nodes. As the last step, move the Treon Gateway to the same network as the nodes.

Configuring the Nodes

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


Command to read the network address:

python3 /opt/nodeconfig/ -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/ -w 2=12345678,3=26,13=ffffffffffffffffffffffffffffffff, 14=ffffffffffffffffffffffffffffffff -i 1234abcd

Configuring Treon Gateway

Use the command configure_sink, which requires sudo as first step 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.

Command Description
|-r|Read the values|
|-i|Specify a target|


The most likely values to be used here are:

|Field|Value| |network_address|2| |network_channel|3| |cipher_key|13 |authentication_key|14


Treon Customer Support

If you have further questions, please contact Treon Customer Support.


Was this article helpful? Let us know.