[go: up one dir, main page]

CN103501482A - Network access method, network access device and terminal - Google Patents

Network access method, network access device and terminal Download PDF

Info

Publication number
CN103501482A
CN103501482A CN201310446675.4A CN201310446675A CN103501482A CN 103501482 A CN103501482 A CN 103501482A CN 201310446675 A CN201310446675 A CN 201310446675A CN 103501482 A CN103501482 A CN 103501482A
Authority
CN
China
Prior art keywords
access point
configuration information
current geographic
geographic position
focus
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.)
Pending
Application number
CN201310446675.4A
Other languages
Chinese (zh)
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310446675.4A priority Critical patent/CN103501482A/en
Publication of CN103501482A publication Critical patent/CN103501482A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a network access method, a network access device and a terminal and belongs to the field of network techniques. The method comprises the following steps of detecting an access point; acquiring a current geographic position if the access point is detected; inquiring pre-stored configuration information of access points which are the same as the access point in name and correspond to the current geographic position; connecting the access points according to the configuration information. According to the network access method, the network access device and the terminal disclosed by the invention, by acquiring the current geographic position when the access point is detected, inquiring the pre-stored configuration information of the access points which are the same as the access point in name and correspond to the current geographic position, and connecting the access points according to the configuration information, the problem that longer time is consumed due to the fact a terminal tries to connect WLAN (wireless local area network) hotspots by using multiple sets of configuration information which corresponds to names of the WLAN hotspots in sequence when the WLAN hotspots are the same in name exist is solved, and an effect that the WLAN hotspots are rapidly connected is achieved according to the names of the detected WLAN hotspots by combining the current geographic position.

Description

Method for network access, device and terminal
Technical field
The disclosure relates to networking technology area, particularly a kind of method for network access, device and terminal.
Background technology
Along with the development of network application, the user uses terminal by connecting WLAN(Wireless Local Area Networks, WLAN (wireless local area network)) situation of the mode accessing Internet of focus is more and more general." terminal " described herein can be any one in desktop computer, notebook, smart mobile phone, panel computer and E-book reader.
Generally, terminal connected the WLAN focus once after, can preserve the configuration informations such as title, cipher mode and password of this WLAN focus, so that while again connecting this WLAN focus, terminal can arrive corresponding configuration information according to the name query of this WLAN focus of having preserved, according to this configuration information, can connect this WLAN focus.
In realizing process of the present disclosure, the inventor finds that at least there is following shortcoming in correlation technique: if the user uses same terminal to connect the WLAN focus that a plurality of titles are identical, when terminal connects the WLAN focus of any one this title again, according to the title of WLAN focus, can inquire configuration information corresponding to many groups; Connect in the process of this WLAN focus in terminal, just need to use successively many groups of corresponding configuration informations that inquire to attempt connecting this WLAN focus; All can expend the regular hour and connect the WLAN focus with wrong configuration attempt at every turn, this expended the longer time with regard to causing before terminal connects this WLAN focus with correct configuration.
Summary of the invention
When solving the configuration information corresponding to many groups in the name query according to the WLAN focus, need to use successively many groups of corresponding configuration informations that inquire to attempt connecting the WLAN focus, connect the WLAN focus with wrong configuration attempt at every turn and all can expend the regular hour, cause expending the problem of longer time before terminal connects this WLAN focus with correct configuration, the disclosure provides a kind of method for network access, device and terminal.Described technical scheme is as follows:
On the one hand, the disclosure provides a kind of method for network access, and described method comprises:
Detect access point;
If access point detected, obtain current geographic position;
Inquire about that pre-stored and described access point have same names and corresponding to the configuration information of the access point of described current geographic position;
Connect described access point according to described configuration information.
What optionally, described inquiry was pre-stored has same names with described access point and, corresponding to the configuration information of the access point of described current geographic position, comprising:
Inquire about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position; Each access point that inquiry and described access point have same names;
Each geographical position that each access point that calculating inquires is corresponding and the distance between described current geographic position;
Detect described distance and whether surpass predetermined threshold;
Will and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
Optionally, describedly according to described configuration information, connect described access point, comprising:
If exist N group and described access point to there is same names and, corresponding to the configuration information of the access point of described current geographic position, the described N assembly information of putting sorted, wherein, N >=2;
Connect corresponding access point according to the i assembly information of putting after sequence, wherein, N>i >=1;
If successful connection, finish connection procedure;
If connect unsuccessfully, described i is added one afterwards as new i, again carry out the step that connects corresponding access point according to the i assembly information of putting.
Optionally, described the described N assembly information of putting is sorted, being comprised:
According to described N assembly put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
According to described N assembly put information respectively the connection number of times of corresponding access point sorted; Or,
According to described N assembly put information corresponding last connect hours is sorted respectively.
Optionally, described method also comprises:
If inquiry has same names and, corresponding to the configuration information of the access point of described current geographic position, receives the configuration information of described access point less than pre-stored and described access point;
Connect described access point according to the described configuration information received;
Increase the corresponding relation of the configuration information of described current geographic position and the described described access point received in the first corresponding relation.
On the other hand, provide a kind of network access device, described device comprises:
Detection module, for detection of access point;
Acquisition module, for when described detection module detects access point, obtain current geographic position;
Enquiry module, for the configuration information of the access point of inquiring about the pre-stored described current geographic position that has same names with described access point and get corresponding to described acquisition module;
The first link block, connect described access point for the described configuration information inquired according to described enquiry module.
Optionally, described enquiry module comprises:
The first query unit, for inquiring about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position;
The second query unit, each access point that there is same names for inquiry and described access point;
Computing unit, for calculating each geographical position that each access point that described the second query unit inquires is corresponding and the distance between described current geographic position;
Whether detecting unit, surpass predetermined threshold for detection of described distance;
Determining unit, for the testing result by described detecting unit for and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
Optionally, described the first link block comprises:
Sequencing unit, for existing N group and described access point to there is same names and during corresponding to the configuration information of the access point of described current geographic position, the described N assembly information of putting being sorted, wherein, N >=2;
Linkage unit, connect corresponding access point for the i assembly information of putting according to after sequence, wherein, and N>i >=1;
End unit, for when the described linkage unit successful connection, finish connection procedure;
Increase unit, when unsuccessful for connecting at described linkage unit, described i is added one rear as new i, and trigger described linkage unit executable operations again.
Optionally, described sequencing unit comprises:
Apart from subelement, for according to described N assembly, put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
The number of times subelement, for according to described N assembly, put information respectively the connection number of times of corresponding access point sorted; Or,
The chronon unit, for according to described N assembly, put information corresponding last connect hours is sorted respectively.
Optionally, described device also comprises:
Receiver module, for having same names in inquiry less than pre-stored and described access point and during corresponding to the configuration information of the access point of described current geographic position, receiving the configuration information of described access point;
The second link block, connect described access point for the described configuration information received according to described receiver module;
Increase module, for increase the corresponding relation of the configuration information of described current geographic position and the described described access point received at the first corresponding relation.
On the one hand, provide a kind of terminal again, comprised the described network access device in above-mentioned aspect.
On the one hand, provide a kind of terminal again, described terminal comprises:
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and described one or more modules have following function:
Detect access point;
If access point detected, obtain current geographic position;
Inquire about that pre-stored and described access point have same names and corresponding to the configuration information of the access point of described current geographic position;
Connect described access point according to described configuration information.
Beneficial effects more of the present disclosure can comprise:
By when access point being detected, obtain current geographic position, inquire about pre-stored and access point and there is same names and, corresponding to the configuration information of the access point of current geographic position, according to this configuration information, connect access point; Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Should be understood that, it is only exemplary that above general description and details are hereinafter described, and does not limit the disclosure.
The accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the disclosure, forms the application's a part, does not form restriction of the present disclosure.In the accompanying drawings:
Fig. 1 is the exemplary method flowchart of the method for network access that provides of embodiment of the disclosure;
Fig. 2 is the exemplary method flowchart of the method for network access that provides of another embodiment of the disclosure;
Fig. 3 is the exemplary enforcement schematic diagram of another embodiment of the disclosure;
Fig. 4 is the exemplary enforcement schematic diagram of another embodiment of the disclosure;
Fig. 5 is the exemplary enforcement schematic diagram of another embodiment of the disclosure;
Fig. 6 is the exemplary enforcement schematic diagram of another embodiment of the disclosure;
Fig. 7 is the exemplary method flowchart of the method for network access that provides of another embodiment of the disclosure;
Fig. 8 is the exemplary enforcement schematic diagram of another embodiment of the disclosure;
Fig. 9 is the exemplary enforcement schematic diagram of another embodiment of the disclosure;
Figure 10 is the example arrangement block diagram of the network access device that provides of embodiment of the disclosure;
Figure 11 is the example arrangement block diagram of the network access device that provides of another embodiment of the disclosure;
Figure 12 is the example arrangement block diagram of the network access device that provides of another embodiment of the disclosure;
Figure 13 is the structural representation of the terminal that provides of disclosure embodiment.
By above-mentioned accompanying drawing, the embodiment that the disclosure is clear and definite has been shown, hereinafter more detailed description will be arranged.These accompanying drawings and text description are not in order to limit the scope of disclosure design by any mode, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
For making purpose of the present disclosure, technical scheme and advantage clearer, below in conjunction with accompanying drawing, the disclosure is described in further detail.At this, exemplary embodiment of the present disclosure and explanation be for explaining the disclosure, but not as to restriction of the present disclosure.
Disclosure embodiment provides a kind of method for network access, device and terminal, below in conjunction with accompanying drawing, disclosure embodiment is elaborated.
Please refer to Fig. 1, it shows the exemplary method flowchart of the method for network access that embodiment of the disclosure provides.The present embodiment is applied to be connected to WLAN(Wireless Local Area Networks, WLAN with this method for network access) describe in the terminal of focus.This method for network access comprises the steps.
In step 101, detect access point.
Terminal detects access point.
In step 102, if access point detected, obtain current geographic position.
If access point detected, terminal is obtained current geographic position.
In step 103, inquire about that pre-stored and access point have same names and corresponding to the configuration information of the access point of current geographic position.
Terminal inquiry is pre-stored has same names with access point and corresponding to the configuration information of the access point of current geographic position.
In step 104, according to configuration information, connect access point.
Terminal connects access point according to configuration information.
In sum, the method for network access that disclosure embodiment provides, by when access point being detected, obtain current geographic position, inquiring about pre-stored and access point has same names and, corresponding to the configuration information of the access point of current geographic position, according to this configuration information, connects access point; Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Please refer to Fig. 2, it shows the exemplary method flowchart of the method for network access that another embodiment of the disclosure provides.The present embodiment is applied to be connected to this method for network access in the terminal of WLAN focus and describes.This method for network access comprises the steps.
In step 201, detect access point.
Terminal detects access point.
Suppose that smart mobile phone detects the WLAN focus that name is called " Public ".
In step 202, if access point detected, obtain current geographic position.
If access point detected, terminal is obtained current geographic position.
Such as, when smart mobile phone detects above-mentioned name and is called the WLAN focus of " Public ", the user can use the GPS(Global Positioning System in smart mobile phone, global positioning system) function obtains current geographic position.
In step 203, inquire about the first pre-stored corresponding relation, the corresponding relation between the configuration information that the first corresponding relation is each access point and each geographical position.
Terminal, after getting current geographic position, is inquired about the first pre-stored corresponding relation, and the first corresponding relation is the configuration information of each access point and the corresponding relation between each geographical position.Usually, the configuration information that this first corresponding relation is each access point of connecting before terminal and the corresponding relation between each geographical position, each access point can be used its name identification in the first corresponding relation.
Such as, before the user, use smart mobile phone to connect five WLAN focuses as shown in Figure 3, this smart mobile phone will be preserved configuration information and the corresponding geographical position of above-mentioned five WLAN focuses so.Wherein, configuration information generally includes title, cipher mode and the password of WLAN focus, and geographical position means with longitude and latitude usually.
For convenience of explanation, in disclosure embodiment, above-mentioned five WLAN focuses are labeled as respectively to focus A, focus B, focus C, focus D and focus E, as shown in Figure 3.
This smart mobile phone, after getting current geographic position, is inquired about configuration information and the corresponding geographical position of these five pre-stored access points.
In step 204, each access point that inquiry and access point have same names.
Each access point that terminal inquiry and the access point detected have same names.
Such as, the WLAN focus that this smart mobile phone Query Name is " Public ".The title of five WLAN focuses that connected before this smart mobile phone as shown in Figure 3, is all " Public ".
In step 205, each geographical position that each access point that calculating inquires is corresponding and the distance between current geographic position.
Each geographical position that each access point that terminal calculating inquires is corresponding and the distance between current geographic position.
Such as, each geographical position that the WLAN focus that above-mentioned five names that smart mobile phone calculating inquires are called " Public " is corresponding and the distance between current geographic position, the distance of supposing focus A, focus B, focus C, focus D and the corresponding geographical position of focus E and current geographic position is respectively 65 meters, 30 meters, 80 meters, 70 meters and 105 meters, as shown in Figure 4.
In step 206, detect distance and whether surpass predetermined threshold.
Because the coverage of each access point is limited, when surpassing the coverage of access point, think that terminal can't be connected to this access point.Terminal detects distance and whether surpasses predetermined threshold.
Such as, the scope that usually the WLAN focus covers is that radius is 100 meters, in order to guarantee the signal strength signal intensity of WLAN focus, the predetermined threshold of take here describes as 50 meters as example.The coverage that is also above-mentioned focus A, focus B, focus C, focus D and focus E is the border circular areas that radius is 50 meters.
Whether this smart mobile phone detects the distance of focus A, focus B, focus C, focus D and the corresponding geographical position of focus E and current geographic position over 50 meters.Known, the distance of the corresponding geographical position of focus B and current geographic position does not surpass 50 meters, and the distance of focus A, focus D, focus C and the corresponding geographical position of focus E and current geographic position is over 50 meters.
In step 207, will and current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of predetermined threshold be defined as thering is same names with access point and corresponding to the configuration information of the access point of current geographic position.
The configuration information that distance between that terminal will inquire and current geographic position is no more than the corresponding access point in geographical position of predetermined threshold is defined as having same names with the access point detected and corresponding to the configuration information of the access point of current geographic position.
Such as, due to the distance of the corresponding geographical position of focus B and current geographic position not over 50 meters, this smart mobile phone is in the coverage of focus B as seen from Figure 4, so the configuration information of focus B is defined as to the WLAN focus detected, have same names and corresponding to the configuration information of the WLAN focus of current geographic position.
If only exist one group with the access point detected, to there is same names and, corresponding to the configuration information of the access point of current geographic position, enter step 208;
If exist N group and the access point detected to there is same names and, corresponding to the configuration information of the access point of current geographic position, wherein, N >=2, enter step 209.
In step 208, according to configuration information, connect access point.
If only exist one group to there is same names with the access point detected and, corresponding to the configuration information of the access point of current geographic position, terminal connects access point according to configuration information.
Such as, smart mobile phone sends password " kfc321Kfc " with the cipher mode of wep according to the configuration information of focus B, can successfully connect this WLAN focus.
In step 209, the N assembly information of putting is sorted.
If exist N group and the access point detected to there is same names and, corresponding to the configuration information of the access point of current geographic position, terminal is sorted to the N assembly information of putting.
Such as, if in step 205, the distance of smart mobile phone calculating focus A, focus B, focus C, focus D and the corresponding geographical position of focus E and current geographic position is respectively 45 meters, 30 meters, 25 meters, 70 meters and 15 meters.As shown in Figure 5, O is current geographic position, and focus A to O the distance be 45 meters, focus B to O the distance be 30 meters, focus C to O the distance be 25 meters, focus D to O the distance be 70 meters, focus E to O the distance be 15 meters.The distance that testing result of step 206 is focus A, focus B, focus C and the corresponding geographical position of focus E and current geographic position does not surpass 50 meters, only has the distance of the corresponding geographical position of focus D and current geographic position over 50 meters.As shown in Figure 5, in this smart mobile phone coverage common at focus A, focus B, focus C and focus E, so in step 207, the configuration information of focus A, focus B, focus C and focus E is defined as to the WLAN focus detected, there is same names and corresponding to the configuration information of the WLAN focus of current geographic position.
When the N assembly information of putting is sorted, can according to the N assembly put information corresponding geographical position and the distance between current geographic position are sorted respectively.
Such as, and the order of the corresponding WLAN focus in each geographical position from the close-by examples to those far off of distance between current geographic position is focus E, focus C, focus B and focus A, according to N, assembly is put information institute corresponding geographical position and the order apart from the WLAN focus after being sorted between current geographic position is focus E, focus C, focus B, focus A respectively so.
When the N assembly information of putting is sorted, also can according to the N assembly put information respectively the connection number of times of corresponding access point sorted.
Such as, the connection number of times that this smart mobile phone connects focus A is 10, the connection number of times that connects focus B is 15, the connection number of times that connects focus C is 7, the connection number of times that connects focus E is 20, so according to N assembly put information institute respectively the order of the WLAN focus of the connection number of times of corresponding access point after sorting be focus E, focus B, focus A, focus C.
When the N assembly information of putting is sorted, also can according to the N assembly put information corresponding last connect hours is sorted respectively.
Such as, the last time that connects focus A of this smart mobile phone is on July 8th, 2013, the last time that connects focus B is on May 9th, 2013, the last time that connects focus C is on July 28th, 2013, the last time that connects focus E is on September 1st, 2013, so according to N assembly put information institute respectively the order of the WLAN focus of the priority of corresponding last connect hours after sorting be focus E, focus C, focus A, focus B.
In step 210, connect access point according to the information of putting of the i assembly after sequence, wherein, N>i >=1.
Terminal connects access point according to the information of putting of the i assembly after sequence.
Such as, if the order of the WLAN focus after sequence is focus E, focus C, focus B, focus A, at first, according to the configuration information of first group of WLAN focus after sequence, password " Mcdonla798 " corresponding to cipher mode transmission focus E with wpa2 connects this WLAN focus to smart mobile phone.
If successful connection, finish connection procedure;
If connect unsuccessfully, enter step 211.
In step 211, i is added one rear as new i, again carry out the assembly according to i and put the step that information connects access point.
If terminal is according to i, the assembly information of putting connects unsuccessfully, and terminal adds i one rear as new i, again carries out the assembly according to i and puts the step that information connects access point.
Such as, the configuration information that smart mobile phone is focus E according to first group of WLAN focus connect this WLAN focus unsuccessful after, the configuration information that is focus C according to second group of WLAN focus connects this access point, if successful connection finishes connection procedure; If connect unsuccessfully, again perform step 211, until successful connection or travel through above-mentioned five assembly and put information.
In sum, the method for network access that disclosure embodiment provides, by when access point being detected, obtain current geographic position, inquire about that pre-stored and access point have same names and corresponding to the configuration information of the access point of current geographic position, if only exist one group with access point, to there is same names and, corresponding to the configuration information of current geographic position access point, directly according to this configuration information, connect access point; If exist many groups and described access point to there is same names and corresponding to the configuration information of current geographic position access point, the configuration information of many groups access point sorted, connect this WLAN focus according to the configuration information of the group of the i after sequence access point, if successful connection, finish connection procedure, if connect unsuccessful, i is added to one and as new i, re-execute the step that connects access point according to the configuration information of i group access point afterwards, until the configuration information of successful connection or traversal N group access point.Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Smart mobile phone, when First Contact Connections WLAN focus, needs the user to input the password of this WLAN focus usually, and corresponding cipher mode is set, and could connect this WLAN focus.And after connecting once, this smart mobile phone can be preserved the title of this WLAN focus in this connection procedure, the password of user's input and the cipher mode of setting, so that upper while once connecting this WLAN focus, directly according to the title of WLAN focus, can inquire corresponding password and cipher mode, without the user, again arrange and can successfully connect this WLAN focus.
Such as, shown in Fig. 6, the user uses smart mobile phone to connect the WLAN focus that title is respectively " KFC " and " U.B.Ccoffee ", wherein, the cipher mode that " KFC " is corresponding is wpa(Wi-Fi Protected Access, the access of Wi-Fi network security), password is " kfc123 "; The cipher mode that " U.B.C coffee " is corresponding is wep(Wired Equivalent Privacy, Wired Equivalent Privacy), password is " ubcwelcome ".When smart mobile phone detects name while being called the WLAN focus of " KFC ", can, according to this name query to corresponding cipher mode and password, directly connect this WLAN focus; And if smart mobile phone detects name while being called the WLAN focus of " Public ", need to connect the WLAN focus according to the configuration information of user's input, and record the configuration information of this WLAN focus.
And as shown in Figure 6, when the WLAN hotspot name connected at smart mobile phone is different, this method of attachment can be connected to the WLAN focus fast; And the WLAN hotspot name connected when smart mobile phone exists when identical, said method can't realize being connected to fast the purpose of WLAN focus.
Above-mentioned when having the configuration information of the WLAN focus that a plurality of somes titles are identical in order to solve, can't obtain according to title the problem that correct configuration information connects the WLAN focus, the method for network access that the disclosure provides also can with according to name query to corresponding cipher mode and the method combination of password, the common effect that realizes connecting fast the WLAN focus.When First Contact Connections WLAN focus, record configuration information and the corresponding geographical position of this WLAN focus, so that while again connecting this WLAN focus, the purpose that according to title and the corresponding geographical position of this WLAN focus, can realize connecting fast this WLAN focus.
Following embodiment with terminal at first according to title, obtain again the configuration information of corresponding access point according to geographical position, and during less than the configuration information of corresponding access point, configuration information and the corresponding geographical position of recording this access point are that example describes in inquiry.
Please refer to Fig. 7, it shows the exemplary method flowchart of the method for network access that another embodiment of the disclosure provides.The present embodiment is applied to be connected to this method for network access in the terminal of WLAN focus and describes.This method for network access comprises the steps.
In step 701, detect access point.
Terminal detects access point.
Suppose that smart mobile phone detects the WLAN focus that name is called " Public ".
In step 702, if access point detected, obtain current geographic position.
If access point detected, terminal is obtained current geography.
Such as, name being detected while being called the WLAN focus of " Public " at smart mobile phone, the user can use the GPS function in smart mobile phone to obtain current residing geographical position.
Need to describe, step 702 also can be carried out with step 701 simultaneously.
In step 703, each access point that inquiry and access point have same names.
Terminal is according to the name query of the access point detected and each access point that this access point has same names.
Such as, this smart mobile phone is after the title that gets the WLAN focus, and in pre-stored corresponding relation, inquiry is corresponding to the WLAN focus of this title.
As shown in Figure 8, suppose to connect seven WLAN focuses before this smart mobile phone, this smart mobile phone is preserved above-mentioned seven WLAN focuses so.And exist name to be called the WLAN focus of " Public " in seven WLAN focuses.
If inquire the access point that there is same names with the access point detected, enter step 704;
If the access point that inquiry has same names less than the access point with detecting, enter step 714.
In step 704, obtain the number that there is the access point of same names with access point.
If the access point that inquiry has same names less than the access point with detecting, terminal is obtained the number that has the access point of same names with the access point detected.
Such as, as shown in Figure 8, in seven WLAN focuses that connected, there are five for the WLAN focus in title " Public " before this smart mobile phone, the number that has a WLAN focus of same names with the WLAN focus detected is 5.
If the name of the WLAN focus detected in step 701 is called " KFC ", as shown in Figure 8, the number that name is called the WLAN focus of " KFC " is 1.
If having the number of the access point of same names with the access point detected is 1, enter step 705;
Be greater than 1 if there is the number of the access point of same names with the access point detected, enter step 706.
In step 705, according to configuration information, connect access point.
If having the number of the access point of same names with access point is 1, terminal connects access point according to the configuration information of the access point of this title.
Such as, it is 1 that smart mobile phone gets a number that is called the WLAN focus of " KFC ", smart mobile phone sends password " kfc123 " with the cipher mode of wpa according to the configuration information corresponding to title " KFC ", can successfully connect this WLAN focus.
In step 706, inquire about the first pre-stored corresponding relation, the corresponding relation between the configuration information that the first corresponding relation is each access point and each geographical position.
Be greater than 1 if there is the number of the access point of same names with access point, the first pre-stored corresponding relation of terminal inquiry, the first corresponding relation is the configuration information of each access point and the corresponding relation between each geographical position.Usually, the configuration information that this first corresponding relation is each access point of connecting before terminal and the corresponding relation between each geographical position.
Such as, the title as shown in Figure 8 of using smart mobile phone to connect before the user is all configuration information and the corresponding geographical position of five WLAN focuses of " Public ".Wherein, configuration information generally includes title, cipher mode and the password of WLAN focus, and geographical position means with longitude and latitude usually.
For convenience of explanation, the WLAN focus that is all " Public " by above-mentioned five titles in disclosure embodiment is labeled as respectively focus A, focus B, focus C, focus D and focus E.
In step 707, each geographical position that each access point that calculating inquires is corresponding and the distance between current geographic position.
Each geographical position that each access point that terminal calculating inquires is corresponding and the distance between current geographic position.
Such as, each geographical position that the WLAN focus that above-mentioned five names that smart mobile phone calculating inquires are called " Public " is corresponding and the distance between current geographic position, the distance of supposing focus A, focus B, focus C, focus D and the corresponding geographical position of focus E and current geographic position is respectively 65 meters, 30 meters, 80 meters, 70 meters and 105 meters, as shown in Figure 4.
In step 708, detect distance and whether surpass predetermined threshold.
Because the coverage of each access point is limited, when surpassing the coverage of access point, think that terminal can't be connected to this access point.Terminal detects distance and whether surpasses predetermined threshold.
Such as, the scope that usually the WLAN focus covers is that radius is 100 meters, in order to guarantee the signal strength signal intensity of WLAN focus, the predetermined threshold of take here describes as 50 meters as example.The coverage that is also above-mentioned focus A, focus B, focus C, focus D and focus E is the border circular areas that radius is 50 meters.
Whether this smart mobile phone detects the distance of focus A, focus B, focus C, focus D and the corresponding geographical position of focus E and current geographic position over 50 meters, known, the distance of the corresponding geographical position of focus B and current geographic position does not surpass 50 meters, and the distance of focus A, focus D, focus C and the corresponding geographical position of focus E and current geographic position is over 50 meters.
In step 709, will and current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of predetermined threshold be defined as thering is same names with access point and corresponding to the configuration information of the access point of current geographic position.
The configuration information that distance between that terminal will inquire and current geographic position is no more than the corresponding access point in geographical position of predetermined threshold is defined as having same names with access point and corresponding to the configuration information of the access point of current geographic position.
Such as, due to the distance of the corresponding geographical position of focus B and current geographic position not over 50 meters, this smart mobile phone is in the coverage of focus B as seen from Figure 4, so the configuration information of focus B is defined as to the WLAN focus detected, have same names and corresponding to the configuration information of the WLAN focus of current geographic position.
If only exist one group with the access point detected, to there is same names and, corresponding to the configuration information of the access point of current geographic position, enter step 710;
If exist N group and the access point detected to there is same names and, corresponding to the configuration information of the access point of current geographic position, wherein, N >=2, enter step 711.
In step 710, according to configuration information, connect access point.
If only exist one group to there is same names with the access point detected and, corresponding to the configuration information of the access point of current geographic position, terminal connects access point according to this configuration information.
Such as, smart mobile phone sends password " kfc321Kfc " with the cipher mode of wep according to the configuration information of focus B, can successfully connect this WLAN focus.
Step 711, sorted to the N assembly information of putting.
If exist N group and the access point detected to there is same names and, corresponding to the configuration information of the access point of current geographic position, terminal is sorted to the N assembly information of putting.
Such as, if in step 707, the distance of smart mobile phone calculating focus A, focus B, focus C, focus D and the corresponding geographical position of focus E and current geographic position is respectively 45 meters, 30 meters, 25 meters, 70 meters and 15 meters, as shown in Figure 5.The distance that testing result of step 708 is focus A, focus B, focus C and the corresponding geographical position of focus E and current geographic position does not surpass 50 meters, only has the distance of the corresponding geographical position of focus D and current geographic position over 50 meters.As shown in Figure 5, in this smart mobile phone coverage common at focus A, focus B, focus C and focus E, so in step 709, the configuration information of focus A, focus B, focus C and focus E is defined as to the WLAN focus detected, there is same names and corresponding to the configuration information of the WLAN focus of current geographic position.
When the N assembly information of putting is sorted, can according to the N assembly put information corresponding geographical position and the distance between current geographic position are sorted respectively.
Such as, and the order of each WLAN focus from the close-by examples to those far off of distance between current geographic position is focus E, focus C, focus B and focus A, according to N, assembly is put information institute corresponding geographical position and the order apart from the WLAN focus after being sorted between current geographic position is focus E, focus C, focus B, focus A respectively so.
When the N assembly information of putting is sorted, also can according to the N assembly put information respectively the connection number of times of corresponding access point sorted.
Such as, the connection number of times that this smart mobile phone connects focus A is 10, the connection number of times that connects focus B is 15, the connection number of times that connects focus C is 7, the connection number of times that connects focus E is 20, so according to N assembly put information institute respectively the order of the WLAN focus of the connection number of times of corresponding access point after sorting be focus E, focus B, focus A, focus C.
When the N assembly information of putting is sorted, also can according to the N assembly put information corresponding last connect hours is sorted respectively.
Such as, the last time that connects focus A of this smart mobile phone is on July 8th, 2013, the last time that connects focus B is on May 9th, 2013, the last time that connects focus C is on July 28th, 2013, the last time that connects focus E is on September 1st, 2013, so according to N assembly put information institute respectively the order of the WLAN focus of the priority of corresponding last connect hours after sorting be focus E, focus C, focus A, focus B.
In step 712, connect access point according to the information of putting of the i assembly after sequence, wherein, N>i >=1.
Terminal connects access point according to the information of putting of the i assembly after sequence.
Such as, if the order of the WLAN focus after sequence is focus E, focus C, focus B, focus A,, at first according to the configuration information of first group of WLAN focus after sequence, password " Mcdonla798 " corresponding to cipher mode transmission focus E with wpa2 connects this WLAN focus.
If successful connection, finish connection procedure;
If connect unsuccessfully, enter step 713.
In step 713, i is added one rear as new i, again carry out the assembly according to i and put the step that information connects access point.
If terminal is according to i, the assembly information of putting connects unsuccessfully, and terminal adds i one rear as new i, again carries out the assembly according to i and puts the step that information connects access point.
Such as, the configuration information that smart mobile phone is focus E according to first group of WLAN focus connect this WLAN focus unsuccessful after, the configuration information that is focus C according to second group of WLAN focus connects this access point, if successful connection finishes connection procedure; If connect unsuccessfully, again perform step 712, until the configuration information of successful connection or traversal N group access point.
In step 714, receive the configuration information of access point.
If terminal inquiry is less than the configuration information of the pre-stored access point corresponding to this title, terminal may be this access point of First Contact Connections, need the user manually to input the password of this access point and corresponding cipher mode is set, terminal receives the configuration information that this access point is corresponding.
Such as, if the name of the WLAN focus that step 701 gets is called " PPMM ", in the corresponding relation of this smart mobile phone storage, inquiry is called the configuration information of " PPMM " less than name, needs so the user manually to input the password of this WLAN focus and corresponding cipher mode is set.Suppose, the password that this name of user's input is called the access point of " PPMM " is " ppmm ", and cipher mode is wep, and this smart mobile phone receives this password and cipher mode.
In step 715, according to the configuration information received, connect access point.
Terminal connects access point according to the configuration information received.
Such as, this smart mobile phone sends password " ppmm " with the cipher mode of wep, can connect this WLAN focus.
In step 716, increase the corresponding relation of current geographic position and the configuration information of the access point received in the first corresponding relation.
Such as, after successfully connecting this WLAN focus, this smart mobile phone increases the corresponding relation of current geographic position and the configuration information of the access point that receives in the first corresponding relation.After increase, as shown in Figure 9, this smart mobile phone connected eight WLAN focuses.
In sum, the method for network access that disclosure embodiment provides, by the corresponding configuration information according to the name query of access point at first, if inquiry is less than corresponding configuration information, receive the configuration information of user's input, and preserve title, configuration information and the corresponding geographical position of this access point; If inquire corresponding configuration information, and only have one group of corresponding configuration information, directly according to this configuration information, connect this access point; If there are the many groups of configuration informations corresponding to this title, inquire about the configuration information of this pre-stored corresponding access point in current geographical position, if only there is one group of configuration information corresponding to the current geographic position access point, directly according to this configuration information, connect access point; If there are the many groups of configuration informations corresponding to the current geographic position access point, many assembly information of putting is sorted, connect this WLAN focus according to the i assembly information of putting after sequence, if successful connection, finish connection procedure, if connect unsuccessfully, i is added to one and re-execute according to i assembly as new i and put the step that information connects access point afterwards, until information is put in successful connection or traversal N assembly.Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Please refer to Figure 10, it shows the example arrangement block diagram of the network access device that embodiment of the disclosure provides.This network access device can by software, hardware or both in conjunction with realizing becoming all or part of in terminal, this network access device can comprise:
Detection module 1010, for detection of access point.
Acquisition module 1020, for when described detection module 1010 detects access point, obtain current geographic position.
Enquiry module 1030, for inquiring about, the pre-stored described access point detected with described detection module 1010 has same names and the configuration information of the access point of the described current geographic position that gets corresponding to described acquisition module 1020.
The first link block 1040, connect described access point for the described configuration information inquired according to described enquiry module 1030.
In sum, the network access device that disclosure embodiment provides, by when access point being detected, obtain current geographic position, inquiring about pre-stored and access point has same names and, corresponding to the configuration information of the access point of current geographic position, according to this configuration information, connects access point; Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Please refer to Figure 11, it shows the example arrangement block diagram of the network access device that another embodiment of the disclosure provides.This network access device can by software, hardware or both in conjunction with realizing becoming all or part of in terminal, this network access device can comprise:
Detection module 1110, for detection of access point.
Acquisition module 1120, for when described detection module 1110 detects access point, obtain current geographic position.
Enquiry module 1130, for inquiring about, the pre-stored described access point detected with described detection module 1110 has same names and the configuration information of the access point of the described current geographic position that gets corresponding to described acquisition module 1120.
Described enquiry module 1130 comprises:
The first query unit 1131, for inquiring about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position;
The second query unit 1132, each access point that there is same names for inquiry and described access point;
Computing unit 1133, for calculating each geographical position that each access point that described the second query unit 1132 inquires is corresponding and the distance between described current geographic position;
Detecting unit 1134, whether the described distance of calculating for detection of described computing unit 1133 surpasses predetermined threshold;
Determining unit 1135, for the testing result by described detecting unit 1134 for and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
The first link block 1140, connect described access point for the described configuration information inquired according to described enquiry module 1130.
Described the first link block 1140 comprises:
Sequencing unit 1141, for existing N group and described access point to there is same names and during corresponding to the configuration information of the access point of described current geographic position, the described N assembly information of putting being sorted, wherein, N >=2;
Described sequencing unit 1141 comprises:
Apart from subelement 1141a, for according to described N assembly, put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
Number of times subelement 1141b, for according to described N assembly, put information respectively the connection number of times of corresponding access point sorted; Or,
Chronon unit 1141c, for according to described N assembly, put information corresponding last connect hours is sorted respectively.
Linkage unit 1142, connect corresponding access point for the i assembly information of putting according to after described sequencing unit 1141 sequences, wherein, and N>i >=1;
End unit 1143, for when described linkage unit 1142 successful connection, finish connection procedure;
Increase unit 1144, when unsuccessful for connecting at described linkage unit 1142, described i is added one rear as new i, and trigger linkage unit 1142.
In sum, the network access device that disclosure embodiment provides, by when access point being detected, obtain current geographic position, inquire about that pre-stored and access point have same names and corresponding to the configuration information of the access point of current geographic position, if only exist one group with access point, to there is same names and, corresponding to the configuration information of current geographic position access point, directly according to this configuration information, connect access point; If exist many groups and described access point to there is same names and corresponding to the configuration information of current geographic position access point, the configuration information of many groups access point sorted, connect this WLAN focus according to the configuration information of the group of the i after sequence access point, if successful connection, finish connection procedure, if connect unsuccessful, i is added to one and as new i, re-execute the step that connects access point according to the configuration information of i group access point afterwards, until the configuration information of successful connection or traversal N group access point.Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Please refer to Figure 12, it shows the example arrangement block diagram of the network access device that another embodiment of the disclosure provides.This network access device can by software, hardware or both in conjunction with realizing becoming all or part of in terminal, this network access device can comprise:
Detection module 1210, for detection of access point.
Acquisition module 1220, for when described detection module 1210 detects access point, obtain current geographic position.
Name query module 1230, detect with described detection module 1210 access point that access point has same names for the inquiry of the corresponding relation pre-stored.
Group number acquisition module 1240, when for inquiring in described name query module 1230, with described detection module 1210, access point being detected and have the access point of same names, obtain the group number corresponding to the configuration information of the access point of described title.
The 3rd link block 1250, be 1 o'clock for the group number got at described group of number acquisition module 1240, according to described configuration information, connects described access point.
Enquiry module 1260, be greater than at 1 o'clock for the group number got at described group of number acquisition module 1240, inquires about the configuration information of the access point of the pre-stored described current geographic position got corresponding to described acquisition module 1220.
Described enquiry module 1260 comprises:
Query unit 1261, for inquiring about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position;
Computing unit 1262, for calculating the distance between described each geographical position and described current geographic position;
Detecting unit 1263, whether the described distance of calculating for detection of described computing unit 1262 surpasses predetermined threshold;
Determining unit 1264, for the testing result by described detecting unit 1263 for and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
Described the 3rd link block 1250, also the group number for the configuration information corresponding to described access point that inquires at described enquiry module 1260 is 1 o'clock, according to described configuration information, connects described access point.
The first link block 1270, while for the group number of the configuration information corresponding to described access point that inquires at described enquiry module 1260, being N, N >=2, connect described access point according to the described configuration information inquired.
Described the first link block 1270 comprises:
Sequencing unit 1271, for when existing the N assembly to put information, sorted to the described N assembly information of putting;
Described sequencing unit 1271 comprises:
Apart from subelement 1271a, for according to described N assembly, put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
Number of times subelement 1271b, for according to described N assembly, put information respectively the connection number of times of corresponding access point sorted; Or,
Chronon unit 1271c, for according to described N assembly, put information corresponding last connect hours is sorted respectively.
Linkage unit 1272, connect described access point for the i assembly information of putting according to after sequence, wherein, and N>i >=1;
End unit 1273, for when described linkage unit 1272 successful connection, finish connection procedure;
Increase unit 1274, when unsuccessful for connecting at described linkage unit 1272, described i is added one rear as new i, and trigger linkage unit 1272 executable operations again.
Receiver module 1280, for having same names in 1260 inquiries of described enquiry module less than pre-stored and described access point and during corresponding to the configuration information of the access point of described current geographic position, receiving the configuration information of described access point.
The second link block 1285, connect described access point for the described configuration information received according to described receiver module 1285.
Increase module 1290, for increase the corresponding relation of the configuration information of described current geographic position and the described described access point received at the first corresponding relation.
In sum, the network access device that disclosure embodiment provides, by the corresponding configuration information according to the name query of access point at first, if inquiry is less than corresponding configuration information, receive the configuration information of user's input, and preserve title, configuration information and the corresponding geographical position of this access point; If inquire corresponding configuration information, and only have one group of corresponding configuration information, directly according to this configuration information, connect this access point; If there are the many groups of configuration informations corresponding to this title, inquire about the configuration information of this pre-stored corresponding access point in current geographical position, if only there is one group of configuration information corresponding to the current geographic position access point, directly according to this configuration information, connect access point; If there are the many groups of configuration informations corresponding to the current geographic position access point, many assembly information of putting is sorted, connect this WLAN focus according to the i assembly information of putting after sequence, if successful connection, finish connection procedure, if connect unsuccessfully, i is added to one and re-execute according to i assembly as new i and put the step that information connects access point afterwards, until information is put in successful connection or traversal N assembly.Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Please refer to Figure 13, it shows the structural representation of the terminal that disclosure embodiment provides.The method that this terminal can provide for implementing above-described embodiment.
Terminal equipment 1300 can comprise communication unit 1310, include the memory 1320 of one or more computer-readable recording mediums, input unit 1330, display unit 1340, transducer 1350, voicefrequency circuit 1360, WIFI(Wireless Fidelity, Wireless Fidelity) module 1370, include more than one or one the parts such as the processor 1380 of processing core and power supply 1390.It will be understood by those skilled in the art that the terminal equipment structure shown in figure does not form the restriction to terminal equipment, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.Wherein:
Communication unit 1310 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, this communication unit 1310 can be RF(Radio Frequency, radio frequency) circuit, router, modulator-demodulator, etc. network communication equipment.Especially, when communication unit 1310 is the RF circuit, after the downlink information of base station is received, transfer to one or above processor 1380 processing; In addition, will relate to up data and send to base station.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA(Low Noise Amplifier, low noise amplifier), duplexer etc.In addition, communication unit 1310 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM(Global System of Mobile communication, global system for mobile communications), GPRS(General Packet Radio Service, general packet radio service), CDMA(Code Division Multiple Access, code division multiple access), WCDMA(Wideband Code DivisionMultiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE(Long Term Evolution, Long Term Evolution), Email, SMS(Short Messaging Service, Short Message Service) etc.Memory 1320 can be used for storing software program and module, and processor 1380 is stored in software program and the module of memory 1320 by operation, thereby carries out various function application and data processing.Memory 1320 can mainly comprise storage program district and storage data field, wherein, but the required application program (such as sound-playing function, image player function etc.) of storage program district storage operation system, at least one function etc.; The data (such as voice data, phone directory etc.) that the use according to terminal equipment 1300 creates etc. can be stored in the storage data field.In addition, memory 1320 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 1320 can also comprise Memory Controller, so that the access of processor 1380 and 1330 pairs of memories 1320 of input unit to be provided.
Input unit 1330 can be used for receiving numeral or the character information of input, and generation arranges with the user and function is controlled relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Optionally, input unit 1330 can comprise touch-sensitive surperficial 1331 and other input equipments 1332.Touch-sensitive surperficial 1331, also referred to as touch display screen or Trackpad, can collect the user or near touch operation (use any applicable objects such as finger, stylus or annex such as the user on touch-sensitive surperficial 1331 or near the operation touch-sensitive surperficial 1331) thereon, and drive corresponding jockey according to predefined formula.Optionally, touch-sensitive surperficial 131 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 1380, and the order that energy receiving processor 1380 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touch-sensitive surperficial 1331.Except touch-sensitive surperficial 1331, input unit 1330 can also comprise other input equipments 1332.Preferably, other input equipments 1332 can include but not limited to one or more in physical keyboard, function key (controlling button, switch key etc. such as volume), trace ball, mouse, action bars etc.
Display unit 1340 can be used for demonstration by the information of user's input or offers user's information and the various graphical user interface of terminal equipment 1300, and these graphical user interface can consist of figure, text, icon, video and its combination in any.Display unit 1340 can comprise display floater 1341, optionally, can adopt LCD(Liquid Crystal Display, liquid crystal display), OLED(Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display floater 1341.Optionally, touch-sensitive surperficial 1331 can cover display floater 1341, when touch-sensitive surperficial 1331 detect thereon or near touch operation after, send processor 1380 to determine the type of touch event, with preprocessor 1380, according to the type of touch event, provide corresponding vision output on display floater 1341.Although in Figure 13, touch-sensitive surperficial 1331 with display floater 1341 be as two independently parts realize input and input function, in certain embodiments, can by touch-sensitive surperficial 1331 and display floater 1341 integrated and realize the input and output function.
Terminal equipment 1300 also can comprise at least one transducer 1350, such as optical sensor, motion sensor and other transducers.Optical sensor can comprise ambient light sensor and proximity transducer, wherein, ambient light sensor can be regulated according to the light and shade of ambient light the brightness of display floater 1341, and proximity transducer can, when terminal equipment 1300 moves in one's ear, cut out display floater 1341 and/or backlight.A kind of as motion sensor, Gravity accelerometer can detect on all directions the size of the acceleration that (is generally three axles), size and the direction of gravity be can detect when static, application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, knock) of mobile phone attitude etc. can be used for identifying; As for terminal equipment 1300 other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 1360, loud speaker 1361, microphone 1362 can provide the audio interface between user and terminal equipment 1300.Voicefrequency circuit 1360 can be transferred to loud speaker 1361 by the signal of telecommunication after the voice data conversion received, and by loud speaker 1361, is converted to voice signal output; On the other hand, microphone 1362 is converted to the signal of telecommunication by the voice signal of collection, be converted to voice data after being received by voicefrequency circuit 1360, after again voice data output processor 1380 being processed, to send to such as another terminal equipment, or export voice data to memory 1320 in order to further process through RF circuit 1310.Voicefrequency circuit 1360 also may comprise earphone jack, so that communicating by letter of peripheral hardware earphone and terminal equipment 1300 to be provided.
In order to realize radio communication, can dispose wireless communication unit 1370 on this terminal equipment, this wireless communication unit 1370 can be the WIFI module.WIFI belongs to the short range wireless transmission technology, terminal equipment 1300 by wireless communication unit 1370 can help that the user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for the user.Although there is shown wireless communication unit 1370, be understandable that, it does not belong to must forming of terminal equipment 1300, fully can be as required in the scope that does not change disclosed essence and omit.
Processor 1380 is control centres of terminal equipment 1300, utilize the various piece of various interface and the whole mobile phone of connection, be stored in software program and/or the module in memory 1320 by operation or execution, and call the data that are stored in memory 1320, carry out various functions and the deal with data of terminal equipment 1300, thereby mobile phone is carried out to integral monitoring.Optionally, processor 1380 can comprise one or more processing cores; Optionally, processor 1380 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal equipment 1300 also comprises that the power supply 1390(powered to all parts is such as battery), optionally, power supply can be connected with processor 1380 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 1390 can also comprise one or more direct current or the random component such as AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal equipment 1300 can also comprise camera, bluetooth module etc., does not repeat them here.In the present embodiment, terminal equipment also includes memory, described memory also comprises one or more than one module, described one or an above module stores are in memory, and be configured to be carried out by one or more processors 1380, described one or more modules have following function:
Detect access point;
If access point detected, obtain current geographic position;
Inquire about that pre-stored and described access point have same names and corresponding to the configuration information of the access point of described current geographic position;
Connect described access point according to described configuration information.
Described one or more module also has following function:
Inquire about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position;
Each access point that inquiry and described access point have same names;
Each geographical position that each access point that calculating inquires is corresponding and the distance between described current geographic position;
Detect described distance and whether surpass predetermined threshold;
Will and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
Described one or more module also has following function:
If exist N group and described access point to there is same names and, corresponding to the configuration information of the access point of described current geographic position, the described N assembly information of putting sorted, wherein, N >=2;
Connect corresponding access point according to the i assembly information of putting after sequence, wherein, N>i >=1;
If successful connection, finish connection procedure;
If connect unsuccessfully, described i is added one afterwards as new i, again carry out the step that connects corresponding access point according to the i assembly information of putting.
Described one or more module also has following function:
According to described N assembly put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
According to described N assembly put information respectively the connection number of times of corresponding access point sorted; Or,
According to described N assembly put information corresponding last connect hours is sorted respectively.
Described one or more module also has following function:
If inquiry has same names and, corresponding to the configuration information of the access point of described current geographic position, receives the configuration information of described access point less than pre-stored and described access point;
Connect described access point according to the described configuration information received;
Increase the corresponding relation of the configuration information of described current geographic position and the described described access point received in the first corresponding relation.
In sum, the terminal that disclosure embodiment provides, by when access point being detected, obtain current geographic position, inquire about that pre-stored and access point have same names and corresponding to the configuration information of the access point of current geographic position, if only exist one group with access point, to there is same names and, corresponding to the configuration information of current geographic position access point, directly according to this configuration information, connect access point; If exist many groups and described access point to there is same names and corresponding to the configuration information of current geographic position access point, the configuration information of many groups access point sorted, connect this WLAN focus according to the configuration information of the group of the i after sequence access point, if successful connection, finish connection procedure, if connect unsuccessful, i is added to one and as new i, re-execute the step that connects access point according to the configuration information of i group access point afterwards, until the configuration information of successful connection or traversal N group access point.Solved when having the identical WLAN focus of a plurality of titles, terminal is used many assembly corresponding to this WLAN hotspot name information of putting to attempt connecting the problem that expends the long period that this WLAN focus causes successively, has reached according to the title of the WLAN focus detected and the combination realization of current geographic position and has been connected fast the effect of WLAN focus.
Embodiment of the present disclosure also provides a kind of non-volatile readable storage medium, store one or more modules (programs) in this storage medium, when these one or more modules are used in equipment, can be so that this equipment be carried out the instruction (instructions) of following steps:
Detect access point;
If access point detected, obtain current geographic position;
Inquire about that pre-stored and described access point have same names and corresponding to the configuration information of the access point of described current geographic position;
Connect described access point according to described configuration information.
Described one or more module also has following function:
Inquire about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position;
Each access point that inquiry and described access point have same names;
Each geographical position that each access point that calculating inquires is corresponding and the distance between described current geographic position;
Detect described distance and whether surpass predetermined threshold;
Will and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
Described one or more module also has following function:
If exist N group and described access point to there is same names and, corresponding to the configuration information of the access point of described current geographic position, the described N assembly information of putting sorted, wherein, N >=2;
Connect corresponding access point according to the i assembly information of putting after sequence, wherein, N>i >=1;
If successful connection, finish connection procedure;
If connect unsuccessfully, described i is added one afterwards as new i, again carry out the step that connects corresponding access point according to the i assembly information of putting.
Described one or more module also has following function:
According to described N assembly put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
According to described N assembly put information respectively the connection number of times of corresponding access point sorted; Or,
According to described N assembly put information corresponding last connect hours is sorted respectively.
Described one or more module also has following function:
If inquiry has same names and, corresponding to the configuration information of the access point of described current geographic position, receives the configuration information of described access point less than pre-stored and described access point;
Connect described access point according to the described configuration information received;
Increase the corresponding relation of the configuration information of described current geographic position and the described described access point received in the first corresponding relation.
Although the disclosed content in front shows exemplary embodiment of the present disclosure, it should be noted that under the prerequisite of the scope of the present disclosure that does not deviate from the claim restriction, can carry out multiple change and modification.According to function, step and/or the action of the claim to a method of disclosed embodiment described herein, need not carry out with any particular order.In addition, although element of the present disclosure can be with individual formal description or requirement, also it is contemplated that a plurality of, unless clearly be restricted to odd number.
Above-described embodiment; purpose of the present disclosure, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only embodiment of the present disclosure; and be not used in and limit protection range of the present disclosure; all within spirit of the present disclosure and principle, any modification of making, be equal to replacement, improvement etc., within all should being included in protection range of the present disclosure.

Claims (12)

1. a method for network access, is characterized in that, described method comprises:
Detect access point;
If access point detected, obtain current geographic position;
Inquire about that pre-stored and described access point have same names and corresponding to the configuration information of the access point of described current geographic position;
Connect described access point according to described configuration information.
2. method according to claim 1, is characterized in that, what described inquiry was pre-stored has same names with described access point and, corresponding to the configuration information of the access point of described current geographic position, comprising:
Inquire about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position;
Each access point that inquiry and described access point have same names;
Each geographical position that each access point that calculating inquires is corresponding and the distance between described current geographic position;
Detect described distance and whether surpass predetermined threshold;
Will and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
3. method according to claim 1 and 2, is characterized in that, describedly according to described configuration information, connects described access point, comprising:
If exist N group and described access point to there is same names and, corresponding to the configuration information of the access point of described current geographic position, the described N assembly information of putting sorted, wherein, N >=2;
Connect corresponding access point according to the i assembly information of putting after sequence, wherein, N>i >=1;
If successful connection, finish connection procedure;
If connect unsuccessfully, described i is added one afterwards as new i, again carry out the step that connects corresponding access point according to the i assembly information of putting.
4. method according to claim 3, is characterized in that, described the described N assembly information of putting sorted, and comprising:
According to described N assembly put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
According to described N assembly put information respectively the connection number of times of corresponding access point sorted; Or,
According to described N assembly put information corresponding last connect hours is sorted respectively.
5. method according to claim 1, is characterized in that, described method also comprises:
If inquiry has same names and, corresponding to the configuration information of the access point of described current geographic position, receives the configuration information of described access point less than pre-stored and described access point;
Connect described access point according to the described configuration information received;
Increase the corresponding relation of the configuration information of described current geographic position and the described described access point received in the first corresponding relation.
6. a network access device, is characterized in that, described device comprises:
Detection module, for detection of access point;
Acquisition module, for when described detection module detects access point, obtain current geographic position;
Enquiry module, for the configuration information of the access point of inquiring about the pre-stored described current geographic position that has same names with described access point and get corresponding to described acquisition module;
The first link block, connect described access point for the described configuration information inquired according to described enquiry module.
7. device according to claim 6, is characterized in that, described enquiry module comprises:
The first query unit, for inquiring about the first pre-stored corresponding relation, the configuration information that described the first corresponding relation is each access point and the corresponding relation between each geographical position;
The second query unit, each access point that there is same names for inquiry and described access point;
Computing unit, for calculating each geographical position that each access point that described the second query unit inquires is corresponding and the distance between described current geographic position;
Whether detecting unit, surpass predetermined threshold for detection of described distance;
Determining unit, for the testing result by described detecting unit for and described current geographic position between the distance configuration information that is no more than the corresponding access point in geographical position of described predetermined threshold be defined as thering is same names with described access point and corresponding to the configuration information of the access point of described current geographic position.
8. according to the described device of claim 6 or 7, it is characterized in that, described the first link block comprises:
Sequencing unit, for existing N group and described access point to there is same names and during corresponding to the configuration information of the access point of described current geographic position, the described N assembly information of putting being sorted, wherein, N >=2;
Linkage unit, connect corresponding access point for the i assembly information of putting according to after sequence, wherein, and N>i >=1;
End unit, for when the described linkage unit successful connection, finish connection procedure;
Increase unit, when unsuccessful for connecting at described linkage unit, described i is added one rear as new i, and trigger described linkage unit executable operations again.
9. device according to claim 8, is characterized in that, described sequencing unit comprises:
Apart from subelement, for according to described N assembly, put information respectively between corresponding geographical position and described current geographic position apart from being sorted; Or,
The number of times subelement, for according to described N assembly, put information respectively the connection number of times of corresponding access point sorted; Or,
The chronon unit, for according to described N assembly, put information corresponding last connect hours is sorted respectively.
10. device according to claim 6, is characterized in that, described device also comprises:
Receiver module, for having same names in inquiry less than pre-stored and described access point and during corresponding to the configuration information of the access point of described current geographic position, receiving the configuration information of described access point;
The second link block, connect described access point for the described configuration information received according to described receiver module;
Increase module, for increase the corresponding relation of the configuration information of described current geographic position and the described described access point received at the first corresponding relation.
11. a terminal, is characterized in that, it comprises described network access device as arbitrary as claim 6 to 10.
12. a terminal, is characterized in that, described terminal comprises:
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and described one or more modules have following function:
Detect access point;
If access point detected, obtain current geographic position;
Inquire about that pre-stored and described access point have same names and corresponding to the configuration information of the access point of described current geographic position;
Connect described access point according to described configuration information.
CN201310446675.4A 2013-09-26 2013-09-26 Network access method, network access device and terminal Pending CN103501482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310446675.4A CN103501482A (en) 2013-09-26 2013-09-26 Network access method, network access device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310446675.4A CN103501482A (en) 2013-09-26 2013-09-26 Network access method, network access device and terminal

Publications (1)

Publication Number Publication Date
CN103501482A true CN103501482A (en) 2014-01-08

Family

ID=49866643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310446675.4A Pending CN103501482A (en) 2013-09-26 2013-09-26 Network access method, network access device and terminal

Country Status (1)

Country Link
CN (1) CN103501482A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504002A (en) * 2014-12-09 2015-04-08 北京极科极客科技有限公司 Intelligent sequencing method of WiFi (Wireless Fidelity) list
CN104539497A (en) * 2015-01-30 2015-04-22 小米科技有限责任公司 Network connecting method and device
CN105101089A (en) * 2015-07-31 2015-11-25 腾讯科技(深圳)有限公司 Positioning method, device and system
CN105282830A (en) * 2015-11-20 2016-01-27 广东欧珀移动通信有限公司 Network access method and mobile terminal
CN105392178A (en) * 2015-10-29 2016-03-09 上海连尚网络科技有限公司 Method and device for acquiring access information of wireless access point
CN105530684A (en) * 2014-09-28 2016-04-27 腾讯科技(深圳)有限公司 Method, device and system for network access
CN105681029A (en) * 2015-12-30 2016-06-15 深圳Tcl数字技术有限公司 Method and device for creating WEP password
CN106341824A (en) * 2016-09-22 2017-01-18 浙江昱能科技有限公司 Method and device for creating communication area of distributed power generation system
WO2017024762A1 (en) * 2015-08-10 2017-02-16 上海连尚网络科技有限公司 Method and equipment for distinguishing homonymic wireless access points
CN106535188A (en) * 2016-11-07 2017-03-22 广东欧珀移动通信有限公司 Access control method and mobile terminal
CN106658705A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 A network positioning method and terminal equipment
CN106714177A (en) * 2017-03-24 2017-05-24 联想(北京)有限公司 Method for distinguishing same-name wireless hotspot and electronic device
CN106793015A (en) * 2017-02-20 2017-05-31 广东欧珀移动通信有限公司 A wireless fidelity Wi-Fi connection method and mobile terminal
CN107659978A (en) * 2016-08-02 2018-02-02 上海掌门科技有限公司 For identifying the method and apparatus of WAP
CN108112051A (en) * 2016-11-24 2018-06-01 上海掌门科技有限公司 A kind of method and apparatus for the access information that wireless access point is provided
WO2018161761A1 (en) * 2017-03-10 2018-09-13 腾讯科技(深圳)有限公司 Wireless network access method, terminal and storage medium
CN109246698A (en) * 2017-05-09 2019-01-18 腾讯科技(深圳)有限公司 A kind of connection method of wireless network and terminal device
CN110392412A (en) * 2019-07-23 2019-10-29 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment
CN112312518A (en) * 2019-07-31 2021-02-02 杭州九阳小家电有限公司 Method and device for connecting household appliance with dual-frequency router

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850532A1 (en) * 2006-04-29 2007-10-31 Alcatel Lucent Method of providing a guest terminal with emergency access over a WLAN
CN102573012A (en) * 2012-02-24 2012-07-11 北京黑米天成科技有限公司 Service set identifier (SSID) alias naming method of wireless access point (AP) based on global positioning system (GPS) position information of mobile terminal
CN103298072A (en) * 2013-07-02 2013-09-11 张洁昕 Method and system for automatically connecting to WiFi (wireless fidelity) access points and mobile communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850532A1 (en) * 2006-04-29 2007-10-31 Alcatel Lucent Method of providing a guest terminal with emergency access over a WLAN
CN102573012A (en) * 2012-02-24 2012-07-11 北京黑米天成科技有限公司 Service set identifier (SSID) alias naming method of wireless access point (AP) based on global positioning system (GPS) position information of mobile terminal
CN103298072A (en) * 2013-07-02 2013-09-11 张洁昕 Method and system for automatically connecting to WiFi (wireless fidelity) access points and mobile communication terminal

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530684B (en) * 2014-09-28 2020-09-11 腾讯科技(深圳)有限公司 Network access method, device and system
CN105530684A (en) * 2014-09-28 2016-04-27 腾讯科技(深圳)有限公司 Method, device and system for network access
CN104504002A (en) * 2014-12-09 2015-04-08 北京极科极客科技有限公司 Intelligent sequencing method of WiFi (Wireless Fidelity) list
CN104539497A (en) * 2015-01-30 2015-04-22 小米科技有限责任公司 Network connecting method and device
CN104539497B (en) * 2015-01-30 2018-03-02 小米科技有限责任公司 Method for connecting network and device
CN105101089A (en) * 2015-07-31 2015-11-25 腾讯科技(深圳)有限公司 Positioning method, device and system
CN106454884B (en) * 2015-08-10 2018-05-29 上海连尚网络科技有限公司 For distinguishing the method and apparatus of wireless access point of the same name
WO2017024762A1 (en) * 2015-08-10 2017-02-16 上海连尚网络科技有限公司 Method and equipment for distinguishing homonymic wireless access points
CN106454884A (en) * 2015-08-10 2017-02-22 上海连尚网络科技有限公司 Method for distinguishing homonymous wireless access points and equipment thereof
CN105392178A (en) * 2015-10-29 2016-03-09 上海连尚网络科技有限公司 Method and device for acquiring access information of wireless access point
CN105282830A (en) * 2015-11-20 2016-01-27 广东欧珀移动通信有限公司 Network access method and mobile terminal
CN105681029A (en) * 2015-12-30 2016-06-15 深圳Tcl数字技术有限公司 Method and device for creating WEP password
WO2017113587A1 (en) * 2015-12-30 2017-07-06 深圳Tcl数字技术有限公司 Method and apparatus for creating wep password
CN107659978A (en) * 2016-08-02 2018-02-02 上海掌门科技有限公司 For identifying the method and apparatus of WAP
CN106341824A (en) * 2016-09-22 2017-01-18 浙江昱能科技有限公司 Method and device for creating communication area of distributed power generation system
CN106341824B (en) * 2016-09-22 2019-03-22 浙江昱能科技有限公司 A kind of creation method and device of the communication zone of distributed generation system
CN106535188A (en) * 2016-11-07 2017-03-22 广东欧珀移动通信有限公司 Access control method and mobile terminal
CN108112051A (en) * 2016-11-24 2018-06-01 上海掌门科技有限公司 A kind of method and apparatus for the access information that wireless access point is provided
CN106658705A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 A network positioning method and terminal equipment
CN106658705B (en) * 2016-12-07 2019-10-18 Oppo广东移动通信有限公司 Network positioning method and terminal equipment
CN106793015A (en) * 2017-02-20 2017-05-31 广东欧珀移动通信有限公司 A wireless fidelity Wi-Fi connection method and mobile terminal
WO2018161761A1 (en) * 2017-03-10 2018-09-13 腾讯科技(深圳)有限公司 Wireless network access method, terminal and storage medium
CN106714177B (en) * 2017-03-24 2020-03-24 联想(北京)有限公司 Method for distinguishing wireless hotspots with same name and electronic equipment
CN106714177A (en) * 2017-03-24 2017-05-24 联想(北京)有限公司 Method for distinguishing same-name wireless hotspot and electronic device
CN109246698A (en) * 2017-05-09 2019-01-18 腾讯科技(深圳)有限公司 A kind of connection method of wireless network and terminal device
CN109246698B (en) * 2017-05-09 2020-12-29 腾讯科技(深圳)有限公司 A wireless network connection method and terminal device
CN110392412A (en) * 2019-07-23 2019-10-29 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment
CN110392412B (en) * 2019-07-23 2022-05-13 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment
CN112312518A (en) * 2019-07-31 2021-02-02 杭州九阳小家电有限公司 Method and device for connecting household appliance with dual-frequency router
CN112312518B (en) * 2019-07-31 2022-08-09 杭州九阳小家电有限公司 Method and device for connecting household appliance with dual-frequency router

Similar Documents

Publication Publication Date Title
CN103501482A (en) Network access method, network access device and terminal
CN106851654B (en) Pseudo base station identification method, pseudo base station identification device and terminal
CN103475996A (en) Network connecting method, network sharing method and devices
CN103458409A (en) Network connection method and network sharing method and device
CN103458408A (en) Network connection method and network sharing method and device
CN103874018A (en) Access point information sharing method and device
CN103501333A (en) Method, device and terminal equipment for downloading files
CN104518953A (en) Message deleting method, instant messaging terminal and system
CN104519485A (en) Communication method between terminals, devices and system
CN104135728B (en) Method for connecting network and device
CN103294515A (en) Method, device and system for acquiring application programs
CN103716793A (en) Access point information sharing method and apparatus
CN104618217A (en) Method, terminal, server and system for sharing resource
CN103442330A (en) Position notification method and device
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104468463A (en) Verification method, verification device and verification system
CN104519197A (en) User login method, user login device and terminal devices
CN104717341A (en) Message prompting method and terminal
CN103596145A (en) Information automatic responding method, device and terminal equipment
CN104618854A (en) Method, terminal and server for sharing location information
CN104426963A (en) Terminal associating method and terminal
CN103677899A (en) Method and device for installing application programs
CN104618873A (en) Method and device for sharing access point information
KR20150025208A (en) Method for connecting network and an electronic device thereof
CN108769976A (en) network attachment control method, device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140108

RJ01 Rejection of invention patent application after publication