如何使用蓝牙测量两个iphone设备之间的距离? [英] How to measure distance between two iphone devices using bluetooth?

查看:35
本文介绍了如何使用蓝牙测量两个iphone设备之间的距离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用蓝牙在下面做一些事情.

I'd like to do something in the following using bluetooth.

  1. 测量并显示我的 iPhone 与另一部 iPhone 的距离.
  2. 我的 iPhone 的显示方向.

例如

我想在我的 iPhone 应用程序中显示以下内容.

I'd like to display something in the following on my iPhone application.

我的 iPhone 已连接到另一部 iPhone:Harry 的 iPhone.

My iPhone is connected to another iPhone:Harry's iPhone.

在这种情况下,

  • 距离:3m 45.3cm(精度:毫米)
  • 方向:东北(8 个可用方向之一)

有人知道怎么做吗?

推荐答案

使用蓝牙进行本地化是一个众所周知的研究领域 (ref.).简短的回答是:你不能.信号强度不能很好地指示两个连接的蓝牙设备之间的距离,因为它受环境条件的影响太大(设备之间是否有人?所有者如何拿着他/她的设备?是否有墙?是否存在)有任何射频反射面吗?).使用蓝牙最多只能获得几米的距离分辨率,但无法计算方向,甚至无法粗略计算.

Using bluetooth for localization is a very well known research field (ref.). The short answer is: you can't. Signal strength isn't a good indicator of distance between two connected bluetooth devices, because it is too much subject to environment condition (is there a person between the devices? How is the owner holding his/her device? Is there a wall? Are there any RF reflecting surfaces?). Using bluetooth you can at best obtain a distance resolution of few meters, but you can't calculate the direction, not even roughly.

您可能会通过使用多个蓝牙设备并对各种信号强度进行三角测量获得更好的结果,但即使在这种情况下,您的估计也很难比几米更准确.

You may obtain better results by using multiple bluetooth devices and triangulating the various signal strength, but even in this case it's hard to be more accurate than few meters in your estimates.

这篇关于如何使用蓝牙测量两个iphone设备之间的距离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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