15 October
2006

For a sensor network project I have been using a modified Linksys wrt54g (wrt54gs) wireless box. (For a podcast on modding the wrt54g wireless router to run your own software based on linux, you can also see the related podcast on iTunes.) The driver on these devices returns a measurement of signal strength called rssi (Recieved Signal Strength Indicator). To access it you run a sheel on the device and enter "wl rssi". In several places, this value is documented as being in dB, which is a logarithmic scale for measuring power. I don't believe it. (For those running openwrt, ddwrt or similar, download the "wl" application and try (wl rss and wl noise).


RSSI is a classic way (albeit ad hoc?) of measuring the signal strength for a wireless devices (such as an 802.11b access point). As far as I know, it is not usually reported in dB, but some more-or-less liner scale. In fact the wrt54g "wl" command itself claims that RSSI and NOISE are reported in dB, but observed data contradict this. Note also that...


both numbers are reported as negative numbers (which is consistent with the logarithmic dB scale), but you can easily observe that they don't act like log scales. Also, a supposedly-standard way of measuring signal quality is to subtract these values, which would not be right for dB (where the ratio would be the right thing to compute).


Typical acceptable values for rssi on the wrt54g and wrt54gs are between -70 and -90. Noise should be 5 or more units less than rssi but even when noise and rssi are about the same the device may work well.


Further, note the following quotes on RSSI which does not explicitly say whether log or linear scales are used, but which imply a linear scale:



"…a mechanism by which RF energy is to be measured by the circuitry on a wireless NIC. This numeric value is an integer with an allowable range of 0-255 (a 1-byte value) called the Receive Signal Strength Indicator (RSSI)" [IEEE 802.11 standard ]

"…Received Signal Strength Indicator (or Indication): A signal or circuit that indicates the strength of the incoming (received) signal in a receiver. (The signal strength indicator on a cell phone display is a common example). RSSI is often done in the IF stage before the IF amplifier. In zero-IF systems, it is done in the baseband signal chain, before the baseband amplifier.
RSSI output is often a DC analog level. It can also be sampled by an internal ADC and the resulting codes available directly or via peripheral or internal processor bus. " [Dallas Semiconductor ]

Posted by dudek at October 15 12:46 | Read (2) or Leave a comment | permalink link to this entry |
Comments
Re: RSSI, noise and signal (on the wrt54g)

Why is rssi negative?

Posted by: Edgar at October 17,2006 17:25
Re: RSSI, noise and signal (on the wrt54g)

It would make sense for RSSI to be negative if it was actually a logarithmic scale (i.e. measure in dB -- decibels). Decibels are proporional the the logarithm of the ratio of two power levels, one being the one we are interested in (like RSSI) and the other some standard reference value. This log is generally multiplied by 10 to get a dB value. Since the log of a fraction less then 1 is negative, the dB value is negative for signals where the number of less that the reference signal.

Since I question whether RSSI values are actually dB, this may all be irrelevant and the negative sign might be, basically, a bug.

Posted by: Gregory Dudek at November 04,2006 22:56
Post your own response


(Some kind of name is required, will be visible)

Required, whatever you enter will be visible to other users.


(Optional, used for "mailto" link)

Your email address is not required, but if you insert it it will be displayed so people can contact you.


(Optional, will appear as a link)

Leave an URL if you want to provide a relevant link that relates to your comment or identifies you.



The title for your comment.



Your comment goes here. All relevant comments are welcome, except for those that simply promote an irrelevant product or else are used to fraudulently inflate the link count to an irrelevant web page.


(you must preview before posting)




Science Blogs - Blog Top Sites Science Blogs - Blog Catalog Blog Directory Science Blogs - Blog Top Sites Science Blogs - Blog Catalog Blog Directory