Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

TG-BT5-OUT is a new addition to our MikroTik equipment. It is a Bluetooth tag (a very small gadget) that can be attached to other equipment or other belonging. Bluetooth tags play a big role in IoT topologies, where Bluetooth is used to broadcast the data over short distances. Once installed and configured, the tag will broadcast advertising packets in iBeacon, Eddystone, or Mikrotik telemetry (default packet format) to the gateway (for example, KNOT). Gateway, on the other hand, pushes the advertising packet payload to the remote server utilizing MQTT or HTTP protocols.

Tag modes

When the product arrives from manufacturing it is set into factory sleep mode. In this mode, all components are shut-down as much as possible and MCU is put into the deepest sleep state. The current draw is reduced to a minimum, so this is the preferred mode to use when the tag is stored and/or not in use. To exit this mode put a magnet to the tag's edge (where the switch icon is) and hold it for 3-10 seconds until LED turns off. After that, the tags exits sleep mode and enters advertising mode.

In the Advertising mode, the tag will broadcast Bluetooth advertising packets. By default, MikroTik's advertisement packets are sent once every 5 seconds. This can be changed in the Configuration mode.

Configuration mode can be entered only from advertising mode by applying a magnet to the same switch icon as in the exiting factory sleep procedure. After applying a magnet for 5-10 seconds LED will turn off and the tag enters configuration mode. If you apply a magnet for longer than 15 seconds or won't connect to the tag with the configuration app, it will go back into advertising mode.

When the device wakes from the factory sleep for the first time, it has this default configuration:

Configuration parameterSetting/value
Advertising packet formatMikroTik
Advertising Interval

5.0 seconds

Tilt trigger60°
Accelerometer trigger156.25 mg
Low noise filter

enabled

Tx Power6 dBm

The magnet is used on the reed switch to change the tag's operating modes as described above. As soon as the magnet is detected (the reed switch is activated), the LED will start flashing for the next 5 seconds (first 5 seconds) and, then, stop. It can help you identify that 5 seconds have passed and that you can remove the magnet to enter configuration mode.

Initial steps

Install the "MikroTik Beacon Manager" application and run the app.

Upon the first login, you will see the list of "beaconed" devices:

To "wake up" the tag from the factory sleep mode, the reed switch should be activated for 3-10 seconds.

As soon as the device "wakes up", it will show up in the "MikroTik Beacon Manager" list. Select the tag and you can begin configuring it by pressing the "CONFIG ONLY" button:


Right after that, you will need to put a magnet over the device for 10 seconds (this is the step where the device is set to the configuration mode):


After a short wind up time, the device should be ready to be configured:

The app will show general information about the tag in the "Status" tab and will allow you to alter the tag's setting using the "Settings" tab (as shown in the screenshot above).