Get all tags distance from DWM1001 and MDEK1001

Hi all,
We have installed MDEK1001 system, and set a bridge node with raspberry pi.
Can we get the distances from each tag to its 4 ranging anchors?
We would like to collect the distance information for all tags.
After searching the forum, it seems we may get the information from MQTT or BLE.
but we do not know how to do it. Is there any reference document?
Thank you!
Jeremy

Hi
First you must know the MQTT protocol, starting from that you can listen to all the topics with the wildcard # you connect to the ip or dns of the raspberry proxy through port 1883
I share an example of the output for the topic #, in this case my gateway has a serial number deca547fadb1158b an anchor with series 492b and a tag with series 11b3

gateway information
dwm / gateway / b827eb4fe5ee / uplink: {“networkId”: 65535, “ipAddress”: [“192.168.4.1”]}
dwm / gateway / deca547fadb1158b / uplink: {“networkId”: 17185, “bridgeNodeId”: “- 2393007344642353781”, “ipAddress”: [“127.0.0.1”, “192.168.4.1”, “:: 1”, "fe80: : be81: 7986: 5ec1: 6622% wlan0 "]}

anchor information
dwm / node / 492b / uplink / status: {“present”: true}
dwm / node / 492b / uplink / location:
dwm / node / 492b / uplink / config: {“configuration”: {“label”: “DW492B”, “nodeType”: “ANCHOR”, “ble”: false, “leds”: true, “uwbFirmwareUpdate”: true, “anchor”: {“initiator”: true, “position”: {“x”: 100, “y”: 0, “z”: 0, “quality”: 100}, “routingConfig”: “ROUTING_CFG_OFF”}} }

To configure the anchor you must publish the following
dwm / node / 492b / downlink / config: {“configuration”: {“label”: “DW492B”, “uwbFirmwareUpdate”: true, “leds”: true, “nodeType”: “ANCHOR”, “ble”: false, “anchor”: {“initiator”: true, “routingConfig”: “ROUTING_CFG_OFF”, “position”: {“x”: 100, “y”: 10, “z”: 0, “quality”: 100}}} }
configuration response
dwm / node / 492b / uplink / config: {“configuration”: {“label”: “DW492B”, “nodeType”: “ANCHOR”, “ble”: false, “leds”: true, “uwbFirmwareUpdate”: true, “anchor”: {“initiator”: true, “position”: {“x”: 100, “y”: 10, “z”: 0, “quality”: 100}, “routingConfig”: “ROUTING_CFG_OFF”}} }

tag information
dwm / node / 492b / uplink / status: {“present”: true}
dwm / node / 492b / uplink / config: {“configuration”: {“label”: “DW492B”, “nodeType”: “ANCHOR”, “ble”: false, “leds”: true, “uwbFirmwareUpdate”: true, “anchor”: {“initiator”: true, “position”: {“x”: 100, “y”: 0, “z”: 0, “quality”: 100}, “routingConfig”: “ROUTING_CFG_OFF”}} }

tag location messages
dwm / node / 11b3 / uplink / location: {“position”: {“x”: “NaN”, “y”: “NaN”, “z”: “NaN”, “quality”: 0}, “superFrameNumber” : 539}

to configure the public tag
dwm / node / 11b3 / uplink / config: {“configuration”: {“label”: “DW11B3”, “nodeType”: “TAG”, “ble”: true, “leds”: true, “uwbFirmwareUpdate”: false, “tag”: {“stationaryDetection”: true, “responsive”: true, “locationEngine”: true, “nomUpdateRate”: 1000, “statUpdateRate”: 2000}}}

To do this through BLE you can find the functions in the documentation DWM1001 Firmware API Guide

I hope it helps you.

regards

Hi Fdiaz,
Got it, thank you!
we will try it.
BRs,
Jeremy

Hi Jeremy,

Mayeb have a look at the :

Hope it helps,
Yves