在android中使用Wifi计算位置和距离

发布于 2024-12-27 16:38:10 字数 63 浏览 3 评论 0原文

如何获取我们的移动设备与建筑物内的 WiFi 热点的距离?这基本上是为了建筑物内的导航目的。任何帮助将不胜感激。

How to get the distance of our mobile device from a wifi hotspot kept inside a building? This is basically for navigational purposes inside the building.. Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

万水千山粽是情ミ 2025-01-03 16:38:10

如果您想使用 WiFi 进行室内定位(导航前的步骤 1),那么与 WiFi 接入点的距离并不是正确的方法。请改用 RSSI

使用 Android,您需要每隔几米移动一次来获取建筑物的 WiFi 指纹,并且 对 RSSI 强度进行采样。您需要提供一个用户界面,让用户可以在建筑物图像(例如 CAD 绘图)上手动指定。这样做将建立一个数据库,记录建筑物中不同位置的 RSSI。当您使用这些数据在室内定位用户时,您需要一个应用程序来测量 RSSI 强度,并将其与您准备好的数据库进行比较,以找到合适的匹配项。

笔记:
- 如果有人添加/删除接入点,您将需要对建筑物进行重新采样
- 测量结果可能会受到人口密度的影响
- 某些接入点是可变强度接入点,因此 RSSI 指纹不一致。
- 这不适用于 iPhone,因为没有 API 可以获取 RSSI 强度。

因此,这是一种有用但并非完美的获取室内位置的方法。有很多关于 RSSI 指纹识别的更详细的文章。

当然,导航必须建立在它的基础上。

If you want to use WiFi for indoor location (step 1 before navigation), then distance to the WiFi Access Points is not the correct approach. Instead use RSSI.

With Android you would need to take WiFi fingerprint of a building by moving around every few meters and sample the RSSI strength. You need to provide a user interface that lets the user manually specify on an image of the building (e.g. a CAD drawing). Doing this will build up a database of what the RSSI is for different locations in the building. When you come to use this data for locating a user indoors, then you need an app to take the RSSI strength measurement and compare it against the database you've prepared to find the appropriate match.

Notes:
- If anyone adds/removes access points, you'll need to resample the building
- The measurements can be affected by density of people
- Some access points are variable strength access points, so the RSSI fingerprint is not consistent.
- This won't work with iPhone because there is no API to get the RSSI strength.

So, it is a useful, but not perfect way to get indoor location. There are a lot of more detailed articles on RSSI fingerprinting available.

Of course, navigation has to be built on to of that then.

飘逸的'云 2025-01-03 16:38:10

您好 Kris

我明白您在问什么,Wifi 接入点和接收器之间的距离,对吗?如果是,那么看了下面的讨论后似乎不可能。

点击此处查看

Hi Kris

I understood what you are asking, The distance between Wifi access point and the Receiver, correct ? If yes, then it seem to be not possible after watching the discussion below.

Click here to see

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文