如何在android中查找另一个设备的wifi信号方向?
我正在使用我的 Android 手机作为接入点。 现在我想找到与我的手机连接的wifi设备的距离和方向。
请帮助我通过合适的示例和代码。
提前致谢。
I am using my android phone as Access Point.
Now I want to find the distance and direction of the wifi devices connected with my phone.
Please help me through suitable example and code.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我下载了你提到的Wifi Radar并尝试了它。这里有一个重要的步骤——它要求你在将设备握在身上的同时原地旋转一会儿。
所以我的猜测是它使用内部指南针来确定你指向的方向,然后测量信号。当信号变强时,表明您正在指向 AP。
由于该应用程序要求您将设备靠近身体,因此它试图将您用作盾牌,因此如果您背对着接入点,您的身体会削弱信号。
I downloaded Wifi Radar that you mentioned and tried it. There's an important step there - it asks you to rotate on the spot for a bit while holding the device to your body.
So my guess is that it uses the internal compass to figure out which direction you're pointing to, and then measures the signal. When the signal gets stronger, it figures that you're pointing toward the AP.
Since the app asks you to hold your device to your body, it's trying to use you as a shield, so if you're facing away from the AP, your body will weaken the signal.