如何使用rssi值计算android和iphone之间的距离

问题描述:

我想读取扫描广告设备的android和使用iphone作为广告商的android之间的距离,使用蓝牙低能量即BLE。如何使用rssi值计算android和iphone之间的距离

现在使用rssi值是否有任何通过其可以找到android和iphone之间的大致距离的算法?

在leScan上使用android.bluetooth.BluetoothAdapter.LeScanCallback的回调方法,我并不总是能够扫描广告的iphone设备。但总是iBeacon能够进入扫描的设备列表。

在此先感谢。

开放源代码Android Beacon Library具有内置函数来估计距离。该功能的描述是在这里:http://altbeacon.github.io/android-beacon-library/distance-calculations.html

你可以看到这是如何工作在这里的讨论:

Understanding ibeacon distancing