Android ScanResult.level Value

Does ScanResult.level (signal strength) have a maximum and minimum value?

I want to show a wi-fi signal level image, but I need to know if ScanResult.level has a maximum and minimum value to match the correct image.

Thanks.

+6
source share
1 answer

As you can read in the document with which you are associated, this value is indicated in dBm. Designing a comparison between dBm and bars is a more complicated problem than you might think - remember the whole story that the iPhone lost a signal when it is held β€œwrong”? It was basically just a poorly designed dBm-to-bars mapping: http://www.anandtech.com/show/3821/iphone-4-redux-analyzing-apples-ios-41-signal-fix

It is reasonable to assume that this value will vary from -10 to -100 dBm (based on a look at the WiFi Analyzer application and Wikipedia article on dBm ), but you should not use linear mapping. Take a look at the graphics in the iPhone article for an idea of ​​how it should look.

+6
source

Source: https://habr.com/ru/post/904931/


All Articles