Distance tool box with multiple devices

Hi, 

I am trying to test the nordic distance tool box sample.

1 on 1 test seems working well but I also want to see the result that one scanner measures the distance from other multiple devices.

When I test 7 devices (1 initiator and 6 reflectors) it takes forever and I got some hint from this link ( Questions about Nordic Distance Measurement library sample )

And now they are working a bit better with some code change like only 1 device always requesting reflector to others in the adv_scanned_cb function and ignore unknown devices and do nothing  in the data_cb. In addition, it will stop requesting reflector to the specific devices if it gets enough resutls from that device.

Also the other devices requesting initiator to the scanner device in the data_cb and ingnore any other devices and doing nothing in in the adv_scanned_cb.

It seems working but it is always getting much slower to get the distance results from the others after 1 or 2 time result done.

Any suggestion to improve this?

And it looks like whenever I reset the scanner device, it gets the distance result very first time but it gets slower soon.

Is there a way to re-initialize it without reset?

Thanks!

Related