How to set a device as a reflector when running the nrf_dm example?

When I was running the dm process of Connect SDK 3.0.2. I wanted to make one device as the initiator and six devices as the reflectors.  I expect that the reflectors will not undergo scanning.I made the modifications based on this post:https://devzone.nordicsemi.com/f/nordic-q-a/99676/customising-distance-measurement-using-ndt/426102?focus=true#permalink=858951*/ for reflector.

I made the following revisions  to the code of the reflector device:: 

In the main, these two positions have been commented out :

and  if (peer_supported_test(info->addr)) {}, Also, modify the method for obtaining the random seed 

At the same time, comment out the following code in the peer file:

After I completed the two code modifications, I downloaded the code to the reflectors side. But at this point, distance measurement is impossible. Could you please tell me where the problem lies?.   

  • Hi,

    I am sorry for the delay. The distance measurement by nature takes quite some time, but you can adjust scan and advertising parameters to affect it. More rapid advertising packets, and long and frequent scan windows increase the speed. Howwever, it also causes higher current consumption as described under Power consumption.

    The measurments are quite frequent if you use the sample as is or the modified sample with only one scanner, though. How high frequency do you want? And for my understanding, can you share why you need it faster (particularily at the cost of power consumption)?

Related