Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Mikrotik BLE Tags #591

Open
sledzik1984 opened this issue Dec 7, 2024 · 7 comments
Open

Add Support for Mikrotik BLE Tags #591

sledzik1984 opened this issue Dec 7, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@sledzik1984
Copy link

It would be great to add support for decoding data from Mikrotik TG-BT5-IN and TG-BT5-OUT.
Theese devices are cheap, have accelerometer, temp sensor - great devices for asset tracking with fall detection capabilities.

Data format is described here:
https://help.mikrotik.com/docs/spaces/UM/pages/105742533/MikroTik+Tag+advertisement+formats

@DigiH
Copy link
Member

DigiH commented Dec 7, 2024

Hi @sledzik1984

Sounds interesting. If you could also supply some example BLE advertising messages of these devices with the option Advertisement and Advanced Data set to true, with whichever integration you are using Theengs Decoder.

Likely best with the native MikroTik telemetry advertising packets.

@DigiH DigiH added the enhancement New feature or request label Dec 7, 2024
@sledzik1984
Copy link
Author

Done:

{"id":"DC:2C:6E:73:AC:3F","mac_type":0,"adv_type":3,"manufacturerdata":"4f090100ed2ffffffefffeff0080550200000064","rssi":-64,"distance":1.795564,"topic":"espresense/presence/kuchnia"}

{"id":"DC:2C:6E:73:AC:3F","mac_type":0,"adv_type":3,"manufacturerdata":"4f0901003fbf07000300feff00807f0200000064","rssi":-64,"distance":1.795564,"topic":"espresense/presence/kuchnia"}

{"id":"DC:2C:6E:73:AC:3F","mac_type":0,"adv_type":3,"manufacturerdata":"4f090100497b38008d0348000080af0200000064","rssi":-59,"distance":1.01076,"topic":"espresense/presence/kuchnia"}

{"id":"DC:2C:6E:73:AC:3F","mac_type":0,"adv_type":3,"manufacturerdata":"4f090100de84feffffffffff0080c10200000064","rssi":-63,"distance":1.602966,"topic":"espresense/presence/kuchnia"}

{"id":"DC:2C:6E:73:AC:3F","mac_type":0,"adv_type":3,"manufacturerdata":"4f0901009e11fffffeff00000080e80200000064","rssi":-58,"distance":0.842869,"topic":"espresense/presence/kuchnia"}

@DigiH
Copy link
Member

DigiH commented Dec 7, 2024

@sledzik1984

I assume you can build your own Theengs Decoder with new and test decoders included, am I correct?

And I'm a bit confused by the above samples all containing the two octets 0080 for temperature. Could you just confirm at which temperature in °C these were taken - possibly exactly 0°C?

@DigiH
Copy link
Member

DigiH commented Dec 7, 2024

Either way, have a look at the decoder so far, with temperature, uptime and battery level - I will also add the accelerometer values in the next days …

development...DigiH:decoder:mikrotik

@DigiH
Copy link
Member

DigiH commented Dec 9, 2024

Updated decoder uploaded … still very puzzled by your (-)128°C temperature.

@DigiH
Copy link
Member

DigiH commented Dec 11, 2024

@sledzik1984

Did you have a look at all at the decoder I created, and can you explain why your samples above give temperatures of -128°C, 128°C or 0°C if masked in post processing?

@sledzik1984
Copy link
Author

sledzik1984 commented Dec 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants