2024-04-22 03:50 AM
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
2024-04-22 03:53 AM
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.
2024-04-22 04:36 AM
I thought ,the one of the main action of STM32WB series is tracking ble device and tracking ble device using rssi is possible ?
2024-04-22 04:39 AM
Only very crudely using RSSI alone.
2024-04-22 04:44 AM
Most applications don't operate in a vacuum.
Might work within a room within LoS
2024-04-22 05:32 AM
In My project its woking inside the room and now the difficulty is Rssi to Distance in metre.
2024-04-22 05:49 AM - edited 2024-04-22 06:44 AM
So try it - log RSSI against position in room.
Don't forget that "position" is in three dimensions.
Be sure to take multiple readings in each position
See how much it varies with, for example:
EDIT:
Another thing to do would be to leave your unit in a position for an extended period, and log the RSSI - see how much it varies for a stationary unit.