Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel3
outlinefalse
styledefault
typelist
printablefalse

...

Code Block
{
  "sensors": [
    {
      "uwiotys": {
        "state": "add",
        "reference": "50-70-139",
        "output_protocols": {
          "modbus": {
            "@modbus": 1
          }
        }
      },
      "spn": {
        "activation_type": "OTAA",
        "dev_eui": "70B3D5E75E008D35",
        "app_eui": "70B3D5E75F600000",
        "app_key": "725070411F8720932F4A56B6117D0638",
        "dev_addr": "",
        "nwks_key": "",
        "apps_key": "",
        "end_device_parameters": {
          "rx_window": 3,
          "rx_frequency": 869525000,
          "rx_datarate": 0,
          "class": "A"
        }
      }
    },
    {
      "uwiotys": {
        "state": "add",
        "reference": "50-70-053",
        "output_protocols": {
          "modbus": {
            "@modbus": 2
          }
        }
      },
      "spn": {
        "activation_type": "OTAA",
        "dev_eui": "70B3D5E75E008888",
        "app_eui": "70B3D5E75F600000",
        "app_key": "78FF2CDE6D2C657F09981C3332096DF9",
        "dev_addr": "",
        "nwks_key": "",
        "apps_key": "",
        "end_device_parameters": {
          "rx_window": 3,
          "rx_frequency": 869525000,
          "rx_datarate": 0,
          "class": "A"
        }
      }
    }
  ]
}

Upload configuration

Upload the configuration file

Once connected to FTP server, copy the devices configuration file into the directory: /uwiotys/update_config/

You need to reboot to process the device update, you can reboot the gateway by two ways:

  • With ftp :

    • Create a file named "reboot" in directory "/update/".

    • A file XXXXXXXX_reboot_processed_yy is created once command processed.

    • Command reboot is processed if XXXXXXXX_reboot_processed_yy does not exist and each time the command file is edited.

  • With Kerlink gateway button:

    • iFemToCell: Press the reset button located on the side of the gateway.

    • iStation: Press once (and only once) the On/Off button.

Warning: an electric reboot can corrupt the update process

...

": 0,
          "class": "A"
        }
      }
    }
  ]
}

Upload configuration

image-20240315-111926.pngImage Added

Upload the configuration file
  1. Copy the devices configuration file into the directory: /uwiotys/update_config/

  2. Create an empty file named "reboot" in directory "/update/". You can reboot with this or with the button web’s interface.

Note

An electric reboot can corrupt the update process

  1. After few minutes

    1. If the update failed, you will find information into the file: devices_updates_$DATE_ERROR.log

    2. If the update success, the file the devices configuration file is deleted and you will find the file: devices_updates_$DATE_SUCCESS.log

...

  1. The devices current configuration of µWiotys is available in the directory: /uwiotys/current_config/

The file format is the same as the devices configuration file, it can be used to remove device for µWiotys config by simply changing "state" from "active" to "remove" for one or several devices and then follow the regular update procedure.

Output configuration

Configuration file

...

Code Block
Exemple 2
{
  "http_data_server": {
    "active": false,
    "url": "http://MyHTTPServer:8080",
    "headers": {
      "Content-Type": "application/x-www-form-urlencoded",
      "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBTDBERmROLW1DNFpMTFJCVXh4OFdxN1RNZTVmQ3NNSE1FV1FsUklNYmRjIn"
    }
  },
  "csv":{
    "active": true,
    "nb_week": 15
  },
  ,
  "mqtt":{
    "active": true,
    "host": "mqtt.uWiotys.io",
    "port": 8883,
    "topic": "MyTopic",
    "login": "MyLogin",
    "password": "MyPass",
    "secure(TLS)login": true"MyLogin",
  } }

Upload configuration

Upload the configuration file

Once connected to FTP server, copy the output configuration file into the directory: /uwiotys/update_config/

You need to reboot to process the device update, you can reboot the gateway by two ways:

...

With ftp :

  • Create a file named "reboot" in directory "/update/".

  • A file XXXXXXXX_reboot_processed_yy is created once command processed.

  • Command reboot is processed if XXXXXXXX_reboot_processed_yy does not exist and each time the command file is edited.

With Kerlink gateway button:

...

iFemToCell: Press the reset button located on the side of the gateway.

...

 "password": "MyPass",
    "secure(TLS)": true
  }
}

Upload configuration

image-20240315-111751.pngImage Added

Upload the configuration file

See the

Note

An electric reboot can corrupt the update process

Warning: an electric reboot can corrupt the update process

...

After a few seconds the LEDs stop blinking, wait another minute then reconnect you to the FTP. The status of the output configuration update can be found in /uwiotys/log/uwiotys_functionnal.log

Current configuration

The output current configuration of µWiotys is available in the directory: /uwiotys/current_config/

...