cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55CGU7 Calculating distance from the server

Manikandaprabhu
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.