What are the factors that influence the duration for which distance measurement will occur (Using nrf_dm sample).

Hello, guys,

I am working on distance measurement project using two nRF5340DK (nrf_dm sample application). I found duration for which the distance measurement between two DKs happens is random, so can I please know the factors effect this duration and also can we control this duration in code.

Also, can we control interval time between two distance measurements in code.

Regards,
Madan

Parents
  • Hi

    Do you refer to the interval between the distance measurements or the time that the distance measurement itself takes here? The nrf_dm_get_duration_us API should give you the duration of the data collection for a given configuration, and NRF_DM_PROC_EXECUTRE_DURATION_OVERHEAD_US is the duration of a given (not high-precision) algorithm. Other than that the only random part here should be the advertising interval, which (per Bluetooth spec) has a randomized delay between 0 and 10 ms added to the advertising interval itself.

    If you're referring to some other random interval here, please be more specific. What range of measurement interval do you see occurring exactly?

    Best regards,

    Simon

  • Hi Simonr, Thanks for your reply

    I am referring to a situation like:
    when the two devices (nRF DKs) are kept at a closer distance (less than 1m), the duration of the distance ranging is very long and I will get more number of distance measurements, whereas if they are kept apart (greater than 2m) the distance ranging duration is small and we will get two or three distance measurement values, also in this kind of situation the synchronization takes more time compared to shorter distance.

    So Can I please know, what is the reason for this random occurrence? Also please suggest me how to fix them.

    Waiting for response

    Regards,
    Madan

Reply
  • Hi Simonr, Thanks for your reply

    I am referring to a situation like:
    when the two devices (nRF DKs) are kept at a closer distance (less than 1m), the duration of the distance ranging is very long and I will get more number of distance measurements, whereas if they are kept apart (greater than 2m) the distance ranging duration is small and we will get two or three distance measurement values, also in this kind of situation the synchronization takes more time compared to shorter distance.

    So Can I please know, what is the reason for this random occurrence? Also please suggest me how to fix them.

    Waiting for response

    Regards,
    Madan

Children
No Data
Related