How to improve Bluetooth distance measuring using RSSI?
Asked Answered
G

1

11

For my project I need to estimate the distance between a Smartphone and a bluetooth module. The Estimation doesn't have to be very precise. I only need to determine the distance with a margin of error of about 50cm.

I did test the RSSI of two bluetooth modules at distance-steps of 10 cm. I measured the RSSI 5 times for each step and got the average of the 5 measurements. The averages are shown in the graph below:

Blue and Red lines resemble the two bluetooth modules

The red and blue lines resemble the two Bluetooth modules. You can see that the results are not very linear. One of the reasons for this is interference, so i searched for ways to tackle the interference issue. Two ways i found are:

However i don't really understand how the above techniques would be used to get more accuracy. For SNR i need the Noise value, how do i even get the Noise value?

For ratio rssi/txPower, I can get the txPower by simply measuring the rssi at 1 meter from the module. So I know all the needed values. But I don't know what to do from here on out. How do i use these values to get a more accurate distance estimations?

Are there any other techniques i can use to improve accuracy?

Gingerich answered 14/1, 2015 at 9:35 Comment(0)
S
12

You are running into the practical limitations on this technology. Getting estimation accuracy of +/- 50 cm may be possible under ideal conditions at short distances (under 2 meters) not at long distances of over 10 meters.

I wrote a longer blog post about the limits here: http://developer.radiusnetworks.com/2014/12/04/fundamentals-of-beacon-ranging.html

To answer your specific questions:

  1. No, there is no practical way to know what part of a single RSSI measurement comes from signal and what part comes from noise. You can take an average over many samples, which partially removes noise if the transmitter and receiver are stationary over the sample interval.

  2. The techniques you ask about do work to give you distance estimate, but they have the limitations of the technology described above.

Schwinn answered 14/1, 2015 at 12:59 Comment(2)
Hi, Thanks for the link, very insightful info. I tested the the txRadio value of my bluetooth module, and it was exactly 59 dBm. I used the sample code in the link you gave, and the accuracy was sufficient for my purpose. However this is only the case when there is nothing between the bluetooth module and the phone. Even placing my hand between the two caused fluctuations of several meters, while there were alot less fluctuations in the rssi value. Does this match your findings?Gingerich
Yes, obstructions cause different RSSI levels due to attenuation. What you describe seeing with your hand seems a bit more than what I have seen, but it is certainly within the realm of possibility.Schwinn

© 2022 - 2024 — McMap. All rights reserved.