Clouds manager

From LORIX One - Wiki

Jump to: navigation, search


The LORIX One gateway is pre-installed with few cloud client applications. 

There is actually the following one:

  • LORIOT which is selected and started by default at boot time
    A great and powerful way of managing your gateways and objects
  • Semtech packet-forwarder 
    The official basic packet-forwarder made by Semtech, owner of the LoRa protocol
  • TTN (The Things Network) packet-forwarder 
    A nice community of LoRa enthusiast people. Based on the Semtech packet-forwarder

Each of these scripts have a init script which can be used to start, stop of get actual status of the application.

However, since only one of them can be used at a time, the LORIX One gateway proposes a nice script to manage and choose the application you want to use by default. It allows as well to start automatically the selected application at boot time.

Configuration and usage


The clouds-manager script can be used to retrieve the actual status of the selected cloud client. To get this status, you can simply use the script as follow:

$ sudo /etc/init.d/ status

The result on a stopped application cloud (with LORIOT selected):

$ sudo /etc/init.d/ status
Cloud loriot status:
/opt/lorix/clouds/loriot/loriot-gw is stopped

And on a running instance:

$ sudo /etc/init.d/ status
Cloud loriot status:
/opt/lorix/clouds/loriot/loriot-gw (pid 969) is running...


The clouds-manager scripts allows to start or stop the selected cloud client. To start, stop or restart, you can simple use the script as follow:

$ sudo /etc/init.d/ start 
Password: [enter your password here]
Cloud loriot already running, abort.
$ sudo /etc/init.d/ restart
Stopping cloud loriot... stopped /opt/lorix/clouds/loriot/loriot-gw (pid 969)
Starting cloud loriot... done.
$ sudo /etc/init.d/ stop 
Stopping cloud loriot... stopped /opt/lorix/clouds/loriot/loriot-gw (pid 1043)


The main goal of this cloud manager script is really to select which one of the available client you would like to use and to allow the possibility of automatic start at boot time.

By default, the LORIX One is configured to use the LORIOT client application and to start it at boot time.

Before modifying the parameters, you must stop the actual running cloud if any using the stop command:

$ sudo /etc/init.d/ stop
Stopping cloud loriot... stopped /opt/lorix/clouds/loriot/loriot-gw (pid 1104)

You can modify these parameters by using the script as follow:

$ sudo /etc/init.d/ configure
| LORIX One clouds manager configuration |
========================================== Actual configuration: autostart=false cloud=loriot Do you want to enable autostart at boot time? [Yes|No] > yes Which cloud app. do you want to use ? [loriot|packet-forwarder|ttn] > loriot New configuration: autostart=true cloud=loriot

After modified the parameters as you wish, you can then start the chosen cloud client simply using the start argument with the clouds manager script.

Debugging client cloud applications

The clouds manager script is really useful to standard and production usage once the parameters are fine. It really simplify the way to manage various clouds however, because the maximum is hidden, it's not really convenient for debugging step. 

The following pages give more details to test the LoRa RF interface using available tools and configure and test each cloud application before passing in production configure.


Test RF interface using RF tools

Clouds pages:

LORIOT Cloud application fine tuning

Semtech packet-forwarder fine tuning

TTN packet-forwarder fine tuning

Log output for packet-forwarders

It's sometimes useful to retrieve log output of the packet-forwarder after an issue. For each of the client cloud above, it's possible to activate this log system by modifying their respective init script.

Before you begin

Be sure you have correctly stopped any running packet forwarder running the as described above. Once all are stopped, select the right forwarder also using this script with configure argument.

Enable log redirection

Modify the init script

Each of these forwarders have  their own startup script (itself called by the script) and are located:

  • Semtech packet-forwarder
  • TTN (The Things Network) packet-forwarder

Once the correct init script selected, you can uncomment the following line :


It will redirect the log output of the corresponding cloud client to a log file at the next startup.

Enable log rotating

Please take note that the resultant log file will grow quickly since all the log information are redirected to it. It's then highly recommended to enable log rotating on this file if logging is enabled otherwise the gateway could quickly be unusable due to memory overflow.