在Android中使用WiFi的位置和距离计算 [英] Location and distance calculation using Wifi in android

查看:547
本文介绍了在Android中使用WiFi的位置和距离计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让我们从一个WiFi热点移动设备之间的距离保持在建筑物内?这基本上是对建筑物内的导航目的..任何帮助将是AP preciated。

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.

推荐答案

如果你想使用无线网络的室内定位(导航前步骤1),然后可到无线接入点是不正确的做法。而是使用 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.

使用Android的,你需要采取建筑物的无线指纹通过前后移动每隔数米,<一个href="http://developer.android.com/reference/android/net/wifi/WifiManager.html#calculateSignalLevel%28int,%20int%29">sample RSSI的实力。您需要提供一个用户界面,让用户的建筑物(如CAD图)的图像上手动指定。这样做将建立的RSSI是在建筑物的不同位置的数据库。当你使用这个数据的用户定位在室内,则需要一个应用程序采取RSSI强度测量和对你已经ppared找到合适的匹配$ P $数据库进行比较。

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.

注意: - 如果有人添加/删除接入点,你就需要重新取样建设 - 测量会受到人密度 - 一些接入点是可变强度的接入点,所以RSSI指纹并不一致。 - 这不会与iPhone工作,因为没有API来获得RSSI强度

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.

所以,这是获得室内的位置,但它不是完美的方式。有很多关于RSSI指纹更详细的文章可用。

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.

这篇关于在Android中使用WiFi的位置和距离计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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