I’m using DWM1001 devices as anchors/tags and PANS R2.0 firmware API through C user application.
I am wondering if it is possible to send custom data (e.g. tag’s position) from a tag to an anchor, or maybe to broadcast data to all anchors.
An anchor can read IoT data send by a tag through dwm_usr_data_write API?
Group Poll Message sent by the tag which initiates TWR exchange contains last computed position. Is there a way to get this data inside user C app on anchor?
I will appreciate, if you could give me some clarifications or indicate other ways to achieve what I want.
Thanks!
on DWM_EVT_LOC_READY event I use dwm_usr_data_write API to send some data.
On bridge node:
configure node as anchor-bridge
register DWM_EVT_USR_DATA_READY event
wait event to read data
On the bridge node DWM_EVT_USR_DATA_READY event is never reached.
Also, on the tag node DWM_EVT_USR_DATA_SENT event doesn’t happens and dwm_usr_data_write doesn’t return any error code.
I’m looking for a way to use the module as a communication device while continuing the PANS library job. My first idea is to try and send data in the same way as it is done in the ss_twr_init example (here : GitHub - Decawave/dwm1001-examples: Simple C examples for Decawave DWM1001 hardware) But I’m afraid that I will end up messing with the transceiver too much for the PANS to work properly at the same time.
If you found a way to avoid the need for a gateway, I’m all ears!