Android的ScanResult.level值 [英] Android ScanResult.level value

查看:1255
本文介绍了Android的ScanResult.level值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问<一个href=\"http://developer.android.com/reference/android/net/wifi/ScanResult.html#level\">ScanResult.level (信号电平)有最大值和最小值?

Does ScanResult.level (signal level) have a max and min value?

我要显示一个Wi-Fi信号电平的形象,但我知道,如果ScanResult.level有匹配的右图像的最大值和最小值。

I want to show a wi-fi signal level image, but I have to know if ScanResult.level has a max and min value for matching right image.

感谢。

推荐答案

你可以链接到您的文件中读出,该值以dBm规定。 dBm的设计和酒吧之间的映射是比你想象的更复杂的问题 - 记得iPhone丢失信号的原委是保持在一个错的方式是什么时候?这是大多只是一个设计糟糕的DBM-到酒吧映射:<一href=\"http://www.anandtech.com/show/3821/iphone-4-redux-analyzing-apples-ios-41-signal-fix\">http://www.anandtech.com/show/3821/iphone-4-redux-analyzing-apples-ios-41-signal-fix

As you can read in the document you linked to, that value is specified in dBm. Designing the mapping between dBm and bars is a more complicated issue than you may think - remember the whole story about iPhone losing signal when being hold in a "wrong" manner? It was mostly just a badly designed dBm-to-bars mapping: http://www.anandtech.com/show/3821/iphone-4-redux-analyzing-apples-ios-41-signal-fix

您可以很安全地假定,这个值-10 dBm的和-100之间(基于考虑看看的WiFi分析仪的应用程序和有关的 dBm的),但你不应该使用的线性映射。看看有关iPhone的文章的想法,应该如何看待在图表中。

You can quite safely assume, that this value will range between -10 and -100 dBm (based upon taking a look at WiFi Analyzer app and Wikipedia article about dBm), but you shouldn't use a linear mapping. Take a look at the graphs in the article about iPhone for the idea how it should look.

这篇关于Android的ScanResult.level值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆