我正在使用Radius Networks的iBeacon。目前我正在尝试使用RSSI来计算Android设备和RadBeacon标签之间的距离。像大卫杨提到的here Android设备有不同的天线。我有以下forumla经验不是组合非常好,我的Nexus 7RadBeacon标记距离计算
protected static double calculateAccuracy(int txPower, double rssi) {
if (rssi == 0) {
return -1.0; // if we cannot determine accuracy, return -1.
}
double ratio = rssi*1.0/txPower;
if (ratio < 1.0) {
return Math.pow(ratio,10);
}
else {
double accuracy = (0.89976)*Math.pow(ratio,7.7095) + 0.111;
return accuracy;
}
}
谁能给我提供了距离计算或RSSI /距离测量不同距离的一些数据的不同配方?