1.什么是Rssi
RSSI(接收信号强度)Received Signal Strength Indicator
Rss=10logP,
只需将接受到的信号功率P代入就是接收信号强度(灵敏度)。
[例1] 如果发射功率P为1mw,折算为dBm后为0dBm。
[例2] 对于40W的功率,按dBm单位进行折算后的值应为:
10lg(40W/1mw)=10lg(40000)=10lg4+10lg10+10lg1000=46dBm。
Rss=10logP,
只需将接受到的信号功率P代入就是接收信号强度(灵敏度)。
[例1] 如果发射功率P为1mw,折算为dBm后为0dBm。
[例2] 对于40W的功率,按dBm单位进行折算后的值应为:
10lg(40W/1mw)=10lg(40000)=10lg4+10lg10+10lg1000=46dBm。
2.如何获取BLE蓝牙Rssi
try {
return _bluetoothGatt.readRemoteRssi();
}
catch (Exception e)
{
}
BluetoothGatt对象调用readRemoteRssi方法
private final BluetoothGattCallback mGattCallback = new BluetoothGattCallback() {
@Override
public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
}
@Override
public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) {
super.onReadRemoteRssi(gatt, rssi, status);
if (status == BluetoothGatt.GATT_SUCCESS) {
broadcastUpdate(status, rssi);
}
}
};
Rssi强度会从BluetoothGattCallback的onReadRemoteRssi接口回调回来。
3.蓝牙强度Rssi的取值范围
Rssi和接收功率有关,单位是dBm,一般为负值,反应的是信号的衰减程度,理想状态下(无衰减),Rssi = 0dBm,实际情况是,即使蓝牙设备挨得非常近,Rssi也只有-50dBm的强度,在传输过程中,不可避免要损耗。
一般情况下,经典蓝牙强度
-50 ~ 0dBm 信号强
-70 ~-50dBm信号中
<-70dBm 信号弱
低功耗蓝牙分四级
-60 ~ 0 4
-70 ~ -60 3
-80 ~ -70 2
<-80 1
参考文章
本文介绍了Android中蓝牙RSSI(接收信号强度指示)的概念,详细讲解了如何通过BluetoothGatt对象的readRemoteRssi方法获取BLE设备的RSSI值,并讨论了RSSI的取值范围。
1万+





