Electronic – RSSI-Distance calculation help

wifiwireless

Using this question as a guide I've been trying to calculate some distances based on RSSI values that I see in our lab. I filled in all the variables with actual data or approximations where necessary (just trying to make sure I understand the math before worrying about having perfect data) and plugging it in to Wolfram Alpha to see if it looks like what I think it should. Here is my Wolfram Alpha equation so far, with values following the exact sequence described in the linked question:

$$d=10^{\Big(\dfrac{-60-(-94)-(-63)-10 \times 2.7 \times \log_{10}2450 + 30 \times 2.7}
{10 \times 2.7}\Big)}$$

I'm assuming \$P_o=-60\$ based on some graphs in this study, \$Fm=-94\$ based on the "Received Sensitivity (Typical)" stat of the device I'm using to measure the signal, the actual measured \$Pr\$, \$n=2.7\$ (a good, but not perfect, room), and \$f=2450\$ (I picked that value from the range supplied by the aforementioned question, but of all the values it is the one I'm least sure about and not sure at all how much it affects the overall equation).

I hope that makes sense, I only have a distant familiarity with this type of analysis (not being an engineer myself). I know enough math to keep up, just need to be sure I'm putting the right values into the right places.

EDIT: I suppose I should state the actual question. Am I doing this right? The equation above works out to a distance of about \$3 \times 10^{14}\$ units which (unless we're measuring pico-inches or some such tiny amount) doesn't make sense. I assume this is supposed to give me meters.

For reference, here is the equation and explanation of variables from the question linked in the first sentence:

$$d=10^{\Big(\dfrac{P_0-F_m-P_r-10n \log_{10}(f) + 30n – 32.44}{10n}\Big)}$$

Where

  • \$F_m = \text{Fade Margin}\$
  • \$N = \text{Path-Loss Exponent}\$
  • \$P_o = \text{Signal power (dBm) at zero distance}\$
  • \$P_r = \text{Signal power (dBm) at distance}\$
  • \$F = \text{signal frequency in MHz}\$

Best Answer

I am not sure why are you using such a complex formula. In general, there are so many unknowns that all existing systems have to use empirical calibration to get mapping.

Conveniently enough, the rssi<->distance mapping is one of the favorite projects for university students who want to work with WiFi, so google returns a number of academic papers of varying quality. Here are my first two results for "using rssi for distance measurement", both of them assume that RSSI is proprotional to log of distance squared and calibrate using emprical data. Both of them have a pretty good fit for their model, but with wildly different coefficents.

"Distance Measurement Model Based on RSSI in WSN" http://www.scirp.org/journal/PaperDownload.aspx?paperID=2348 This one has a nice explanation of the model they are using, together with the derivation of the formula.

"Outdoor Localization System Using RSSI Measurement of ..." http://www.ijitee.org/attachments/File/v2i2/A0359112112.pdf This one is a very basic one, which just illustrates that a different equipment will produce completely different RSSI values.