简体   繁体   English

在iOS 4.0及更高版本上扫描和切换Wifi网络

[英]Scanning and switching Wifi networks on iOS 4.0 and above

I am trying to find whether the private APIs listed at: http://code.google.com/p/iphone-wireless/wiki/Apple80211Functions still work with iOS 4.0 and above. 我正在尝试查找以下列出的私有API: http//code.google.com/p/iphone-wireless/wiki/Apple80211Functions是否仍适用于iOS 4.0及更高版本。 I am trying to turn the wifi ON, scan the networks available and latch on to one of the networks. 我试图打开wifi,扫描可用的网络并锁定其中一个网络。 I am not going to put the application in appStore and it is just an experiment. 我不打算将应用程序放在appStore中,它只是一个实验。 I found many applications pulled down from the appStore but they seem to have been developed on iOS versions less than 3.0. 我发现许多应用程序从appStore中删除,但它们似乎是在低于3.0的iOS版本上开发的。 I would also like to get an example if possible. 如果可能的话,我也想得到一个例子。

Please Help. 请帮忙。

I needed the same thing as you, and after some research I must say that starting from iOS 5 it is possible to scan the network list using private API on a jailbroken device only. 我需要和你一样的东西,经过一些研究后我必须说,从iOS 5开始,只能在越狱设备上使用私有API扫描网络列表。 This blog post states the following: 这篇博文说明如下:

Last year Apple has blocked wifi scanners from App Store, however till iOS5 it was still available for private usage via WiFiManager bundle. 去年Apple已经阻止了App Store中的wifi扫描仪,但是直到iOS5,它仍然可以通过WiFiManager捆绑供私人使用。

In iOS5, WifiManager bundle no more exists however 80211 functions are still available via IPConfiguration bundle. 在iOS5中,WifiManager捆绑不再存在,但仍可通过IPConfiguration捆绑提供80211功能。

The API you linked provides an open-source tool Stumbler which seems like something you were seeking. 您链接的API提供了一个开源工具Stumbler ,它看起来像您正在寻找的东西。 The tool is claimed to work under iOS 5. 该工具声称可在iOS 5下运行。

Tried stumbler for iOS5 via linking to framework 通过链接到框架尝试了iOS5的stumbler

/System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration

I could link to Apple80211Open, Apple80211BindToInterface, Apple80211Scan. 我可以链接到Apple80211Open,Apple80211BindToInterface,Apple80211Scan。 However, I only receive empty WiFi scan results on jailbroken iPhone4S / iOS 5.1.1 但是,我只能在越狱的iPhone4S / iOS 5.1.1上收到空的WiFi扫描结果

The folks from WifiFofum did a good job and have a app on cydia which runs on JB iOS 5.1.1 and does an excellent job for scanning WiFi networks (BSSID, link level, SSID, channels, ...). 来自WifiFofum的人们做得很好,并且在cydia上有一个应用程序,可以在JB iOS 5.1.1上运行,并且可以很好地扫描WiFi网络(BSSID,链路级,SSID,频道......)。

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

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