BAG·Tower

From Teltonika Networks Wiki
Revision as of 15:21, 18 January 2023 by Rokas (talk | contribs) (→‎Connect device to BAG·Tower: Minor boarder fixes)

Main Page > General Information > Configuration Examples > Third party services > IoT platforms > BAG·Tower

BAG·Tower is a monitoring and prevention platform that is compatible with Teltonika-Netwokrs devices. Their main goal is to provide a complete solution to control your equipment, manage your asset fleet and its operations.

Introduction

This article contains step-by-step instructions on how to connect a Teltonika-Networks device to BAG·Tower platform.

Basic setup

  1. Create a BAG·Tower account.
  2. Create an asset on BAG·Tower platform.
  3. Connect device to BAG·Tower platform.
  4. Create a decoder for the device.

Create an account


First of all, you will need to create your BAG·Tower account.

  • Register an account on BAG·Tower.
  • Go to your registered email account, find the email from BAG·Tower and click on the Signup now by clicking here link.

  • In the new window enter a new Password and press Send.

  • Now you should have access to BAG·Tower platform.

Create an asset


Set up BAG·Tower asset for your Teltonika-Networks device.

  • Login to your BAG·Tower account.
  • In Asset Management -> Your assets -> Asset List press Add Asset button.

  • In the popup window press Create an Asset Manually button.

  • Enter your assets Name and press the Save button.

  • After saving the asset should appear in the Asset List.

Connect device to BAG·Tower


Connect Teltonika-Networks device to the created BAG·Tower asset.

  • Go to the Details page of the created BAG·Tower asset in Asset Management -> Your assets -> Asset List.
  • In the Asset Detail page copy the generated API Key.

  • Log in to Teltonika-Networks device and navigate to System -> CLI. Login using these credentials: Username - root, Password - Your set Admin password. Alternatively you can connect to your device through your terminal using ssh command:
    ssh root@<device_ip_address> 
    and then when prompted enter your device Admin password.

  • Run the following command with __API_KEY__ replaced by the previously copied assets API Key:
sh -c "$(wget -qO - https://scripts.bagtower.bag-era.fr/install_push_teltonika.sh)" '' __API_KEY__ 
  • After you execute that command you should get a similar response to this with device type and version variations:
install script version 1.4.4
Configuring your asset ...
.. configuration ok
pushing data ..

push script version 1.4.4

** getting asset info ...
      getting TRB141 data
   .. ok 

** pushing asset info ...
600: 600
   .. done 

** updating crontab ...
      asset_period: 600 seconds
   .. done 
.. data pushed
!! all set !!!
  • Now your device should start sending information to the BAG·Tower platform. You should see your assets status change to Anomaly detected in the BAG·Tower platform Asset Management -> Your assets -> Asset List.

Create a decoder


Create a BAG·Tower decoder so that BAG·Tower platform can understand information from Teltonika-Netwokrs device.

  • To understand the information that is being sent from the device BAG·Tower needs to have a decoder. To configure it go to BAG·Tower platform page and in Asset Management -> Your assets -> Asset List click on details of an asset with the Status showing as Anomaly detected.

  • In the Asset Details page click Create a Decoder button.

  • Change the name of the Decoder. Download Teltonika decoder file and replace the Code section content with the content from Teltonika decoder. Select an Asset and a Frame. You can get the latest version of Teltonika decoder from this BAG·Tower page.

  • Press Test Decoder and wait for the test to finish.

  • Then click on Save and Attach.

  • In the opened dialog window choose the Asset, Tag or Group to attach this decoder to and click the Save button.

  • Now you should be all set and your device information should now periodically update in the linked Assets Detail page. Your device asset in BAG·Tower platform should now be shows as Online and its Detail page should now show graphs with information from device.

  • If that is not the case try repeating these steps or contacting support for more information.

References

BAG·Tower official site: https://www.getbagtower.com/en/home

BAG·Tower guide to connecting Teltonika asset: https://bagtower.tawk.help/en-us/article/connecting-teltonika-asset