[DDFS] Cannot calculate distance

nrf_dm example

nrf Connect SDK: 2.0.0

nrf52840 DK

------------------------------------------------------

Hello,

i want to use the Distance and Direction Finding Service in order to notify connected clients if my server is getting closer to them. I already configured the clients and the server to connect to each other and find the Gatt Characteristics and enable the notification. However, as soon as my clients subscribe to the notification, no distance measurements and calculations are done anymore.

In the example advertising and scanning is used in order to configure the boards for their respective role in the distance measurements. Since my boards are connected already I am not sure how to correctly configure the boards to start a distance measurement directly and skip the advertising part. Or if it is even possible to skip the advertising part.

Any help would be appreciated.

Thanks.

Parents
  • i want to use the Distance and Direction Finding Service in order to notify connected clients if my server is getting closer to them.

    It is not possible to mix DM and Direction Finding as of now. These two features are very radio intensive and work mostly assuming that they will manage to get the radio time when requested. 

    In the example advertising and scanning is used in order to configure the boards for their respective role in the distance measurements. Since my boards are connected already I am not sure how to correctly configure the boards to start a distance measurement directly and skip the advertising part. Or if it is even possible to skip the advertising part.

    No DM uses the radio by requesting time using MPSL timeslot library. It is not using any advertising roles as per say, but it uses nRF RADIO using timeslots.

  • So it is not possible to use the Distance Measurement Library to calculate the distance and then notify the clients with the results using the Distance and Direction Finding Service?

  • you can ofcourse use them one after the other (should not run concurrently). While distance measurement is enabled, you should not have direction finding service active and vice versa. 

Reply Children
No Data
Related