CN109040958A - Method for connecting network, device, electronic equipment and computer readable storage medium - Google Patents
Method for connecting network, device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109040958A CN109040958A CN201810934164.XA CN201810934164A CN109040958A CN 109040958 A CN109040958 A CN 109040958A CN 201810934164 A CN201810934164 A CN 201810934164A CN 109040958 A CN109040958 A CN 109040958A
- Authority
- CN
- China
- Prior art keywords
- access point
- wireless access
- current location
- electronic equipment
- identity
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/003—Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application involves a kind of method for connecting network, device, electronic equipment and computer readable storage mediums.The described method includes: obtaining the current location of electronic equipment, access point identity set corresponding to the reference position to match with current location is searched from the table of comparisons, wherein, the table of comparisons includes the corresponding access point identity set at least one reference position, using the highest access point identity of access point identity set mid-score as first object access point identity, wireless access point connection corresponding with first object access point identity, wherein, score is used to evaluate the performance of the corresponding wireless access point of access point identity.Due to that can obtain matched access point identity set from the table of comparisons according to current location, the efficiency of network connection is can be improved in wireless access point connection corresponding with the access point identity highest access point identity of set mid-score.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of method for connecting network, device, electronic equipment and meter
Calculation machine readable storage medium storing program for executing.
Background technique
With the development of computer technology, the network that radio network technique becomes important in people's routine work or work connects
Connect one of mode.When electronic equipment needs to connect wireless network, needs to scan wireless network existing for surrounding, be connected to and sweep
The wireless network retouched.
However, there are problems that being connected to the network low efficiency in traditional method.
Summary of the invention
The embodiment of the present application provides a kind of method for connecting network, device, electronic equipment and computer readable storage medium, can
Efficiency is connected to the network to improve.
A kind of method for connecting network, comprising:
Obtain the current location of electronic equipment;
Access point identity set corresponding to the reference position to match with the current location is searched from the table of comparisons,
In, the table of comparisons includes the corresponding access point identity set at least one reference position;
Using the highest access point identity of described access point logo collection mid-score as first object access point identity, with institute
State the corresponding wireless access point connection of first object access point identity, wherein the score is for evaluating described access point mark
The performance of corresponding wireless access point.
A kind of network connection device, comprising:
Module is obtained, for obtaining the current location of electronic equipment;
Searching module, for searching access corresponding to the reference position to match with the current location from the table of comparisons
Point identification set, wherein the table of comparisons includes the corresponding access point identity set at least one reference position;
Link block, for being connect using the highest access point identity of described access point logo collection mid-score as first object
Enter point identification, wireless access point connection corresponding with the first object access point identity, wherein the score is for evaluating institute
State the performance of the corresponding wireless access point of access point identity.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory
When machine program is executed by the processor, so that the processor executes following steps:
Obtain the current location of electronic equipment;
Access point identity set corresponding to the reference position to match with the current location is searched from the table of comparisons,
In, the table of comparisons includes the corresponding access point identity set at least one reference position;
Using the highest access point identity of described access point logo collection mid-score as first object access point identity, with institute
State the corresponding wireless access point connection of first object access point identity, wherein the score is for evaluating described access point mark
The performance of corresponding wireless access point.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Following steps are realized when row:
Obtain the current location of electronic equipment;
Access point identity set corresponding to the reference position to match with the current location is searched from the table of comparisons,
In, the table of comparisons includes the corresponding access point identity set at least one reference position;
Using the highest access point identity of described access point logo collection mid-score as first object access point identity, with institute
State the corresponding wireless access point connection of first object access point identity, wherein the score is for evaluating described access point mark
The performance of corresponding wireless access point.
Above-mentioned method for connecting network, device, electronic equipment and computer readable storage medium, by obtaining electronic equipment
Current location is searched access point identity set corresponding to the reference position to match with current location from the table of comparisons, will be connect
The highest access point identity of access point logo collection mid-score is as first object access point identity, with the first object access point
Corresponding wireless access point connection is identified, the efficiency of network connection can be improved.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the applied environment figure of method for connecting network in one embodiment;
Fig. 2 is the flow chart of method for connecting network in one embodiment;
Fig. 3 is the flow chart of method for connecting network in another embodiment;
Fig. 4 is the flow chart of method for connecting network in another embodiment;
Fig. 5 is the flow chart of method for connecting network in one embodiment;
Fig. 6 is the schematic diagram of the table of comparisons in one embodiment;
Fig. 7 is the flow chart of method for connecting network in one embodiment;
Fig. 8 is the flow chart that the table of comparisons is updated in one embodiment;
Fig. 9 is the schematic diagram of the updated table of comparisons in one embodiment;
Figure 10 is the structural block diagram of network connection device in one embodiment;
Figure 11 is the structural block diagram of mobile phone in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes
It says, in the case where not departing from scope of the present application, first object access point identity can be known as to the second target access mark
Know, and similarly, the second target access can be identified and be known as first object access point identity.First object access point identity and
Both target access identifies second target access mark, but it is not same target access mark.
Method for connecting network provided by the present application can be applied in application environment as shown in Figure 1.Wherein: electronics is set
Standby 120 are connected in internet by wireless access point 140.The present bit of the available electronic equipment 120 of electronic equipment 120
It sets, access point identity set corresponding to the reference position to match with current location is searched from the table of comparisons, wherein the table of comparisons
Comprising the corresponding access point identity set at least one reference position, by the highest access point mark of access point identity set mid-score
Know and be used as first object access point identity, wireless access point connection corresponding with first object access point identity, score is for commenting
The performance of the corresponding wireless access point of valence access point identity.Wherein, electronic equipment 120 can be mobile phone, tablet computer or a
Personal digital assistant or wearable device etc..Wireless access point 140 can be router, wireless connectivity devices etc., can also be hand
The electronic equipment of wireless network sharing may be implemented in machine or computer etc..
Fig. 2 is the flow chart of method for connecting network in one embodiment.Method for connecting network in the present embodiment, with operation
It is described on electronic equipment in Fig. 1.As shown in Fig. 2, method for connecting network includes step 202 to step 206.
Step 202, the current location of electronic equipment is obtained.
The current location of electronic equipment refers to the specific location that electronic equipment is presently in.Specifically, electronic equipment is worked as
Front position can be the current latitude and longitude information of electronic equipment, be also possible to the corresponding tool of latitude and longitude information of electronic equipment acquisition
Body geographical location.For example, when the latitude and longitude information that detect electronic equipment is north latitude 109.408984, when east longitude 18.294898,
Then the current location of electronic equipment can be north latitude 109.408984, east longitude 18.294898, or the latitude and longitude information pair
The particular geographic location answered i.e. Sanya, Hainan gulf seabeach.Electronic equipment can pass through GPS (Global Positioning
System, global positioning system), base station location, WIFI (Wireless Fidelity, Wireless Fidelity) positioning etc. modes obtain
The current location of electronic equipment.
Electronic equipment can obtain the current location of electronic equipment when needing to connect or switching wireless network.Specifically,
When detecting the link order or switching command to wireless network, electronic equipment according to the link order to wireless network or
Switching command obtains current location.It is set for example, electronic equipment can obtain electronics when receiving the instruction of connection wireless network
Standby current location can also obtain electronic equipment when receiving the out code to the mobile communications network currently connected
Current location can also be obtained when it is more than pre-determined distance value that the position of the wireless access point currently connected is at a distance from current location
The current location etc. of electronic equipment is taken, it is without being limited thereto.
Step 204, access point identity collection corresponding to the reference position to match with current location is searched from the table of comparisons
It closes, wherein the table of comparisons includes the corresponding access point identity set at least one reference position.
Comprising in the corresponding access point identity set at least one reference position and access point identity set in the table of comparisons
Corresponding score of each access point identity etc..Access point identity set is by the access point of the corresponding wireless access point in reference position
Identify the set of composition.Specifically, electronic equipment can be scanned in reference position position, and what acquisition scanning obtained wirelessly connects
Access point, the corresponding access point identity of the wireless access point then obtained according to scanning forms access point identity set, by reference bit
It sets and the access point identity set is saved into the table of comparisons.Access point identity is the unique identification of wireless access point.Access point mark
Knowledge can be made of at least one of text, number, letter, symbol etc..For example, access point identity can be wireless access point
Physical address is also possible to the SSID (Service Set Identifier, service set) of wireless access point, can also be
The mark that electronic equipment distributes electronic equipment according to preset rules.Wireless access point can be radio reception device, without route
By device, it is also possible to mobile phone, computer, tablet computer etc..Wireless access point can make to be connected to wireless access by WiFi technology
The electronic equipment of point has the function of wireless networking.
Electronic equipment searches the reference position to match with current location from the table of comparisons.Specifically, electronic equipment detects
Whether current location is located in the preset range of reference position, when electronic equipment current location is located at the preset range of reference position
When, it is determined that the reference position matches with current location;Electronic equipment can also calculate current location with it is each in the table of comparisons
The distance between reference position value, acquisition and current location are apart from the smallest reference position as the ginseng to match with current location
Examine position;Electronic equipment can also search the reference in the table of comparisons with identical geographical indication according to the geographical indication of current location
The reference position that position matches as current location, for example, when the corresponding geographical indication in current location of electronic equipment is A purchase
When object center, then electronic equipment can geographical indication be the reference position in the shopping center A as current location phase using in the table of comparisons
The reference position matched.Behind the reference position that electronic equipment matches in finding the table of comparisons with current location, available ginseng
Examine the corresponding access point identity set in position.
Step 206, using the highest access point identity of access point identity set mid-score as first object access point identity,
Wireless access point connection corresponding with first object access point identity, wherein score is for evaluating the corresponding nothing of access point identity
The performance of line access point.
Score in the table of comparisons is used to evaluate the performance of the corresponding wireless access point of access point identity, and specifically, electronics is set
It is standby can according to the signal strength of wireless access point, transmission rate, bandwidth, working frequency, packet loss, wireless communication standard, should
Whether the quantity of other wireless access point, electronic equipment are logical with wireless access point certification in channel used by wireless access point
The scoring such as cross.It is positively correlated according to the performance of the score of wireless access point and wireless access point, score is higher, then corresponding wireless
Access point performance is better, and score is lower, then the performance of corresponding wireless access point is poorer.Electronic equipment and first object access point
Corresponding wireless access point connection is identified, specifically, electronic equipment directly can send association request to the wireless access point
(Association request), as the associated response (Association for receiving wireless access point return
When Response), then it represents that electronic equipment and the wireless access point successful connection, electronic equipment can pass through the wireless access point
It is connected in internet.
Electronic equipment after getting access point identity set corresponding to the reference position to match with current location,
The available highest access point identity of access point identity set mid-score is as first object access point identity, with the first mesh
The corresponding wireless access point connection of access point identity is marked, then the wireless access point of electronic equipment connection is that current location performance is best
Wireless access point.
Method for connecting network in the embodiment of the present application is looked into from the table of comparisons by obtaining the current location of electronic equipment
Access point identity set corresponding to the reference position to match with current location is looked for, by access point identity set mid-score highest
Access point identity as first object access point identity, wireless access point connection corresponding with first object access point identity,
Corresponding wireless access point can be obtained according to the current location of electronic equipment to connect, the efficiency of network connection can be improved, and
And wireless access point connection corresponding with the access point identity highest access point identity of set mid-score, network connection can be improved
Quality.
As shown in figure 3, in one embodiment, the method for connecting network provided includes step 302 to step 308, in which:
Step 302, the network quality parameters for the wireless access point that electronic equipment currently connects are obtained.
Network quality parameters are the parameters for analyzing the network quality of wireless access point.Specifically, network quality parameters
It may include RSSI (Received Signal Strength Indication, signal strength instruction) value, packet loss
One of (packet error rate), network speed etc. or a variety of.Electronic equipment is used to determine the network of wireless access point
Mass parameter can also include distance, the bandwidth speed of wireless access point of wireless access point etc. of distance connection, not right herein
Network quality parameters limit.RSSI value is the indicated value of wireless access degree signal strength, be can be determined that wirelessly by RSSI value
The connection signal intensity of access point.Packet loss refers to that the data packet lost in the connection procedure with wireless access point accounts for total transmission number
According to the ratio of group, packet loss is smaller, and wireless access point mass is higher;Packet loss is higher, then the quality of wireless access point is poorer.Net
Network speed includes uploading speed and speed of download, and network speed is higher, then upload or the speed of downloading, the quality of network are better.
It is wireless as this that electronic equipment can obtain RSSI value, packet loss, network speed of the wireless access point currently connected etc. respectively
The network quality parameters of access point;Can also according to default Weighted Rule to the RSSI value of the wireless access point of acquisition, packet loss,
Network speed weights to obtain network quality parameters of the wireless access point etc., and default Weighted Rule can be according to practical application request
It determines, it is not limited here.
Step 304, when network quality parameters are lower than parameter threshold, the current location of electronic equipment is obtained.
Parameter threshold can be determined according to practical application request.The electronic equipment that electronic equipment can compare acquisition currently connects
The network quality parameters and parameter threshold of the wireless access point connect obtain electronics when network quality parameters are lower than parameter threshold
The current location of equipment.When electronic equipment obtains RSSI value, the packet loss, network speed of the wireless access point currently connected respectively
When Deng network quality parameters as wireless access point, RSSI value, packet loss and network speed can be set separately in electronic equipment
Corresponding parameter threshold compares RSSI value, packet loss and the network speed of acquisition and the size of corresponding parameter threshold respectively.Electricity
Sub- equipment can be obtained when at least one of the RSSI value of acquisition, packet loss and network speed are lower than corresponding parameter threshold
The current location of electronic equipment.For example, electronic equipment can be to obtain when a network quality parameters are lower than parameter threshold wherein
The current location of electronic equipment can also obtain working as electronic equipment when the network quality parameters of acquisition are below parameter threshold
Front position etc., it is not limited here.
In one embodiment, it in the method for connecting network provided when network quality parameters are lower than parameter threshold, obtains
The process of the current location of electronic equipment further include: when the duration that network quality parameters are consistently less than parameter threshold is more than pre-
If when duration, obtaining the current location of electronic equipment.Preset duration can be set according to practical application request.For example, when default
It is long can be 30s, 1 minute, 2 minutes, 3 minutes etc. it is without being limited thereto.Electronic equipment can be lower than detecting network quality parameters
Start timing when parameter threshold, when network quality parameters are more than preset duration lower than the duration of parameter threshold, obtains electricity
The current location of sub- equipment;When network quality parameters are no more than preset duration lower than the duration of parameter threshold, do not do and locate
Reason.
Step 306, access point identity collection corresponding to the reference position to match with current location is searched from the table of comparisons
It closes, wherein the table of comparisons includes the corresponding access point identity set at least one reference position.
Step 308, using the highest access point identity of access point identity set mid-score as first object access point identity,
Wireless access point connection corresponding with first object access point identity, wherein score is for evaluating the corresponding nothing of access point identity
The performance of line access point.
By obtaining the network quality parameters for the wireless access point that electronic equipment currently connects, when network quality parameters are lower than
When parameter threshold, the current location of electronic equipment is obtained, searches the reference position to match from the table of comparisons according to current location
Corresponding access point identity set, wireless access point corresponding with the access point identity highest access point identity of set mid-score connect
It connects, it, can since the highest wireless access point of table of comparisons mid-score can be connected in the quality of wireless network decline currently connected
To improve the efficiency of network connection, the time that network disconnects is reduced.
As shown in figure 4, in one embodiment, the method for connecting network provided includes step 402 to step 408.Wherein:
Step 402, the current location of electronic equipment is obtained.
Step 404, the distance between each reference position in current location and table of comparisons value is calculated.
Specifically, electronic equipment can be calculated according to the latitude and longitude information of each reference position in current location and the table of comparisons
The distance between current location and reference position value.
In one embodiment, each reference position in current location and the table of comparisons is provided in the method for connecting network provided
The distance between value process further include: obtain the reference position to match with the current location from the table of comparisons and gather, calculate
The distance between each reference position and current location value in the set of reference position.
Reference position in the table of comparisons can be divided into multiple reference position set by electronic equipment.Specifically, electronics is set
It is standby the reference position in the same area to be divided by a reference position collection according to the geographical location locating for reference position
It closes;Electronic equipment can also will be divided into a reference position collection with the distance between reference position apart from lesser reference position
It closes.Electronic equipment can determine the division mode of reference position according to the distribution situation of reference position, for example, working as reference bit
When setting throughout multiple countries, then reference position can be divided according to country and the reference position in the table of comparisons is such as divided into China
Reference position set, Japan are with reference to location sets, American reference location sets etc.;When reference position is in a country,
Reference position can then be divided according to different provinces etc.;Electronic equipment can also be according to urban district, township, building etc. to reference
Position divides.Electronic equipment obtains the reference position to match in the table of comparisons according to current location and gathers, then calculates reference position
The distance between each reference position and current location are worth in set, it is possible to reduce calculation amount facilitates electronic equipment according to current
Location lookup improves the speed of service to the reference position to match.
Step 406, when the lowest distance value in distance value is no more than pre-determined distance, the reference bit of lowest distance value is obtained
Set corresponding access point identity set.
Pre-determined distance can be set according to practical application request.For example, pre-determined distance can be 5 meters, 10 meters, 15 meters, 20
Rice etc. is without being limited thereto.The smallest distance value in the distance value of the available current location of electronic equipment and each reference position, than
To the size between the lowest distance value and pre-determined distance, when lowest distance value is no more than pre-determined distance, acquisition and present bit
Set the corresponding access point identity set in the smallest reference position of distance value.For example, current location and reference bit when electronic equipment
When the distance value set is respectively 20 meters, 18 meters, 13 meters, if pre-determined distance is 15 meters, electronic equipment is available and present bit
Set the corresponding access point identity set in reference position that distance value is 13 meters.
Step 408, using the highest access point identity of access point identity set mid-score as first object access point identity,
Wireless access point connection corresponding with first object access point identity, wherein score is for evaluating the corresponding nothing of access point identity
The performance of line access point.
By calculating the distance between each reference position value in current location and the table of comparisons, when the most narrow spacing in distance value
When being no more than pre-determined distance from value, access point identity set corresponding to the reference position of lowest distance value is obtained, by access point
The highest access point identity of logo collection mid-score is corresponding with first object access point identity as first object access point identity
Wireless access point connection, the efficiency of network connection can be improved.
As shown in figure 5, in one embodiment, the wireless connection method provided includes step 502 to step 508.Wherein:
Step 502, the current location of electronic equipment is obtained.
Step 504, access point identity collection corresponding to the reference position to match with current location is searched from the table of comparisons
It closes, wherein the table of comparisons includes the corresponding access point identity set at least one reference position.
Step 506, the highest access point identity of access point identity set mid-score is obtained as first object access point mark
Know.
Step 508, when the score of first object access point identity is more than preset fraction, with first object access point identity
Corresponding wireless access point connection.
Preset fraction can be set according to practical application request.For example, preset fraction can be 70,80,85,90,95 etc.
It is without being limited thereto.Electronic equipment is when the score of first object access point identity is more than preset fraction, with first object access point mark
Know corresponding wireless access point connection, the quality of electronic equipment network connection can be improved.When first object access point identity
When score is lower than preset fraction, illustrates in the corresponding access point identity set in the reference position that access point identity is corresponding and wirelessly connect
The reliability of access point is poor, and electronic equipment can not be connect with the wireless access point.
By obtaining the current location of electronic equipment, the reference position pair to match is searched from the table of comparisons according to current location
The access point identity set answered, using the highest access point identity of access point identity set mid-score as first object access point mark
Know, it is corresponding with first object access point identity wirelessly to connect when the score of first object access point identity is more than preset fraction
Access point connection, can be improved the efficiency and quality of network connection.
Fig. 6 is the schematic diagram of the table of comparisons in one embodiment.As shown in fig. 6, preserving reference position 1 in the table of comparisons 610
It include access point A, B, C, reference bit in the access point identity set of reference position 1 with the corresponding access point identity in reference position 2
Present bit can be calculated when electronic equipment gets current location comprising access point B, E by setting in 2 access point identity set
The distance value with reference position 1 and reference position 2 is set, if the distance value of current location Yu reference position 1,2 is obtained by calculation
Respectively 12 meters, 20 meters, pre-determined distance are 15 meters, then the available distance value of electronic equipment is minimum and is no more than pre-determined distance
The corresponding access point identity set in reference position 1, using the highest access point A of access point identity set mid-score as first object
Access point identity, if preset fraction is 80, the score of first object access point identity is more than preset fraction, then electronic equipment can
With wireless access point corresponding with access point A connection.
As shown in fig. 7, in one embodiment, the method for connecting network provided includes step 702 to step 712.Wherein:
Step 702, the current location of electronic equipment is obtained.
Step 704, access point identity collection corresponding to the reference position to match with current location is searched from the table of comparisons
It closes, wherein the table of comparisons includes the corresponding access point identity set at least one reference position.
Step 706, using the highest access point identity of access point identity set mid-score as first object access point identity,
Wireless access point connection corresponding with first object access point identity, wherein score is for evaluating the corresponding nothing of access point identity
The performance of line access point.
Step 708, when the connection failure of wireless access point corresponding with first object access point identity, access point is obtained
Access point identity in logo collection in addition to first object access point identity generates access point identity subclass.
Specifically, electronic equipment is connect by sending association request to wireless access point with wireless access point, is connect when wirelessly
Access point return associated response mistake or without response when, then can determine the connection failure of electronic equipment Yu the wireless access point.Electricity
Sub- equipment can obtain access point identity collection in the connection failure of wireless access point corresponding with first object access point identity
Access point identity in conjunction in addition to first object access point identity generates access point identity subclass.
Step 710, the highest access point identity of access point identity subclass mid-score is obtained as the second target access
Mark.
Step 712, wireless access point connection corresponding with the second target access mark.
Specifically, the available highest access point identity of access point identity subclass mid-score of electronic equipment is as second
Target access mark, wireless access point connection corresponding with the second target access mark.Electronic equipment can also be with second
When target access identifies corresponding wireless access point connection failure, the high access with access point identity subclass mid-score second
The corresponding wireless access point connection of point identification, when successful connection, then stops connecting;When connection failure, then continue successively to obtain
The corresponding wireless access point connection of the access point identity in access point identity subclass from high to low is taken, until successful connection.
For example, in the above example, when electronic equipment wireless access point connection failure corresponding with access point A, electronic equipment can be with
It is by the access point identity in the corresponding access point identity in reference position 1 in addition to first object access point identity, that is, access point A
Access point B and access point C generates access point identity subclass, obtains the highest access point B of access point identity subclass score and makees
For the second target access mark, wireless access point connection corresponding with access point B, if connection is unsuccessful, electronic equipment can
With wireless access point corresponding with the high access point C of access point identity subclass mid-score second connection.
In one embodiment, as shown in figure 8, the method for connecting network provided can also be including step 802 to step
806.Wherein:
Step 802, when the distance between current location and each reference position value are more than pre-determined distance, scanning is current
The candidate wireless access point of position, wherein candidate's wireless access point is the wireless signal pair that the current location receives
The wireless access point answered.
When the distance between the current location of electronic equipment and each reference position value are more than pre-determined distance, then electronics
The distance between the current location of equipment and each reference position are distant, at this point, electronic equipment can scan current location
Candidate wireless access point.Candidate wireless access point is that electronic equipment is corresponded in the wireless signal that current location can receive
Wireless access point.
Step 804, the corresponding network parameter of candidate wireless access point is obtained, according to network parameter to candidate wireless access point
Scoring, obtains the corresponding score of candidate wireless access point.
Network parameter refers to the parameter for being able to reflect the network characteristic of wireless access point.Network parameter may include that this is wireless
The SSID (service set) of access point, RSSI, transmission rate, bandwidth, working frequency, wireless communication standard, packet loss, the nothing
Whether the quantity of other wireless access point, electronic equipment are logical with wireless access point certification in channel used by line access point
Cross, the brand of the corresponding wireless device of wireless access point etc. it is one or more.The SSID of wireless access point is more complicated, RSSI is strong
Degree is stronger, transmission rate is bigger, bandwidth is bigger, working frequency is bigger, packet loss is lower, in channel used by wireless access point
The quantity of other wireless access point is less, electronic equipment passes through with wireless access point certification, wireless access point is corresponding wireless
The brand of equipment is more reliable, then the score of the electronic equipment is higher.The wireless communication standard of wireless access point may include
802.11ac, 802.11n etc., if other conditions are the same, wireless communication standard are the wireless access point of 802.11ac
Score be higher than wireless communication standard be 802.11n wireless access point.Electronic equipment is issued by wireless access point
Beacon frame determines whether electronic equipment passes through with wireless access point certification.
Electronic equipment can score to candidate wireless access point according to default code of points, for example, electronic equipment can be set
The weighted value for setting heterogeneous networks parameter weights to obtain candidate wireless access according to the weighted value of heterogeneous networks parameter and network parameter
The score of point;Electronic equipment can also be directly according to being different network parameter preset fraction values, by candidate's wireless access point
Score etc. of the score that is accumulated by of heterogeneous networks parameter as candidate's wireless access point.In one embodiment, different
Whether network parameter, that is, electronic equipment authenticates with candidate's wireless access point passes through, working frequency, the nothing of candidate wireless access point
The quantity of other wireless access point in channel used by line communication standard, candidate's wireless access point, RSSI weighted value according to
Secondary reduction.
Step 806, by current location, the access point identity of candidate wireless access point, candidate corresponding point of wireless access point
Number is saved to the table of comparisons.
Specifically, electronic equipment can be by the access point identity of obtained candidate wireless access point, candidate wireless access point
Corresponding score and current location are saved into the table of comparisons;Electronic equipment can set score threshold, by the nothing of current location
The corresponding score of line access point is rejected lower than the candidate wireless access point of score threshold, is only more than score by current location mid-score
The corresponding access point identity of candidate wireless access point of threshold value, the corresponding score of candidate's wireless access point are saved to the table of comparisons
In.
In one embodiment, the method for connecting network provided further include: obtain electronic equipment and each wireless access point
History rate of connections, history rate of connections indicates the frequency that electronic equipment and wireless access point are successfully connected;Connected according to history
Connect the score of corresponding each wireless access point in the frequency adjustment table of comparisons.
History rate of connections is the frequency for indicating electronic equipment and wireless access point and being successfully connected.Specifically, history connects
Frequency can be number that electronic equipment and wireless access point are successfully connected and electronic equipment and the wireless access point and always connect time
Several ratio, history rate of connections is also possible to electronic equipment and wireless access point is successfully connected number and electronic equipment and owns
The ratio for the number that wireless access point is successfully connected.History rate of connections is higher, then illustrates electronic equipment and the wireless access point
Successful connection number it is more, then electronic equipment can corresponding score be turned up in the table of comparisons by the wireless access point, tool
The score of body adjustment can be set according to practical application request, it is not limited here.In one embodiment, history rate of connections
It is also possible to the frequency of electronic equipment Yu wireless access point connection failure, it can will be right according to the history rate of connections of connection failure
It is accordingly turned down according to the score of the wireless access point in table.
For electronic equipment when value is more than pre-determined distance at a distance from current location is between each reference position, scanning is current
The wireless access point of position, the corresponding network parameter of each wireless access point for obtaining current location score to wireless access point,
The corresponding score of wireless access point is obtained, by current location, the access point identity of the wireless access point of current location, current location
The corresponding score of wireless access point save to the table of comparisons, the table of comparisons can be updated, thus according to the updated table of comparisons with work as
The corresponding wireless access point connection of the corresponding highest access point identity of access point identity set mid-score in front position, can be improved
The network connection efficiency of electronic equipment.
Fig. 9 is in one embodiment to the updated schematic diagram of the table of comparisons shown in fig. 6.In the above example, electronics is set
The distance value of standby current location and reference position 1,2 is respectively 12 meters and 20 meters, if pre-determined distance is 10 meters, current location
The distance between each reference position value is more than pre-determined distance, and electronic equipment can scan to obtain the candidate nothing of current location
Line access point, that is, wireless access point F and wireless access point G, according to the network parameter of wireless access point F and wireless access point G to nothing
The score that line access point F, G score to obtain wireless access point F is 95, the score of wireless access point G is 80, then electronic equipment can be with
By current location, the corresponding access point identity of wireless access point F, G, that is, access point F, G and the corresponding score of access point F, G
Into the table of comparisons.The table of comparisons 910 is by current location, the access point identity of candidate wireless access point, candidate wireless access point
The schematic diagram of the table of comparisons after corresponding score is saved to the table of comparisons.
In one embodiment, the method for connecting network provided further include: receive scan instruction, scanned according to scan instruction
The candidate wireless access point of electronic equipment current location;When wireless access point corresponding with first object access point identity connects into
When function, stop scanning;When wireless access point connection failure corresponding with first object access point identity, then wirelessly connect with candidate
Access point connection.
Scan instruction can be what user was generated by the button clicked on display screen, and electronic equipment can receive to wireless
The scan instruction of network sweep;It is also possible to electronic equipment in the network quality parameters for detecting the wireless access point currently connected
Generated when lower than parameter threshold etc., electronic equipment can obtain the current location of electronic equipment when receiving scan instruction.
In one embodiment, electronic equipment can also detection current location with the wireless access point currently connected at a distance from more than away from
Scan instruction is generated when from threshold value.Electronic equipment is current according to scan instruction scanning electron equipment when receiving scan instruction
The i.e. candidate wireless access point of the corresponding wireless access point of the wireless signal that position receives;Electronic equipment is looked into from the table of comparisons simultaneously
Access point identity set corresponding to the reference position to match with current location is looked for, by access point identity set mid-score highest
Access point identity as first object access point identity, wireless access point connection corresponding with first object access point identity,
When successful connection, electronic equipment can stop scanning, and when connecting unsuccessful, electronic equipment can continue to scan, and according to
The candidate wireless access point obtained with scanning is connect.
In one embodiment, when electronic equipment wireless access point successful connection corresponding with first object access point identity
When, the access point identity in the available access point identity set of electronic equipment in addition to first object access point identity generates
Access point identity subclass, it is successively corresponding with the access point identity of access point identity subclass mid-score from high to low wirelessly to connect
Access point connection stops connection when the quantity of the wireless access point of connection failure is more than preset quantity.Preset quantity can basis
Practical application request setting.Preset quantity can be without being limited thereto for 2,3,4,5 etc..Wireless access of the electronic equipment in connection failure
It is lasting to scan after stopping connection when the quantity of point is more than preset quantity, and obtain candidate wireless access point with scanning and connect.
Electronic equipment scans the wireless access point of current location according to scan instruction, simultaneously when receiving scan instruction
The access point identity set to match with current location is searched, with access in the current location for obtaining electronic equipment from the table of comparisons
The corresponding wireless access point connection of the highest access point identity of point identification set mid-score, withouts waiting for scanning and successfully just connects
Wireless access point, it is possible to reduce the time of network connection improves the efficiency of network connection.
In one embodiment, the method for connecting network provided further include: when corresponding with first object access point identity
When the connection failure of wireless access point, the score of the corresponding wireless access point of first object access point identity in the table of comparisons is adjusted.
Electronic equipment is connect by sending association request to wireless access point with wireless access point, when wireless access point returns
Associated response mistake or without response when, then can determine the connection failure of electronic equipment Yu the wireless access point.Work as electronic equipment
The connection failure of target access corresponding with first object access point identity adjusts first object access point identity in the table of comparisons
The score of corresponding wireless access point, specifically, electronic equipment can reduce the corresponding score of the wireless access point in the table of comparisons,
Specific score adjustment amplitude can be set according to the actual application, it is not limited here, such as can be 5 points, 8 points, 10
Point etc. be not limited to.Electronic equipment can also in the connection failure of wireless access point corresponding with first object access point identity,
Associated response is sent to the wireless access point again, it is when receiving the associated response success of wireless access point transmission, then not right
The score adjustment of the corresponding wireless access point of first object access point identity in the table of comparisons.Electronic equipment can be in wireless access point
Score be lower than score threshold when, which is picked from the corresponding access point identity set in reference position in the table of comparisons
It removes.By adjusting the score of the wireless access point in the table of comparisons, the table of comparisons can be updated when with wireless access point connection failure
The score of wireless access point improves the quality of network connection.
It should be understood that although each step in the flow chart of Fig. 2-5,6-8 is successively shown according to the instruction of arrow,
But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these
There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 2-5,6-8
At least part step may include multiple sub-steps perhaps these sub-steps of multiple stages or stage be not necessarily
Synchronization executes completion, but can execute at different times, and the execution sequence in these sub-steps or stage also need not
Be so successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or
Person alternately executes.
Figure 10 is the structural block diagram of the network connection device of one embodiment.As shown in Figure 10, the network connection device packet
Include position acquisition module 1002, searching module 1004 and link block 1006.Wherein:
Position acquisition module 1002, for obtaining the current location of electronic equipment.
Searching module 1004, for searching access corresponding to the reference position to match with current location from the table of comparisons
Point identification set, wherein the table of comparisons includes the corresponding access point identity set at least one reference position.
Link block 1006, for being connect using the highest access point identity of access point identity set mid-score as first object
Enter point identification, wireless access point connection corresponding with first object access point identity, wherein score is for evaluating access point identity
The performance of corresponding wireless access point.
In one embodiment, position acquisition module 1002 can be also used for obtain electronic equipment currently connect wirelessly connect
The network quality parameters of access point obtain the current location of electronic equipment when network quality parameters are lower than parameter threshold.
In one embodiment, position acquisition module 1002 can be also used for being consistently less than parameter threshold when network quality parameters
When the duration of value is more than preset duration, the current location of electronic equipment is obtained.
In one embodiment, searching module 1004 can be also used for calculating each reference in current location and the table of comparisons
The distance between position value obtains the reference of lowest distance value when the lowest distance value in distance value is no more than pre-determined distance
Access point identity set corresponding to position.
In one embodiment, searching module 1004 can be also used for what the acquisition from the table of comparisons matched with current location
Reference position is gathered, the distance between each reference position and current location value in calculating parameter location sets, when in distance value
Lowest distance value be no more than pre-determined distance when, obtain access point identity set corresponding to the reference position of lowest distance value.
In one embodiment, link block 1006 can be also used for when the score of first object access point identity being more than pre-
If when score, wireless access point connection corresponding with first object access point identity.
In one embodiment, link block 1006 can be also used for wirelessly connecing when first object access point identity is corresponding
When the connection failure of access point, the access point identity in access point identity set in addition to first object access point identity is obtained, it is raw
At access point identity subclass;The highest access point identity of access point identity subclass mid-score is obtained to access as the second target
Point identification;Wireless access point connection corresponding with the second target access mark.
In one embodiment, the network connection device provided further includes update module 1008, and update module 1008 is used for
When the distance between current location and each reference position value are more than pre-determined distance, the candidate for scanning current location is wirelessly connect
Access point, wherein candidate wireless access point is the corresponding wireless access point of wireless signal that current location receives;Obtain candidate nothing
The corresponding network parameter of line access point scores to candidate wireless access point according to network parameter, obtains candidate wireless access point pair
The score answered;By current location, the access point identity of candidate wireless access point, the corresponding score of candidate wireless access point save to
The table of comparisons.
In one embodiment, update module 1008 can be also used for obtaining going through for electronic equipment and each wireless access point
History rate of connections, wherein history rate of connections indicates the frequency that electronic equipment and wireless access point are successfully connected;Connected according to history
Connect the score of corresponding each wireless access point in the frequency adjustment table of comparisons.
In one embodiment, link block 1006 can be also used for receiving scan instruction, scan electricity according to scan instruction
The candidate wireless access point of sub- equipment current location, wherein candidate wireless access point is the wireless signal that current location receives
Corresponding wireless access point;When wireless access point successful connection corresponding with first object access point identity, stop scanning;When
When wireless access point connection failure corresponding with first object access point identity, then candidate wireless access point is obtained with scanning and is connected
It connects.
In one embodiment, update module 1008 can be also used for when corresponding with first object access point identity wireless
When the connection failure of access point, the score of the corresponding wireless access point of first object access point identity in the table of comparisons is adjusted.
The division of modules is only used for for example, in other embodiments in above-mentioned network connection device, can be by net
Network attachment device is divided into different modules as required, to complete all or part of function of above-mentioned network connection device.
Specific about network connection device limits the restriction that may refer to above for method for connecting network, herein not
It repeats again.Modules in above-mentioned network connection device can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
Realizing for the modules in network connection device provided in the embodiment of the present application can be the shape of computer program
Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal
Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized
Step.
The embodiment of the present application also provides another electronic equipments.As shown in figure 11, for ease of description, illustrate only with
The relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics
Equipment can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone
For:
Figure 11 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to figure
11, mobile phone includes: memory 1120, input unit 1130, display unit 1140, locating module 1150, Wireless Fidelity
The components such as (wireless fidelity, WiFi) module 1170, processor 1180 and power supply 1190.Those skilled in the art
It is appreciated that handset structure shown in Figure 11 does not constitute the restriction to mobile phone, it may include than illustrating more or fewer portions
Part perhaps combines certain components or different component layouts.
Wherein, memory 1120 can be used for storing software program and module, and processor 1180 is stored in by operation
The software program and module of reservoir 1120, thereby executing the various function application and data processing of mobile phone.Memory 1120
It can mainly include program storage area and data storage area, wherein program storage area can storage program area, at least one function institute
The application program (such as application program, application program of image player function of sound-playing function etc.) etc. needed;Data storage
Area, which can be stored, uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1120 can
It can also include nonvolatile memory to include high-speed random access memory, a for example, at least disk memory is dodged
Memory device or other volatile solid-state parts.
Input unit 1130 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1100
It sets and the related key signals of function control inputs.Specifically, input unit 1130 may include touch panel 1131 and other
Input equipment 1132.Touch panel 1131, alternatively referred to as touch screen collect the touch operation (ratio of user on it or nearby
Such as user is using finger, stylus any suitable object or attachment on touch panel 1131 or near touch panel 1131
Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1131 can
Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine
Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus
Information is touched, and is converted into contact coordinate, then gives processor 1180, and order that processor 1180 is sent can be received and added
To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
1131.In addition to touch panel 1131, input unit 1130 can also include other input equipments 1132.Specifically, other are inputted
Equipment 1132 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc.
Kind is a variety of.
Display unit 1140 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1140 may include display panel 1141.In one embodiment, liquid crystal display can be used
(Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode,
) etc. OLED forms configure display panel 1141.In one embodiment, touch panel 1131 can cover display panel 1141,
After touch panel 1131 detects touch operation on it or nearby, processor 1180 is sent to determine touch event
Type is followed by subsequent processing device 1180 according to the type of touch event and provides corresponding visual output on display panel 1141.Although
In Figure 11, touch panel 1131 and display panel 1141 are the input and input for realizing mobile phone as two independent components
Function, but in some embodiments it is possible to touch panel 1131 and display panel 1141 are integrated and are realized the input of mobile phone
And output function.
Mobile phone 1100 may also include locating module 1150, which can be GPS module.Mobile phone 1100 passes through
Locating module 1150 can be with the current location of real-time detection mobile phone 1100.Locating module 1150 can be sent according to processor 1180
Instruction obtain electronic equipment current location.After locating module 1150 gets the current location of electronic equipment, it can incite somebody to action
The current location sends processor 1180 to, so that the processor 1180 of mobile phone 1100 does other processing according to the current location.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1170
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 11 is shown
WiFi module 1170, but it is understood that, and it is not belonging to must be configured into for mobile phone 1100, it can according to need and save
Slightly.
Processor 1180 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1120, and calls and be stored in memory 1120
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment,
Processor 1180 may include one or more processing units.In one embodiment, processor 1180 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 1180.
Mobile phone 1100 further includes the power supply 1190 (such as battery) powered to all parts, it is preferred that power supply can pass through
Power-supply management system and processor 1180 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.
In one embodiment, mobile phone 1100 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 1180 included by the electronic equipment executes the calculating of storage on a memory
The step of method for connecting network is realized when machine program.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer
The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors
When, so that the step of processor executes method for connecting network.
A kind of computer program product comprising instruction, when run on a computer, so that computer executes network
Connection method.
Any reference to memory, storage, database or other media used in this application may include non-volatile
And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled
Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory
(RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM
(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM
(ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight
Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application
Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (14)
1. a kind of method for connecting network characterized by comprising
Obtain the current location of electronic equipment;
Access point identity set corresponding to the reference position to match with the current location is searched from the table of comparisons, wherein
The table of comparisons includes the corresponding access point identity set at least one reference position;
Using the highest access point identity of described access point logo collection mid-score as first object access point identity, with described
One target access identifies corresponding wireless access point connection, wherein the score is corresponded to for evaluating described access point mark
Wireless access point performance.
2. the method according to claim 1, wherein the current location for obtaining electronic equipment, comprising:
Obtain the network quality parameters for the wireless access point that electronic equipment currently connects;
When the network quality parameters are lower than parameter threshold, the current location of the electronic equipment is obtained.
3. according to the method described in claim 2, it is characterized in that, described when the network quality parameters are lower than parameter threshold
When, obtain the current location of the electronic equipment, comprising:
When the duration that the network quality parameters are consistently less than parameter threshold is more than preset duration, obtains the electronics and set
Standby current location.
4. the method according to claim 1, wherein described search and the current location phase from the table of comparisons
Access point identity set corresponding to the reference position matched, comprising:
Calculate the distance between each reference position in the current location and table of comparisons value;
When the lowest distance value in the distance value is no more than pre-determined distance, the reference position institute of the lowest distance value is obtained
Corresponding access point identity set.
5. according to the method described in claim 4, it is characterized in that, it is described calculate the current location with it is each in the table of comparisons
The distance between reference position value, comprising:
The reference position to match with the current location is obtained from the table of comparisons to gather;
Calculate the distance between each reference position and the current location value in the reference position set.
6. the method according to claim 1, wherein the nothing corresponding with the first object access point identity
The connection of line access point, comprising:
It is corresponding with the first object access point identity when the score of the first object access point identity is more than preset fraction
Wireless access point connection.
7. the method according to claim 1, wherein described by described access point logo collection mid-score highest
Access point identity as first object access point identity, wireless access point corresponding with the first object access point identity connects
After connecing, further includes:
When the connection failure of wireless access point corresponding with the first object access point identity, described access point mark is obtained
Access point identity in set in addition to the first object access point identity generates access point identity subclass;
The described access point mark highest access point identity of subclass mid-score is obtained to identify as the second target access;
Wireless access point connection corresponding with the second target access mark.
8. method according to any one of claims 1 to 7, which is characterized in that the method also includes:
When the distance between the current location and each reference position value are more than pre-determined distance, scan described current
The candidate wireless access point of position, wherein candidate's wireless access point is the wireless signal pair that the current location receives
The wireless access point answered;
The corresponding network parameter of the candidate wireless access point is obtained, according to the network parameter to the candidate wireless access point
Scoring obtains the corresponding score of the candidate wireless access point;
By the current location, the access point identity of the candidate wireless access point, candidate corresponding point of the wireless access point
Number is saved to the table of comparisons.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
Obtain the history rate of connections of the electronic equipment Yu each wireless access point, wherein the history rate of connections
Indicate the frequency that the electronic equipment and wireless access point are successfully connected;
The score of corresponding each wireless access point in the table of comparisons is adjusted according to the history rate of connections.
10. method according to any one of claims 1 to 7, which is characterized in that the method also includes:
Scan instruction is received, the candidate wireless access point of the electronic equipment current location is scanned according to the scan instruction,
In, candidate's wireless access point is the corresponding wireless access point of wireless signal that the current location receives;
When wireless access point successful connection corresponding with the first object access point identity, stop scanning;
When wireless access point connection failure corresponding with the first object access point identity, then with the candidate wireless access
Point connection.
11. method according to any one of claims 1 to 7, which is characterized in that the method also includes:
When the connection failure of wireless access point corresponding with the first object access point identity, institute in the table of comparisons is adjusted
State the score of the corresponding wireless access point of first object access point identity.
12. a kind of network connection device characterized by comprising
Position acquisition module, for obtaining the current location of electronic equipment;
Searching module, for searching access point mark corresponding to the reference position to match with the current location from the table of comparisons
Know set, wherein the table of comparisons includes the corresponding access point identity set at least one reference position;
Link block, for using the highest access point identity of described access point logo collection mid-score as first object access point
Mark, wireless access point connection corresponding with the first object access point identity, wherein the score is for evaluating described connect
Enter the performance of the corresponding wireless access point of point identification.
13. a kind of electronic equipment, including memory and processor, computer program, the calculating are stored in the memory
When machine program is executed by the processor, so that the processor executes the network as described in any one of claims 1 to 11
The step of connection method.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method as described in any one of claims 1 to 11 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810934164.XA CN109040958A (en) | 2018-08-16 | 2018-08-16 | Method for connecting network, device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810934164.XA CN109040958A (en) | 2018-08-16 | 2018-08-16 | Method for connecting network, device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109040958A true CN109040958A (en) | 2018-12-18 |
Family
ID=64630572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810934164.XA Pending CN109040958A (en) | 2018-08-16 | 2018-08-16 | Method for connecting network, device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109040958A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109548103A (en) * | 2018-12-19 | 2019-03-29 | 连尚(新昌)网络科技有限公司 | Method and apparatus for handover network |
CN109618421A (en) * | 2019-01-14 | 2019-04-12 | Oppo广东移动通信有限公司 | A kind of method and device, terminal, storage medium reconnecting AP |
CN110418396A (en) * | 2019-07-12 | 2019-11-05 | 宇龙计算机通信科技(深圳)有限公司 | Control method, device, terminal and the storage medium of WIFI network |
CN111163499A (en) * | 2019-11-29 | 2020-05-15 | 联通物联网有限责任公司 | Access method, device, electronic equipment and storage medium |
CN112333798A (en) * | 2020-11-05 | 2021-02-05 | 珠海格力电器股份有限公司 | Control method and device of intelligent equipment |
CN112437462A (en) * | 2020-11-23 | 2021-03-02 | 青岛海尔科技有限公司 | Quality determination method and device for WIFI module, storage medium and electronic device |
CN113613348A (en) * | 2021-08-11 | 2021-11-05 | 北京达佳互联信息技术有限公司 | Connection establishing method and device, electronic equipment and storage medium |
CN113645566A (en) * | 2021-07-09 | 2021-11-12 | 美智纵横科技有限责任公司 | Robot network switching method, device and storage medium |
CN114531712A (en) * | 2022-02-23 | 2022-05-24 | 北京小米移动软件有限公司 | Wireless communication method and apparatus, mobile terminal, and non-transitory readable storage medium |
CN114641054A (en) * | 2022-03-08 | 2022-06-17 | 浙江大华技术股份有限公司 | Network connection method and device, storage medium and electronic device |
WO2023137606A1 (en) * | 2022-01-19 | 2023-07-27 | Qualcomm Incorporated | Methods and apparatus for access point selection |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686595A (en) * | 2012-09-26 | 2014-03-26 | 联想(北京)有限公司 | State switching method and electronic equipment |
CN105828397A (en) * | 2016-03-28 | 2016-08-03 | 维沃移动通信有限公司 | Wireless access point switching method and mobile terminal |
CN106303940A (en) * | 2015-05-20 | 2017-01-04 | 展讯通信(上海)有限公司 | Mobile terminal WLAN cut-in method and device |
CN107172588A (en) * | 2017-06-14 | 2017-09-15 | 广东艾檬电子科技有限公司 | A kind of WiFi network recommends method and device |
CN107241782A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Method for network access, mobile terminal and computer-readable recording medium |
CN107241771A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Method for switching network, mobile terminal and computer-readable recording medium |
CN108307462A (en) * | 2018-01-30 | 2018-07-20 | 努比亚技术有限公司 | A kind of method for connecting network, terminal and computer readable storage medium |
-
2018
- 2018-08-16 CN CN201810934164.XA patent/CN109040958A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686595A (en) * | 2012-09-26 | 2014-03-26 | 联想(北京)有限公司 | State switching method and electronic equipment |
CN106303940A (en) * | 2015-05-20 | 2017-01-04 | 展讯通信(上海)有限公司 | Mobile terminal WLAN cut-in method and device |
CN105828397A (en) * | 2016-03-28 | 2016-08-03 | 维沃移动通信有限公司 | Wireless access point switching method and mobile terminal |
CN107172588A (en) * | 2017-06-14 | 2017-09-15 | 广东艾檬电子科技有限公司 | A kind of WiFi network recommends method and device |
CN107241782A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Method for network access, mobile terminal and computer-readable recording medium |
CN107241771A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Method for switching network, mobile terminal and computer-readable recording medium |
CN108307462A (en) * | 2018-01-30 | 2018-07-20 | 努比亚技术有限公司 | A kind of method for connecting network, terminal and computer readable storage medium |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109548103A (en) * | 2018-12-19 | 2019-03-29 | 连尚(新昌)网络科技有限公司 | Method and apparatus for handover network |
CN109618421A (en) * | 2019-01-14 | 2019-04-12 | Oppo广东移动通信有限公司 | A kind of method and device, terminal, storage medium reconnecting AP |
CN109618421B (en) * | 2019-01-14 | 2021-04-30 | Oppo广东移动通信有限公司 | Method and device for reconnecting AP, terminal and storage medium |
CN110418396A (en) * | 2019-07-12 | 2019-11-05 | 宇龙计算机通信科技(深圳)有限公司 | Control method, device, terminal and the storage medium of WIFI network |
CN111163499B (en) * | 2019-11-29 | 2022-01-04 | 联通物联网有限责任公司 | Access method, device, electronic equipment and storage medium |
CN111163499A (en) * | 2019-11-29 | 2020-05-15 | 联通物联网有限责任公司 | Access method, device, electronic equipment and storage medium |
CN112333798A (en) * | 2020-11-05 | 2021-02-05 | 珠海格力电器股份有限公司 | Control method and device of intelligent equipment |
CN112437462B (en) * | 2020-11-23 | 2023-06-16 | 青岛海尔科技有限公司 | Quality determination method and device of WIFI module, storage medium and electronic device |
CN112437462A (en) * | 2020-11-23 | 2021-03-02 | 青岛海尔科技有限公司 | Quality determination method and device for WIFI module, storage medium and electronic device |
CN113645566A (en) * | 2021-07-09 | 2021-11-12 | 美智纵横科技有限责任公司 | Robot network switching method, device and storage medium |
CN113645566B (en) * | 2021-07-09 | 2024-03-19 | 美智纵横科技有限责任公司 | Robot network switching method, device and storage medium |
CN113613348A (en) * | 2021-08-11 | 2021-11-05 | 北京达佳互联信息技术有限公司 | Connection establishing method and device, electronic equipment and storage medium |
CN113613348B (en) * | 2021-08-11 | 2023-08-29 | 北京达佳互联信息技术有限公司 | Connection establishment method, device, electronic equipment and storage medium |
WO2023137606A1 (en) * | 2022-01-19 | 2023-07-27 | Qualcomm Incorporated | Methods and apparatus for access point selection |
CN114531712A (en) * | 2022-02-23 | 2022-05-24 | 北京小米移动软件有限公司 | Wireless communication method and apparatus, mobile terminal, and non-transitory readable storage medium |
CN114531712B (en) * | 2022-02-23 | 2024-02-06 | 北京小米移动软件有限公司 | Wireless communication method and device, mobile terminal and non-transitory readable storage medium |
CN114641054A (en) * | 2022-03-08 | 2022-06-17 | 浙江大华技术股份有限公司 | Network connection method and device, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109040958A (en) | Method for connecting network, device, electronic equipment and computer readable storage medium | |
US20210282077A1 (en) | Method for Selecting NSA and SA Networking Mode, and Terminal Device | |
CN109556621B (en) | Route planning method and related equipment | |
CN108664957B (en) | License plate number matching method and device, and character information matching method and device | |
CN105657791A (en) | Communication network access method and device | |
CN111316673B (en) | Electronic fence updating method and communication device | |
CN109219953B (en) | Alarm clock reminding method, electronic equipment and computer readable storage medium | |
CN104035951B (en) | Show the method for map, device and terminal | |
CN110837833A (en) | Question selection method and device, terminal equipment and readable storage medium | |
CN105704700A (en) | Communication network access method and device | |
CN107005810A (en) | A kind of floor location method, the network equipment and mobile terminal | |
CN106982459B (en) | Network scanning method and terminal device | |
CN109155899A (en) | Network-residing method of mobile terminal in wireless communication network and mobile terminal | |
CN105898839A (en) | Communication network access method and device | |
CN107820302A (en) | Mobile terminal wireless local area network scan method and apparatus, computer equipment | |
CN110933657A (en) | Dialing method and device in emergency state, storage medium and electronic equipment | |
CN107820303A (en) | Mobile terminal wireless local area network scan method and apparatus, computer equipment | |
CN109862607B (en) | Network recommendation method and mobile terminal | |
CN106961710A (en) | A kind of method for network access and terminal | |
CN105303591A (en) | Method for superposing place information in puzzle, terminal and server | |
CN107969025A (en) | Mobile terminal wireless local area network scan method and apparatus, computer equipment | |
CN105744602A (en) | Communication network access method and device | |
CN105744600B (en) | Communication network cut-in method and user equipment | |
CN105657792A (en) | Communication network access method and device | |
CN105704788A (en) | Communication network access method and user equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |