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?.   

Parents
  • Hi,

    This seems mostly sensibel to me. But in order to understand more I have a few questions:

    • Can you share your modified project or a diff so I see all changes?
    • Are you using the unmodified nrf_dm sample as the initiator?
    • You write that distance measuremetn is impossible. In what way does it not work? Can you share logs?

    PS: For more precise distance measurement you may want to consider Bluetooth Channel Sounding, but this is only supported with nRF54 series devices.

  • The initializer only modifies the method for generating the random seed:

    The inability to measure distance is due to the fact that neither the initializer nor the reflector has serial port print output.

    The reflector has undergone the aforementioned modifications, and no changes have been made in other areas.

Reply Children
No Data
Related