CN106714277A - Network connection method and terminal - Google Patents
Network connection method and terminal Download PDFInfo
- Publication number
- CN106714277A CN106714277A CN201611120988.0A CN201611120988A CN106714277A CN 106714277 A CN106714277 A CN 106714277A CN 201611120988 A CN201611120988 A CN 201611120988A CN 106714277 A CN106714277 A CN 106714277A
- Authority
- CN
- China
- Prior art keywords
- network
- connection
- geographical position
- unit
- current
- 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.)
- Granted
Links
Classifications
-
- 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
- H04W76/00—Connection management
- H04W76/10—Connection setup
Abstract
The invention provides a network connection method and a terminal. The method comprises the following steps: locating a current geographic position; if the current geographic location is in a preset geographical position set, determining the signal strength of a currently connected Wi-Fi and the quantity of networks of the same frequency within a preset range; calculating the first weight corresponding to the signal strength of the currently connected Wi-Fi and the second weight corresponding to the quantity of the networks the same frequency within the preset range according to a preset manner; and if sum of the first weight and the second weight is equal to or smaller than a preset threshold, trying to connect a Wi-Fi of another frequency. Therefore, due to the implementation of the network connection method and the terminal, a network of another frequency can be automatically searched and accessed when the current site is in the preset geographical position set and the current signal is poor, that is, accessing the network of which the signal is better and has another frequency is realized without manual work.
Description
Technical field
The present invention relates to field of terminal, and in particular to a kind of method and terminal of network connection.
Background technology
The popularization of booming and intelligent terminal with broadband industry, increasing user passes through intelligent terminal Wi-Fi
Access gateway, to enjoy network service.
It is pointed out that in some public arenas, may there are multiple Network Access Points, if now user accesses
Access point signals are weaker or during slower networking speed, in addition it is also necessary to other access points of manual reconnect are attempting finding letter
Number compared with the strong or very fast network of networking speed.
The content of the invention
The method and terminal of a kind of network connection are the embodiment of the invention provides, preset location can be belonged in current location
Set and current demand signal it is poor in the case of, the network of another frequency is searched for automatically and is accessed, so as to without manually joining
With in the case of, the network of signal preferably another frequency is linked into.
The method that embodiment of the present invention first aspect discloses network connection, methods described includes:
The current geographical position of positioning;
If the current geographical position belongs to preset geographical position set, it is determined that the signal of the Wi-Fi of current connection
The quantity of the network of same frequency in intensity and preset range;
Corresponding first weight of signal intensity of the Wi-Fi of the current connection is calculated according to predetermined manner and institute is calculated
State corresponding second weight of quantity of the network of same frequency in preset range;
If first weight is less than predetermined threshold value with the second weight sum, the Wi-Fi of another frequency of connection is attempted.
Second aspect present invention discloses a kind of terminal, and the terminal includes:
Positioning unit, for positioning current geographical position;
Determining unit, if belonging to preset geographical position set for the current geographical position, it is determined that current connection
Wi-Fi signal intensity and same frequency in preset range network quantity;
Computing unit, the signal intensity corresponding first of the Wi-Fi for calculating the current connection according to predetermined manner
Corresponding second weight of quantity of the network of same frequency in weight and the calculating preset range;
Connection unit, if being less than predetermined threshold value with the second weight sum for first weight, attempts connection another
The Wi-Fi of one frequency.
Third aspect present invention discloses a kind of terminal, and the terminal includes:
Be stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs as described in relation to the first aspect
Method.
In the scheme of the embodiment of the present invention, current geographical position is positioned;If the current geographical position belongs to default
Gather in geographical position, it is determined that the number of the network of same frequency in the signal intensity and preset range of the Wi-Fi of current connection
Amount;Corresponding first weight of signal intensity of the Wi-Fi of the current connection is calculated according to predetermined manner and is calculated described pre-
If corresponding second weight of the quantity of the network of same frequency in scope;If first weight is small with the second weight sum
In predetermined threshold value, the Wi-Fi of another frequency of connection is attempted.It is hereby understood that by implementing the technical scheme that the present invention is provided, can
Current location belong to preset location set and current demand signal it is poor in the case of, the network of another frequency is searched for automatically and is carried out
Access, so as in the case of without manually participating in, be linked into the network of signal preferably another frequency.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below by to be used needed for embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for network connection provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another network connection provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another network connection provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another terminal provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of entity apparatus structural representation of terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of entity apparatus structural representation of mobile phone provided in an embodiment of the present invention.
Specific embodiment
The method and terminal of a kind of network connection are the embodiment of the invention provides, preset location can be belonged in current location
Set and current demand signal it is poor in the case of, the network of another frequency is searched for automatically and is accessed, so as to without manually joining
With in the case of, the network of signal preferably another frequency is linked into.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is explicitly described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is the present invention one
The embodiment divided, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, should all belong to the scope of protection of the invention.
Term " first ", " second " and " the 3rd " occurred in description of the invention, claims and accompanying drawing etc. is to use
In the different objects of difference, and it is not intended to describe specific order.Additionally, term " comprising " and " having " and they are any
Deformation, it is intended that covering is non-exclusive to be included.For example contain process, method, system, the product of series of steps or unit
Or equipment is not limited to the step of having listed or unit, but alternatively also include the step of not listing or unit, or can
Selection of land also includes for these processes, method, product or other intrinsic steps of equipment or unit.
A kind of method of network connection is disclosed in one embodiment of the invention, and methods described includes:Positioning is current
Geographical position;If the current geographical position belongs to preset geographical position set, it is determined that the letter of the Wi-Fi of current connection
The quantity of the network of same frequency in number intensity and preset range;The Wi-Fi of the current connection is calculated according to predetermined manner
Corresponding first weight of signal intensity and calculate the quantity corresponding second of the network of same frequency in the preset range
Weight;If first weight is less than predetermined threshold value with the second weight sum, the Wi-Fi of another frequency of connection is attempted.
Fig. 1 is referred to, Fig. 1 is a kind of method of network connection that one embodiment of the invention is provided.Wherein, such as Fig. 1 institutes
Show, a kind of method of network connection that one embodiment of the present of invention is provided includes herein below:
The current geographical position of S101, positioning;
, wherein it is desired to, it is noted that the executive agent of the method is terminal.The terminal includes but is not limited to intelligent hand
Machine, panel computer, computer and Wearable etc. can carry out data transmission the electronic equipment of business by network.
Wherein, the terminal can be entered by global positioning system (GPS), GALILEO positioning system or the Big Dipper alignment system
Row positioning.
Wherein, the terminal can also be positioned by being interacted with base station.
, wherein it is desired to, it is noted that before the current geographical position of the positioning, methods described also includes:Prompting user
Geographical location sets are set;Receive the keyword of user input;The geographical position that search matches with the keyword;According to institute
State geographical position and generate the preset geographical position set.
For example, can by way of voice, information or vibrations to user send point out so that user according to
Prompting carries out geographical position set and is configured.
Such as, user input is market, then the lift area corresponding to position where positioning active user is (such as
City, county or area etc.), the geographical position in all markets then searched in the administrative region, then according to the geographical position
Generate the preset geographical position set.
If S102, the current geographical position belong to preset geographical position set, it is determined that the Wi-Fi's of current connection
The quantity of the network of same frequency in signal intensity and preset range;
For example, if the position of present terminal is on airport, and current geographic position belongs to preset geographical position collection
Close, then terminal is accomplished by the network of same frequency in the signal intensity of the Wi-Fi for determining current connection and preset range
Quantity.
Wherein, Wi-Fi common at present frequency is 2.4GHz and 5GHz, wherein, 2.4GHz is more commonly used.Because, 2.4G
Penetrability is good, and transmission range is near;And 5G penetrability is poor, long transmission distance.In addition, antidamping ability in 2.4G frequency range indoor environments
By force, but due to many equipment is all 2.4GHz, so interference is a lot, it is impossible to ensure enough stability.And 5GHz is frequently
The maximum advantage of section is that application at present is less so interference is very small, can ensure the quality transmitted;But shortcoming is it is also obvious that room
Interior antidamping ability is weak.
Specifically, the signal intensity of the Wi-Fi for determining current connection, including:Obtain the Wi- shown on terminal screen
The signal lattice number of Fi;The speed of network uplink and downlink in statistics Preset Time;According to the signal lattice number, network uplink and under
Capable speed calculates signal intensity.
Specifically, the quantity for determining the network of same frequency in preset range, including:Determine the current connection
The coverage of Wi-Fi;Preset range is determined according to the coverage;Scan the access point in the preset range;To sweeping
The attribute of the access point retouched is analyzed to determine the quantity of the network of same frequency.
S103, calculated according to predetermined manner the current connection Wi-Fi corresponding first weight of signal intensity and
Calculate corresponding second weight of quantity of the network of same frequency in the preset range;
It is pointed out that the weight of such as signal intensity is 50%, the quantity of the network of same frequency in preset range
Weight be 50%.Distribution not to weight herein is limited.
For example, the total value of weight is 100.The full lattice number of signal intensity is 5 lattice, then it is exactly 10 that one corresponding;Together
It is corresponding corresponding corresponding corresponding when being 30,6-8 when being 40,4-6 when being 50,2-4 during the quantity 0-2 of the network of one frequency
Corresponding when being 20,8-10 is 10, is subsequently no longer enumerated.
If S104, first weight are less than predetermined threshold value with the second weight sum, another frequency of connection is attempted
Wi-Fi。
Such as current predetermined threshold value is 60, if it were currently 2 lattice signals, and the quantity of the network of same frequency would be 6
So, then first weight is exactly 50 with the second weight sum, thus less than predetermined threshold value 60.
If the network of current connection is the network that 2.4GHz networks so attempt to connection 5GHz.If current connection
Network is the network that 5GHz networks so attempt to connect 2.4GHz.
Specifically, the Wi-Fi of another frequency of connection is attempted, including:Start Wi-Fi scan functions to carry out Wi-Fi scannings;
The Wi-Fi attributes that reading is scanned are to determine whether the being Wi-Fi of another frequency;When the Wi-Fi for scanning determines
For another frequency Wi-Fi when, attempt by the Wi-Fi passwords that scan of internet acquisition;Scanned according to described
Wi-Fi and password corresponding with the Wi-Fi carry out network connection.
As can be seen that in the scheme of the embodiment of the present invention, positioning current geographical position;If the current geographical position
Belong to preset geographical position set, it is determined that same frequency in the signal intensity and preset range of the Wi-Fi of current connection
The quantity of network;Corresponding first weight of signal intensity and meter of the Wi-Fi of the current connection are calculated according to predetermined manner
Calculate corresponding second weight of quantity of the network of same frequency in the preset range;If first weight and the described second power
Weight sum is less than predetermined threshold value, attempts the Wi-Fi of another frequency of connection.It is hereby understood that by implementing the technology that the present invention is provided
Scheme, can current location belong to preset location set and current demand signal it is poor in the case of, another frequency is searched for automatically
Network is simultaneously accessed, so as in the case of without manually participating in, be linked into the network of signal preferably another frequency.
Fig. 2 is referred to, Fig. 2 is a kind of method of network connection that one embodiment of the invention is provided.Wherein, such as Fig. 2 institutes
Show, a kind of method of network connection that one embodiment of the present of invention is provided includes herein below:
The current geographical position of S201, positioning;
, wherein it is desired to, it is noted that the executive agent of the method is terminal.The terminal includes but is not limited to intelligent hand
Machine, panel computer, computer and Wearable etc. can carry out data transmission the electronic equipment of business by network.
Wherein, the terminal can be entered by global positioning system (GPS), GALILEO positioning system or the Big Dipper alignment system
Row positioning.
Wherein, the terminal can also be positioned by being interacted with base station.
, wherein it is desired to, it is noted that before the current geographical position of the positioning, methods described also includes:Prompting user
Geographical location sets are set;Receive the keyword of user input;The geographical position that search matches with the keyword;According to institute
State geographical position and generate the preset geographical position set.
For example, can by way of voice, information or vibrations to user send point out so that user according to
Prompting carries out geographical position set and is configured.
Such as, user input is market, then the lift area corresponding to position where positioning active user is (such as
City, county or area etc.), the geographical position in all markets then searched in the administrative region, then according to the geographical position
Generate the preset geographical position set.
If S202, the current geographical position belong to preset geographical position set, the Wi- shown on terminal screen is obtained
The signal lattice number of Fi.
Wherein it is possible to understand, wifi signals show there are four kinds of states from weak to strong in umbrella:Nothing, 1 lattice, 2 lattice, 3
Lattice.
The speed of network uplink and downlink in S203, statistics Preset Time.
Wherein it is possible to understand, the Preset Time can be the time of terminal acquiescence, or user sets in advance
Put the time of storage, wherein, the Preset Time for example can for 5 minutes, 10 minutes, 15 minutes, 20 minutes etc. or other when
Between length.
Wherein, the speed of the network uplink speed to refer to user uploaded by network thing, such as user's hair mail, on
Pass speed of photo etc..Download the speed of thing by network as long as the downstream rate refers to user, such as user sees a film,
Download speed of thing etc..
S204, signal intensity is calculated according to the signal lattice number, network uplink and descending speed.
Wherein it is possible to understand, if the signal lattice number is more and network uplink and descending speed soon if illustrate signal
Intensity is strong, conversely, if the signal lattice number is few and network uplink and descending speed slowly if illustrate that signal intensity is weak.
S205, determine the current connection Wi-Fi coverage.
Wherein, the coverage of the wifi it is main by radio transmitted power and barrier number determine.Root
According to IEEE802.11 standards, the ultimate range that general wireless router can be covered is usually 100 meters to 300 meters, but covers
Scope should mainly regard environment opening whether, building or other barriers are how many and signal annoyance level is relevant.
S206, preset range is determined according to the coverage.
Wherein it is possible to understand, the preset range is less than or equal to the coverage.
S207, the access point scanned in the preset range.
S208, the attribute of access point to scanning are analyzed to determine the quantity of the network of same frequency.
S209, calculated according to predetermined manner the current connection Wi-Fi corresponding first weight of signal intensity and
Calculate corresponding second weight of quantity of the network of same frequency in the preset range.
It is pointed out that the weight of such as signal intensity is 50%, the quantity of the network of same frequency in preset range
Weight be 50%.Distribution not to weight herein is limited.
For example, the total value of weight is 100.The full lattice number of signal intensity is 5 lattice, then it is exactly 10 that one corresponding;Together
It is corresponding corresponding corresponding corresponding when being 30,6-8 when being 40,4-6 when being 50,2-4 during the quantity 0-2 of the network of one frequency
Corresponding when being 20,8-10 is 10, is subsequently no longer enumerated.
If S210, first weight are less than predetermined threshold value with the second weight sum, another frequency of connection is attempted
Wi-Fi。
Such as current predetermined threshold value is 60, if it were currently 2 lattice signals, and the quantity of the network of same frequency would be 6
So, then first weight is exactly 50 with the second weight sum, thus less than predetermined threshold value 60.
If the network of current connection is the network that 2.4GHz networks so attempt to connection 5GHz.If current connection
Network is the network that 5GHz networks so attempt to connect 2.4GHz.
Specifically, the Wi-Fi of another frequency of connection is attempted, including:Start Wi-Fi scan functions to carry out Wi-Fi scannings;
The Wi-Fi attributes that reading is scanned are to determine whether the being Wi-Fi of another frequency;When the Wi-Fi for scanning determines
For another frequency Wi-Fi when, attempt by the Wi-Fi passwords that scan of internet acquisition;Scanned according to described
Wi-Fi and password corresponding with the Wi-Fi carry out network connection.
As can be seen that extending the signal intensity and really of the Wi-Fi for determining current connection in the scheme of the embodiment of the present invention
The step of determining the quantity of the network of same frequency in preset range such that it is able to belong to preset location set in current location and work as
In the case that front signal is poor, the network of another frequency is searched for automatically and is accessed, so as in the situation without manually participating in
Under, it is linked into the network of signal preferably another frequency.
Fig. 3 is referred to, Fig. 3 is a kind of method of network connection that one embodiment of the invention is provided.Wherein, such as Fig. 3 institutes
Show, a kind of method of network connection that one embodiment of the present of invention is provided includes herein below:
S301, prompting user set geographical location sets.
S302, the keyword for receiving user input.
The geographical position that S303, search match with the keyword.
S304, the preset geographical position set is generated according to the geographical position.
The current geographical position of S305, positioning.
If S306, the current geographical position belong to preset geographical position set, it is determined that the Wi-Fi's of current connection
The quantity of the network of same frequency in signal intensity and preset range.
S307, calculated according to predetermined manner the current connection Wi-Fi corresponding first weight of signal intensity and
Calculate corresponding second weight of quantity of the network of same frequency in the preset range.
If S308, first weight and the second weight sum are less than predetermined threshold value, start Wi-Fi scan functions with
Carry out Wi-Fi scannings.
The Wi-Fi attributes that S309, reading are scanned are to determine whether the being Wi-Fi of another frequency.
S310, when the Wi-Fi for scanning is defined as the Wi-Fi of another frequency, trial obtained by internet
Take the Wi-Fi passwords for scanning.
S311, network connection is carried out according to the Wi-Fi for scanning and password corresponding with the Wi-Fi.
As can be seen that extending generation preset geographical position set and another frequency of connection in the scheme of the embodiment of the present invention
Wi-Fi the step of so that terminal can belong to preset location set and the poor situation of current demand signal in current location
Under, the network of another frequency is searched for automatically and is accessed, in the case of without manually participating in, it is linked into signal preferably another
The network of one frequency.
Fig. 4 is referred to, Fig. 4 is a kind of structural representation of terminal that one embodiment of the present of invention is provided.Wherein, as schemed
Shown in 4, a kind of terminal 400 that one embodiment of the present of invention is provided, wherein, it is smart mobile phone, flat board electricity that the terminal can be
The electronic equipments such as brain, intelligent wearable equipment.The terminal 400 includes positioning unit 401, determining unit 402, computing unit 403
And connection unit 404.
Positioning unit 401, for positioning current geographical position;
Determining unit 402, if belonging to preset geographical position set for the current geographical position, it is determined that currently connect
The quantity of the network of same frequency in the signal intensity and preset range of the Wi-Fi for connecing;
Computing unit 403, for calculating the signal intensity of Wi-Fi of the current connection corresponding the according to predetermined manner
Corresponding second weight of quantity of the network of same frequency in one weight and the calculating preset range;
Connection unit 404, if being less than predetermined threshold value with the second weight sum for first weight, attempts connection
The Wi-Fi of another frequency.
Wherein, positioning unit 401, determining unit 402, computing unit 403 and connection unit 404 can be used for performing reality
The method described in step S101 to S104 in example 1 is applied, description of the detailed in Example 1 to methods described is specifically described, herein no longer
Repeat.
Fig. 5 is referred to, Fig. 5 is a kind of structural representation of terminal that one embodiment of the present of invention is provided.Wherein, as schemed
Shown in 5, another terminal 500 that one embodiment of the present of invention is provided, wherein, it is smart mobile phone, flat board that the terminal can be
The electronic equipments such as computer, intelligent wearable equipment.The terminal 500 includes positioning unit 501, determining unit 502, computing unit
503 and connection unit 504.
Positioning unit 501, for positioning current geographical position;
Determining unit 502, if belonging to preset geographical position set for the current geographical position, it is determined that currently connect
The quantity of the network of same frequency in the signal intensity and preset range of the Wi-Fi for connecing;
Wherein, the determining unit 502 includes obtaining subelement 5021, statistics subelement 5022 and computation subunit
5023。
The acquisition subelement 5021, the signal lattice number for obtaining the Wi-Fi shown on terminal screen;
The statistics subelement 5022, the speed for counting network uplink and downlink in Preset Time;
The computation subunit 5023, for calculating signal according to the signal lattice number, network uplink and descending speed
Intensity.
Wherein, the determining unit 502 also includes determination subelement 5024, analysis subelement 5025 and scanning subelement
5026。
The determination subelement 5024, the coverage of the Wi-Fi for determining the current connection;According to the covering
Scope determines preset range.
The scanning subelement 5025, for scanning the access point in the preset range.
The analysis subelement 5026, the attribute for the access point to scanning is analyzed to determine same frequency
The quantity of network.
Computing unit 503, for calculating the signal intensity of Wi-Fi of the current connection corresponding the according to predetermined manner
Corresponding second weight of quantity of the network of same frequency in one weight and the calculating preset range;
Connection unit 504, if being less than predetermined threshold value with the second weight sum for first weight, attempts connection
The Wi-Fi of another frequency.
Wherein, receiving unit 501, connection unit 502, detection unit 503 and acquiring unit 504 can be used for performing reality
The method described in step S201 to S210 in example 2 is applied, description of the detailed in Example 2 to methods described is specifically described, herein no longer
Repeat.
Fig. 6 is referred to, Fig. 6 is a kind of structural representation of terminal that one embodiment of the present of invention is provided.Wherein, as schemed
Shown in 6, another terminal 600 that one embodiment of the present of invention is provided, wherein, it is smart mobile phone, flat board that the terminal can be
The electronic equipments such as computer, intelligent wearable equipment.The terminal 600 includes that terminal 600 includes positioning unit 601, determining unit
602nd, computing unit 603, connection unit 604, Tip element 605, receiving unit 606, search unit 607 and generation unit
608。
Tip element 605, for pointing out user to set geographical location sets.
Receiving unit 606, the keyword for receiving user input.
Search unit 607, for searching for the geographical position matched with the keyword.
Generation unit 608, for generating the preset geographical position set according to the geographical position.
Positioning unit 601, for positioning current geographical position.
Determining unit 602, if belonging to preset geographical position set for the current geographical position, it is determined that currently connect
The quantity of the network of same frequency in the signal intensity and preset range of the Wi-Fi for connecing;
Computing unit 603, for calculating the signal intensity of Wi-Fi of the current connection corresponding the according to predetermined manner
Corresponding second weight of quantity of the network of same frequency in one weight and the calculating preset range;
Connection unit 604, if being less than predetermined threshold value with the second weight sum for first weight, attempts connection
The Wi-Fi of another frequency.
Wherein, the connection unit 604 includes promoter unit 6041, accesses subelement 6042, obtains subelement 6043
And connection subelement 6044.
Promoter unit 6041, for starting Wi-Fi scan functions to carry out Wi-Fi scannings;
Subelement 6042 is accessed, for reading the Wi-Fi attributes for scanning to determine whether the being Wi- of another frequency
Fi;
Subelement 6043 is obtained, during for the Wi-Fi for being defined as another frequency as the Wi-Fi for scanning, is tasted
Ping internet and obtain the Wi-Fi passwords for scanning;
Connection subelement 6044, for being carried out according to the Wi-Fi for scanning and password corresponding with the Wi-Fi
Network connection.
Wherein, receiving unit 601, connection unit 602, detection unit 603 and acquiring unit 604 can be used for performing reality
The method described in step S301 to S306 in example 3 is applied, description of the detailed in Example 3 to methods described is specifically described, herein no longer
Repeat.
Fig. 7 is referred to, in another embodiment of the present invention, there is provided a kind of second terminal.The second terminal 700 is wrapped
Include CPU701, memory 702, bus 703.Wherein, the terminal 700 can be smart mobile phone, panel computer, Intelligent worn device
Deng the electronic equipment with call function.
Wherein, CPU701 performs the program being stored in advance in memory 702, and the implementation procedure is specifically included:
The current geographical position of positioning;
If the current geographical position belongs to preset geographical position set, it is determined that the signal of the Wi-Fi of current connection
The quantity of the network of same frequency in intensity and preset range;
Corresponding first weight of signal intensity of the Wi-Fi of the current connection is calculated according to predetermined manner and institute is calculated
State corresponding second weight of quantity of the network of same frequency in preset range;
If first weight is less than predetermined threshold value with the second weight sum, the Wi-Fi of another frequency of connection is attempted.
Optionally, the signal intensity of the Wi-Fi for determining current connection, including:
Obtain the signal lattice number of the Wi-Fi shown on terminal screen;
The speed of network uplink and downlink in statistics Preset Time;
Signal intensity is calculated according to the signal lattice number, network uplink and descending speed.
Optionally, the quantity for determining the network of same frequency in preset range, including:
Determine the coverage of the Wi-Fi of the current connection;
Preset range is determined according to the coverage;
Scan the access point in the preset range;
The attribute of the access point to scanning is analyzed to determine the quantity of the network of same frequency.
Optionally, before the current geographical position of the positioning, the implementation procedure also includes:
Prompting user sets geographical location sets;
Receive the keyword of user input;
The geographical position that search matches with the keyword;
The preset geographical position set is generated according to the geographical position.
Optionally, the Wi-Fi of another frequency of connection is attempted, including:
Start Wi-Fi scan functions to carry out Wi-Fi scannings;
The Wi-Fi attributes that reading is scanned are to determine whether the being Wi-Fi of another frequency;
When the Wi-Fi for scanning is defined as the Wi-Fi of another frequency, attempts being obtained by internet and scan
The Wi-Fi passwords for arriving;
Network connection is carried out according to the Wi-Fi for scanning and password corresponding with the Wi-Fi.
As can be seen that in the scheme of the embodiment of the present invention, positioning current geographical position;If the current geographical position
Belong to preset geographical position set, it is determined that same frequency in the signal intensity and preset range of the Wi-Fi of current connection
The quantity of network;Corresponding first weight of signal intensity and meter of the Wi-Fi of the current connection are calculated according to predetermined manner
Calculate corresponding second weight of quantity of the network of same frequency in the preset range;If first weight and the described second power
Weight sum is less than predetermined threshold value, attempts the Wi-Fi of another frequency of connection.It is hereby understood that by implementing the technology that the present invention is provided
Scheme, can current location belong to preset location set and current demand signal it is poor in the case of, another frequency is searched for automatically
Network is simultaneously accessed, so as in the case of without manually participating in, be linked into the network of signal preferably another frequency.
Fig. 8 is referred to, Fig. 8 is the frame of the part-structure of the mobile phone of the terminal correlation that one embodiment of the present of invention is provided
Figure.With reference to Fig. 8, mobile phone includes:It is radio frequency (Radio Frequency, RF) circuit 810, memory 820, input block 830, aobvious
Show unit 840, sensor 850, voicefrequency circuit 860, Wireless Fidelity (Wireless Fidelity, Wi-Fi) module 870, treatment
The part such as device 880 and power supply 890.It will be understood by those skilled in the art that the handset structure shown in Fig. 8 do not constitute it is right
The restriction of mobile phone, can include part more more or less than diagram, or combine some parts, or different part cloth
Put.
Each component parts of mobile phone is specifically introduced with reference to Fig. 8:
RF circuits 810 can be used for the reception of information and transmission.Generally, RF circuits 810 include but is not limited to antenna, at least one
Individual amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally,
RF circuits 810 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is many
Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division
Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service
(Short Messaging Service, SMS) etc..
Memory 820 can be used to store software program and module, and processor 880 is by running storage in memory 820
Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 820 can mainly include
Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function
Sequence (such as Geographic mapping function, wifi signal intensities calculate function etc.) etc.;Storage data field can be stored according to mobile phone
Use created data (such as preset geographical position set etc.) etc..Additionally, memory 820 can include high random access
Memory, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or other are volatile
Property solid-state memory.
Input block 830 can be used to receive the numeral or character information of input, and produce with the user of mobile phone set with
And the relevant key signals input of function control.Specifically, input block 830 may include that fingerprint module 831 and other inputs set
Standby 832.Fingerprint module 831, can gather user's finger print data thereon.Optionally, fingerprint module 831 may include that optical profile type refers to
Line module, capacitance type fingerprint module and RF-type fingerprint module.So that fingerprint module 831 is capacitance type fingerprint module as an example, tool
Body includes induction electrode (n1 abnormal induction electrode and n2 normal induction electrode) and the signal being connected with the induction electrode
Process circuit (such as amplifying circuit, noise suppression circuit, analog-to-digital conversion circuit, etc.).Except fingerprint module 831, input block
830 can also include other input equipments 832.Specifically, other input equipments 832 can include but is not limited to physical keyboard,
One or more in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 840 can be used for show by user input information or be supplied to user information and mobile phone it is various
Menu.Display unit 840 may include display screen 841, optionally, can use liquid crystal display (Liquid Crystal
Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure
Display screen 841.Although in fig. 8, fingerprint module 831 is to realize the defeated of mobile phone as two independent parts with display screen 841
Enter and input function, but it is in some embodiments it is possible to fingerprint module 831 and display screen 841 is integrated and realize mobile phone
Input and output function.
Mobile phone may also include at least one sensor 850, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display screen 841, proximity transducer can when mobile phone is moved in one's ear, close display screen 841 and/or
Backlight.Used as one kind of motion sensor, (generally three axles) acceleration is big in the detectable all directions of accelerometer sensor
It is small, size and the direction of gravity are can detect that when static, can be used to recognize application (such as horizontal/vertical screen switching, the phase of mobile phone attitude
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Be can also configure as mobile phone
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 860, loudspeaker 881, microphone 882 can provide the COBBAIF between user and mobile phone.Audio-frequency electric
Electric signal after the voice data conversion that road 860 will can receive, is transferred to loudspeaker 881, and sound is converted to by loudspeaker 881
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 882, is turned after being received by voicefrequency circuit 860
It is changed to voice data, then after voice data output processor 880 is processed, through RF circuits 810 to be sent to such as another mobile phone,
Or export to memory 820 so as to further treatment voice data.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 870
Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 8 shows
WiFi module 870, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely
Become in the essential scope of invention and omit.
Processor 880 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to
Cross operation or perform software program of the storage in memory 820 and/or module, and call storage in memory 820
Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 880 can be wrapped
Include one or more processing units;Preferably, processor 880 can integrated application processor and modem processor, wherein, should
Operating system, user interface and application program etc. are mainly processed with processor, modem processor mainly processes radio communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 880.
Mobile phone also includes the power supply 890 (such as battery) powered to all parts, it is preferred that power supply can be by power supply pipe
Reason system is logically contiguous with processor 880, so as to realize management charging, electric discharge and power managed by power-supply management system
Etc. function.
Although not shown, mobile phone can also will not be repeated here including camera, bluetooth module etc..
In embodiment shown in earlier figures 1, Fig. 2 and Fig. 3, each step method flow can be based on the structure reality of the mobile phone
It is existing.
In embodiment shown in earlier figures 4, Fig. 5 and Fig. 6, the structure that each unit function can be based on the mobile phone is realized.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.For example, device embodiment described above is only schematical, such as the division of described unit is only one kind
Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication connection of device or unit by some interfaces,
Can be electrical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use
When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to preceding
Embodiment is stated to be described in detail the present invention, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these
Modification is replaced, and does not make the scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.
Claims (11)
1. a kind of method of network connection, it is characterised in that methods described includes:
The current geographical position of positioning;
If the current geographical position belongs to preset geographical position set, it is determined that the signal intensity of the Wi-Fi of current connection
And in preset range the network of same frequency quantity;
Corresponding first weight of signal intensity of the Wi-Fi of the current connection is calculated according to predetermined manner and is calculated described pre-
If corresponding second weight of the quantity of the network of same frequency in scope;
If first weight is less than predetermined threshold value with the second weight sum, the Wi-Fi of another frequency of connection is attempted.
2. method according to claim 1, it is characterised in that the signal intensity of the current Wi-Fi of connection of the determination, bag
Include:
Obtain the signal lattice number of the Wi-Fi shown on terminal screen;
The speed of network uplink and downlink in statistics Preset Time;
Signal intensity is calculated according to the signal lattice number, network uplink and descending speed.
3. method according to claim 2, it is characterised in that the number of the network of same frequency in the determination preset range
Amount, including:
Determine the coverage of the Wi-Fi of the current connection;
Preset range is determined according to the coverage;
Scan the access point in the preset range;
The attribute of the access point to scanning is analyzed to determine the quantity of the network of same frequency.
4. method according to claim 3, it is characterised in that before the current geographical position of the positioning, methods described
Also include:
Prompting user sets geographical location sets;
Receive the keyword of user input;
The geographical position that search matches with the keyword;
The preset geographical position set is generated according to the geographical position.
5. according to any described methods of claim 1-4, it is characterised in that attempt the Wi-Fi of another frequency of connection, including:
Start Wi-Fi scan functions to carry out Wi-Fi scannings;
The Wi-Fi attributes that reading is scanned are to determine whether the being Wi-Fi of another frequency;
When the Wi-Fi for scanning is defined as the Wi-Fi of another frequency, attempt obtaining what is scanned by internet
Wi-Fi passwords;
Network connection is carried out according to the Wi-Fi for scanning and password corresponding with the Wi-Fi.
6. a kind of terminal, it is characterised in that the terminal includes:
Positioning unit, for positioning current geographical position;
Determining unit, if belonging to preset geographical position set for the current geographical position, it is determined that the Wi- of current connection
The quantity of the network of same frequency in the signal intensity and preset range of Fi;
Computing unit, corresponding first weight of signal intensity of the Wi-Fi for calculating the current connection according to predetermined manner
And calculate corresponding second weight of quantity of the network of same frequency in the preset range;
Connection unit, if being less than predetermined threshold value with the second weight sum for first weight, attempts another frequency of connection
The Wi-Fi of rate.
7. terminal according to claim 6, it is characterised in that the determining unit includes obtaining subelement, statistics single
Unit and computation subunit;
The acquisition subelement, the signal lattice number for obtaining the Wi-Fi shown on terminal screen;
The statistics subelement, the speed for counting network uplink and downlink in Preset Time;
The computation subunit, for calculating signal intensity according to the signal lattice number, network uplink and descending speed.
8. terminal according to claim 7, it is characterised in that the determining unit also includes determination subelement, analysis
Unit and scanning subelement;
The determination subelement, the coverage of the Wi-Fi for determining the current connection;Determined according to the coverage
Preset range;
The scanning subelement, for scanning the access point in the preset range;
The analysis subelement, the attribute for the access point to scanning is analyzed to determine the number of the network of same frequency
Amount.
9. terminal according to claim 8, it is characterised in that the terminal also includes Tip element, receiving unit, search
Unit and generation unit:
The Tip element, for pointing out user to set geographical location sets;
The receiving unit, the keyword for receiving user input;
Search unit, for searching for the geographical position matched with the keyword;
The generation unit, for generating the preset geographical position set according to the geographical position.
10. according to any described terminals of claim 6-9, it is characterised in that the connection unit includes promoter unit, visits
Ask subelement, obtain subelement and connection subelement;
The promoter unit, for starting Wi-Fi scan functions to carry out Wi-Fi scannings;
The access subelement, for reading the Wi-Fi attributes for scanning to determine whether the being Wi-Fi of another frequency;
The acquisition subelement, during for the Wi-Fi for being defined as another frequency as the Wi-Fi for scanning, attempts logical
Cross internet and obtain the Wi-Fi passwords for scanning;
The connection subelement, for carrying out network according to the Wi-Fi for scanning and password corresponding with the Wi-Fi
Connection.
A kind of 11. terminals, it is characterised in that including:
Be stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs such as claim 1 to right
It is required that the method described in 5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611120988.0A CN106714277B (en) | 2016-12-07 | 2016-12-07 | Network connection method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611120988.0A CN106714277B (en) | 2016-12-07 | 2016-12-07 | Network connection method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106714277A true CN106714277A (en) | 2017-05-24 |
CN106714277B CN106714277B (en) | 2020-02-07 |
Family
ID=58936330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611120988.0A Active CN106714277B (en) | 2016-12-07 | 2016-12-07 | Network connection method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106714277B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108076427A (en) * | 2017-12-12 | 2018-05-25 | 洛阳理工学院 | A kind of method, apparatus and network adapter for connecting network |
CN108271142A (en) * | 2018-01-04 | 2018-07-10 | 广东欧珀移动通信有限公司 | Wireless Fidelity Wi-Fi scan methods and Related product |
CN109125987A (en) * | 2018-08-14 | 2019-01-04 | 安徽速飞航空航天科技有限公司 | A kind of 4G intelligent fire fighting rescue system and 4G intelligent fire fighting relief car |
WO2020133065A1 (en) * | 2018-12-27 | 2020-07-02 | Arris Enterprises Llc | Network connection management across a multi-band wireless network |
CN114286404A (en) * | 2021-12-18 | 2022-04-05 | 珠海格力电器股份有限公司 | Multi-operator signal transmission control method, system and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060153138A1 (en) * | 2004-12-13 | 2006-07-13 | Junichi Asoh | Wireless station |
CN102647771A (en) * | 2012-04-10 | 2012-08-22 | 华为技术有限公司 | Discovery and selection method, equipment, system and terminal of wireless local area network (WLAN) |
CN103889011A (en) * | 2014-04-09 | 2014-06-25 | 上海斐讯数据通信技术有限公司 | Wireless bandwidth selecting method and system based on WLAN wireless bandwidth assessment |
CN105101330A (en) * | 2015-06-25 | 2015-11-25 | 小米科技有限责任公司 | Connection switching method and device |
CN105873184A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Network connection method and device |
CN105898813A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Frequency band switching method based on wireless device and wireless device |
-
2016
- 2016-12-07 CN CN201611120988.0A patent/CN106714277B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060153138A1 (en) * | 2004-12-13 | 2006-07-13 | Junichi Asoh | Wireless station |
CN102647771A (en) * | 2012-04-10 | 2012-08-22 | 华为技术有限公司 | Discovery and selection method, equipment, system and terminal of wireless local area network (WLAN) |
CN103889011A (en) * | 2014-04-09 | 2014-06-25 | 上海斐讯数据通信技术有限公司 | Wireless bandwidth selecting method and system based on WLAN wireless bandwidth assessment |
CN105101330A (en) * | 2015-06-25 | 2015-11-25 | 小米科技有限责任公司 | Connection switching method and device |
CN105873184A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Network connection method and device |
CN105898813A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Frequency band switching method based on wireless device and wireless device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108076427A (en) * | 2017-12-12 | 2018-05-25 | 洛阳理工学院 | A kind of method, apparatus and network adapter for connecting network |
CN108076427B (en) * | 2017-12-12 | 2021-04-27 | 洛阳理工学院 | Method and device for connecting network and network adapter |
CN108271142A (en) * | 2018-01-04 | 2018-07-10 | 广东欧珀移动通信有限公司 | Wireless Fidelity Wi-Fi scan methods and Related product |
CN109125987A (en) * | 2018-08-14 | 2019-01-04 | 安徽速飞航空航天科技有限公司 | A kind of 4G intelligent fire fighting rescue system and 4G intelligent fire fighting relief car |
WO2020133065A1 (en) * | 2018-12-27 | 2020-07-02 | Arris Enterprises Llc | Network connection management across a multi-band wireless network |
US11903064B2 (en) | 2018-12-27 | 2024-02-13 | Arris Enterprises Llc | Network connection management across a multi-band wireless network |
CN114286404A (en) * | 2021-12-18 | 2022-04-05 | 珠海格力电器股份有限公司 | Multi-operator signal transmission control method, system and device |
CN114286404B (en) * | 2021-12-18 | 2023-03-17 | 珠海格力电器股份有限公司 | Multi-operator signal transmission control method, system and device |
Also Published As
Publication number | Publication date |
---|---|
CN106714277B (en) | 2020-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104135501B (en) | Page sharing method, Apparatus and system | |
CN106714277A (en) | Network connection method and terminal | |
CN105657791A (en) | Communication network access method and device | |
CN106686626A (en) | Setting method for Wi-Fi roaming and terminal equipment | |
CN106851780A (en) | The method and terminal of a kind of network connection | |
CN106507482B (en) | A kind of network locating method and terminal device | |
CN106507289A (en) | A kind of cut-in method of wireless network and mobile terminal | |
CN106714275A (en) | Wi-Fi connection method and mobile terminal | |
CN106961710A (en) | A kind of method for network access and terminal | |
CN106888495A (en) | A kind of method for network access and terminal | |
CN106454976B (en) | A kind of switching method of wireless network, device and terminal | |
CN106792819A (en) | A kind of method and device of the power consumption for reducing mobile terminal | |
CN106170034A (en) | A kind of sound effect treatment method and mobile terminal | |
CN106790981A (en) | A kind of terminal device method to set up and terminal device | |
CN106330211A (en) | LTE frequency band selecting method and device | |
CN108271142A (en) | Wireless Fidelity Wi-Fi scan methods and Related product | |
CN106793010A (en) | A kind of method for network access and equipment | |
CN106791084A (en) | The synchronous method and mobile terminal of personalizing parameters | |
CN106603740B (en) | It is connected to the network abnormal processing method and terminal device | |
CN105246075A (en) | Access point connecting method and device | |
CN106507447A (en) | A kind of Wi Fi hotspot connection methods and mobile terminal | |
CN105744600B (en) | Communication network cut-in method and user equipment | |
CN106331302A (en) | Method and equipment for adding contact | |
CN107465602A (en) | Processing method, device and the terminal device of information | |
CN108989536A (en) | A kind of user terminal locking means, device and user terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |