RadBeacon标签距离计算 [英] RadBeacon Tag distance calculating

查看:119
本文介绍了RadBeacon标签距离计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Radius Networks的iBeacon.目前,我正在尝试使用RSSI计算android设备与RadBeacon标签之间的距离.就像David Young在此处所提到的那样,Android设备具有不同的天线.与以下Nexus 7结合使用时,我对以下Forumla的体验不是很好.

i am using iBeacon from Radius Networks. At the moment I am trying to calculate the distance between android device and RadBeacon Tag by using RSSI. Like David Young mentioned here the android devices have got different antenna. My experience with the following forumla is not very good in combination with my Nexus 7.

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/距离测量数据吗?

Can anybody provide me a different formula for the distance calculation or some data of a RSSI / distance measurement for different distances?

推荐答案

此应用程序可以帮助您直接获取距离公式的系数或收集所有必要的数据以自己计算 https://play.google.com/store/apps/details ?id = com.msl.ibeaconchef

This application can help you get coefficients for the distance formula directly or collect all necessary data to calculate by yourself https://play.google.com/store/apps/details?id=com.msl.ibeaconchef

这篇关于RadBeacon标签距离计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆