Question regarding dwm_loc_get in dwm1001-dev device

Hi, i have a question regarding the dwm_loc_get function.
I’m trying to measure distances between devices via C code in a network of multiple devices. I’ve understood the standard way of doing this is with a rotation of the setup of the device as a tag and the others as anchors. Though the problem is that via SPI the setup of a device as a tag (and the need to do a reset) takes too much time.
I have understood that you can measure distances also between anchors (as shown in the API documentation in example 2 for dwm_loc_get), though when i try to run this command i receive this response (0x40 0x01 0x00 0x41 0x0d 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x64 0x48 0x01 0x00), indicating that there are no anchors to be found, even though when I try to measure the distance of a device set as tag and anchors it works fine.
Thanks.

Hi @Riccsrdo
the dwm_loc_get command is working only on TAG device. On Anchor device you can not do a TWR with nearby anchor devices.

Cheers
JK

Thank you for your response!
Is there any “easy” way to expand the numbers of devices in TWR distance measurement? From what I’ve understood from the documents, each tag can measure the distance from up to 4 devices, is there a way to increase this number? I’ve seen the examples provided for ss_twr_init and ss_twr_resp, though it doesn’t seem like to print anything on the serial port (i’ve checked and it’s the correct one).

Hi @Riccsrdo
the PANS firmware is closed source and only the binary is provided. It is not possible to modify it.

Cheers
JK