[go: up one dir, main page]

CN103379480B - Wireless network connecting method and device - Google Patents

Wireless network connecting method and device Download PDF

Info

Publication number
CN103379480B
CN103379480B CN201210112945.3A CN201210112945A CN103379480B CN 103379480 B CN103379480 B CN 103379480B CN 201210112945 A CN201210112945 A CN 201210112945A CN 103379480 B CN103379480 B CN 103379480B
Authority
CN
China
Prior art keywords
wireless network
access point
network access
filtered
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210112945.3A
Other languages
Chinese (zh)
Other versions
CN103379480A (en
Inventor
何飞
陈旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210112945.3A priority Critical patent/CN103379480B/en
Publication of CN103379480A publication Critical patent/CN103379480A/en
Application granted granted Critical
Publication of CN103379480B publication Critical patent/CN103379480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of wireless network connecting method and devices, belong to computer network field.The described method includes: judging whether the mobile terminal has currently accessed wireless network;When determining the mobile terminal and being not connected to wireless network, a wireless network scan is initiated at predetermined time intervals, and the available wireless network access point obtained after scanning is filtered according to pre-defined rule;Filtered wireless network access point is shown, and responds selection of the user to the filtered wireless network access point, and then creates the wireless network connection for corresponding to the wireless network access point selected.The wireless network connecting method and device according to scanning result of the pre-defined rule to wireless network scan by being filtered, then filtered available wireless network access point is fed back into user, operation requirement when reducing connection wireless network to user, has achieved the effect that ordinary user is enable more easily to access wireless network.

Description

Wireless network connecting method and device
Technical field
The present invention relates to computer network field, in particular to a kind of wireless network connecting method and device.
Background technique
Wireless LAN (Wireless Local Area Networks, hereinafter referred to as WLAN) is a kind of using radio frequency The local area network that technology replaces old-fashioned copper twisted pairs to be constituted, it is that modern notebook, tablet computer and smart phone etc. are mobile One of more commonly used wireless network of terminal.
By taking smart phone as an example, a kind of existing wireless network connecting method specifically includes that first, near user knows It there are when WLAN, issues instruct to smart phone manually, so that smart phone starts WLAN scanning;Second, smart phone will be swept The mark of the available WLAN of one or more retouched is shown to user with tabular form;Third, user select one of them WLAN establishes connection.In establishment process, the WLAN of encryption is also needed to input corresponding password by user, for being not added Close open WLAN can directly establish connection.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: sending out in the prior art The major way of existing available WLAN is to scan by user itself to initiate WLAN, needs user to WlAN configured with to a certain degree Understanding, namely it is more demanding to the operation of user.
Summary of the invention
Operation requirement when in order to reduce access wireless network to user, the embodiment of the invention provides a kind of wireless networks Connection method and device.The technical solution is as follows:
According to an aspect of the present invention, the embodiment of the invention provides a kind of wireless network connecting method, it is suitable for moving In dynamic terminal, which comprises
Judge whether the mobile terminal has currently accessed wireless network;
When determining the mobile terminal and being not connected to wireless network, a wireless network is initiated at predetermined time intervals and is swept It retouches, and the available wireless network access point obtained after scanning is filtered according to pre-defined rule;
Filtered wireless network access point is shown, and responds user and the filtered wireless network is accessed The selection of point, and then create the wireless network connection for corresponding to the wireless network access point selected.
It is further, described to judge whether the mobile terminal has currently accessed before wireless network, further includes:
Judge whether to receive network access request;
If it is determined that receiving network access request, then executes and judge whether the mobile terminal has currently accessed wireless network The step of network.
Further, the available wireless network access point that will be obtained after scanning is filtered it according to pre-defined rule Afterwards, it is described filtered wireless network access point is shown before, further includes:
The filtered available wireless network access point is arranged according to signal strength size or access times size Sequence.
Further, the available wireless network access point that will be obtained after scanning is filtered according to pre-defined rule, tool Body includes:
The network type of available wireless network access point obtained after the scanning is judged, if it is determined that obtaining after the scanning The available wireless network access point obtained configured refined net for open network or, then retained;
If it is determined that the available wireless network access point obtained after the scanning is the refined net being not configured, then carry out Filtering.
Further, the available wireless network access point that will be obtained after scanning is filtered according to pre-defined rule, tool Body includes;
The available wireless network access point obtained after the scanning is compared with last time wireless network scan result;
If wireless network access point and the last time wireless network scan knot in the available wireless network access point Wireless network access point in fruit is not identical, then is retained;
If wireless network access point and the last time wireless network scan knot in the available wireless network access point Wireless network access point in fruit is identical, then is filtered.
According to another aspect of the present invention, the embodiment of the present invention also provides a kind of wireless network connection device, is suitable for moving In dynamic terminal, described device includes:
Network judgment module, for when receiving network connecting request, judging whether the mobile terminal has currently connect Enter wireless network;
Network sweep module, for when determining the mobile terminal and being not connected to wireless network, at predetermined time intervals A wireless network scan is initiated, and the available wireless network access point obtained after scanning is filtered according to pre-defined rule;
Network access module for showing filtered wireless network access point, and responds user to the mistake The selection of wireless network access point after filter, and then create the wireless network connection for corresponding to the wireless network access point selected
Further, the wireless network connection device further include: access judgment module;
The access judgment module receives network access request for judging whether;
The network judgment module, if receiving network access request for accessing judgment module judgement, execution is sentenced The step of whether mobile terminal that breaks currently has accessed wireless network.
Further, the wireless network connection device, further includes: network sorting module;
The network sorting module, the filtered available wireless network access for obtaining the network sweep module Point is ranked up according to signal strength size or access times size.
Further, the network sweep module, specifically includes: type judgment sub-unit, the first filtering subelement and the Two filtering subelements;
The type judgment sub-unit, the network class of the available wireless network access point for judging to obtain after the scanning Type;
The first filtering subelement, if determined for the type judgment sub-unit obtain after the scanning can It is open network or configured refined net with wireless network access point, then is retained;
The second filtering subelement, if determined for the type judgment sub-unit obtain after the scanning can It is the refined net being not configured with wireless network access point, then is filtered.
Further, the network sweep module, specifically includes;As a result comparing subunit, third filtering subelement and the Four filtering subelements;
The result comparing subunit, the available wireless network access point and last time for will obtain after the scanning are wireless Network sweep result is compared;
The third filters subelement, if in the available wireless network access point wireless network access point with Wireless network access point in the last time wireless network scan result is not identical, then is retained;
It is described 4th filtering subelement, if in the available wireless network access point wireless network access point with Wireless network access point in the last time wireless network scan result is identical, then is filtered.
Technical solution provided in an embodiment of the present invention has the benefit that
By being filtered according to scanning result of the pre-defined rule to wireless network scan, then by filtered available nothing Line network access point feeds back to user, and operation requirement when reducing connection wireless network to user, having reached makes ordinary user The effect of wireless network can more easily be accessed.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the method flow diagram for the wireless network connecting method that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of wireless network connecting method provided by Embodiment 2 of the present invention;
Fig. 3 is the structural block diagram for the wireless network connection device that the embodiment of the present invention three provides;
Fig. 4 is the structural block diagram for the network sweep module that the embodiment of the present invention three provides;
Fig. 5 is another structural block diagram for the network sweep module that the embodiment of the present invention three provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
Referring to FIG. 1, the method flow diagram of the wireless network connecting method provided it illustrates the embodiment of the present invention one.It should Wireless network connecting method can be used in the mobile terminal of such as tablet computer, smart phone and notebook etc, this is wireless Method for connecting network may include:
Step 102, judge whether mobile terminal has currently accessed wireless network;
Mobile terminal may determine that currently whether accessed wireless network first, and wireless network herein specifically refers to Wlan network.
Step 104, when determining mobile terminal and being not connected to wireless network, a wireless network is initiated at predetermined time intervals Network scanning, and the available wireless network access point obtained after scanning is filtered according to pre-defined rule;
When mobile terminal, which determines, is not currently connected to wireless network, a wireless network is initiated at predetermined time intervals and is swept It retouches, the multiple wireless network access points obtained after wireless network scan can also be filtered by mobile terminal according to pre-defined rule After be supplied to user, which, which may is that, only retains open WLAN and configured encryption WLAN, and filters out and do not match The encryption WLAN set.
Step 106, filtered wireless network access point is shown, and responds user to filtered wireless network The selection of access point, and then create the wireless network connection for corresponding to the wireless network access point selected.
Filtered multiple WLAN access points can be fed back to use on itself screen by mobile terminal in a manner of list Family.User can select in this multiple WLAN, may then pass through pressing respective physical keyboard or touch display screen Corresponding position one in this multiple WLAN chosen, to send selection signal to mobile terminal.It is sent out in user After sending selection signal, mobile terminal can according to the selection signal received in this multiple WLAN access point selected in that One WLAN access point creates wireless network connection.
In conclusion the embodiment of the present invention one provide wireless network connecting method by according to pre-defined rule to wireless network The scanning result of network scanning is filtered, and filtered available wireless network access point is then fed back to user, the company of reducing Operation requirement when connecing wireless network to user, has achieved the effect that ordinary user is enable more easily to access wireless network.
Embodiment two
Referring to FIG. 2, it illustrates the method flow diagrams of wireless network connecting method provided by Embodiment 2 of the present invention.It should Wireless network connecting method can be used in the mobile terminal of such as tablet computer, smart phone and notebook etc, this is wireless Method for connecting network may include:
Step 201, judge whether to receive network access request;
User can pass through mobile terminal network visiting when using mobile terminal.Pass through mobile terminal accessing in user When network, network access request can be issued first, and mobile terminal then can receive the network access request.In particular, Mobile terminal can be by monitoring the foundation of socket (also referred to as socket) to determine whether receiving network access request.
Step 202, if it is determined that receiving network access request, then judge whether mobile terminal has currently accessed wireless network Network, if it is, entering step 203;If it is not, then entering step 204;
Since mobile terminal can access network in several ways, so after receiving network access request, Mobile terminal may determine that currently whether accessed wireless network, and in the present embodiment, wireless network mode herein refers to WLAN.Wherein, mobile terminal is considered not without accessing network in any manner and accessing network by non-WLAN mode Access wireless network.Non- WLAN mode can be that (Long Term Evolution, is drilled for a long time by 3G mobile network or LTE Into) access ways such as mobile network.
Step 203, if it is determined that mobile terminal has currently accessed wireless network, then stop;
If mobile terminal judgement has currently accessed WLAN, represents mobile terminal and passed through WLAN and start access number According to then without carrying out the execution of subsequent step.
Step 204, it if it is determined that mobile terminal does not access wireless network currently, then initiates at predetermined time intervals primary wireless Network sweep;
If mobile terminal judgement does not currently access wireless network, a wireless network can be initiated at predetermined time intervals Scanning, to check whether current environment has new available WLAN access point.
Step 205, the available wireless network access point obtained after scanning is filtered;
Mobile terminal can usually obtain several available WLAN access points by wireless network scan.In order to mention The more valuable information of user is supplied, mobile terminal can be filtered before these WLAN access points are fed back to user. The filter type specifically used can be the combination of any one of following two mode or both:
First way: it is filtered according to last time wireless network scan result;
Due to before this wireless network scan, the result of last time wireless network scan reference significance with higher, Namely if the available WLAN access point occurred in the result of last time wireless network scan is not easily selected by a user use, After this wireless network scan, user's selection also will be very small using a possibility that WLAN access point.For this purpose, step 205 can To specifically include:
First, the available wireless network access point obtained after scanning is compared with last time wireless network scan result;
Second, if in wireless network access point in available wireless network access point and last time wireless network scan result Wireless network access point it is not identical, then retained;
Third, if in wireless network access point in available wireless network access point and last time wireless network scan result Wireless network access point it is identical, then be filtered.
In a specific example, this wireless network scan result are as follows: WLAN1 access point, WLAN2 access point, WLAN3 access point;Last time wireless network scan result are as follows: WLAN1 access point, WLAN4 access point and WLAN5 access point.This WLAN2 access point and WLAN3 access point in the result of wireless network scan do not occur in last time wireless network scan result, So being retained;WLAN1 access point in the result of this wireless network scan goes out in last time wireless network scan result It is existing, so being filtered.Wireless network scan result after being eventually filtered are as follows: WLAN2 access point and WLAN3 access point.
The second way: it is filtered according to the network type of the available wireless network access point scanned;
Because there is the non-open type WLAN of the open WLAN not encrypted and encryption in WLAN, and under normal conditions, encryption The password of non-open type WLAN access point be that user is ignorant namely the type WLAN access point is that user is not available, So can be filtered according to the network type of available wireless network access point.For this purpose, step 205 can specifically include:
First, judge the network type of the available wireless network access point obtained after scanning;
Second, if it is determined that the available wireless network access point obtained after scanning is open network or had been configured Refined net, then retained;
Third, if it is determined that the available wireless network access point that obtains is the refined net being not configured after scanning, then into Row filtering.
In a specific example, this wireless network scan result are as follows: WLAN1 access point, WLAN2 access point and WLAN3 access point.Wherein, the network type of WLAN1 access point is the refined net being not configured, for example, for the first time search plus Close network, user's always original refined net;The network type of WLAN2 access point is configured densification network Network, such as the refined net being used by a user, inputted password via user and created network connection;WLAN3 access The network type of point is the open network of unencryption, which is the wireless network that does not need password and can access Network.Can wireless network scan result according to above-mentioned filter type, after being eventually filtered are as follows: WLAN2 access point and WLAN3 access point.
In the particular embodiment, above two filter type can be used in conjunction with.It should be noted that filtering Rule can be not limited to above two.
Step 206, by filtered available wireless network access point according to signal strength size or access times size into Row sequence;
Filtered WLAN access point can be ranked up by certain sortord, for example be used according to nearest The WLAN crossed is ranked up, is ranked up according to access times size, is ranked up according to signal strength size.Specifically When implementation, both the combination of several sortords can also be used only with a kind of sortord.Using a variety of sequence sides When the combination of formula, priority can be set for every kind of sortord, according to priority come advanced to filtered WLAN access point Then the sequence of row high priority sortord carries out the sequence of low priority sortord, to obtain final WLAN access Point list is shown.For example, the sortord of high priority is ranked up according to access times size, the row of low priority Sequential mode is ranked up according to signal strength size, then can be first big according to access times to filtered WLAN access point Small to be ranked up, then WLAN access point identical to access times is ranked up according to signal strength size.
Step 207, filtered wireless network access point is shown;
Mobile terminal can by the identification information of the available wireless network access point after filtering and sequence and the network information into Row display, the network information includes the combination of one or more of following information: signal strength, network type and cipher mode. In particular, user can will can be shown to by way of list with the identification information of WLAN access point and the network information.Its In, the identification information of WLAN access point generallys use the SSID of WLAN (Service Set Identifier, service set identifier Symbol) it characterizes, it can simply be interpreted as the title of WLAN.The network information includes the combination of one or more of following information: Signal strength, network type and cipher mode.Signal strength characterizes the signal strength of each WLAN access point, generallys use signal Lattice realize that grid more multi signal is stronger;Network type is open WLAN, configured encryption WLAN and was not configured Any one of WLAN is encrypted, cipher mode can be any one of WPA-PSK/WPA2-PSK, WEP etc..
User can select in the WLAN list that mobile terminal is shown, may then pass through pressing respective physical key One in WLAN list is chosen in the corresponding position of disk or touch display screen, selects to send to mobile terminal Signal.
Step 208, selection of the response user to filtered wireless network access point, and then create to correspond to and be selected The wireless network connection of wireless network access point.
After user sends selection signal, mobile terminal can be connect according to the selection signal received in this multiple WLAN That WLAN access point selected in access point creates wireless network connection.
In conclusion wireless network connecting method provided by Embodiment 2 of the present invention by according to pre-defined rule to wireless network The scanning result of network scanning is filtered, and filtered available wireless network access point is then fed back to user, the company of reducing Operation requirement when connecing wireless network to user, has achieved the effect that ordinary user is enable more easily to access wireless network. Meanwhile it being spaced the wireless network connecting method primary with regard to automatically scanning at predetermined time intervals although existing in the prior art, Using this automatically scanning mechanism will very power consumption, for being set to what power resources were saved very much for such as smart phone etc For standby, practicability is poor, and wireless network connecting method provided by Embodiment 2 of the present invention is by only receiving network visit Wireless network scan is just triggered when asking request, can make wireless network scan process that there is low-down power consumption.The present invention is real The wireless network connecting method for applying the offer of example two also passes through the mechanism for increasing and being ranked up to filtered WLAN access point, so that Mobile terminal provides more useful and easy-to-use information when WLAN access point can be used by providing to user.
Embodiment three
Referring to FIG. 3, the structural block diagram of the wireless network connection device provided it illustrates the embodiment of the present invention three.It should Wireless network connection device can be the mobile terminal of such as tablet computer, smart phone and notebook etc, the wireless network Attachment device may include access judgment module 310, network judgment module 320, network sweep module 330, network sorting module 340 and network access module 350.
Access judgment module 310 is for judging whether to receive network access request.
Network judgment module 320 is used to judge to move when the access judgement of judgment module 310 receives network access request Whether terminal has currently accessed wireless network.
Network sweep module 330 is used for when network judgment module 320 determines mobile terminal and is not connected to wireless network, A wireless network scan is initiated at predetermined time intervals, and by the available wireless network access point obtained after scanning according to pre- set pattern Then it is filtered.Network sweep module 330 may include: that type judgment sub-unit 331, first filters subelement 332 and second Subelement 333 is filtered, as shown in Figure 4.Wherein, type judgment sub-unit 331 is used for the available wireless net for judging to obtain after scanning The network type of network access point;If the first filtering subelement 332 obtains after determining scanning for type judgment sub-unit 331 Available wireless network access point be open network or configured refined net, then retained;Second filtering If it is to be not configured that subelement 333, which determines the available wireless network access point obtained after scanning for type judgment sub-unit, Refined net, then be filtered.Network sweep module 330 also may include;As a result comparing subunit 334, third cross filter Unit 335 and the 4th filtering subelement 336, as shown in Figure 5.Wherein, as a result comparing subunit 334 is used to after scanning obtain Available wireless network access point is compared with last time wireless network scan result;It can if third filtering subelement 335 is used for Not with the wireless network access point in wireless network access point and the wireless network access point in last time wireless network scan result It is identical, then retained;If the 4th filtering subelement 336 is for the wireless network access point in available wireless network access point It is identical as the wireless network access point in last time wireless network scan result, then it is filtered.
Network sorting module 340 is used for the filtered available wireless network access point for obtaining network sweep module 330 It is ranked up according to signal strength size or access times size.
What network access module 350 was used to obtain after network sorting module 340 sorts is connect by filtered wireless network Access point is shown, and respond selection of the user to filtered wireless network access point, and then is created to correspond to and be selected The wireless network connection of wireless network access point.
It should be noted that access judgment module 310 and network sorting module 340 are the module that can be preferably included.
In conclusion the embodiment of the present invention three provide wireless network connection device by according to pre-defined rule to wireless network The scanning result of network scanning is filtered, and filtered available wireless network access point is then fed back to user, the company of reducing Operation requirement when connecing wireless network to user, has achieved the effect that ordinary user is enable more easily to access wireless network. Meanwhile it being spaced the wireless network connecting method primary with regard to automatically scanning at predetermined time intervals although existing in the prior art, Using this automatically scanning mechanism will very power consumption, for being set to what power resources were saved very much for such as smart phone etc For standby, practicability is poor, and the wireless network connection device that the embodiment of the present invention three provides is by only receiving network visit Wireless network scan is just triggered when asking request, can make wireless network scan process that there is low-down power consumption.The present invention is real The wireless network connection device for applying the offer of example three also passes through the mechanism for increasing and being ranked up to filtered WLAN access point, so that Mobile terminal provides more useful and easy-to-use information when WLAN access point can be used by providing to user.
It should be understood that wireless network connection device provided by the above embodiment is when accessing wireless network, only more than The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference Functional module complete, i.e., the internal structure of device is divided into different functional modules, with complete it is described above whole or Person's partial function.In addition, wireless network connection device provided by the above embodiment belongs to wireless network connecting method embodiment Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..

Claims (2)

1.一种无线网络连接方法,适用于移动终端中,其特征在于,所述方法包括:1. A wireless network connection method, suitable for use in a mobile terminal, wherein the method comprises: 通过监控socket的建立来判断是否接收到网络访问请求;Determine whether a network access request is received by monitoring the establishment of the socket; 如果判断接收到所述网络访问请求,则判断所述移动终端当前是否已接入无线网络,所述无线网络是WLAN;If it is determined that the network access request is received, it is determined whether the mobile terminal currently has access to a wireless network, and the wireless network is a WLAN; 当判断到所述移动终端未连接至无线网络时,每隔预定时间发起一次无线网络扫描,并将扫描后获得的可用无线网络接入点根据预定规则进行过滤;When judging that the mobile terminal is not connected to the wireless network, initiate a wireless network scan every predetermined time, and filter the available wireless network access points obtained after scanning according to predetermined rules; 将过滤后的无线网络接入点的标识信息和网络信息进行显示,并响应用户对所述过滤后的无线网络接入点的选择,进而创建对应于被选择的无线网络接入点的无线网络连接,其中,所述网络信息包括信号强度、网络类型和加密方式,所述网络类型为开放式无线网络、配置过的加密无线网络和未配置过的加密无线网络;Display the identification information and network information of the filtered wireless network access point, and respond to the user's selection of the filtered wireless network access point, and then create a wireless network corresponding to the selected wireless network access point connection, wherein the network information includes signal strength, network type and encryption method, and the network type is an open wireless network, a configured encrypted wireless network and an unconfigured encrypted wireless network; 所述将扫描后获得的可用无线网络接入点根据预定规则进行过滤,具体包括:The available wireless network access points obtained after scanning are filtered according to predetermined rules, specifically including: 将所述扫描后获得的可用无线网络接入点与上次无线网络扫描结果进行比较,并判断所述扫描后获得的可用无线网络接入点的网络类型;Comparing the available wireless network access point obtained after the scanning with the last wireless network scanning result, and judging the network type of the available wireless network access point obtained after the scanning; 如果判断所述扫描后获得的可用无线网络接入点为开放式网络或者已经配置过的加密网络,且所述可用无线网络接入点与所述上次无线网络扫描结果中的无线网络接入点不相同,则进行保留;If it is determined that the available wireless network access point obtained after the scan is an open network or an encrypted network that has been configured, and the available wireless network access point is the same as the wireless network access point in the last wireless network scan result If the points are not the same, keep it; 如果判断所述扫描后获得的可用无线网络接入点为未配置过的加密网络,或者所述可用无线网络接入点中的无线网络接入点与所述上次无线网络扫描结果中的无线网络接入点相同,则进行过滤;If it is determined that the available wireless network access point obtained after the scan is an unconfigured encrypted network, or the wireless network access point in the available wireless network access point is the same as the wireless network access point in the last wireless network scan result If the network access point is the same, filter; 所述将过滤后的无线网络接入点的标识信息和网络信息进行显示之前,还包括:Before displaying the filtered identification information and network information of the wireless network access point, the method further includes: 获取多个排序方式的优先级,使用最高优先级的排序方式对所述过滤后的可用无线网络接入点进行排序,得到排序结果,其中,所述多个排序方式包括最近使用过、使用次数和信号强度大小;Acquire the priorities of multiple sorting methods, use the sorting method with the highest priority to sort the filtered available wireless network access points, and obtain a sorting result, wherein the multiple sorting methods include recently used, number of times of use and signal strength; 如果所述过滤后的可用无线网络接入点的排序结果中存在次序相同的可用无线网络接入点,则在未使用的排序方式中选取最高优先级的排序方式对所述次序相同的可用无线网络接入点进行排序。If there are available wireless network access points in the same order in the sorting result of the filtered available wireless network access points, the sorting method with the highest priority is selected from the unused sorting methods for the available wireless network access points in the same order. Network access points are sorted. 2.一种无线网络连接装置,适用于移动终端中,其特征在于,所述装置包括:2. A wireless network connection device suitable for use in a mobile terminal, wherein the device comprises: 访问判断模块,用于通过监控socket的建立来判断是否接收到网络访问请求;The access judgment module is used to judge whether a network access request is received by monitoring the establishment of the socket; 网络判断模块,用于如果访问判断模块判断接收到所述网络访问请求,则判断所述移动终端当前是否已接入无线网络,所述无线网络是WLAN;a network judging module, configured to judge whether the mobile terminal currently has access to a wireless network if the access judging module judges that the network access request is received, and the wireless network is a WLAN; 网络扫描模块,用于当判断到所述移动终端未连接至无线网络时,每隔预定时间发起一次无线网络扫描,并将扫描后获得的可用无线网络接入点根据预定规则进行过滤;a network scanning module, configured to initiate a wireless network scan every predetermined time when judging that the mobile terminal is not connected to a wireless network, and filter the available wireless network access points obtained after scanning according to a predetermined rule; 网络接入模块,用于将过滤后的无线网络接入点的标识信息和网络信息进行显示,并响应用户对所述过滤后的无线网络接入点的选择,进而创建对应于被选择的无线网络接入点的无线网络连接,其中,所述网络信息包括信号强度、网络类型和加密方式,所述网络类型为开放式无线网络、配置过的加密无线网络和未配置过的加密无线网络;The network access module is used to display the identification information and network information of the filtered wireless network access point, and respond to the user's selection of the filtered wireless network access point, and then create a wireless network corresponding to the selected wireless network access point. The wireless network connection of the network access point, wherein the network information includes signal strength, network type and encryption method, and the network type is an open wireless network, a configured encrypted wireless network and an unconfigured encrypted wireless network; 所述网络扫描模块,具体包括:结果比较子单元、类型判断子单元、第一过滤子单元和第二过滤子单元;The network scanning module specifically includes: a result comparison subunit, a type judgment subunit, a first filtering subunit and a second filtering subunit; 所述结果比较子单元,用于将所述扫描后获得的可用无线网络接入点与上次无线网络扫描结果进行比较,所述类型判断子单元,用于判断所述扫描后获得的可用无线网络接入点的网络类型;The result comparison subunit is used to compare the available wireless network access points obtained after the scanning with the results of the last wireless network scan, and the type judgment subunit is used to judge the available wireless network access points obtained after the scanning. The network type of the network access point; 所述第一过滤子单元,用于如果所述类型判断子单元判断到所述扫描后获得的可用无线网络接入点为开放式网络或者已经配置过的加密网络,且所述可用无线网络接入点与所述上次无线网络扫描结果中的无线网络接入点不相同,则进行保留;The first filtering subunit is used for if the type judging subunit determines that the available wireless network access point obtained after the scanning is an open network or an encrypted network that has been configured, and the available wireless network access point is an open network or an encrypted network that has been configured. If the access point is different from the wireless network access point in the last wireless network scan result, keep it; 所述第二过滤子单元,用于如果所述类型判断子单元判断到所述扫描后获得的可用无线网络接入点是未配置过的加密网络,或者所述可用无线网络接入点中的无线网络接入点与所述上次无线网络扫描结果中的无线网络接入点相同,则进行过滤;The second filtering subunit is used for if the type judging subunit determines that the available wireless network access point obtained after the scanning is an unconfigured encrypted network, or if the available wireless network access point is an unconfigured encrypted network. If the wireless network access point is the same as the wireless network access point in the last wireless network scan result, filtering is performed; 网络排序模块,用于获取多个排序方式的优先级,使用最高优先级的排序方式对所述过滤后的可用无线网络接入点进行排序,得到排序结果,其中,所述多个排序方式包括最近使用过、使用次数和信号强度大小;如果所述过滤后的可用无线网络接入点的排序结果中存在次序相同的可用无线网络接入点,则在未使用的排序方式中选取最高优先级的排序方式对所述次序相同的可用无线网络接入点进行排序。A network sorting module, configured to obtain the priorities of multiple sorting methods, and use the sorting method with the highest priority to sort the filtered available wireless network access points to obtain a sorting result, wherein the multiple sorting methods include Recently used, times of use and signal strength; if there are available wireless network access points in the same order in the sorting result of the filtered available wireless network access points, select the highest priority in the unused sorting method The ordering manner of ordering the available wireless network access points in the same order.
CN201210112945.3A 2012-04-17 2012-04-17 Wireless network connecting method and device Active CN103379480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210112945.3A CN103379480B (en) 2012-04-17 2012-04-17 Wireless network connecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210112945.3A CN103379480B (en) 2012-04-17 2012-04-17 Wireless network connecting method and device

Publications (2)

Publication Number Publication Date
CN103379480A CN103379480A (en) 2013-10-30
CN103379480B true CN103379480B (en) 2019-03-01

Family

ID=49463941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210112945.3A Active CN103379480B (en) 2012-04-17 2012-04-17 Wireless network connecting method and device

Country Status (1)

Country Link
CN (1) CN103379480B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394263A (en) 2014-09-30 2015-03-04 小米科技有限责任公司 Accessing point list displaying method and device
EP3270639B1 (en) * 2015-04-07 2019-06-19 Huawei Technologies Co., Ltd. Access processing method and device
CN109462880A (en) * 2015-06-30 2019-03-12 北京奇虎科技有限公司 WiFi network connection method and device
CN105072613B (en) * 2015-08-04 2019-01-08 成都世纪光合作用科技有限公司 A kind of Radio Network System and wireless network access method
CN105050163A (en) * 2015-08-24 2015-11-11 小米科技有限责任公司 Method and device for network connection
CN105357742B (en) * 2015-11-12 2019-06-14 小米科技有限责任公司 Wireless local area network access method, device and system
CN105472705B (en) * 2015-11-17 2019-07-12 Oppo广东移动通信有限公司 A kind of wireless network processing method and mobile terminal
CN105517112B (en) * 2015-12-31 2020-03-17 小米科技有限责任公司 Method and device for displaying WiFi network information
CN105916191A (en) * 2016-04-15 2016-08-31 北京小米移动软件有限公司 Displaying method and apparatus of wireless local area network title
CN106658568B (en) * 2016-12-13 2021-12-24 上海掌门科技有限公司 Method and equipment for providing available wireless access point information
CN106792673A (en) * 2017-03-10 2017-05-31 腾讯科技(深圳)有限公司 Wireless network access method and device
CN107182053B (en) * 2017-06-08 2019-06-07 上海掌门科技有限公司 A method and device for connecting a hidden wireless access point
CN107404752A (en) * 2017-07-21 2017-11-28 深圳市盛路物联通讯技术有限公司 Frequency choosing method and internet-of-things terminal based on signal intensity
CN107995669B (en) * 2017-11-29 2021-02-26 维沃移动通信有限公司 Display method of wireless access point AP information and mobile terminal
CN108495356B (en) * 2018-03-30 2020-09-25 上海连尚网络科技有限公司 A method and device for filtering wireless access points
CN108738010A (en) * 2018-04-12 2018-11-02 珠海奔图电子有限公司 The network search method of terminal, the terminal with web search function
CN108811036B (en) * 2018-05-24 2020-07-31 上海连尚网络科技有限公司 Method and apparatus for displaying wireless access point information
CN110191479B (en) * 2019-06-27 2022-03-04 澳克多普有限公司 WIFI connection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893440A (en) * 2005-07-01 2007-01-10 捷讯研究有限公司 System and method for managing forbidden network lists on a wireless user equipment (ue)
CN101502160A (en) * 2006-08-23 2009-08-05 思科技术公司 Intelligent network acquisition for wireless clients
CN101578900A (en) * 2006-11-21 2009-11-11 捷讯研究有限公司 Displaying a list of available wireless local area networks

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4397168B2 (en) * 2002-08-21 2010-01-13 レノボ シンガポール プライヴェート リミテッド Computer device and wireless network connection method
KR100644660B1 (en) * 2004-12-11 2006-11-10 삼성전자주식회사 Method and apparatus for performing network scanning
US7920531B2 (en) * 2005-10-11 2011-04-05 Hewlett-Packard Development Company, L.P. Technique for managing wireless networks
KR20090113033A (en) * 2008-04-25 2009-10-29 삼성전자주식회사 Method and device for wireless LAN setting of device
US8599767B2 (en) * 2008-06-26 2013-12-03 Netgear, Inc. Method and apparatus for scanning multi-mode wireless communication environments
EP2309790B1 (en) * 2009-10-11 2016-07-27 BlackBerry Limited Authentication failure in a wireless local area network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893440A (en) * 2005-07-01 2007-01-10 捷讯研究有限公司 System and method for managing forbidden network lists on a wireless user equipment (ue)
CN101502160A (en) * 2006-08-23 2009-08-05 思科技术公司 Intelligent network acquisition for wireless clients
CN101578900A (en) * 2006-11-21 2009-11-11 捷讯研究有限公司 Displaying a list of available wireless local area networks

Also Published As

Publication number Publication date
CN103379480A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103379480B (en) Wireless network connecting method and device
US7412237B2 (en) Information processing apparatus and information processing method
CN104918300B (en) Device and method for mobile communication
CN109246775A (en) Cell reselection method and related equipment
CN105392166B (en) Method and device for switching data network of dual-card electronic terminal
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
CN102118839A (en) PLMN (Public Land Mobile Network) network selecting method of multimode terminal
WO2017166131A1 (en) Wi-fi hot spot recommendation method, terminal and graphical user interface
CN104902547A (en) WiFi network connection method and device
CN111542073A (en) A heterogeneous network selection method and system for power service and network adaptation
CN113286332B (en) Information transmission method and equipment
CN103179636A (en) A mobile internet access point, system and partner discovery method thereof
CN105407542A (en) Wireless communication connection automatic establishment method, station apparatus and system
CN106255106A (en) A wireless network connection method and device
WO2015184820A1 (en) Wifi hotspot connection method and device
CN108769967A (en) Method is found based on GAP layers of service equipment of bluetooth
US10764821B2 (en) System and method for wireless network selection
CN112492618A (en) A network sharing method, device, electronic device and storage medium
CN105764117A (en) Method and device for accessing network
CN107371204A (en) A mobile terminal-based traffic sharing switching method, device and system
CN112423374B (en) Personal hotspot opening method, mobile terminal, electronic device and readable storage medium
CN101772056A (en) Method and system for managing multi-mode network element and multi-mode network element
CN109195203A (en) parameter configuration method, device, terminal and storage medium of wireless local area network
CN107105329A (en) A kind of intelligent television WI FI connection methods, device and intelligent television
CN104053159A (en) A frequency configuration method and device for a multi-carrier base station

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant