Skip to main content
Associate
February 20, 2025
Solved

STM32WB55CGU7 Calculating distance from the server

  • February 20, 2025
  • 1 reply
  • 448 views

Hello team,

   I am working with STM32WB55CGU7 bluetooth MCU for Client and server for our application.Our application is Client and server connect 3 minutes once for 20 seconds. While connecting, Need to calculate the distance .How to find the distance using RSSI value?

How to find the accurate distance from the server between connection.

Here below,

         hci_read_rssi(gConnHandle,&gRssiVal);

         gDistance = pow(10, (((float)TX_POWER-gRssiVal)/(20.00)));   

 based this type I calculated the distance.This method is correct or not. Is there are need to add or change maethod to calculate the distance. 

Thanking you.

Best answer by STTwo-32

Hello @Manikandaprabhu 

The Methode of distance calculation based on the RSSI is not provided by ST. So, if you want information and confirmation about this Methode, please check with the method provider or tested on your side.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
February 20, 2025

Hello @Manikandaprabhu 

The Methode of distance calculation based on the RSSI is not provided by ST. So, if you want information and confirmation about this Methode, please check with the method provider or tested on your side.

Best Regards.

STTwo-32