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!

Parents Reply Children
  • Yes, I think I did all the suggestions such as slower adv intervals and stop requesting when it get enough results.

  • eleven-x_devteam said:
    I think I did all the suggestions such as slower adv intervals and stop requesting when it get enough results.

    Ok, good.

    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.

    I think what you are seeing is that in the start the scanner only see a few advertisers(1-2), and when it finds all, and start doing measurement for all, it takes longer, as the total radio time is divided among more devices, and as mentioned in the post I linked to, the scanner will not be able to schedule a timeslot to take a measurement with one of the advertisers because it will be busy measuring with others. My suggestion is to try to tweak the scan window/interval, advertising interval, and the number of measurements taken.

Related