Milesight configuration

LoRaWAN sensors

Configuration guides

To configure Milesight LoRa devices it's recommended to install the Milesight Toolbox application on your mobile device. This connects to Milesight devices via NFC using your phone.

The Toolbox application is useful for configuring sensor payload settings. From here you can speed up or slow down messages reporting to UMA.

For desk sensors, we recommend setting the minimum time available to get the most accurate live data in UMA.

To add a Milesight LoRa sensor to a Milesight gateway, follow the instructions in this guide:

To connect the Milesight gateway to UMA's MQTT server follow the instructions in this guide:

Unsure about UMA's MQTT server details? Click here.


Payload codec

In order for our server to correctly understand messages sent from LoRa sensors and devices you will need to create a custom payload codec on the Milesight gateway for each device type.

Once created you will need to add the following text at the end of the payload:

decoded.devEUI = LoRaObject.devEUI;

decoded.rssi = LoRaObject.rxInfo[0].rssi;

decoded.snr = LoRaObject.rxInfo[0].loRaSNR;

decoded.data = LoRaObject.data;

decoded.time = new Date().toISOString();

This text should be inserted before the return decoded statement.

For more information please check out Milesight's documentation here.


Application setup

In order for our server to correctly understand uplinks and downlinks from our server you will need to configure the application on the gateway with the following details:

Uplink - milesight

Downlink - milesight/downlink/$deveui


Add the device to UMA

To add a Milesight LoRa sensor to UMA, you will need the Dev EUI which can be obtained either locally on the sensor or by using the Toolbox application or Milesight gateway. Use the Dev EUI as the UMA ID.

When adding a Milesight device in UMA, click on add device and then use the Milesight card to find the device you want to add.

After some minutes, the device will come online and you will start recording the data coming from the sensor.

For information on configuring the Milesight DS3604 follow the guide here.


PoE sensors

Configuration guides

To configure Milesight people counting sensors use the following guides:

Milesight VS121 - https://resource.milesight-iot.com/milesight/document/vs121-p-user-guide-en.pdf

Milesight VS133 - https://resource.milesight.com/milesight/iot/document/vs133-user-guide-en.pdf

Configuring the reporting of sensor data ultimately depends on how quick you need the data.

UMA recommends configuring the minimum frequency of reporting to allow the most real time data possible.

Use the guides above to connect the sensor to UMA's MQTT server.

Unsure about UMA's MQTT server details? Click here.

Add the device to UMA

To add a Milesight PoE sensor to UMA, you will need the serial number which can be obtained either locally on the sensor or from the device web GUI. Use the serial number as the device ID.

When adding a Milesight device in UMA, click on add device and then use the Milesight card to find the device you want to add.

After some minutes, the device will come online and you will start recording the data coming from the sensor.

Optionally, you can allow any Milesight occupancy sensor to auto book or cancel a meeting booking by configuring the device settings.

Last updated