⼿机信号强度划分
en.wanweibaike/wiki-Mobile_phone_signal
⼀、术语
ASU:Arbitrary Strength Unit。⽤于衡量信号强度,参考dBm
RSSI,Received Signal Strength Indication,接收的信号强度指⽰
RSCP,received signal code power
RSRP,reference signal received power
⼆、⼿机信号强度
GSM⽹络:Rx=-111+rxlev。rxlev电平等级,取值0-63(对应-110-48dBm)。其中Rxlev=0代表信号电平<-110dBm,Rxlev=1代表信号电平-110≤Rx<-109dBm,Rxlev=63,代表信号电平Rx≥-48dBm。
GSM⽹络:RSSI=-113+2*asu,asu=0到31、99(未知或未侦测到)。参考:TS 27.007 sub clause 8.5
UMTS⽹络下,RSCP=asu-116,asu取值-5到91、255(未知或未侦测到)。参考:TS 27.007 sub clause 8.69和TS 27.133 sub clause 9.1.1.3
UMTS⽹络,CPICH Ec/Io,取值-24到0dB
LTE⽹络下,RSRP=asu-140,asu取值0到97。当asu在1-96,可⽤表⽰为(asu-141)
<=dbm<(asu-140)。0对应RSRP<-140dBm,97对应RSRP>-44dBm。参考:TS 36.133, sub-clause 9.1.4
三、代码
1、GSM
* Get the GSM Signal Strength, ASU取值(0-31, 99),定义在TS 27.007 sec 8.5
// asu = 0 (-113dB or less) is very weak
// asu = 99 is a special case, where the signal strength is unknown.
if (asu <= 2 || asu == 99) level = NONE_OR_UNKNOWN(0);
else if (asu >= 12) level = GREAT(4);
else if (asu >= 8) level = GOOD(3);
else if (asu >= 5) level = MODERATE(2);
else level = POOR(1);
2、CDMA
if (cdmaDbm >= -75) levelDbm = 4;
else if (cdmaDbm >= -85) levelDbm = 3;
else if (cdmaDbm >= -95) levelDbm = 2;
else if (cdmaDbm >= -100) levelDbm = 1;
// Ec/Io are in dB*10
if (cdmaEcio >= -90) levelEcio = 4;
else if (cdmaEcio >= -110) levelEcio = 3;
else if (cdmaEcio >= -130) levelEcio = 2;
else if (cdmaEcio >= -150) levelEcio = 1;
if (evdoDbm >= -65) levelEvdoDbm = 4;
else if (evdoDbm >= -75) levelEvdoDbm = 3;
else if (evdoDbm >= -90) levelEvdoDbm = 2;
else if (evdoDbm >= -105) levelEvdoDbm = 1;
if (evdoSnr >= 7) levelEvdoSnr = 4;
else if (evdoSnr >= 5) levelEvdoSnr = 3;
else if (evdoSnr >= 3) levelEvdoSnr = 2;
else if (evdoSnr >= 1) levelEvdoSnr = 1;
3、TD-SCDMA
if ((tdScdmaDbm > -25) || (tdScdmaDbm == SignalStrength.INVALID)) level = NONE_OR_UNKNOWN;
else if (tdScdmaDbm >= -49) level = GREAT;
else if (tdScdmaDbm >= -73) level = GOOD;
else if (tdScdmaDbm >= -97) level = MODERATE;
else if (tdScdmaDbm >= -120) level = POOR;
4、LTE
* TS 36.214 Physical Layer Section 5.1.3 TS 36.331
if (mLteRsrp > -44) rsrpIconLevel = -1;
else if (mLteRsrp >= -85) rsrpIconLevel = GREAT;
else if (mLteRsrp >= -95) rsrpIconLevel = GOOD;
else if (mLteRsrp >= -105) rsrpIconLevel = MODERATE;
else if (mLteRsrp >= -115) rsrpIconLevel = POOR;
else if (mLteRsrp >= -140) rsrpIconLevel = NONE_OR_UNKNOWN;
if (mLteRssnr > 300) snrIconLevel = -1;
else if (mLteRssnr >= 130) snrIconLevel = GREAT;
else if (mLteRssnr >= 45) snrIconLevel = GOOD;
else if (mLteRssnr >= 10) snrIconLevel = MODERATE;
else if (mLteRssnr >= -30) snrIconLevel = POOR;
else if (mLteRssnr >= -200)
/* Valid values are (0-63, 99) as defined in TS 36.331 */
if (mLteSignalStrength > 63) rssiIconLevel = NONE_OR_UNKNOWN; else if (mLteSignalStrength >= 12) rssiIconLevel = GREAT;
else if (mLteSignalStrength >= 8) rssiIconLevel = GOOD;
else if (mLteSignalStrength >= 5) rssiIconLevel = MODERATE; else if (mLteSignalStrength >= 0) rssiIconLevel = POOR;
/* Values are -200 dB to +300 (SNR*10dB)
RS_SNR >= 13.0 dB =>4 bars
4.5 dB <= RS_SNR < 13.0 dB,=> 3 bars
手机unknown是什么意思1.0 dB <= RS_SNR < 4.5 dB => 2 bars
-3.0 dB <= RS_SNR < 1.0 dB 1 bar
RS_SNR < -3.0 dB/No Service Antenna*/
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论