UWB Badge Tracker is designed using LoRaWAN and UWB technologies.
It calculates the distance with anchors and forward the distance information to a LoRaWAN gateway to calculate its position in the server. The accuracy can be as low as 10cm.
Prerequisites
To continue with this guide we will need the following:
Configuration
Only ThingsBoard Cloud works when using direct communication from this device to ThingsBoard via MQTT.
You may use ThingsBoard PE on-premises or ThingsBoard Cloud when using ThingsBoard Integrations.
To create an integration with a network server please choose first one of the supported network servers:
Add a gateway on the ChirpstackWe need to add a gateway on the Chirpstack. To add a gateway, follow next steps:
![]() Login to Chirpstack server. Go to the “Gateways” page and click on the “Add gateway” button. ![]() Fill name, Gateway ID (It will be different, you can find it on the gateway control panel) with your data, scroll down and click on the “Submit” button. ![]() The gateway is added. In gateways tab you can see its status. Add device profile on the Chirpstack
![]() Login to Chirpstack server. Go to the “Device profiles” page and click on Add device profile button. ![]() Fill in the required fields. ![]() Go to the Codec tab, select JavaScript functions from the Payload codec dropdown menu, and paste the decoder function. Then click the Submit button. Decode function: Add a device on the Chirpstack
![]() Go to the Applications page and click on Add application button. ![]() Enter name and click Submit button. ![]() Click Add device. ![]() Fill in the required fields with your device information and specify the previously created device profile. ![]() Go to the Variables tab, enter the value for ThingsBoardAccessToken, and click the Submit button. ![]() Put your Application key to the field and click on Submit button to save the device. Configure application integration with ThingsBoard
![]() Go to the Integrations page, find and select the ThingsBoard. ![]() Enter the URL of your ThingsBoard server and click Submit button. Create device on ThingsBoard
![]() Go to the Devices page. ![]() Click on Add device button. ![]() Fill in the device name and click the Next: Credentials button. ![]() Enter the device Access token (previously copied Device EUI value) and click the Add button. ![]() Click on the device to open device information window. ![]() Go to the Latest telemetry tab to view device reported data. |
Add a gateway on The Things Stack Community EditionWe need to add a gateway on The Things Stack Community Edition. To add a gateway, you can follow next steps:
![]() Login to the cloud and open your console. ![]() Go to the Home page press the “Register gateway” button. ![]() Put information about the gateway (gateway EUI) and click the “Register gateway“button. ![]() The gateway is added. You can see its status - disconnected. Add a device on The Things Stack Community EditionWe need to add a device on The Things Stack Community Edition. To add a device, you can follow next steps:
![]() Go to the Applications page. Then select your application and click on its name. ![]() Click on the Register end device button. ![]() Put the APP EUI value to the JoinEUI field. Then, press the Confirm button. ![]() Fill the rest parameters and press Register end device button. Configure Payload FormatterGo to the Payload formatters page and select Custom Javascript formatter for Formatter type. Paste the decode function and click Save changes button. ![]() Go to the Payload formatters page and select Custom Javascript formatter for Formatter type. Paste the decoder function and click Save changes button. Decode function: Create integration in ThingsBoardNext we will create “The Things Stack” (TTS) integration inside the ThingsBoard. At first, copy the code, we will need it to create the uplink converter:
In the “Connect“step, you will need the following parameters:
Now, navigate to the “Integrations” page under the “Integrations center” section and follow this steps:
![]() Click “plus” icon in the upper right corner to add new integration. Select type “The Things Stack Community”. Then, click “Next” button. ![]() Paste the previously copied script to the Decoder function section. Click “Next” button. ![]() Leave the “Downlink data converter” field empty. Click on “Skip” button. ![]() Next, fill in the fields with your parameters. After, press “Add” button. |
Add a gateway on The Things IndustriesWe need to add a gateway on The Things Industries cloud. To add a gateway, you can follow next steps:
![]() Login to the cloud and open your console. ![]() Go to the Home page press the “Register gateway” button. ![]() Put information about the gateway (gateway EUI) and click the “Register gateway“button. ![]() The gateway is added. You can see its status - disconnected. Add a device on The Things IndustriesWe need to add a device on The Things Industries cloud. To add a device, you can follow next steps:
![]() Go to the Applications page. Then select your application and click on its name. ![]() Click on the Register end device button. ![]() Put the APP EUI value to the JoinEUI field. Then, press the Confirm button. ![]() Fill the rest parameters and press Register end device button. Configure Payload FormatterGo to the Payload formatters page and select Custom JavaScript formatter as the Formatter type. Paste the decode function into the editor and click the Save changes button. ![]() Go to the Payload formatters page and select Custom JavaScript formatter as the Formatter type. Paste the decode function into the editor and click the Save changes button. Decode function: Create integration in ThingsBoardNext, we will create the “TheThingsIndustries” integration inside the ThingsBoard. At first, copy the code, we will need it to create the uplink converter:
In the “Connect“step, you will need the following parameters:
Now, navigate to the “Integrations” page under the “Integrations center” section and follow this steps:
![]() Click “plus“icon in the upper right corner to add new integration. Select type “The Things Industries Integration”. Then, click “Next” button. ![]() Paste the previously copied script to the Decoder function section. Click “Next” button. ![]() Leave the “Downlink data converter“field empty. Click on “Skip“button. ![]() Next, fill in the fields with your parameters. After, press “Add” button. |
Add a gateway on the LoriotWe need to add a gateway on the Loriot. To add a gateway, you can follow next steps:
![]() Login to Loriot server. Open the “Sample network” or create a new one in the “Networks” section. ![]() Click on the “Add Gateway” button. ![]() Scroll down and select “MultiTech Conduit AEP”. ![]() Scroll up and put information about the gateway MAC Address (Just remove FFFF or FFFE in the middle of gateway EUI) into eth0 MAC address and gateway EUI to Custom EUI field. ![]() The gateway is added. You can see its status - disconnected. Add a device on the LoriotWe need to add a device on the Loriot. To add a device, you can follow next steps:
![]() Login to Loriot server. We use eu2.loriot.io, but it depends on chosen region during registration. ![]() Go to the “Applications” page in left menu. ![]() Open your application, in our case it is “SampleApp”. ![]() Go to the “Enroll Device” page. Fill in the fields, with a configuration from your device. Then click the “Enroll” button. Create integration in ThingsBoardNext we will create an integration with Loriot inside the ThingsBoard. At first, copy the code, we will need it to create the uplink converter:
Now, navigate to the “Integrations” page under the “Integrations center” section and follow this steps:
![]() Click “plus” icon button in the upper right corner to add new integration. Select type “Loriot”. Then, click “Next” button. ![]() Paste the previously copied script to the Decoder function section. Click “Next” button. ![]() Leave the “Downlink data converter” field empty. Click on “Skip“button. ![]() Next, fill in the fields with your parameters. After, press “Add” button. |
Check data on ThingsBoard
So, the device was added and if it sends any data - it should appear in the devices. To check it you may open Devices page in Entities section. The device should be in devices list. You can check the data by click on it and open tab Attributes or Latest telemetry.
In order to get more user-friendly view - you can use dashboards. You can download a simple dashboard for this device, it is configured to display a data from “latitude” and “longitude” telemetry keys for device with name “Devices”.
ThingsBoard provides the ability to create and customize interactive visualizations (dashboards) for monitoring and managing data and devices. Through ThingsBoard dashboards, you can efficiently manage and monitor your IoT devices and data. So, we will create the dashboard, for our device.
To add the dashboard to ThingsBoard, we need to import it. To import a dashboard, follow these steps:
- First download the Check and control device data dashboard file.
-
Navigate to the “Dashboards” page. By default, you navigate to the dashboard group “All”. Click on the “plus” icon in the top right corner. Select “Import dashboard”.
-
In the dashboard import window, upload the JSON file and click “Import” button.
-
Dashboard has been imported.

Navigate to the “Dashboards” page. By default, you navigate to the dashboard group “All”. Click on the “plus” icon in the top right corner. Select “Import dashboard”.

In the dashboard import window, upload the JSON file and click “Import” button.

Dashboard has been imported.
To open the imported dashboard, click on it. Then you should specify your device in entity alias of the dashboard.
To do this, follow these steps:
-
Open the dashboard and enter edit mode. Click the “Entity aliases” icon, then in the pop-up window click the “Edit alias” icon next to the alias.
-
In edit alias window select your device from dropdown list and save entity alias.
-
Apply all changes.

Open the dashboard and enter edit mode. Click the “Entity aliases” icon, then in the pop-up window click the “Edit alias” icon next to the alias.

In edit alias window select your device from dropdown list and save entity alias.

Apply all changes.
You should now see data from the device.
Example of the dashboard with data:
Conclusion
With the knowledge outlined in this guide, you can easily connect your Asset Management Tracker and send data to ThingsBoard.
Explore the platform documentation to learn more about key concepts and features. For example, configure alarm rules or dashboards.