Versions Compared

Key

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

...

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

Factory sleep mode is a default mode that the device usesWhen 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 possible sleep state. The current draw is reduced to a minimum, so this is the preferred mode to use when the tag is not used to maximize battery lifestored and/or not in use. To exit this mode a reed switch is used. If it’s active 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 factory tags exits sleep mode will be deactivated and MCU will enter Advertising and enters advertising mode.

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

Configuration mode can only be entered only from advertising mode by applying a magnetic field magnet to the same reed switch that was used for switch icon as in the exiting factory sleep . When the reed switch is active procedure. After applying a magnet for 5-10 seconds LED will turn off and the tag enters configuration mode will be entered. Otherwise, MCU . 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 is set to the advertising mode wakes from the factory sleep for the first time, it should be configured the following wayhas 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

...