Skip to main content
Associate III
April 22, 2024
Question

How to Convert RSSI Value(dB) into Distance(m) In STM32WB

  • April 22, 2024
  • 2 replies
  • 4080 views

Hello,

          In My Project  I have to findout the distance between BLE Master(p2p Server) and Slave(p2p Slave) using STM32WB5MMG and i got the RSSI value using api hci_read_rssi() ,anyone help me to convert RSSI value into distance.

  p2p Server  TxPower +3dB and p2p Client TxPower is  -0.15dbB

  WhatsApp Image 2024-04-22 at 4.17.21 PM.jpeg

This topic has been closed for replies.

2 replies

Andrew Neil
Super User
April 22, 2024

You can't.

RSSI is affected by so many things that the best you'll achieve in practice is just a very broad "near" or "far" guesstimate.

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
KavinrajAuthor
Associate III
April 22, 2024

@Andrew Neil 

I thought ,the one of the  main action of STM32WB series is tracking ble device and tracking ble device using rssi is possible ?

Andrew Neil
Super User
April 22, 2024

Only very crudely using RSSI alone.

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.