MTK默认wifi信号格
信号格数:5
MIN: -100
MAX: -55
格数 WIFI信号值RSSI
0 < -88.75
1 >= -88.75 and < -77.5
2 >= -77.5 and < -66.25
3 >= -66.25 and < -55
4 >= -55
计算公式:
N = (RSSI-MIN) * (信号格数-1) / (MAX-MIN)
即:
N = (RSSI+100)*4/45
结果取整
通过公式反算边界值
RSSI=N*45/4-100
>>> 0.0*45.0/4.0-100.0
-100.0
>>> 1.0*45.0/4.0-100.0
-88.75
>>> 2.0*45.0/4.0-100.0
-77.5
>>> 3.0*45.0/4.0-100.0
-66.25
>>> 4.0*45.0/4.0-100.0
-55.0
< -100 按0计
如果改成6格
通过公式反算边界值
RSSI=N*45/5-100
>>> 0.0*45.0/5.0-100.0
-100.0
>>> 1.0*45.0/5.0-100.0
-91.0
>>> 2.0*45.0/5.0-100.0
-82.0
>>> 3.0*45.0/5.0-100.0
-73.0
>>> 4.0*45.0/5.0-100.0
-64.0
>>> 5.0*45.0/5.0-100.0
-55.0
格数 WIFI信号值RSSI
0 < -91.0
1 >= -91.0 and < -82.0
2 >= -82.0 and < -73.0
3 >= -73.0 and < -64.0
4 >= -64.0 and < -55
5 >= -55