Add TA692FC-L-5 to ThingsBoard๏ƒ

Tip

  • This section applies to the situation where you add a TA692FC-L-5 to the ThingsBoard PE. It implement two-way communication between a TA692FC-L-5 and a ThingsBoard PE.

  • Only ThingsBoard PE supports Platform Integrations feature.

Tip

Introduction๏ƒ

Note

The frequency of LoRaWAN device and gateway must match!

Warning

ChirpStack v4, the latest version, doesnโ€™t handle downlink data from ThingsBoard PE v3.5.x.

The ChirpStack open-source LoRaWAN Network Server stack provides open-source components for LoRaWAN networks. After integrating ChirpStack with ThingsBoard, you can connect, communicate, process and visualize data from TA692FC-L-5 thermostat in the ThingsBoard IoT platform.

../../_images/0275580d6c00e9bf5f3bd3820bd165ae5d82dbedfe12a7bf540a473a9ef666b6.svg

Item

Description

LoRaWAN Device

TA692FC-L-5, Frequency 868 MHz*

LoRaWAN Gateway

MTCAP-868-041A, Frequency 868 MHz*

LoRaWAN Network Server

ChirpStack v3**

LoRaWAN Application Server

ThingsBoard PE v3.5.x**

Prerequisites๏ƒ

Tip

You need a ChirpStack instance that can be accessed by your ThingsBoard PE instance.

  • If your ThingsBoard PE instance is installed in a LAN, you may also install a ChirpStack instance in the same LAN.

  • If your ThingsBoard PE instance is installed in the cloud, you may also install a ChirpStack instance on the corresponding cloud host.

Step 1. MTCAP configuration๏ƒ

Step 2. ChirpStack configuration๏ƒ

Step 3. Integrating ChirpStack with ThingsBoard PE๏ƒ

Refer to ChirpStack Integration.

Step 3.3 Create Integration๏ƒ

Step 3.3.1 Get Application API key from ChirpStack๏ƒ

  • To get the API key we need to open Application server UI, open API keys tab from the left top menu and Create an API key.

    ../../_images/get-application-api-key-from-chirpstack-1.png
  • Input your API key name โ€“> Create API key.

    ../../_images/get-application-api-key-from-chirpstack-2.png
  • Copy your token.

    ../../_images/get-application-api-key-from-chirpstack-3.png
  • Show it in the list of global API keys.

    ../../_images/get-application-api-key-from-chirpstack-4.png

Step 3.3.2 Adding ChirpStack intergration on ThingsBoard๏ƒ

Now that the Uplink converter and Downlink converter have been created, and we have all required data, it is possible to create an integration.

  • Integrations โ€“> select a integration type: ChirpStack โ€“> input name: TA692FC-L-5 ChirpStack integration โ€“> enable integration, debug mode and allow create devices or assets โ€“> Next.

    ../../_images/adding-chirpstack-intergration-on-thingsboard-1.png
  • Select Uplink data convert: TA692FC-L-5 downlink from ChirpStack.

    ../../_images/adding-chirpstack-intergration-on-thingsboard-2.png
  • Select Downlink data convert: TA692FC-L-5 uplink from ChirpStack.

    ../../_images/adding-chirpstack-intergration-on-thingsboard-3.png
  • Check Base URL โ€“> copy HTTP endpoint URL โ€“> paste your ChirpStack Application server URL โ€“> paste your ChirpStack Application server API Token.

    ../../_images/adding-chirpstack-intergration-on-thingsboard-4.png
  • Show it in the list of integrations.

    ../../_images/adding-chirpstack-intergration-on-thingsboard-5.png

NOTE: It is recommended to enable Debug mode for debug purposes to see uplink/downlink events on integration.

Step 3.3.3 Configure an Integration for your ChirpStack application๏ƒ

To create integration on ChirpStack Network server stack, we need to do the following steps:

  • Login to ChirpStack Network server stack user interface (Default login/password - admin/admin).

  • We go to the tab Applications in the left menu and open our application (our application is named Application).

    ../../_images/configure-an-integration-for-your-chirpstack-application-1.png
  • Open the Integrations tab and create a HTTP integration.

    ../../_images/configure-an-integration-for-your-chirpstack-application-2.png
  • Let`s go to the Integrations tab in ThingsBoard. Find your ChirpStack integration and click on it. There you can find the HTTP endpoint URL. Click on the icon to copy the url.

  • Fill the fields with endpoint url from ThingsBoard integration:

    ../../_images/configure-an-integration-for-your-chirpstack-application-3.png

Step 3.3.5 Configure the root rule-chain๏ƒ

  • Rule chains โ€“> Click on the row.

    ../../_images/configure-the-root-rule-chain-1.png
  • Drag and drop the Rule Chain node โ€“> Popup dialog: Add rule node: rule chain โ€“> Input your node name, eg: Downlin to ChirpStack โ€“> Select the Rule Chain, eg: TA695FC-L-5 downlink to ChirpStack โ€“> Add.

    ../../_images/configure-the-root-rule-chain-2.png
  • Now, root rule chain looks like this:

    ../../_images/configure-the-root-rule-chain-3.png
  • Add link from Message Type Switch to Downlink to ChirpStack โ€“> Popup dialog: Select a link label: Attributes updated โ€“> Add.

    ../../_images/configure-the-root-rule-chain-4.png
  • Save the root rule chain.

    ../../_images/configure-the-root-rule-chain-5.png

Step 3.6 Visiual Data๏ƒ

Use the Dashboards to work with data. Dashboards are a modern format for collecting and visualizing data sets. Visibility of data presentation is achieved through a variety of widgets.

  1. Update Avantec Widgets.

  2. Import TA692FC-L-5 Detail Dashboard.

  3. Import TA692FC-L-5 List Dashboard.

  4. Modify TA692FC-L-5-868 Thermostat device profileโ€™s mobile dashboard.

For more information about the dashboard, please refer to here.