Automatically translate this page?
6 February, 2020

Affordable asset tracking with BLE beacons

When you need a weather-proof, cheap, and battery-powered tracker for not-so-expensive objects.

It is a rather trivial task to track a vehicle. You just place a GPS tracker under the windshield, connect it to vehicle’s power wires, optionally connect analog inputs, immobilizer, CAN-bus, sensors — whatever your business needs. Indeed, a vehicle is a super-suitable place to install GPS-tracker:

  • it has a power source — GNSS positioning is a rather power-intensive algorithm
  • it is protected from theft — even though a GPS-tracker costs several orders cheaper than the vehicle itself, some trackers may cost several hundred dollars. So it is worth to keep it safe
  • it is protected from harsh weather conditions — the tracker must not be IP68 protected to function properly if it is installed inside the car.
Usage
Tracker example
Works without a power source
Low price
IP code

Vehicle tracking

Galileosky 7.0

No

No

IP22

Scooter sharing

Teltonika TST100

No

No

IP65

Autonomous work

Topflytech TLP1-SM

Yes

No

IP68

Basic monitoring

Any inexpensive tracker

No

Yes

IP22

Our “special” case

???

Yes

Yes

IP68

But what if we have some special case where we need to obtain the asset’s position while meeting the following requirements:

  • no power sourcemust work from a battery for a long period
  • not protected from illegal impactmust be cheap to make stealing pointless
  • can be outdoormust have IP68 protection or higher

This is actually a description of asset tracking — a highly demanded area of GPS monitoring dealing with tracking of physical assets. Here are some cases, which may require the above criteria to be met:

Usage

Description example

Picture

garbage container tracking

E.g. a waste management organization can log exact data about each container. It is possible to install a tracker on the garbage truck but it is totally impractical to equip each container with a personal tracker.

construction tools inventory

E.g. an excavator can have several attachments. During operation, these attachments can move from one excavator to another, from location to location. You can install a tracker on the excavator but it is impossible to track every attachment. However such improvement will help optimize inventory management.

transportation equipment monitoring

E.g. glass transportation rack. It is used to safely transport windows from a manufacturer to where it should be installed. But the rack is not tied to the vehicle, so it can be left in the construction area. You can install a tracker to the vehicle itself but it may be problematic to have one on each rack.

All of the above examples share the aforementioned limitations (min. IP68, cheap, and battery-powered) and the fact that they are transported by vehicles that can be equipped with standard GPS trackers. The viable solution requires ingenuity and some flespi magic.

Meet BLE beacons: the mentioned IP68 asset tag can work from the battery for up to 5 years and costs several times less than a GPS tracker. The beacon itself is used only to identify an asset, while the GPS tracker is responsible for telemetry. This manual describes how to set up a Teltonika device to scan the surrounding environment to capture BLE beacon’s signals. Once the tracker reports the list of captured beacons IDs as a regular message along with other telemetry data, we need to apply some flespi magic to operate BLE beacons as usual tracking devices.

How to configure Teltonika device to scan for BLE beacon IDs

We assume that you have successfully connected the Teltonika device to the flespi channel and registered the appropriate device. As this feature is rather new, you should also update your device to the latest firmware.

To see the beacons list in device messages, follow these steps (see screenshot below):

  • Enable Bluetooth (no matter hidden or visible) in the Bluetooth section of the Settings tab
  • Set Beacon detection to ALL (set other parameters according to your needs)
  • Turn OFF Non-stop scan

configure teltonika device bluetooth

Another hint: as soon as the Teltonika device sends beacons list in AVL ID 385, you need to check that your device transmits data over Codec 8 Extended.

configure teltonika device codec

If you have no BLE beacon at hand, it is not a problem. You can simulate it using a smartphone app: Android or iOS. If you do everything right and the BLE beacon (or a simulator) is close to the tracking device, you will see the following message from your Teltonika device:

{
    "ble.A7A2C5A10C0E43A18B841946DA1AA18404D2162E": {
    "rssi": -43
    },
    "ble.B123457777741946DA10C0A1AA18404D2162EE43": {
    "rssi": -41
    },
...
    "ident": "123456789012345",
    "position.altitude": 123,
    "position.latitude": 12.3456789,
    "position.longitude": 98.7654321,
    "timestamp": 1580803660.001,
}

It means that the Teltonika device is set up correctly and the Bluetooth scanner has captured the signals from beacons.

Register BLE beacon devices

The magic on flespi side is that somehow a single message with the BLE beacon IDs list must transform into the list of messages in the following way:

  • Beacon ID must be used as ident
  • Individual beacon object parameters (like RSSI) must be stored in different messages
  • Source device ident must be stored in the parameter ble.receiver.ident
  • All other required telemetry must be saved to every beacon message

split ble beacons messages

This task is solved by the ble-beacons channel. To set it up you need to specify the channel(s) with source messages in the Channel IDs field, valid token granting access to these channels, and an optional list of parameters to insert from the original message (by default all possible parameters will be injected from the source message to the separate beacons messages).

configure ble beacons channel

BLE-beacons channel is just an MQTT client that subscribes to messages from certain channels, so once new messages arrive, you will see the split messages in the channel’s Toolbox. You can optionally register flespi devices with BLE beacon ID as ident. You can set up a stream to your platform (e.g. to Wialon) and operate your BLE-beacon devices there as regular trackers.

***

The described approach will allow you to track assets in a cheap and easy way. Obviously there are some disadvantages the main being: you do not track the BLE beacon — you receive not the position of the beacon itself, but the position of the tracker when it captures the beacon’s signal and the signal’s strength. But the advantages and potential of this approach far outweigh the drawbacks.

P.S. Stay tuned for real-life use cases of asset tracking with BLE beacons.



6 November, 2019 | flespi integrations | Anton Kulichenko

IoT-enabled fleet & asset management for a grocery chain

A comprehensive IoT solution to optimize delivery in retail using GPS and BLE equipment.

10 October, 2019 | flespi integrations | Anton Kulichenko

Fleet Overview: unite fleets from multiple platforms on one screen

Aggregate data from different fleet management platforms in a single interface to ease operations.