How to get iwconfig to display signal level as dbm instead of a fraction

时间:2015-07-28 16:07:44

标签: linux iwconfig

When I run:

iwconfig wlan0 | grep -i quality 

on my Raspberry Pi, with a wifi card installed, it reports back to me with:

Link Quality=99/100 Signal level=48/100 Noise level=0/100

How can I get iwconfig or some other network tool to report the signal level back to me in dBm instead of an arbitrary fraction?

1 个答案:

答案 0 :(得分:0)

这是网络接口卡或亲属司机的问题。 要解决此问题,您可以使用此简单公式I进行转换。

dbm=(fraction_of_total/2)-100

当然是近似值,结果可能因芯片组而异,但我是如何解决的。

如果您知道wifi卡能够进行RSSI采样,您也可以找到正确的驱动程序。但这通常并不容易。