简体   繁体   English

如何通过wifi-direct估算两个Android设备之间的距离?

[英]How to estimate distance between two android devices through wifi-direct?

I am reading about Received Signal Strength Indicator(RSSI) . 我正在阅读有关Received Signal Strength Indicator(RSSI) This could be used for our particular case, a rough estimation of distance between devices . 这可以用于我们的特殊情况,即devices之间distancerough estimation But maybe there could be something to combine in order to improve the accuracy. 但是也许可能会有一些组合以提高准确性。

There are too many variables at play to accurately determine such data. 有太多变量在起作用,无法准确确定此类数据。 It's completely impractical to obtain a reliable distance figure just looking at the RSSI. 仅查看RSSI来获得可靠的距离图是完全不切实际的。 It may give you an order of magnitude but nothing remotely accurate. 它可能会给您一个数量级,但远不能准确。

Most notable is the variety of devices and underlying hardware used. 最值得注意的是所使用的各种设备和底层硬件。 But take into account this simple example: you have 2 pairs of devices, 1 pair has good signal for a range of 30m without obstacles within and another pair has the same value for what would be considered a good signal but they are within 1m but with an obstacle which causes heavy interefernce. 但请考虑以下简单示例:您有2对设备,其中1对在30m范围内没有障碍物的情况下具有良好的信号,另一对具有被认为是良好信号的值,但它们在1m以内但具有造成严重不尊重的障碍。 Any interpretation from empirical data would be awfully inaccurate. 从经验数据得出的任何解释都是完全不准确的。

The best change you have is to pinpoint each device's location by GPS and communicate&compare coordinates. 您最好的更改是通过GPS定位每个设备的位置,并通信和比较坐标。 But again, the underlying hardware comes at play. 但是,底层硬件再次发挥作用。 Also the length of time it takes to pinpoint with a better accuracy. 精确定位所需的时间也很长。 We're talking about 5-50 meters. 我们正在谈论5-50米。 So it's basically mostly noise. 因此基本上是噪音。

Go beyond that and you go out of wi-fi direct / peer-to-peer range. 超出此范围,您将超出Wi-Fi直连/对等范围。

As such, trying to estimate distances begtween 2 android devices at this time would be in my view an utter waste of time. 因此,我认为此时尝试估算2个android设备之间的距离将完全浪费时间。 (unless you are building a huge network of interconnected wi-fi direct devices in which case you could come up with some cool applications, or at least visualisation stuff - that's a bit of a stretch considering one-to-many limitations). (除非您正在建立一个由大量相互连接的wi-fi直接设备组成的网络,在这种情况下,您可能会提出一些很酷的应用程序,或者至少是可视化方面的东西,考虑到一对多的限制,这是一个很大的负担)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM