简体   繁体   English

Android自定义Wifi扫描

[英]Android Customize Wifi Scan

I am interested in scanning only a particular set of frequencies for a particular time interval (this is different from scanning interval in android api). 我对在特定时间间隔内仅扫描一组特定频率感兴趣(这与android API中的扫描间隔不同)。 Is there any high level api 有没有高级API

or 要么

user to kernel space communication interfaces, mechanisms (sysfs,iotctl,mmap etc.) (in a rooted device) that can allow me to specify the set of frequencies to be scanned for a particular interval of time. 用户到内核空间的通信接口,机制(sysfs,iotctl,mmap等)(在有根设备中),可以使我指定在特定时间间隔内要扫描的频率集。 If I understand correctly the device supplicant carries this information? 如果我正确理解设备请求方是否提供此信息?

Would very much appreciate if anyone can point me in right direction. 如果有人能指出我正确的方向,将不胜感激。

Thanks in advance!! 提前致谢!!

See my answer on android.sx . 在android.sx上查看我的答案 Basically, install iw on your device and then call: 基本上,在您的设备上安装iw ,然后调用:

iw dev wlan0 scan freq 2417

However, I do not know how this interacts with the supplicant/connection manager. 但是,我不知道它如何与请求者/连接管理器交互。 We use it to measure RSSI only. 我们仅使用它来测量RSSI。

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

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