查找蓝牙低功耗设备的RSSI值的距离 [英] Finding distance from RSSI value of Bluetooth Low Energy enabled device

查看:354
本文介绍了查找蓝牙低功耗设备的RSSI值的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究蓝牙低能耗概念项目。我在1到100之间获得RSSI值
。随着我移动标签,RSSI值随着外围设备离开iPhone而增加,并随着它移近而减小。

I am working on Bluetooth low energy concept project. I am getting the RSSI value between 1 and 100. As I move the tag the RSSI value increase as the peripheral moves away from the iPhone and decreases as it moves closer.

任何人都可以帮我根据RSSI值获得iPhone和蓝牙标签之间的确切距离吗?有没有可用的公式?

Can anybody help me to get exact distance between the iPhone and the Bluetooth tag based on the RSSI value? Are there any available formulas?

我借助这种蓝牙低能量代表方法获得设备的RSSI值:

I am getting the RSSI value of the device with the help of this bluetooth Low energy delegate method:

 - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral   
   *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI


推荐答案

我在另一个帖子中回答了这个问题,在这里重复一遍。

I answered this in another thread, repeating it here.

在视线范围内(没有障碍导致RSSI发生变化), -6dB似乎是距离的两倍

In line-of-sight (no obstacles causing change in RSSI), -6dB seems to be double the distance.


如果你在1米距离读取RSSI -40dB然后2m给出-46dB,4m给出-52dB,8m给出-58dB,16m给出-64dB。 / p>

If you at 1m distance read RSSI -40dB then 2m gives -46dB, 4m gives -52dB, 8m gives -58dB, 16m gives -64dB.

您无法获得确切的位置,只能获得圆形的最大距离。

You can not get an exact position, only a circular maximum distance.

使用2-3个或更多设备进行三角测量可以获得更准确的定位结果。
你可以完全从广告包中获得这个,但你必须要么禁用扫描 - >启用扫描或告诉iOS CoreBluetooth报告所有adv包。

Using triangulation with 2-3 or more devices you get a much more accurate positioning result. You can get this purely from Advertisement packages but you must either Disable scan -> Enable scan or tell iOS CoreBluetooth to report all adv packages.

在前台模式你可以这样做,但在后台模式你不能得到所有的adv包。您必须连接并读取RSSI才能在后台执行此操作。

In foreground mode you can do this but in background mode you can't get all adv packages. You must connect and read RSSI to do it in the background.

这篇关于查找蓝牙低功耗设备的RSSI值的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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