CN105979566A - Network connecting method and device and mobile terminal - Google Patents

Network connecting method and device and mobile terminal Download PDF

Info

Publication number
CN105979566A
CN105979566A CN201610605749.8A CN201610605749A CN105979566A CN 105979566 A CN105979566 A CN 105979566A CN 201610605749 A CN201610605749 A CN 201610605749A CN 105979566 A CN105979566 A CN 105979566A
Authority
CN
China
Prior art keywords
network
accessed
download
accessible
speed
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
Application number
CN201610605749.8A
Other languages
Chinese (zh)
Other versions
CN105979566B (en
Inventor
肖亚迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610605749.8A priority Critical patent/CN105979566B/en
Publication of CN105979566A publication Critical patent/CN105979566A/en
Application granted granted Critical
Publication of CN105979566B publication Critical patent/CN105979566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0245Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal according to signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a network connecting method and device and a mobile terminal. The method comprises the steps that a collection of accessible networks with signal intensity values meeting a preset threshold value is obtained; when it is determined that network connection with the accessible networks in the collection of accessible networks succeeds, preset resources are downloaded based on network connection; corresponding downloading speeds achieved when the accessible networks are used for downloading the preset resources are obtained; a target accessible network is determined from the collection of accessible networks according to the downloading speeds; current network connection is switched to network connection established with the target accessible network. According to the network connecting method and device and the terminal, through combined analysis of the signal intensity values and the network downloading speeds, the target accessible network is determined for connection and communication, so that compared with the mode of constantly carrying out network access tries only based on signal intensity, the network speed of the terminal is greatly increased, and the power consumption of the terminal in network connection is reduced.

Description

A kind of method for connecting network, device and mobile terminal
Technical field
The invention belongs to area measurement technical field, particularly relate to a kind of method for connecting network, device and movement Terminal.
Background technology
Along with developing rapidly of communication technology, the user carrying communication mobile terminal (such as mobile phone) gets more and more, Mobile terminal to be made has mobile communication function, it is necessary to by wireless channel (i.e. frequency) access network.
As a example by mobile phone, generally, when mobile phone start shooting every time or by without service area enter have service area time, its The institute that public land mobile network (PLMN, Public Land Mobile Network) allows will be found There is frequency, attempt the most successively accessing after around suitably frequency is ranked up by signal intensity, but due to It is fast that the frequency that signal intensity is good does not necessarily represents network speed, there may come a time when that there will be signal by force but can not enter net Situation, thus cause network speed not good enough, and mobile phone need to constantly carry out network insertion trial, thus lead Cause mobile phone consumption power consumption big.
Summary of the invention
It is an object of the invention to provide a kind of method for connecting network, device and mobile terminal, it is intended to improve The network speed of terminal, reduces power consumption of terminal when network connects.
For solving above-mentioned technical problem, embodiment of the present invention offer techniques below scheme:
A kind of method for connecting network, including:
Obtain signal strength values and meet the accessible collection of network of predetermined threshold value;
When determining with accessible network of network successful connection in described accessible collection of network, based on institute State network and connect the default resource of download;
Obtain and downloaded speed of download corresponding when presetting resource by described accessible network;
According to described speed of download, from described accessible collection of network, determine that target can be accessed by network;
Current network connects the network switching to can be accessed by network foundation with target be connected.
A kind of network connection device, including:
Network Capture unit, meets the accessible collection of network of predetermined threshold value for obtaining signal strength values;
Download unit, is connected with the accessible network of network in described accessible collection of network for determining During success, connect to download based on described network and preset resource;
Speed acquiring unit, for obtaining by download corresponding during the default resource of described accessible network download Speed;
First determines unit, for according to described speed of download, determines from described accessible collection of network Target can be accessed by network;
Switching connects unit, switches to can be accessed by, with target, the network that network is set up for current network being connected Connect.
A kind of mobile terminal, including:
Storage has the memorizer of executable program code;
The processor coupled with described memorizer;
Described processor calls the described executable program code of storage in described memorizer, performs to carry as above-mentioned The method for connecting network of confession.
Relative to prior art, the embodiment of the present invention, first meet connecing of predetermined threshold value at signal strength values Enter in collection of network, determine when accessible network of network successful connection, be based respectively on network and connect download Preset resource;Then, obtain corresponding speed of download, and determine that target can be accessed by according to speed of download Network, finally, connects current network and switches to can be accessed by with target the network that network sets up and be connected, i.e. with Target can be accessed by network foundation and finally connects and communicate;The embodiment of the present invention is by signal strength values and net Network speed of download is combined analysis, can be accessed by network and is attached and communicates so that it is determined that go out target, relatively In being based only upon signal intensity and constantly carry out the mode of network insertion trial, greatly improve the network of terminal Speed, reduces power consumption of terminal when network connects.
Accompanying drawing explanation
Below in conjunction with the accompanying drawings, by the detailed description of the invention of the present invention is described in detail, the skill of the present invention will be made Art scheme and other beneficial effect are apparent.
Fig. 1 is the schematic flow sheet of the method for connecting network that the embodiment of the present invention provides;
Another schematic flow sheet of the method for connecting network that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the network connection device that Fig. 3 provides for the embodiment of the present invention;
Another structural representation of the network connection device that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the mobile terminal that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
Refer to graphic, the most identical element numbers represents identical assembly, and the principle of the present invention is with reality The computing environment that Shi Yi is suitable illustrates.The following description is concrete based on the illustrated present invention Embodiment, it is not construed as limiting other specific embodiment that the present invention is the most detailed herein.
In the following description, the specific embodiment of the present invention will be with reference to by performed by one or multi-section computer Step and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation will have mention for several times by Computer performs, and computer as referred to herein performs to include by representing with the data in a structuring pattern The operation of computer processing unit of electronic signal.This operation is changed these data or is maintained at this calculating Position in the memory system of machine, it is reconfigurable or other with the side known to the tester of this area Formula changes the running of this computer.The data structure that these data are maintained is the provider location of this internal memory, its Have by particular characteristics defined in this data form.But, the principle of the invention illustrates with above-mentioned word, It is not represented as a kind of restriction, and this area tester will appreciate that plurality of step and the behaviour of the following stated Also may be implemented in the middle of hardware.
The principle of the present invention uses other wide usages many or specific purpose computing, communication environment or configuration to enter Row operation.Known be suitable for the arithmetic system of the present invention, environment can include with the example of configuration (but not It being limited to) hand-held phone, personal computer, server, multicomputer system, micro computer be main system, master Architected computer and distributed computing environment, which includes any said system or device.
To be described in detail respectively below.
In the present embodiment, will be described from the angle of network connection device, this network connection device is concrete Can be integrated in mobile terminal (such as panel computer, mobile phone etc.).
A kind of method for connecting network, including: obtain signal strength values and meet the accessible network collection of predetermined threshold value Close;When determining with accessible network of network successful connection in described accessible collection of network, based on institute State network and connect the default resource of download;Obtain by described accessible network download preset resource time corresponding under Carry speed;According to described speed of download, from described accessible collection of network, determine that target can be accessed by network; Current network connects the network switching to can be accessed by network foundation with target be connected.
Refer to the schematic flow sheet that Fig. 1, Fig. 1 are the method for connecting network that the embodiment of the present invention provides, tool Body flow process may include that
In step S101, obtain signal strength values and meet the accessible collection of network of predetermined threshold value.
Such as, mobile terminal (such as mobile phone) is started shooting or by when having service area without service area entrance, is just carrying out Often frequency sweep operation, so that it is determined that the multiple accessible network that source is in its signal cover, i.e. determines Multiple accessible wireless channels or frequency.
It is understood that accessible network may particularly include WLAN, such as nothing described in the present embodiment Line fidelity (Wireless Fidelity), and/or the cellular data mobile network of mobile terminal.
Further, obtaining the signal strength values of these accessible networks, if judging, signal strength values meets Predetermined threshold value, then these accessible networks that signal strength values meets predetermined threshold value are polymerized, thus To accessible collection of network.
In step s 102, when determining with the accessible network of network in described accessible collection of network even When being connected into merit, connect to download based on described network and preset resource.
It is to say, in accessible collection of network, not all accessible network can be successfully accessed, Therefore, at needs when determining and can be accessed by network of network successful connection, the network of correspondence just it is based respectively on even Connect download and preset resource.
Such as, mobile terminal is determining that the accessible network of network with described accessible collection of network is connected Before success, it is also possible to specifically include following steps:
(1) according to the order from high to low of the accessible network signal intensity value in accessible collection of network, depend on Secondary transmission connection request.
(2) connection status with described accessible network fed back according to described connection request is detected.
(3) according to described connection status, determine network successful connection from described accessible collection of network can Access network, is defined as first by the accessible network of described network successful connection and can be accessed by network.
Can be concrete, such as, mobile terminal, can be first according to accessible after getting accessible collection of network Accessible network signal intensity value in collection of network order from high to low, sends to corresponding base station successively Connection request;Base station, according to the connection request received, carries out first connection with mobile terminal, as connected first Connect and can carry out identification authentication etc., i.e. mobile terminal is attempted accessing corresponding accessible network, in connection status During instruction network successful connection, just trigger to connect based on corresponding network and download the step presetting resource.
Wherein, when connection status instruction network successful connection, net can be determined from accessible collection of network The accessible network of network successful connection, for convenience of describing, in the present embodiment, can connect into these networks The accessible network of merit is referred to as first and can be accessed by network, and then mobile terminal connects download in advance based on described network If resource can specifically include: be connected download based on the network that can be accessed by network foundation with described first and preset money Source.
It is understood that described default resource may refer to preset network site specifies a certain resource of size, The speed of download of the network that this default resource currently connects mainly for detection of terminal, with according to this speed of download Judge whether the current network connected is optimum.
In step s 103, obtain and downloaded download speed corresponding when presetting resource by described accessible network Degree.
Such as, mobile terminal according to by accessible network download preset resource time time-consuming, can calculate Corresponding speed of download, as downloaded the average speed of download of this default resource, or certain special time period is flat According to this average speed of download, all speeds of download etc., such that it is able to judge whether the current network connected is optimum.
Further, speed of download corresponding when presetting resource is downloaded in described acquisition by described accessible network Before, it is also possible to including:
Judge whether the described first number that can be accessed by network reaches predetermined threshold value;Thus touch according to judged result Send out the step obtaining speed of download.
In a kind of possible embodiment, described acquisition is downloaded by described accessible network when presetting resource Corresponding speed of download can specifically include: when described first number that can be accessed by network is not up to predetermined threshold value Time, obtain by described first can be accessed by network download preset resource time corresponding speed of download.
It is to say, in this embodiment, when mobile terminal judges that first can be accessed by network, i.e. network is even Connect the number of successfully accessible network when being not up to predetermined threshold value, then obtain all of described first and can be accessed by The speed of download that network is corresponding.
In alternatively possible embodiment, described acquisition is downloaded by described accessible network and is preset resource Time corresponding speed of download can specifically include: when described first number that can be accessed by network reaches predetermined threshold value Time, obtain the first of described predetermined threshold value corresponding number and can be accessed by download corresponding during the default resource of network download Speed.
It is to say, in this embodiment, when mobile terminal judges that first can be accessed by network, i.e. network is even When connecing the number of successfully accessible network more than or equal to predetermined threshold value, then without obtaining all of described the One can be accessed by the speed of download that network is corresponding, it is only necessary to obtaining the first of described predetermined threshold value corresponding number can connect Enter the speed of download that network is corresponding, preferably improve treatment effeciency.
Optionally, the first of predetermined threshold value corresponding number can be accessed by the selection of network and can randomly choose, Can also be according to signal intensity before by carrying out selecting to weak order by force, it is also possible to according to speed of download Order from fast to slow carries out selecting, and is not especially limited herein.
In step S104, according to described speed of download, from described accessible collection of network, determine mesh The accessible network of mark.
In step S105, current network is connected and switches to can be accessed by the network of network foundation even with target Connect.
Wherein, described step S104 and step S105 can particularly as follows:
It is understood that mobile terminal is according to speed of download, from accessible collection of network, determine target The mode of accessible network has a lot, such as, may particularly include following steps:
(1) according to speed of download order from fast to slow, can be accessed by network to corresponding first and arrange.
(2) first after arrangement can be accessed by network extracts speed of download the fastest first can be accessed by network.
(3) can be accessed by network to be defined as target can be accessed by network by the fastest for described speed of download first.
If speed of download is the first average speed of download that can be accessed by the default resource of network download, mobile terminal is pressed According to the average speed of download got order from fast to slow, can be accessed by network to corresponding first and arrange, Wherein, first can be accessed by find average speed of download the fastest in network first at these and can be accessed by network, from And can be accessed by network by the fastest for this average speed of download first and be defined as target and can be accessed by network.
Further, after mobile terminal determines that target can be accessed by network, determine most and finally need to connect And the network communicated, then current network connection is switched to can be accessed by, with target, the net that network is set up by mobile terminal Network connects.
Such as, mobile terminal is downloaded and is preset after resource completes can be accessed by network by first, can cut off with First can be accessed by network between network connects, after determining that target can be accessed by network, then re-establish with Described target can be accessed by the network between network and connects, and the current network as mobile terminal connects.
From the foregoing, the method for connecting network that the present embodiment provides, first meet at signal strength values and preset In the accessible collection of network of threshold value, determine when accessible network of network successful connection, be based respectively on net Network connects to download presets resource;Then, obtain corresponding speed of download, and determine according to speed of download Target can be accessed by network, finally, current network is connected and switches to can be accessed by, with target, the network that network is set up Connect, i.e. can be accessed by network foundation with target and be finally connected and communicate;The embodiment of the present invention is by strong to signal Angle value and network speed of download are combined analysis, can be accessed by network be attached also so that it is determined that go out target Communication, relative to being based only upon signal intensity and constantly carry out the mode of network insertion trial, greatly improves The network speed of terminal, reduces power consumption of terminal when network connects.
According to the method described by above-described embodiment, below citing is described in further detail.
Refer to another schematic flow sheet of the method for connecting network that Fig. 2, Fig. 2 provide for the embodiment of the present invention, Wherein the present embodiment is as a example by mobile phone, is analyzed this method for connecting network, and idiographic flow may include that
In step s 201, mobile phone receives the mode selection command of user's input.
In step S202, when determining that described mode selection command is designated as the preferential network selection of network speed, mobile phone Enter network speed preferential network selection pattern.
That is, mobile phone increases a kind of network selection pattern " the preferential network selection of network speed ", and e.g., the network selection pattern of mobile phone includes " the preferential network selection of network speed " and " common network selection ", when the mode selection command of user's input is designated as " net The preferential network selection of speed " time, the method for connecting network that mobile phone uses the present embodiment to provide finds best the connecing of network speed Enter network and set up communication connection, being i.e. registered on corresponding community.When user selects " common network selection ", Then it is registered on arbitrary community by the network selection flow process of acquiescence at present, the most specifically introduces.
In step S203, mobile phone carries out normal frequency sweep based on network speed preferential network selection pattern.
In step S204, mobile phone is according to frequency sweep result, and obtain that signal strength values meets predetermined threshold value can Access network set.
Such as, mobile phone is in start or by when having service area without service area entrance, based on the preferential network selection of this network speed Pattern carries out normal frequency sweep operation, so that it is determined that the multiple accessible network that source is in its signal cover, I.e. determine multiple accessible wireless channel or frequency.
Further, mobile phone obtains the signal strength values of these accessible networks, if judging signal strength values Meet predetermined threshold value, then these accessible networks that signal strength values meets predetermined threshold value are polymerized, from And obtain accessible collection of network.
In step S205, mobile phone, according to described signal strength values order from high to low, resolves and attempts Connect corresponding accessible network, determine that the first of network successful connection can be accessed by network.
In step S206, the network that mobile phone is set up by can be accessed by network with first is connected download and presets money Source, and calculate corresponding average speed of download.
Such as, mobile phone is getting accessible collection of network, and comprising X in this accessible collection of network can connect Entering network, the first signal strength values according to this X accessible network order from high to low, successively to accordingly Base station send connection request, resolve the most successively and attempt to register these communities.
Further, base station, according to the connection request received, is attached successively with mobile phone, i.e. mobile phone is tasted Try into corresponding accessible network, when connection status instruction network successful connection (such as succeeding in registration), Being downloaded by the accessible network (first can be accessed by network) of network successful connection specifies network site to specify greatly Little a certain resource, thus time-consumingly can calculate corresponding average speed of download according to downloading, with according to being somebody's turn to do Average speed of download judges that the first of current connection can be accessed by whether network is optimum.
In step S207, mobile phone, according to described average speed of download, determines that target can be accessed by network, And can be accessed by network with described target and set up network and be connected.
Such as, in X accessible network, the first number that can be accessed by network reaches predetermined threshold value Y, then Y the first average speed of download that can be accessed by network can be obtained, or the first number that can be accessed by network is Z, not up to predetermined threshold value Y, then obtain this Z the first average speed of download that can be accessed by network.
Further, mobile phone is according to the get first average speed of download that can be accessed by network, according to by soon To slow order, can be accessed by network to corresponding first and arrange, wherein, first can be accessed by net at these Find average speed of download the fastest in network first can be accessed by network, thus by the fastest for this average speed of download First can be accessed by network is defined as target and can be accessed by network, i.e. mobile phone with set up with this target can be accessed by network it Between network connect, as mobile phone current network connect.
It is understood that this embodiment does not has describe in detail part can be found in above-described embodiment phase inside the Pass Holding, here is omitted.
From the foregoing, the method for connecting network that the present embodiment provides, first meet at signal strength values and preset In the accessible collection of network of threshold value, determine when accessible network of network successful connection, be based respectively on net Network connects to download presets resource;Then, obtain corresponding speed of download, and determine according to speed of download Target can be accessed by network, finally, current network is connected and switches to can be accessed by, with target, the network that network is set up Connect, i.e. can be accessed by network foundation with target and be finally connected and communicate;The embodiment of the present invention is by strong to signal Angle value and network speed of download are combined analysis, can be accessed by network be attached also so that it is determined that go out target Communication, relative to being based only upon signal intensity and constantly carry out the mode of network insertion trial, greatly improves The network speed of terminal, reduces power consumption of terminal when network connects.That is, a smooth net is wanted as user During network environment, such as: download a bigger file, see a film online, video calling etc., can select The network speed preferential network selection pattern that this programme provides, to obtain a smoother network environment.
For ease of preferably implementing the method for connecting network that the embodiment of the present invention provides, the embodiment of the present invention also carries For a kind of device based on above-mentioned method for connecting network.The method that wherein implication of noun is connected with above-mentioned network In identical, implement the explanation that details is referred in embodiment of the method.
Refer to the structural representation of the network connection device that Fig. 3, Fig. 3 provide for the embodiment of the present invention, should Network connection device specifically can be integrated in mobile terminal (such as panel computer, mobile phone etc.), and this device can To include Network Capture unit 301, download unit 302, speed acquiring unit 303, first to determine unit 304 And switching connects unit 305.
Wherein, Network Capture unit 301, meet the accessible net of predetermined threshold value for obtaining signal strength values Network set;Download unit 302, for when determining and the accessible network in described accessible collection of network During network successful connection, connect to download based on described network and preset resource.
Speed acquiring unit 303, for obtaining by corresponding during the default resource of described accessible network download Speed of download;First determines unit 304, for according to described speed of download, from described accessible network collection Conjunction being determined, target can be accessed by network;Switching connects unit 305, switches to for current network being connected The network that can be accessed by network foundation with target is connected.
Such as, mobile terminal (such as mobile phone) is started shooting or by when having service area without service area entrance, is just carrying out Often frequency sweep operation, so that it is determined that the multiple accessible network that source is in its signal cover, i.e. determines Multiple accessible wireless channels or frequency.
It is understood that accessible network may particularly include WLAN, such as nothing described in the present embodiment Line fidelity (Wireless Fidelity), and/or the cellular data mobile network of mobile terminal.
Further, obtaining the signal strength values of these accessible networks, if judging, signal strength values meets Predetermined threshold value, then these accessible networks that signal strength values meets predetermined threshold value are polymerized, thus To accessible collection of network.
Owing to, in accessible collection of network, not all accessible network can be successfully accessed, therefore Mobile terminal when determining and can be accessed by network of network successful connection, is just based respectively on the net of correspondence at needs Network connects to download presets resource.
Refer to another structural representation of the network connection device that Fig. 4, Fig. 4 provide for the embodiment of the present invention, Described network connection device can also include:
(1) transmitting element 306, for according to the accessible network signal intensity value in accessible collection of network Order from high to low, sends connection request successively.
(2) detector unit 307, that feed back according to described connection request with described accessible network for detection Connection status.
(3) second determine unit 308, for according to described connection status, from described accessible collection of network The middle accessible network determining network successful connection, is defined as the accessible network of described network successful connection First can be accessed by network.
Thus, described download unit 302, for can be accessed by the network of network foundation even based on described first Connect download and preset resource.
Can be concrete, such as, mobile terminal, can be first according to accessible after getting accessible collection of network Accessible network signal intensity value in collection of network order from high to low, sends to corresponding base station successively Connection request;Base station, according to the connection request received, carries out first connection with mobile terminal, as connected first Connect and can carry out identification authentication etc., i.e. mobile terminal is attempted accessing corresponding accessible network, in connection status During instruction network successful connection, just trigger to connect based on corresponding network and download the step presetting resource.
Wherein, when connection status instruction network successful connection, net can be determined from accessible collection of network The accessible network of network successful connection, for convenience of describing, in the present embodiment, can connect into these networks The accessible network of merit is referred to as first and can be accessed by network, and then mobile terminal connects download in advance based on described network If resource can specifically include: be connected download based on the network that can be accessed by network foundation with described first and preset money Source.
It is understood that described default resource may refer to preset network site specifies a certain resource of size, The speed of download of the network that this default resource currently connects mainly for detection of terminal, with according to this speed of download Judge whether the current network connected is optimum.
Further, as shown in Figure 4, described network connection device can also include:
Judging unit 309, for judging whether the described first number that can be accessed by network reaches predetermined threshold value; Thus the step obtaining speed of download is triggered according to judged result.
In a kind of possible embodiment, described speed acquiring unit 303, it is used for when described first can connect Enter the number of network when being not up to predetermined threshold value, obtain and can be accessed by network by described first and download and preset resource Time corresponding speed of download.
It is to say, in this embodiment, when mobile terminal judges that first can be accessed by network, i.e. network is even Connect the number of successfully accessible network when being not up to predetermined threshold value, then obtain all of described first and can be accessed by The speed of download that network is corresponding.
In alternatively possible embodiment, described speed acquiring unit 303, it is also possible to for when described When first number that can be accessed by network reaches predetermined threshold value, obtain described predetermined threshold value corresponding number first can Access network downloads speed of download corresponding when presetting resource.
It is to say, in this embodiment, when mobile terminal judges that first can be accessed by network, i.e. network is even When connecing the number of successfully accessible network more than or equal to predetermined threshold value, then without obtaining all of described the One can be accessed by the speed of download that network is corresponding, it is only necessary to obtaining the first of described predetermined threshold value corresponding number can connect Enter the speed of download that network is corresponding, preferably improve treatment effeciency.
Optionally, the first of predetermined threshold value corresponding number can be accessed by the selection of network and can randomly choose, Can also be according to signal intensity before by carrying out selecting to weak order by force, it is also possible to according to speed of download Order from fast to slow carries out selecting, and is not especially limited herein.
It is understood that mobile terminal is according to speed of download, from accessible collection of network, determine target The mode of accessible network has a lot, and such as, described first determines unit 304, can specifically for according to Speed of download order from fast to slow, can be accessed by network to corresponding first and arranges, the after arrangement One can be accessed by network extracts speed of download the fastest first can be accessed by network, by the fastest for described speed of download First can be accessed by network is defined as target and can be accessed by network.
If speed of download is the first average speed of download that can be accessed by the default resource of network download, mobile terminal is pressed According to the average speed of download got order from fast to slow, can be accessed by network to corresponding first and arrange, Wherein, first can be accessed by find average speed of download the fastest in network first at these and can be accessed by network, from And can be accessed by network by the fastest for this average speed of download first and be defined as target and can be accessed by network.
Further, after mobile terminal determines that target can be accessed by network, determine most and finally need to connect And the network communicated, then current network connection is switched to can be accessed by, with target, the net that network is set up by mobile terminal Network connects.
Such as, mobile terminal is downloaded and is preset after resource completes can be accessed by network by first, can cut off with First can be accessed by network between network connects, after determining that target can be accessed by network, then re-establish with Described target can be accessed by the network between network and connects, and the current network as mobile terminal connects.
When being embodied as, above unit can realize as independent entity, it is also possible to carries out arbitrarily Combination, realizes as same or several entities, and being embodied as of above unit can be found in above Embodiment of the method, does not repeats them here.
From the foregoing, the network connection device that the present embodiment provides, first meet at signal strength values and preset In the accessible collection of network of threshold value, determine when accessible network of network successful connection, be based respectively on net Network connects to download presets resource;Then, obtain corresponding speed of download, and determine according to speed of download Target can be accessed by network, finally, current network is connected and switches to can be accessed by, with target, the network that network is set up Connect, i.e. can be accessed by network foundation with target and be finally connected and communicate;The embodiment of the present invention is by strong to signal Angle value and network speed of download are combined analysis, can be accessed by network be attached also so that it is determined that go out target Communication, relative to being based only upon signal intensity and constantly carry out the mode of network insertion trial, greatly improves The network speed of terminal, reduces power consumption of terminal when network connects.
Refer to the mobile terminal structure schematic diagram that Fig. 5, Fig. 5 provide for the embodiment of the present invention.The present embodiment Described in mobile terminal, including at least one input equipment 1000;At least one outut device 2000; At least one processor 3000, such as central processing unit (CPU, Central Processing Unit);With Memorizer 4000, above-mentioned input equipment 1000, outut device 2000, processor 3000 and memorizer 4000 Connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely photographic head, contact panel, physical button or mouse Etc..
Above-mentioned outut device 2000 concretely display screen.
Above-mentioned memorizer 4000 can be high random access memory body (RAM, Random Access Memory) memorizer, it is possible to for non-labile memorizer (non-volatile memory), such as magnetic Disk storage.Above-mentioned memorizer 4000 is used for storing batch processing code, above-mentioned input equipment 1000, defeated Go out equipment 2000 and processor 3000 for calling in memorizer 4000 program code of storage, perform as follows Operation:
Perform code by processor 3000, obtain signal strength values and meet the accessible network collection of predetermined threshold value Close;When determining with accessible network of network successful connection in described accessible collection of network, based on institute State network and connect the default resource of download;Obtain by described accessible network download preset resource time corresponding under Carry speed;According to described speed of download, from described accessible collection of network, determine that target can be accessed by network; Current network connects the network switching to can be accessed by network foundation with target be connected.
Optionally, can also carry out code by processor 3000, according to connecing in accessible collection of network Enter network signal strength values order from high to low, send connection request successively;Detecting please according to described connection Negate feedback the connection status with described accessible network;According to described connection status, from described accessible net Network set determines the accessible network of network successful connection, by the accessible network of described network successful connection It is defined as first and can be accessed by network;It is connected download based on the network that can be accessed by network foundation with described first to preset Resource.
Optionally, can also carry out code by processor 3000, it is judged that described first can be accessed by the individual of network Whether number reaches predetermined threshold value, when described first number that can be accessed by network is not up to predetermined threshold value, obtains By described first can be accessed by network download preset resource time corresponding speed of download.
Optionally, can also carry out code by processor 3000, when the described first number that can be accessed by network When reaching predetermined threshold value, obtain the first of described predetermined threshold value corresponding number and can be accessed by the default resource of network download Time corresponding speed of download.
Optionally, can also carry out code by processor 3000, according to speed of download order from fast to slow, Can be accessed by network to corresponding first to arrange;After arrangement first can be accessed by extract network downloads speed Spend the fastest first and can be accessed by network;Can be accessed by network by the fastest for described speed of download first and be defined as target Accessible network.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, in certain embodiment the most in detail The part stated, may refer to the detailed description above with respect to method for connecting network, and here is omitted.
The described network connection device that the embodiment of the present invention provides, is such as computer, panel computer, has Mobile phone of touch function etc., described network connection device belongs to the method for connecting network in foregoing embodiments Same design, can run offer in described method for connecting network embodiment on described network connection device Either method, it implements process and refers to described method for connecting network embodiment, and here is omitted.
It should be noted that for method for connecting network of the present invention, this area common test personnel can To understand all or part of flow process realizing method for connecting network described in the embodiment of the present invention, can be by meter The hardware that calculation machine program controls to be correlated with completes, and described computer program can be stored in an embodied on computer readable In storage medium, such as storage in a memory in the mobile terminal, and by least one in this mobile terminal Reason device performs, and can include the flow process of embodiment such as described method for connecting network in the process of implementation.Wherein, Described storage medium can be magnetic disc, CD, read only memory (ROM, Read Only Memory), Random access memory RAM etc..
For the described network connection device of the embodiment of the present invention, its each functional module can be integrated in one Process in chip, it is also possible to be that modules is individually physically present, it is also possible to two or more module collection In Cheng Yi module.Above-mentioned integrated module both can realize to use the form of hardware, it would however also be possible to employ soft The form of part functional module realizes.If described integrated module realizes with the form of software function module and makees During for independent production marketing or use, it is also possible to be stored in a computer read/write memory medium, institute State storage medium such as read only memory, disk or CD etc..
A kind of method for connecting network, device and the mobile terminal that are thered is provided the embodiment of the present invention above are carried out Being discussed in detail, principle and the embodiment of the present invention are set forth by specific case used herein, with The explanation of upper embodiment is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for this The technical staff in field, according to the thought of the present invention, the most all has and changes In place of change, in sum, this specification content should not be construed as limitation of the present invention.

Claims (11)

1. a method for connecting network, it is characterised in that including:
Obtain signal strength values and meet the accessible collection of network of predetermined threshold value;
When determining with accessible network of network successful connection in described accessible collection of network, based on institute State network and connect the default resource of download;
Obtain and downloaded speed of download corresponding when presetting resource by described accessible network;
According to described speed of download, from described accessible collection of network, determine that target can be accessed by network;
Current network connects the network switching to can be accessed by network foundation with target be connected.
Method for connecting network the most according to claim 1, it is characterised in that described determine with described can Before accessible network of network successful connection in access network set, also include:
According to the order from high to low of the accessible network signal intensity value in accessible collection of network, send out successively Send connection request;
The connection status with described accessible network that detection is fed back according to described connection request;
According to described connection status, from described accessible collection of network, determine the accessible of network successful connection Network, is defined as first by the accessible network of described network successful connection and can be accessed by network;
Described based on described network connect download preset resource include: build based on can be accessed by network with described first Vertical network connects to download presets resource.
Method for connecting network the most according to claim 2, it is characterised in that described acquisition is by described Before accessible network downloads speed of download corresponding when presetting resource, also include:
Judge whether the described first number that can be accessed by network reaches predetermined threshold value;
Described acquisition is downloaded speed of download corresponding when presetting resource and is included by described accessible network: work as institute State the first number that can be accessed by network when being not up to predetermined threshold value, obtain and can be accessed by under network by described first Carry speed of download corresponding when presetting resource.
Method for connecting network the most according to claim 3, it is characterised in that described acquisition is by described Accessible network is downloaded speed of download corresponding when presetting resource and is included:
When described first number that can be accessed by network reaches predetermined threshold value, obtain described predetermined threshold value the most individual The first of number can be accessed by network and download speed of download corresponding when presetting resource.
5. according to the method for connecting network described in any one of claim 2 to 4, it is characterised in that described According to described speed of download, from described accessible collection of network, determine that target can be accessed by network and includes:
According to speed of download order from fast to slow, can be accessed by network to corresponding first and arrange;
After arrangement first can be accessed by network extracts speed of download the fastest first can be accessed by network;
Can be accessed by network to be defined as target can be accessed by network by the fastest for described speed of download first.
6. a network connection device, it is characterised in that including:
Network Capture unit, meets the accessible collection of network of predetermined threshold value for obtaining signal strength values;
Download unit, is connected with the accessible network of network in described accessible collection of network for determining During success, connect to download based on described network and preset resource;
Speed acquiring unit, for obtaining by download corresponding during the default resource of described accessible network download Speed;
First determines unit, for according to described speed of download, determines from described accessible collection of network Target can be accessed by network;
Switching connects unit, switches to can be accessed by, with target, the network that network is set up for current network being connected Connect.
Network connection device the most according to claim 6, it is characterised in that described device also includes:
Transmitting element, for according to the accessible network signal intensity value in accessible collection of network from high to low Order, send connection request successively;
Detector unit, the connection shape with described accessible network fed back according to described connection request for detection State;
Second determines unit, for according to described connection status, determines net from described accessible collection of network The accessible network of network successful connection, the accessible network of described network successful connection is defined as first can connect Enter network;
Described download unit, presets for being connected download based on the network that can be accessed by network foundation with described first Resource.
Network connection device the most according to claim 7, it is characterised in that described device also includes:
Judging unit, for judging whether the described first number that can be accessed by network reaches predetermined threshold value;
Described speed acquiring unit, is used for when described first number that can be accessed by network is not up to predetermined threshold value, Obtain by described first can be accessed by network download preset resource time corresponding speed of download.
Network connection device the most according to claim 8, it is characterised in that described speed acquiring unit, It is additionally operable to, when described first number that can be accessed by network reaches predetermined threshold value, obtain described predetermined threshold value corresponding The first of number can be accessed by network and download speed of download corresponding when presetting resource.
10. according to the network connection device described in any one of claim 7 to 9, it is characterised in that described First determines unit, for according to speed of download order from fast to slow, can be accessed by network to corresponding first Arrange, first after arrangement can be accessed by network extracts speed of download the fastest first can be accessed by network, Can be accessed by network to be defined as target can be accessed by network by the fastest for described speed of download first.
11. 1 kinds of mobile terminals, it is characterised in that including:
Storage has the memorizer of executable program code;
The processor coupled with described memorizer;
Described processor calls the described executable program code of storage in described memorizer, performs right such as and wants Seek the method for connecting network described in any one of 1 to claim 5.
CN201610605749.8A 2016-07-27 2016-07-27 A kind of method for connecting network, device and mobile terminal Active CN105979566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610605749.8A CN105979566B (en) 2016-07-27 2016-07-27 A kind of method for connecting network, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610605749.8A CN105979566B (en) 2016-07-27 2016-07-27 A kind of method for connecting network, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN105979566A true CN105979566A (en) 2016-09-28
CN105979566B CN105979566B (en) 2019-05-24

Family

ID=56951080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610605749.8A Active CN105979566B (en) 2016-07-27 2016-07-27 A kind of method for connecting network, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN105979566B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792626A (en) * 2016-11-23 2017-05-31 努比亚技术有限公司 A kind of method and terminal for realizing data transfer
CN106954248A (en) * 2017-03-31 2017-07-14 宇龙计算机通信科技(深圳)有限公司 A kind of method for network access and device
CN111770186A (en) * 2020-07-03 2020-10-13 珠海金山网络游戏科技有限公司 Multi-content distribution network load balancing method and device
CN113067770A (en) * 2020-05-28 2021-07-02 孟迪 System for switching network when network communication is interrupted

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469840A (en) * 2014-12-24 2015-03-25 陆俊 Network access method and system
CN104902527A (en) * 2015-06-29 2015-09-09 小米科技有限责任公司 Communication network switching method and communication network switching device
CN105228227A (en) * 2014-11-24 2016-01-06 东莞市步步高通信软件有限公司 The method choosing network of mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228227A (en) * 2014-11-24 2016-01-06 东莞市步步高通信软件有限公司 The method choosing network of mobile terminal and mobile terminal
CN104469840A (en) * 2014-12-24 2015-03-25 陆俊 Network access method and system
CN104902527A (en) * 2015-06-29 2015-09-09 小米科技有限责任公司 Communication network switching method and communication network switching device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792626A (en) * 2016-11-23 2017-05-31 努比亚技术有限公司 A kind of method and terminal for realizing data transfer
CN106954248A (en) * 2017-03-31 2017-07-14 宇龙计算机通信科技(深圳)有限公司 A kind of method for network access and device
CN113067770A (en) * 2020-05-28 2021-07-02 孟迪 System for switching network when network communication is interrupted
CN113067770B (en) * 2020-05-28 2024-02-06 深圳市宏博宇通信科技有限公司 System for switching network when network communication is interrupted
CN111770186A (en) * 2020-07-03 2020-10-13 珠海金山网络游戏科技有限公司 Multi-content distribution network load balancing method and device

Also Published As

Publication number Publication date
CN105979566B (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN105979566A (en) Network connecting method and device and mobile terminal
CN107688734B (en) Solve lock control method and Related product
CN107591152B (en) Voice control method, device and equipment based on earphone
CN104978267B (en) webpage test method, terminal and server
CN106250837A (en) The recognition methods of a kind of video, device and system
CN108781342B (en) Method for distributing and accessing virtual SIM card to network and related equipment
CN106028279B (en) Network registration method and device
CN105975833A (en) Fingerprint unlocking method and terminal
CN105472148A (en) Method for terminal to bind household equipment and apparatus thereof
CN107995285B (en) Information display method, device, server and readable storage medium
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
CN105898839B (en) Communication network cut-in method and device
CN109068404A (en) Dual-card dual-standby terminal network selecting method, device, terminal device and storage medium
CN112469060B (en) Antenna parameter determining method and device
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN110677842B (en) Network searching method, device, terminal equipment and storage medium
CN110166151A (en) A kind of data transmission method and relevant device
CN106332238A (en) Wireless local area network channel scanning method and apparatus, and mobile terminal
CN112272352B (en) Device interaction method and device, storage medium and computer device
CN110933770B (en) Connection request sending method and device, storage medium and electronic equipment
CN111065126B (en) Hot spot sharing method and device, storage medium and electronic equipment
CN111787631A (en) Radio frequency resource allocation method and device and electronic equipment
CN106161575A (en) User matching method and device
CN101909311A (en) Method for testing wireless networking function of mobile phone
CN106658615B (en) A kind of method and device switching communication network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant