CN104936240B - A kind of method for switching network and terminal - Google Patents

A kind of method for switching network and terminal Download PDF

Info

Publication number
CN104936240B
CN104936240B CN201510284179.2A CN201510284179A CN104936240B CN 104936240 B CN104936240 B CN 104936240B CN 201510284179 A CN201510284179 A CN 201510284179A CN 104936240 B CN104936240 B CN 104936240B
Authority
CN
China
Prior art keywords
network
current
signal strength
current connection
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510284179.2A
Other languages
Chinese (zh)
Other versions
CN104936240A (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201510284179.2A priority Critical patent/CN104936240B/en
Publication of CN104936240A publication Critical patent/CN104936240A/en
Application granted granted Critical
Publication of CN104936240B publication Critical patent/CN104936240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0077Transmission or use of information for re-establishing the radio link of access information of target access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of method for switching network and terminal, and wherein method includes the following steps: to obtain the current network traffic demand amount of terminal;Judge whether the network traffic demand amount is greater than preset flow value;When the result judged is is, the target network for being higher than current connection network in current attachable network with the presence or absence of preset priority network or signal strength is searched;When finding the preset priority network or the target network, by the current connection network switching to the preset priority network or the target network.The embodiment of the present invention can intelligently, conveniently realize switching between network, improve the fluency of network.

Description

A kind of method for switching network and terminal
Technical field
The present invention relates to mobile communication technology fields, and in particular to a kind of method for switching network and terminal.
Background technique
With the rapid development of mobile communication technology, coverage area is gradually for network (mobile data network and wireless network) Expansion, greatly improving for network speed and making rapid progress for mobile terminal function, more and more people can use mobile terminal Data are sent or received, for example, instant messaging, downloaded data, online viewing video etc..User manually selects connection mobile data Network or wireless network, and switching between the two is realized by manual operation, in the current connected network of mobile terminal In the case where being unable to satisfy current flow demand amount or in current environment in the case where available network better there are signal, If user does not switch over network, current connected network is continued to use, then can extend user and send or receive data Time, it is possible to create additional campus network influences user experience.
Summary of the invention
The embodiment of the present invention provides a kind of method for switching network and terminal, can intelligently, conveniently realize between network Switching, improves the fluency of network.
First aspect of the embodiment of the present invention provides a kind of method for switching network, it may include:
Obtain the current network traffic demand amount of terminal;
Judge whether the network traffic demand amount is greater than preset flow value;
When the result judged is is, searching in current attachable network whether there is preset priority network or signal Intensity is higher than the target network of current connection network;
When finding the preset priority network or the target network, by the current connection network switching to institute State preset priority network or the target network.
It is described to search current attachable net in the first possible implementation of first aspect of the embodiment of the present invention It is higher than the target network of current connection network in network with the presence or absence of preset priority network or signal strength, comprising:
The network type of the current connection network of detection, the network type includes mobile data network, wireless network;
It is searched in current attachable network according to the network type of the current connection network with the presence or absence of preset excellent First network or signal strength are higher than the target network of the current connection network.
In conjunction with the first possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention Second of possible implementation in, the network type according to the current connection network searches current attachable net It is higher than the target network of the current connection network in network with the presence or absence of preset priority network or signal strength, comprising:
When the network type of the current connection network is the mobile data network, current attachable network is searched In whether there is preset priority network, the network type of the preset priority network is wireless network.
In conjunction with second of possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention The third possible implementation in, described search whether there is preset priority network in current attachable network, packet It includes:
It opens wireless network connection function and obtains the wireless network list in current environment;
Preset priority network is searched in the wireless network list.
In conjunction with first aspect of the embodiment of the present invention first into the third any possible implementation, in the present invention In 4th kind of possible implementation of embodiment first aspect, the preset priority network includes that the terminal connected Network, the network of unencryption, signal strength be higher than the network of the first preset signals value, in the highest network of signal strength at least A kind of network.
In conjunction with the first possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention The 5th kind of possible implementation in, the network type according to the current connection network searches current attachable net It is higher than the target network of the current connection network in network with the presence or absence of preset priority network or signal strength, comprising:
When the network type of the current connection network is the wireless network, the letter of the current connection network is detected Number intensity;
When the signal strength of the current connection network is lower than the second preset signals value, obtain wireless in current environment The signal strength of each wireless network in network list;
Search the target network that signal strength in the wireless network list is higher than the current connection network.
In conjunction with the 5th kind of possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention The 6th kind of possible implementation in, it is described to search signal strength in the wireless network list and be higher than the current connection net The target network of network, specifically includes:
The wireless network that signal strength in the wireless network list is higher than the current connection network is searched, and is therefrom selected Target network is taken, the target network includes network, the network of unencryption, the highest net of signal strength that the terminal connected At least one of network network.
In conjunction with the first possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention The 7th kind of possible implementation in, the network type according to the current connection network searches current attachable net It is higher than the target network of the current connection network in network with the presence or absence of preset priority network or signal strength, comprising:
When the network type of the current connection network is the wireless network, the letter of the current connection network is detected Number intensity;
When the signal strength of the current connection network is lower than the second preset signals value, mobile data network connection is opened Function and the signal strength for detecting mobile data network;
The target network that signal strength is higher than the current connection network is searched in the mobile data network.
In conjunction with the implementation of first aspect of the embodiment of the present invention, in the 8th kind of possibility of first aspect of the embodiment of the present invention Implementation in, it is described search to be higher than in current attachable network with the presence or absence of preset priority network or signal strength work as The target network of preceding connection network, comprising:
The signal strength of the current connection network of detection;
When the signal strength of the current connection network is lower than the second preset signals value, signal strength is searched higher than described The target network of current connection network.
Second aspect of the embodiment of the present invention provides a kind of terminal, it may include:
Module is obtained, for obtaining the current network traffic demand amount of terminal;
Whether judgment module, the network traffic demand amount for judging that the acquisition module obtains are greater than preset flow value;
Searching module, for being in the current attachable network of lookup when the judging result of the judgment module, which is, is It is no that there are the target networks that preset priority network or signal strength are higher than current connection network;
Switching module, for when the searching module finds the preset priority network or the target network, By the current connection network switching to the preset priority network or the target network.
In embodiments of the present invention, by obtaining the current network traffic demand amount of terminal, and in network traffic demand amount When greater than preset flow value, searches and be higher than in current attachable network with the presence or absence of preset priority network or signal strength The target network of current connection network cuts current connection network when finding preset priority network or target network Shifting to preset priority network or target network, intelligence conveniently realizes switching between network, the fluency of network is improved, Reduce the waiting time that user sends or receives data.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of method for switching network provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another method for switching network provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another method for switching network provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another method for switching network provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another method for switching network provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
A kind of method for switching network provided in an embodiment of the present invention and terminal can be applied to the current network flow of terminal When demand is greater than preset flow value, the automatic scene for carrying out network switching, the network switching includes mobile data network The switching that switches between wireless network, wireless network, wireless network switch to mobile data network and mobile data network Switching between (2G, 3G, 4G).For example, the currently used terminal of user watches video online, and user connects network currently to move Dynamic data network, if the video is high definition, user possibly can not watch or occur the case where Caton;If the video Flow demand amount be greater than this month remaining flow value of user, then by additional campus network is generated, if in current environment There are the preferable wireless networks of signal, will currently connect network switching to the preferable wireless network of signal using the embodiment of the present invention Network not only can guarantee that user normally appreciated video, but also not have to the limited flow for spending user.
Terminal provided in an embodiment of the present invention has the function of mobile data network linkage function and wireless network connection, described Terminal can include but is not limited to the electronic equipments such as mobile phone, PAD (tablet computer), intelligent wearable device.
It describes in detail below in conjunction with attached drawing 1- attached drawing 5 to method for switching network provided in an embodiment of the present invention.
It referring to Figure 1, is a kind of flow diagram of method for switching network provided in an embodiment of the present invention, this method can wrap Include step S101- step S104.
S101 obtains the current network traffic demand amount of terminal.
Specifically, network flow is the data volume of transmission over networks, network traffic demand amount is to run in the terminal Various application programs needed for network flow summation, can be occupied some application programs are in running background certain Network flow, therefore the terminal can count the network of each application program by network flow monitoring software or other tools Flow demand amount, to obtain the current network traffic demand amount of the terminal.
S102, judges whether the network traffic demand amount is greater than preset flow value.
Specifically, the terminal judges whether the network traffic demand amount is greater than preset flow value.Wherein, described pre- If flow value can be flow value set by user, be also possible to the flow value that system is set according to the flow package of user. If user can set the lesser preset flow value in order to avoid generating additional campus network.When the network When flow demand amount is greater than the preset flow value, it is to be appreciated that the terminal needs more network flows to guarantee The normal operation of each application program;When the network traffic demand amount is less than the preset flow value, it is to be appreciated that The current network flow of the terminal can support the normal operation of each application program.
S103, when the result judged is is, searching in current attachable network whether there is preset priority network Or signal strength is higher than the target network of current connection network.
Specifically, when the result judged is is, i.e., when the described network traffic demand amount is greater than the preset flow value, The current connection network of the terminal may be unable to satisfy the network traffic demand amount at this time, or not can guarantee each using journey The normal operation of sequence, therefore the terminal need to search whether that there are preset priority network or letters in current attachable network Number intensity is higher than the target network of current connection network.Wherein, the current attachable network is the user in current environment Pass through the nothing of input identifying code or the attachable wireless network of password, the wireless network that the terminal once connected, unencryption Gauze network and mobile data network.The terminal can search described preset according to the network type of the current connection network Priority network or the target network, the terminal can also be according to the signal strength lookups of the current connection network Target network.For example, when the preset flow value is 100M, and the terminal is downloading the video of 150M at this time, it is described Network traffic demand amount is much larger than the preset flow value, and the terminal is searched described default in current attachable network Priority network or the target network.
Wherein, the preset priority network for it is described it is current connection network network type be mobile data network and The network type of speech, the preset priority network is wireless network, can include but is not limited to the net that the terminal connected Network, the network of unencryption, signal strength are higher than network, highest network of signal strength etc. of the first preset signals value, and described the One preset signals value can be set by the user, and be also possible to system default.It is more when existing in the current attachable network When a preset priority signal, the multiple preset priority signal can be shown for user on the interface of the terminal Selection, can also default using the highest network of signal strength as the preset priority network.The network of the target network Type can be wireless network, be also possible to mobile data network.
S104 cuts the current connection network when finding the preset priority network or the target network Shift to the preset priority network or the target network.
Specifically, when finding the preset priority network or the target network, it is to be appreciated that work as front ring There is network more better than the current connection network in border, user is needed to be manually operated just to be able to achieve and switch in the prior art Better network may extend user and obtain letter if user does not know there are better network or without manual switching The time of breath, it is also possible to additional campus network can be generated.The embodiment of the present invention find the preset priority network or When the target network, directly by the current connection network switching to the preset priority network or the target network, It does not need user's manual operation and is just able to achieve network switching, and guarantee that user enjoys smooth network, network is made full use of to provide Source.
In embodiments of the present invention, by obtaining the current network traffic demand amount of terminal, and in network traffic demand amount When greater than preset flow value, searches and be higher than in current attachable network with the presence or absence of preset priority network or signal strength The target network of current connection network cuts current connection network when finding preset priority network or target network Shifting to preset priority network or target network, intelligence conveniently realizes switching between network, the fluency of network is improved, Reduce the waiting time that user sends or receives data.
Fig. 2 is referred to, for the flow diagram of another method for switching network provided in an embodiment of the present invention, this method can Including step S201- step S206.
S201 obtains the current network traffic demand amount of terminal.
Specifically, network flow is the data volume of transmission over networks, network traffic demand amount is to run in the terminal Various application programs needed for network flow summation, can be occupied some application programs are in running background certain Network flow, therefore the terminal can count the network of each application program by network flow monitoring software or other tools Flow demand amount, to obtain the current network traffic demand amount of the terminal.
S202, judges whether the network traffic demand amount is greater than preset flow value.
Specifically, the terminal judges whether the network traffic demand amount is greater than preset flow value.Wherein, described pre- If flow value can be flow value set by user, be also possible to the flow value that system is set according to the flow package of user. If user can set the lesser preset flow value in order to avoid generating additional campus network.When the network When flow demand amount is greater than the preset flow value, it is to be appreciated that the terminal needs more network flows to guarantee The normal operation of each application program;When the network traffic demand amount is less than the preset flow value, it is to be appreciated that The current network flow of the terminal can support the normal operation of each application program.
S203 detects the network type of current connection network when the result judged is is, the network type includes moving Dynamic data network, wireless network.
Specifically, when the result judged is is, i.e., when the described network traffic demand amount is greater than the preset flow value, The current connection network of the terminal may be unable to satisfy the network traffic demand amount at this time, or not can guarantee each using journey The normal operation of sequence, the embodiment of the present invention according to the network type of current connection network search in current attachable network whether There are preset priority networks, therefore the terminal need to detect the network type of the current connection network, the network type Including mobile data network, wireless network, the mobile data network includes 2G, 3G, 4G network.
S204 opens wireless network and connects when the network type of the current connection network is the mobile data network Connection function simultaneously obtains the wireless network list in current environment.
Specifically, detecting that the network type of the current connection network is the mobile data network when executing step S203 When network, it is to be appreciated that the flow package of user is limited or the current connection network of the terminal may be unable to satisfy it is described Network traffic demand amount, it cannot be guaranteed that in the terminal each application program normal operation, therefore the terminal need to work as front ring Preset priority network is searched in border or signal strength is higher than the target network of the current connection network, and the embodiment of the present invention is The preset priority network is searched in current environment.When the terminal uses the mobile data network, wireless network Linkage function is in close state, and needs to open the wireless network connection function if user wants to switch to wireless network manually Can, the embodiment of the present invention is when the network traffic demand amount is greater than the preset flow value, just without user's manual operation The wireless network connection function can be automatically turned on and pass through the wireless network under scanning current environment, obtained in current environment Wireless network list.
S205 searches preset priority network in the wireless network list.
Specifically, the wireless network list is that the wireless network that the terminal scans in current environment obtains, wherein having Terminal described in a little wireless networks may be connected once, save password, some wireless networks may nothing due to encrypting the terminal Method connection may go back the free wireless network of some unencryptions, and the terminal is searched preset in the wireless network list Priority network, the preset priority network can include but is not limited to the network that the terminal connected, the network of unencryption, Signal strength is higher than network, the highest network of signal strength etc. of the first preset signals value, and the first preset signals value can be with It is set by the user, is also possible to system default.When there are multiple described preset preferential in the current attachable network When signal, it can show that the multiple preset priority signal is selected for user on the interface of the terminal, can also default Using signal strength highest or the highest network of user's frequency of use as the preset priority network.
S206, when finding the preset priority network, by the current connection network switching to described preset Priority network.
Specifically, when the terminal finds the preset priority network, it is to be appreciated that deposited in current environment In wireless network more better than the current connection network, the terminal is automatically by the current connection network switching to described pre- If priority network.For example, user sends or receives data using the mobile data network on the way on and off duty, when user returns When to home or there is the place of wireless network in company etc., the terminal will automatically turn on the wireless network connection function and switch The current connection network to the preset priority network, the preset priority network at this time be user at home or The wireless network that company connected, saves the flow package of user, and makes full use of wireless network resource.
In embodiments of the present invention, by obtaining the current network traffic demand amount of terminal, and in network traffic demand amount When greater than preset flow value, searching whether there is preset priority network in current attachable network, default when finding Priority network when, will currently connect network switching to preset priority network, intelligence conveniently realizes mobile data network and arrives The switching of wireless network improves the fluency of network, reduces user and sends or receives the waiting time of data, and saves user's Flow package makes full use of wireless network resource.
It should be noted that in another embodiment, it is described if the current connection network is mobile data network Preset priority network can also be another mobile data network.It is quick if currently connect is 2G network, and with 4G network Development and 4G bring are convenient, 4G network can be preset as priority network, when finding 4G network, will currently connect network Switching to preset priority network, intelligence conveniently realizes switching between mobile data network, the fluency of network is improved, Reduce the waiting time that user sends or receives data.
Fig. 3 is referred to, is the flow diagram of another method for switching network provided in an embodiment of the present invention, this method can Including step S301- step S307.
S301 obtains the current network traffic demand amount of terminal.
Specifically, network flow is the data volume of transmission over networks, network traffic demand amount is to run in the terminal Various application programs needed for network flow summation, can be occupied some application programs are in running background certain Network flow, therefore the terminal can count the network of each application program by network flow monitoring software or other tools Flow demand amount, to obtain the current network traffic demand amount of the terminal.
S302, judges whether the network traffic demand amount is greater than preset flow value.
Specifically, the terminal judges whether the network traffic demand amount is greater than preset flow value.Wherein, described pre- If flow value can be flow value set by user, be also possible to the flow value that system is set according to the flow package of user. If user can set the lesser preset flow value in order to avoid generating additional campus network.When the network When flow demand amount is greater than the preset flow value, it is to be appreciated that the terminal needs more network flows to guarantee The normal operation of each application program;When the network traffic demand amount is less than the preset flow value, it is to be appreciated that The current network flow of the terminal can support the normal operation of each application program.
S303 detects the network type of current connection network when the result judged is is, the network type includes moving Dynamic data network, wireless network.
Specifically, when the result judged is is, i.e., when the described network traffic demand amount is greater than the preset flow value, The current connection network of the terminal may be unable to satisfy the network traffic demand amount at this time, or not can guarantee each using journey The normal operation of sequence, the embodiment of the present invention according to the network type of current connection network search in current attachable network whether There are preset priority networks, therefore the terminal need to detect the network type of the current connection network, the network type Including mobile data network, wireless network, the mobile data network includes 2G, 3G, 4G network.
S304 detects the current connection net when the network type of the current connection network is the wireless network The signal strength of network.
Specifically, detecting that the network type of the current connection network is the wireless network when executing step S303 When, the terminal detects the signal strength of the current connection network, if the jitter of the current connection network, then The signal strength of different moments is different, and there are biggish fluctuations, therefore the signal strength in the embodiment of the present invention For the average value of network signal intensity within a preset period of time, the preset time period is the period of system default, can be by Manufacturer terminal setting.
S305 is obtained in current environment when the signal strength of the current connection network is lower than the second preset signals value Wireless network list in each wireless network signal strength.
Specifically, the terminal judges whether the signal strength of the current connection network is lower than the second preset signals value, The second preset signals value can be set by user, be also possible to what system was set according to the network traffic demand amount, The second preset signals value of default is to be just met for the signal strength indication of the network traffic demand amount, described second Preset signals value is unrelated with the first preset signals value in embodiment two, can be identical or not identical.When judgement As a result for when being, i.e., the signal strength of the described current connection network is lower than the second preset signals value, it is to be appreciated that institute It states current connection network and is unable to satisfy the network traffic demand amount, the fortune of each application program in the terminal may be will affect Row, therefore the terminal searches the target network that the signal strength is higher than the current connection network in current environment.This In embodiment, the network type of the target network is the wireless network, therefore the terminal passes through in scanning current environment Wireless network obtain wireless network list, and detect the signal strength of each wireless network in the wireless network list.
S306 searches the target network that signal strength in the wireless network list is higher than the current connection network.
Specifically, the terminal searches signal strength in the wireless network list is higher than the current connection network Wireless network, the signal strength may include the terminal in the wireless network higher than the current connection network and can not connect Wireless network, for example, the wireless network of certain encryptions.Therefore the terminal is higher than the current connection from the signal strength The attachable target network of the terminal is chosen in the wireless network of network, the target network includes that the terminal connected At least one of network, the network of unencryption, the highest network of signal strength network.If existing in the wireless network list Multiple available signal strengths are higher than the wireless network of the current connection network, system default by signal strength highest or The highest wireless network of user's frequency of use is higher than institute as the target network, or by multiple available signal strengths The wireless network for stating current connection network is shown on the interface of the terminal to be selected for user, the wireless network that user is selected As the target network.
S307, when finding the target network, by the current connection network switching to the target network.
Specifically, when the terminal finds the target network, it is to be appreciated that exist in current environment than institute The current connection better wireless network of network is stated, the terminal is automatically by the current connection network switching to the target network Network.For example, there is public free wireless network A in market, that the terminal connects at this time is also wireless network A, but by Excessively cause the signal strength of wireless network A weaker in the terminal of connection wireless network A, if the terminal detects other one A signal strength is higher than the wireless network B of the current connection network, and wireless network A is switched to wireless network automatically by the terminal Network B.
In embodiments of the present invention, by obtaining the current network traffic demand amount of terminal, and in network traffic demand amount When greater than preset flow value, the mesh for being higher than current connection network in current attachable network with the presence or absence of signal strength is searched Network is marked, when finding target network, will currently connect network switching to target network, the network type of target network is nothing Gauze network, intelligence conveniently realize switching between wireless network, improve the fluency and utilization rate of network, reduce user's hair Send or receive the waiting time of data.
Fig. 4 is referred to, is the flow diagram of another method for switching network provided in an embodiment of the present invention, this method can Including step S401- step S407.
S401 obtains the current network traffic demand amount of terminal.
S402, judges whether the network traffic demand amount is greater than preset flow value.
S403 detects the network type of current connection network when the result judged is is, the network type includes moving Dynamic data network, wireless network.
S404 detects the current connection net when the network type of the current connection network is the wireless network The signal strength of network.
The specific implementation of step S401- step S404 in the embodiment of the present invention can be found in embodiment shown in Fig. 3 Step S301- step S304, details are not described herein.
S405 opens mobile data network when the signal strength of the current connection network is lower than the second preset signals value Network linkage function and the signal strength for detecting mobile data network.
Specifically, the terminal judges whether the signal strength of the current connection network is lower than the second preset signals value, The second preset signals value can be set by user, be also possible to what system was set according to the network traffic demand amount, The second preset signals value of default is to be just met for the signal strength indication of the network traffic demand amount.The present invention is real The the second preset signals value applied in example is identical as the second preset signals value in embodiment three.When the result of judgement is When being, i.e., the signal strength of the described current connection network is lower than the second preset signals value, it is to be appreciated that described current Connection network is unable to satisfy the network traffic demand amount, may will affect the operation of each application program in the terminal, therefore The terminal searches the target network that the signal strength is higher than the current connection network in current environment.If the terminal The wireless network that the signal strength is higher than the current connection network is not found in wireless network list in current environment When network, the terminal opens mobile data network linkage function and detects the signal strength of mobile data network.It takes the mobile phone as an example, If the standard of mobile phone is double-card dual-standby, mobile phone will detect the signal strength of the mobile data network of two cards respectively.
S406 searches the target network that signal strength is higher than the current connection network in the mobile data network.
Specifically, the mobile data network includes one of 2G network, 3G network, 4G network etc. network.With 4G The fast development of network and 4G bring are convenient, more and more users use 4G network, in many cases 4G network Signal strength be higher than wireless network, therefore the terminal is searched in the mobile data network signal strength be higher than it is described currently The target network of network is connected, the network type of the target network in the embodiment of the present invention is mobile data network.For example, The signal strength of the current connection network is lower than the second preset signals value, and the signal strength of the 3G network of the terminal Preferentially will if the use for supporting 4G network at this time higher than the current connection network using 3G network as the target network 4G network is as the target network.
S407, when finding the target network, by the current connection network switching to the target network.
Specifically, when the terminal finds the target network, it is to be appreciated that moved described in current environment The signal strength of dynamic data network is higher than each wireless network in the current connection network and current environment, and the terminal is automatic It is the target network of mobile data network by the current connection network switching to network type, and closes the wireless network Network linkage function avoids wireless network from connecting the scene for still using wireless network simultaneously with mobile data network.
In embodiments of the present invention, by obtaining the current network traffic demand amount of terminal, and in network traffic demand amount When greater than preset flow value, the mesh for being higher than current connection network in current attachable network with the presence or absence of signal strength is searched Network is marked, when finding target network, will currently connect network switching to target network, the network type of target network is to move Dynamic data network, intelligence conveniently realize the switching of wireless network to mobile data network, improve fluency and the utilization of network Rate reduces the waiting time that user sends or receives data.
Fig. 5 is referred to, is the flow diagram of another method for switching network provided in an embodiment of the present invention, this method can Including step S501- step S505.
S501 obtains the current network traffic demand amount of terminal.
S502, judges whether the network traffic demand amount is greater than preset flow value.
The specific implementation of step S501- step S502 in the embodiment of the present invention can be found in embodiment shown in Fig. 3 Step S301- step S302, details are not described herein.
S503 detects the signal strength of current connection network when the result judged is is.
Specifically, when the result judged is is, i.e., when the described network traffic demand amount is greater than the preset flow value, The current connection network of the terminal may be unable to satisfy the network traffic demand amount at this time, or not can guarantee each using journey The normal operation of sequence, the embodiment of the present invention according to the signal strength of current connection network search in current attachable network whether There are the target networks that signal strength is higher than the current connection network.If the jitter of the current connection network, that The signal strength of different moments is different, and there are biggish fluctuations, therefore the signal in the embodiment of the present invention is strong Degree is the average value of network signal intensity within a preset period of time, and the preset time period is the period of system default, can It is set by manufacturer terminal.The network type of the current connection network may be mobile data network, it is also possible to be wireless network.
It is high to search signal strength when the signal strength of the current connection network is lower than the second preset signals value by S504 In the target network of the current connection network.
Specifically, the terminal judges whether the signal strength of the current connection network is lower than the second preset signals value, The second preset signals value is identical as the second preset signals value in embodiment three, example IV.When the result of judgement When to be, i.e., the signal strength of the described current connection network is lower than the second preset signals value, it is to be appreciated that described to work as Preceding connection network is unable to satisfy the network traffic demand amount, may will affect the operation of each application program in the terminal, because This described terminal searches the target network that the signal strength is higher than the current connection network in current environment.The target The network type of network may be mobile data network, it is also possible to be wireless network.
S505, when finding the target network, by the current connection network switching to the target network.
Specifically, when the terminal finds the target network, it is to be appreciated that exist in current environment than institute The better wireless network of current connection network or mobile data network are stated, the terminal is automatically by the current connection network switching To the target network.The switching includes that mobile data network switches to switching between wireless network, wireless network, wireless Network switching is to the switching between mobile data network and mobile data network (2G, 3G, 4G).
In embodiments of the present invention, by obtaining the current network traffic demand amount of terminal, and in network traffic demand amount When greater than preset flow value, the mesh for being higher than current connection network in current attachable network with the presence or absence of signal strength is searched Mark network, when finding target network, will currently connect network switching to target network, intelligence, conveniently realize network it Between switching, improve the fluency of network, reduce the waiting time that user sends or receives data.
It describes in detail below in conjunction with attached drawing 6 to terminal provided in an embodiment of the present invention.It should be noted that attached drawing Mobile terminal shown in 6, the method for executing Fig. 1-embodiment illustrated in fig. 5 of the present invention, for ease of description, illustrate only with The relevant part of the embodiment of the present invention, it is disclosed by specific technical details, please refer to Fig. 1-of the present invention embodiment shown in fig. 5.
Fig. 6 is referred to, is a kind of structural schematic diagram of terminal provided by the invention;The terminal 10 can include: obtain module 101, judgment module 102, searching module 103 and switching module 104.
Module 101 is obtained, for obtaining the current network traffic demand amount of terminal.
In the specific implementation, network flow is the data volume of transmission over networks, network traffic demand amount is the terminal 10 The summation of network flow needed for the various application programs of upper operation can occupy some application programs are in running background Certain network flow, therefore the acquisition module 101 counts each application by network flow monitoring software or other tools The network traffic demand amount of program, to obtain the current network traffic demand amount of the terminal.
Whether judgment module 102, the network traffic demand amount for judging that the acquisition module obtains are greater than preset flow Value.
In the specific implementation, the judgment module 102 judges the network traffic demand amount that the acquisition module 101 obtains Whether preset flow value is greater than.Wherein, the preset flow value can be flow value set by user, be also possible to system The flow value set according to the flow package of user.If user in order to avoid generating additional campus network, can set compared with The small preset flow value.When the network traffic demand amount is greater than the preset flow value, it is to be appreciated that The terminal 10 needs more network flows to guarantee the normal operation of each application program;When the network traffic demand amount is small When the preset flow value, it is to be appreciated that the current network flow of the terminal 10 can support each application program It operates normally.
Searching module 103, for when the judging result of the judgment module, which is, is, searching in current attachable network It is higher than the target network of current connection network with the presence or absence of preset priority network or signal strength.
Specifically, that is, described network traffic demand amount is greater than described when the result that the judgment module 102 judges is is When preset flow value, the current connection network of the terminal 10 may be unable to satisfy the network traffic demand amount at this time, or Person not can guarantee the normal operation of each application program, therefore the searching module 103 need to search in current attachable network It is higher than the target network of current connection network with the presence or absence of preset priority network or signal strength.Wherein, described currently to connect The network connect is in current environment, and user was by inputting identifying code or the attachable wireless network of password, the terminal once The wireless network and mobile data network of the wireless network, unencryption that connected.The searching module 103 can be worked as according to described The network type of preceding connection network searches the preset priority network or the target network, and the searching module 103 is also The target network can be searched according to the signal strength of the current connection network.For example, the preset flow value is When 100M, and the terminal is downloading the video of 150M at this time, and the network traffic demand amount is much larger than the preset stream Magnitude, the searching module 103 search the preset priority network or the target network in current attachable network.
Wherein, the preset priority network for it is described it is current connection network network type be mobile data network and Speech, the network type of the preset priority network can be wireless network, can also be mobile data network, may include but unlimited In network, the network of network, signal strength higher than the first preset signals value of unencryption, signal strength that the terminal connected Highest network etc., the first preset signals value can be set by the user, and be also possible to system default.Currently may be used when described There are when multiple preset priority signals in the network of connection, can be shown on the interface of the terminal 10 the multiple Preset priority signal is selected for user, can also default using signal strength highest or the highest network of user's frequency of use as The preset priority network.The target network is the network that signal strength is higher than that the terminal currently connects network, wherein The network type of the target network can be wireless network, be also possible to mobile data network.
Switching module 104, for finding the preset priority network or the target network when the searching module When, by the current connection network switching to the preset priority network or the target network.
It, can be with specifically, when the searching module 103 finds the preset priority network or the target network What is understood is the presence of network more better than the current connection network in current environment, needs user to be manually operated in the prior art It is just able to achieve and switches to better network, it, may if user does not know there are better network or without manual switching Extend the time that user obtains information, it is also possible to additional campus network can be generated.The embodiment of the present invention is in the searching module 103 when finding the preset priority network or the target network, and the switching module 104 is directly by the current connection Network switching does not need user's manual operation and is just able to achieve network to cut to the preset priority network or the target network It changes, and guarantees that user enjoys smooth network, make full use of Internet resources.
In embodiments of the present invention, by obtaining the current network traffic demand amount of terminal, and in network traffic demand amount When greater than preset flow value, searches and be higher than in current attachable network with the presence or absence of preset priority network or signal strength The target network of current connection network cuts current connection network when finding preset priority network or target network Shifting to preset priority network or target network, intelligence conveniently realizes switching between network, the fluency of network is improved, Reduce the waiting time that user sends or receives data.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (8)

1. a kind of method for switching network, which is characterized in that the described method includes:
The current network traffic demand amount of terminal is obtained, the current network traffic demand amount is currently to support in the terminal Various application programs operate normally the summation of required network flow;
Judge whether the current network traffic demand amount is greater than preset flow value;
When the result judged is is, the network type of current connection network is detected, the network type includes mobile data network Network, wireless network;
When the network type of the current connection network is the wireless network, the signal for detecting the current connection network is strong Degree;
When the signal strength of the current connection network is lower than the second preset signals value, mobile data network linkage function is opened And the signal strength of the mobile data network of each communication card in the terminal is detected, the second preset signals value is just full The signal strength indication of the foot current network traffic demand amount;
The target network that signal strength is higher than the current connection network is searched in the mobile data network;
When finding the target network, by the current connection network switching to the target network, and wireless network is closed Network linkage function.
2. the method according to claim 1, wherein the method also includes:
When the network type of the current connection network is the mobile data network, searching in current attachable network is It is no there are preset priority network, the network type of the preset priority network is wireless network.
3. according to the method described in claim 2, it is characterized in that, described search in current attachable network with the presence or absence of pre- If priority network, comprising:
It opens wireless network connection function and obtains the wireless network list in current environment;
Preset priority network is searched in the wireless network list.
4. method according to claim 1-3, which is characterized in that the preset priority network includes the end The network of the network, unencryption that connected, signal strength is held to be higher than network, the highest net of signal strength of the first preset signals value At least one of network network.
5. the method according to claim 1, wherein the method also includes:
When the network type of the current connection network is the wireless network, the signal for detecting the current connection network is strong Degree;
When the signal strength of the current connection network is lower than the second preset signals value, the wireless network in current environment is obtained The signal strength of each wireless network in list;
Search the target network that signal strength in the wireless network list is higher than the current connection network.
6. according to the method described in claim 5, it is characterized in that, described search signal strength height in the wireless network list In the target network of the current connection network, specifically include:
The wireless network that signal strength in the wireless network list is higher than the current connection network is searched, and therefrom chooses mesh Mark network, the target network include the terminal connected network, the network of unencryption, in the highest network of signal strength At least one network.
7. the method according to claim 1, wherein the method also includes:
The signal strength of the current connection network of detection;
When the signal strength of the current connection network is lower than the second preset signals value, it is current higher than described to search signal strength Connect the target network of network.
8. a kind of terminal for realizing the described in any item method for switching network of claim 1-7, which is characterized in that the terminal packet It includes:
Module is obtained, for obtaining the current network traffic demand amount of terminal, the current network traffic demand amount is current Support the summation of the network flow needed for various application programs operate normally in the terminal;
Whether judgment module, the current network traffic demand amount for judging that the acquisition module obtains are greater than default stream Magnitude;
Searching module, for when the judging result of the judgment module, which is, is, detecting the network type of current connection network, institute Stating network type includes mobile data network, wireless network;When the network type of the current connection network is the wireless network When network, the signal strength of the current connection network is detected;When the signal strength of the current connection network is default lower than second When signal value, opens mobile data network linkage function and detect the letter of the mobile data network of each communication card in the terminal Number intensity;The target network that signal strength is higher than the current connection network is searched in the mobile data network;Described Two preset signals values are to be just met for the signal strength indication of the current network traffic demand amount;
Switching module, for when the searching module finds the target network, extremely by the current connection network switching The target network, and close wireless network connection function.
CN201510284179.2A 2015-05-28 2015-05-28 A kind of method for switching network and terminal Active CN104936240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510284179.2A CN104936240B (en) 2015-05-28 2015-05-28 A kind of method for switching network and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510284179.2A CN104936240B (en) 2015-05-28 2015-05-28 A kind of method for switching network and terminal

Publications (2)

Publication Number Publication Date
CN104936240A CN104936240A (en) 2015-09-23
CN104936240B true CN104936240B (en) 2019-05-24

Family

ID=54123135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510284179.2A Active CN104936240B (en) 2015-05-28 2015-05-28 A kind of method for switching network and terminal

Country Status (1)

Country Link
CN (1) CN104936240B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792987B (en) * 2015-11-20 2020-09-01 小米科技有限责任公司 Network selection method and device
CN105263120B (en) * 2015-11-27 2019-02-26 科大讯飞股份有限公司 A kind of prompt can connect the method and system of Wireless LAN
CN105338585B (en) * 2015-11-28 2019-02-05 Oppo广东移动通信有限公司 A kind of network formats switching method, device and terminal
CN105517082B (en) * 2015-11-28 2019-04-02 Oppo广东移动通信有限公司 Network formats processing method, device and terminal in a kind of communication terminal
CN106131904A (en) * 2016-09-14 2016-11-16 中国联合网络通信集团有限公司 A kind of method for switching network, network switching device and mobile terminal
CN106790743A (en) * 2016-11-28 2017-05-31 北京小米移动软件有限公司 Information transferring method, device and mobile terminal
CN106851759B (en) * 2017-03-14 2020-02-07 四川速宝网络科技有限公司 Network access method and device
CN106900020A (en) * 2017-04-05 2017-06-27 合肥酷睿网络科技有限公司 A kind of mobile terminal selects the device and method of network
CN107708165A (en) * 2017-11-10 2018-02-16 佛山市百里洲科技有限公司 A kind of control method of cell phone network
CN107734603A (en) * 2017-11-14 2018-02-23 佛山市百里洲科技有限公司 A kind of system of selection of mobile phone WIFI network
CN108693777A (en) * 2018-05-02 2018-10-23 深圳市彬讯科技有限公司 Intelligent domestic system and its control method
CN108934025B (en) * 2018-06-12 2022-05-20 Oppo广东移动通信有限公司 Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN109756940B (en) * 2018-06-19 2021-06-01 北京字节跳动网络技术有限公司 Network switching method and mobile terminal
CN108668333B (en) * 2018-07-09 2021-05-28 深圳市优克联新技术有限公司 Switching method and system of mobile network
CN109104718A (en) * 2018-09-04 2018-12-28 深圳市优克联新技术有限公司 A kind of switching method and system of mobile network
CN109152095B (en) * 2018-11-07 2021-10-22 上海尚往网络科技有限公司 Wireless network connection method for terminal
CN111356188B (en) * 2018-12-24 2022-11-18 海能达通信股份有限公司 Terminal handover method, communication terminal and storage medium
CN114025383A (en) * 2021-10-18 2022-02-08 安徽泽峰物联科技有限公司 Public wireless communication transmission system based on smart city
CN114867075B (en) * 2022-06-09 2024-06-07 西安紫光展锐科技有限公司 Wireless network switching method, device, equipment, storage medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438289A (en) * 2011-12-26 2012-05-02 中国电信股份有限公司 Wireless fidelity (Wi-Fi) flow guide method and device as well as mobile terminal
EP2461631A2 (en) * 2010-12-01 2012-06-06 Deutsche Telekom AG System support for accessing and switching among multiple wireless interfaces on mobile devices
CN103686899A (en) * 2012-09-25 2014-03-26 东莞宇龙通信科技有限公司 A switching method between a mobile data service network and a wifi network and a mobile terminal thereof
CN104202773A (en) * 2014-09-01 2014-12-10 深圳市中兴移动通信有限公司 Method and device for controlling smart card based on network traffic

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546933A (en) * 2013-10-22 2014-01-29 惠州Tcl移动通信有限公司 Method and system for intelligently switching network connection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2461631A2 (en) * 2010-12-01 2012-06-06 Deutsche Telekom AG System support for accessing and switching among multiple wireless interfaces on mobile devices
CN102438289A (en) * 2011-12-26 2012-05-02 中国电信股份有限公司 Wireless fidelity (Wi-Fi) flow guide method and device as well as mobile terminal
CN103686899A (en) * 2012-09-25 2014-03-26 东莞宇龙通信科技有限公司 A switching method between a mobile data service network and a wifi network and a mobile terminal thereof
CN104202773A (en) * 2014-09-01 2014-12-10 深圳市中兴移动通信有限公司 Method and device for controlling smart card based on network traffic

Also Published As

Publication number Publication date
CN104936240A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN104936240B (en) A kind of method for switching network and terminal
CN107484217B (en) Method, mobile terminal and the storage medium of switching registration IP multimedia subsystem
CN105744549B (en) A kind of switching method of transmission path, terminal and system
CN112913265B (en) Communication method and device
CN105392166B (en) A kind of method and apparatus of double card electric terminal data network switching
CN104601205B (en) The method and device that a kind of content is shared
CN110881080B (en) Electronic device relying primarily on physical key interactions with programs
CN105828317A (en) ESIM-card-based operator service selection method and selection apparatus, and terminal
CN105357403B (en) Method for switching network, device and communication terminal in a kind of communication terminal
CN104702782B (en) A kind of message management method and its mobile terminal
CN110022594A (en) A kind of cell selecting method, terminal and the network equipment
CN104202342B (en) Visualize audio communication system and call method
CN105722189A (en) Control method and device of data network
CN106375587B (en) A kind of collecting method and system of multimedia messages
JP2016541145A (en) Method and apparatus for selecting information push destination terminal
CN101568083A (en) Method for automatically replying short messages and mobile terminal
CN103068077A (en) Bimodule mobile terminal and communication method thereof
CN105722065B (en) A kind of communication means, without card wearable device and mobile terminal
CN106549928A (en) Merge the apparatus and method of circuit switching and packet switched call in user equipment
CN109428738A (en) A kind of method of the dynamic filtration of group communication
CN109309942A (en) Method for switching network and device
CN110213424A (en) End user communication device
CN106027779A (en) Information processing method and terminal
CN105897567B (en) A kind of method and device of information sharing
CN105791598A (en) Incoming call processing method, incoming call processing system and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building

Patentee after: MEIZU TECHNOLOGY Co.,Ltd.

Address before: 519080 Technology Innovation Coast Meizu science and technology building, Xiangzhou District, Zhuhai, Guangdong

Patentee before: Meizu Technology (China) Co.,Ltd.