CN108012301A - A kind of mobile terminal and its method for connecting network, computer-readable recording medium - Google Patents
A kind of mobile terminal and its method for connecting network, computer-readable recording medium Download PDFInfo
- Publication number
- CN108012301A CN108012301A CN201711232587.9A CN201711232587A CN108012301A CN 108012301 A CN108012301 A CN 108012301A CN 201711232587 A CN201711232587 A CN 201711232587A CN 108012301 A CN108012301 A CN 108012301A
- Authority
- CN
- China
- Prior art keywords
- network
- signal
- mobile terminal
- threshold value
- stablized
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/16—Performing reselection for specific purposes
- H04W36/165—Performing reselection for specific purposes for reducing network power consumption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of mobile terminal and its method for connecting network, computer-readable recording medium, this method to include:Connect first network;The second network of pre-connection;Judge whether the signal of the second network is stablized;If so, mobile terminal is switched into the second network by first network, if it is not, then disconnecting the pre-connection of the second network.By the above-mentioned means, the present invention according to the automatic handover network of stability of network, can ensure that the data interaction of mobile terminal is smooth.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of mobile terminal and its method for connecting network, meter
Calculation machine readable storage medium storing program for executing.
Background technology
Existing wireless network connection mode includes data network and WIFI network, and wherein WIFI networks can be by not
Same plume emission is formed, such as router, computer, mobile phone etc..Existing mobile terminal can be preferential when there is WIFI network
Connect WIFI network.
The content of the invention
In order to solve the above technical problems, one aspect of the present invention is:A kind of method for connecting network is provided, should
Method includes:Connect first network;The second network of pre-connection;Judge whether the signal of the second network is stablized;If so, will be mobile whole
End switches to the second network by first network, if it is not, then disconnecting the pre-connection of the second network.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of mobile terminal is provided, the shifting
Dynamic terminal includes:Link block, for connecting first network;And the second network of pre-connection;Judgment module, for judging second
Whether the signal of network is stablized;Handover module, for judgment module judging result for be when, by mobile terminal by the first net
Network switches to the second network, and when the judging result of judgment module is no, disconnects the pre-connection of the second network.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of mobile terminal is provided, including
Memory, processor and storage are on a memory and the computer program that can run on a processor, the processor perform calculating
The step of as above method is realized during machine program.
In order to solve the above technical problems, another technical solution used in the present invention is:Offer one kind is computer-readable to deposit
Storage media, is stored thereon with computer program, it is characterised in that as above method is realized when computer program is executed by processor
Step.
Brief description of the drawings
Fig. 1 is the flow diagram of one embodiment of method for connecting network provided by the invention;
Fig. 2 is the flow diagram of another embodiment of method for connecting network provided by the invention;
Fig. 3 is the flow diagram of the another embodiment of method for connecting network provided by the invention;
Fig. 4 is the flow diagram of method for connecting network another embodiment provided by the invention;
Fig. 5 is the structure diagram of one embodiment of mobile terminal provided by the invention;
Fig. 6 is another structure diagram of one embodiment of mobile terminal provided by the invention;
Fig. 7 is the another structure diagram of one embodiment of mobile terminal provided by the invention;
Fig. 8 is the structure diagram of the another embodiment of mobile terminal provided by the invention;
Fig. 9 is the structure diagram of mobile terminal another embodiment provided by the invention;
Figure 10 is the structure diagram of one embodiment of computer-readable recording medium provided by the invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes.It is understood that specific embodiment described herein is only used for explaining the present invention, rather than the limit to the present invention
It is fixed.It also should be noted that for the ease of description, part related to the present invention illustrate only in attached drawing and not all knot
Structure.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without creative efforts
Every other embodiment, belongs to the scope of protection of the invention.
Term " first ", " second " in the present invention etc. are to be used to distinguish different objects, rather than specific suitable for describing
Sequence.In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include.Such as comprising
The step of process of series of steps or unit, method, system, product or equipment are not limited to list or unit, and
It is alternatively to further include the step of not listing or unit, or alternatively further includes for these processes, method, product or equipment
Intrinsic other steps or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
In the present embodiment, mobile terminal can be mobile phone, tablet computer.
It should be understood that when existing mobile terminal has data network and WIFI network at the same time, can preferential attachment
WIFI network.But can not normally it be set in the swinging of signal timing of WIFI network, mobile terminal with server or other networks
It is standby to carry out data interaction, cause network not smooth, user experience is bad.
Refering to Fig. 1, Fig. 1 is the flow diagram of one embodiment of method for connecting network provided by the invention, this method bag
Include:
Step 11:Connect first network.
Step 12:The second network of pre-connection;
Wherein, under normal circumstances, the network performance of the second network is better than first network.For example, the data of the second network
Transmission rate is faster than first network, or the expense of the second network is less than first network.Therefore, under normal circumstances, second
When the stability of network is preferable, the second network can be connected.
Optionally, in the present embodiment, first network is data network, and the second network is WIFI networks.Wherein, data
Network can be 2G, 3G, 4G or 5G etc., be not required here.
Wherein, first network is connected by system top layer, i.e., shows on the display interface of mobile terminal and connect at present
The network connect is first network.And it is by that current mobile terminal and server or other network equipments, which carry out data interaction,
One real-time performance.
Wherein, the second network is connected by system bottom, i.e., does not show the second net in the display interface of mobile terminal
Network.And it is not by the second real-time performance that current mobile terminal carries out data interaction with server or other network equipments.
Specifically, mobile terminal can receive two kinds of different network signals at the same time by two network modules, wherein, the
One network modules are used to receive and launch first network signal, and the second network modules are used to receive and launch the second network signal,
In the present embodiment, data interaction is carried out using first network module and server, and the second network modules only detect second
The stability of network signal, without data interaction.In addition, in other embodiments, first network module and the second network mould
Group can also be same network modules.
Step 13:Judge whether the signal of the second network is stablized.
Wherein, the stability of the signal of the second network may be referred to the signal strength of the second network.
Specifically, a signal threshold value can be set, when the signal strength of the second network is more than the threshold value, it is believed that the
The signal stabilization of two networks, when the signal strength of the second network is less than the threshold value, it is believed that the swinging of signal of the second network
It is fixed.
Furthermore it is also possible to judge that the signal of the second network is steady by the situation of change for the signal strength for detecting the second network
It is qualitative.
Specifically, can detect the second network signal strength whether unanimously maintain a setting in the range of.Assuming that net
The scope of network signal is -30dB~-120dB, wherein, -30dB represents that signal is stronger, and -120dB represents that signal is weaker, then can be with
The scope of setting is arranged to -30dB~-80dB, if the signal strength of the second network maintains -30dB~-80dB always,
It is considered that the signal stabilization of the second network.
When the judging result of step 13 is is, step 14 is performed, when the judging result of step 13 is no, performs step
15。
Step 14:Mobile terminal is switched into the second network by first network.
First network is closed, and opens the second network.Specifically, the connection of the second network of bottom is risen into top layer
Connection, show that the network connected at present is the second network in the display interface of mobile terminal, when carrying out data interaction, also adopt
Carried out with the second network.
Step 15:Disconnect the pre-connection of the second network.
The pre-connection of the second network is disconnected in system bottom.
The prior art is different from, method for connecting network provided in this embodiment includes:Connect first network;Pre-connection second
Network;Judge whether the signal of the second network is stablized;If so, mobile terminal is switched into the second network by first network, if it is not,
Then disconnect the pre-connection of the second network.By the above-mentioned means, can be in the case of the second network of pre-connection, to the second network
Stability is detected, and mobile terminal is ensured the number of mobile terminal according to the automatic handover network of stability of network
It is smooth according to interaction.
Refering to Fig. 2, Fig. 2 is the flow diagram of another embodiment of method for connecting network provided by the invention, this method bag
Include:
Step 21:Connect first network.
Step 22:The second network of pre-connection.
Optionally, step 22 can specifically include:The identification information and verification password of the second network are obtained in advance;Dragnet
Network signal, when searching the second network, is established with the second network by the identification information and verification password that obtain in advance and connected in advance
Connect.
Wherein, when the second network is WIFI network, which can be SSID (Service Set
Identifier, service set).
Step 23:Obtain the signal strength of the second network.
Step 24:When the signal of the second network is changed into strong signal or is changed into weak signal from strong signal from weak signal, add up
The signal intensity number of second network.
Wherein, the signal strength of weak signal is less than the first signal threshold value of setting, and the signal strength of strong signal is more than setting the
Binary signal threshold value, the first signal threshold value are less than secondary signal threshold value.
Step 25:Judge in set period of time, whether the accumulated signal change frequency of the second network is less than setting the 3rd
Threshold value.
When the judging result of step 25 is is, step 26 is performed, when the judging result of step 25 is no, performs step
27。
Step 26:Mobile terminal is switched into the second network by first network.
Step 27:Disconnect the pre-connection of the second network.
The present embodiment is illustrated with reference to an application scenarios.
WIFI hot spot has been pre-saved, and at the region covered without the WIFI hot spot signal, using on data network
Net.
When being moved to the WIFI hot spot overlay area, system bottom first establishes WIFI connections, but network channel still makes
Surfed the Internet with data network, user can guarantee that online is stablized at this time.
After bottom establishes WIFI connections, continue to detect WIFI signal Strength Changes and change frequency in setting time T.Example
Such as, if signal strength, which persistently changes from weak signal (a), is changed into strong signal (b), record number m (successively+1 since 0 time);
If signal strength from strong signal (b) to weak signal (a), records frequency n (successively+1 since 0 time).
After m, n reach certain number, or after the sum of m, n reach certain number, then it is assumed that the WIFI hot spot signal fluctuation
Greatly, it is unstable, connection is turned off, and disable the hot spot for a period of time, and network channel is then persistently surfed the Internet using data network,
And upper interface does not show WIFI connection procedures.
If in period T, m, n number, or the sum of m, n are not up to preset value, then judge that the WIFI hot spot can meet
Internet access request, Internet channel switches to WIFI from data network, and upper interface shows WIFI connections.
Refering to Fig. 3, Fig. 3 is the flow diagram of the another embodiment of method for connecting network provided by the invention, this method bag
Include:
Step 31:Connect first network;
Step 32:The second network of pre-connection;
Wherein, first network is data network, and the second network includes multiple sub-networks, the identification information of multiple sub-networks and
Verify that password is identical.
Optionally, when the second network is WIFI network, which can be SSID (Service Set
Identifier, service set).It should be understood that the SSID of multiple sub-networks is identical, but its BSSID (Basic
Service Set, i.e. MAC Address) it is different.
Step 33:Obtain network switching frequency of the mobile terminal in multiple sub-networks.
Wherein, step 33 can specifically include:When mobile terminal switches in multiple sub-networks, aggregation network is cut
Change number;Network switching frequency in the unit of account time.
Step 34:Judge whether network switching frequency is less than the 4th threshold value of setting.
When the judging result of step 34 is is, step 35 is performed, when the judging result of step 34 is no, performs step
36。
Step 35:Mobile terminal is switched into the second network by first network.
Step 36:Disconnect the pre-connection of the second network.
The present embodiment is illustrated with reference to an application scenarios.
Pre-save WIFI roaming networks (there are the network as SSID and cipher mode, password etc. in region, but
WIFI hot spot BSSID is inconsistent) WIFI hot spot in region, and at the region covered without the WIFI hot spot signal, use number
Surf the Internet according to network.
When being moved to the WIFI hot spot overlay area, system bottom first establishes WIFI connections, but network channel still makes
Surfed the Internet with data network, user can guarantee that online is stablized at this time.
After bottom establishes WIFI connections, continue to detect WIFI signal in setting time T in WIFI roaming network areas
Multiple WIFI sub-networks in roaming (switching) number.For example, often switch once then successively+1 since 0 time.
After accumulative number reaches certain number, then it is assumed that the unstable networks of the WIFI random zones, turn off
Connection, and disable the hot spot for a period of time, and network channel is then persistently surfed the Internet using data network, and upper interface is not shown
WIFI connection procedures.
If in period T, switching cumulative number is not up to preset value, then judges that the WIFI hot spots can meet to surf the Internet
It is required that Internet channel switches to WIFI from data network, and upper interface shows WIFI connections.
Refering to Fig. 4, Fig. 4 is the flow diagram of method for connecting network another embodiment provided by the invention, this method bag
Include:
Step 41:Connect first network.
Step 42:The second network of pre-connection.
Step 43:Judge whether the signal of the second network is stablized.
When the judging result of step 43 is is, step 44 is performed, when the judging result of step 43 is no, performs step
45。
Step 44:Mobile terminal is switched into the second network by first network.
After step 44, step 46 is performed.
Step 45:Disconnect the pre-connection of the second network.
Step 46:Continue to judge whether the signal of the second network is stablized.
When the judging result of step 46 is no, step 47 is performed.
Step 47:By mobile terminal by the second network switching to first network.
In the present embodiment, whether the second network that step 46 judges to have connected is stablized can be specifically using following two
Mode:
In a kind of mode, first network is data network, and the second network is WIFI network.The second network can then be obtained
Signal strength;When the signal of the second network is changed into strong signal or is changed into weak signal from strong signal from weak signal, add up second
The signal intensity number of network;Wherein, the signal strength of weak signal is less than the first signal threshold value of setting, the signal strength of strong signal
More than setting secondary signal threshold value, the first signal threshold value is less than secondary signal threshold value;Judge in set period of time, the second network
Accumulated signal change frequency whether be less than setting the 3rd threshold value.It is less than setting the in the accumulated signal change frequency of the second network
During three threshold values, the second network stabilization is determined, when the accumulated signal change frequency of the second network is greater than or equal to three threshold values, really
Fixed second unstable networks.
In a further mode of operation, first network is data network, and the second network includes multiple sub-networks, multiple sub-networks
Identification information is identical with verification password.Network switching frequency of the mobile terminal in multiple sub-networks can then be obtained;Judge net
Whether network switching frequency is less than the 4th threshold value of setting.When network switching frequency is less than four threshold values, the second network stabilization is determined,
When network switching frequency is greater than or equal to four threshold values, the second unstable networks are determined.
Optionally, in the present embodiment, step 41 and step 42 can also be omitted, i.e. the original state of mobile terminal is company
Connect the second network.
Optionally, can also be in the swinging of signal timing of the second network, pop-up prompt window prompting the after step 46
The jitter of two networks, and ask the user whether to switch to first network;If the instruction for being is received, by mobile terminal
By the second network switching to first network.
Optionally, after step 46, neighbouring wireless network can also be searched in the swinging of signal timing of the second network
Network;Whether detect in the wireless network searched has the 3rd network pre-saved;If so, then by mobile terminal by the second network
Switch to the 3rd network.
Optionally, after step 47, can also restart mobile whole when being again introduced into the overlay area of the second network
End, and again continue to judge whether the signal of the second network is stablized.
Illustrated with reference to an application scenarios.
User connects WIFI roaming networks in advance.
If roaming (the WIFI SSID connected are constant, but BSSID changes) occurs for WIFI, then start counting up, when tired
Meter reach n (configurable) it is secondary after, then judge the WIFI hot spot for frequent roaming hot-spot mode, jitter, and flag attribute true,
User's WIFI hot spot is reminded frequently to roam, experience is poor, and judges whether that the WIFI that surfs the Internet that other had been connected is (non-
Frequently roaming WIFI).
If there are other WIFI that can surf the Internet, play whether frame prompting user " switches other WIFI " that can surf the Internet.
User selects "Yes" then to switch, and selects " no " not switch then.
If after detecting frequently roaming WIFI hot spot, no other have preserved the WIFI hot spot that can surf the Internet, then prompt the user whether
The WIFI is disconnected, user selects "Yes" then to disconnect WIFI, selects "No" then to keep connecting.
The WIFI signal area of coverage is entered in next time, or user restarts mobile phone, or close and open WIFI, the WIFI is arrived in scanning
After hot spot, judge whether frequent roaming attributes are true, if then without automatic connection.
If user connects the hot spot manually, frequent roaming attributes are removed, detect the WIFI hot spot roaming conditions again.
Refering to Fig. 5, Fig. 5 is the structure diagram of one embodiment of mobile terminal provided by the invention, which wraps
Include link block 51, judgment module 52 and handover module 53.
Wherein, link block 51 is used to connect first network;And the second network of pre-connection;Judgment module 52 is used to judge
Whether the signal of the second network is stablized;Handover module 53 be used for judgment module judging result for be when, by mobile terminal by
First network switches to the second network, and when the judging result of judgment module is no, disconnects the pre-connection of the second network.
Optionally, as shown in fig. 6, in another embodiment, which includes link block 61, acquisition module
62nd, accumulation module 63, judgment module 64 and handover module 65.
Wherein, link block 61 is used to connect first network;And the second network of pre-connection;Acquisition module 62 is used to obtain
The signal strength of second network;Accumulation module 63 is used to be changed into strong signal or by believing by force from weak signal in the signal of the second network
When number being changed into weak signal, add up the signal intensity number of the second network;Wherein, the signal strength of weak signal is less than the letter of setting first
Number threshold value, the signal strength of strong signal are more than setting secondary signal threshold value, and the first signal threshold value is less than secondary signal threshold value;Judge
For module 64 for judging in set period of time, whether the accumulated signal change frequency of the second network is less than the 3rd threshold value of setting;
Handover module 65 is used to, when the judging result of judgment module is is, mobile terminal is switched to the second network by first network,
And when the judging result of judgment module is no, disconnect the pre-connection of the second network.
Optionally, as shown in fig. 7, in another embodiment, which includes link block 71, acquisition module
72nd, judgment module 73 and handover module 74.
Wherein, link block 71 is used to connect first network;And the second network of pre-connection;Acquisition module 72 is used to obtain
Network switching frequency of the mobile terminal in multiple sub-networks;Judgment module 73 is set for judging whether network switching frequency is less than
Fixed 4th threshold value.Handover module 74 is used to, when the judging result of judgment module is is, mobile terminal be switched by first network
To the second network, and when the judging result of judgment module is no, the pre-connection of the second network is disconnected.
Optionally, in above-mentioned each embodiment, judgment module is additionally operable to, when mobile terminal connects the second network, continue
Judge whether the signal of the second network is stablized;Handover module is additionally operable to when the judging result of judgment module is no, will be mobile whole
End is by the second network switching to first network.
It should be understood that mobile terminal provided by the embodiment is that the movement based on the proposition of above-mentioned method for connecting network is whole
End, its implementation principle is similar, and which is not described herein again.
Refering to Fig. 8, Fig. 8 is the structure diagram of the another embodiment of mobile terminal provided by the invention, the mobile terminal bag
Include processor 81, memory 82 and the computer program being stored on holder 82,81 coupled memory 82 of processor.Processing
Device 81 performs computer program to realize following methods step at work:
Connect first network;The second network of pre-connection;Judge whether the signal of the second network is stablized;If so, will be mobile whole
End switches to the second network by first network, if it is not, then disconnecting the pre-connection of the second network.
Optionally, in the present embodiment, mobile terminal can be mobile phone, tablet computer etc..
Optionally, in another embodiment, first network is data network, and the second network is WIFI networks.Processor 81
It is additionally operable to perform:Obtain the signal strength of the second network;Strong signal is changed into or by believing by force from weak signal in the signal of the second network
When number being changed into weak signal, add up the signal intensity number of the second network;Wherein, the signal strength of weak signal is less than the letter of setting first
Number threshold value, the signal strength of strong signal are more than setting secondary signal threshold value, and the first signal threshold value is less than secondary signal threshold value;Judge
In set period of time, whether the accumulated signal change frequency of the second network is less than the 3rd threshold value of setting.
Optionally, in another embodiment, first network is data network, and the second network includes multiple sub-networks, multiple
The identification information of sub-network is identical with verification password.Processor 81 is additionally operable to perform:Mobile terminal is obtained in multiple sub-networks
Network switching frequency;Judge whether network switching frequency is less than the 4th threshold value of setting.
Optionally, in another embodiment, processor 81 is additionally operable to perform:Mobile terminal is being switched to by first network
After second network, continue to judge whether the signal of the second network is stablized;If it is not, then by mobile terminal by the second network switching extremely
First network.
Refering to Fig. 9, Fig. 9 is the structure diagram of mobile terminal another embodiment provided by the invention, the mobile terminal bag
Include processor 91, memory 92 and the computer program being stored on holder 92,91 coupled memory 92 of processor.Separately
Outside, data network module 93 and WIFI network module 94, data network module 93 and WIFI network mould are further included in mobile terminal
94 coupling processors 61 of group.
Wherein, data network module 93 is used to establish data network connection, and WIFI network module 94 is used to establish WIFI nets
Network connects, and processor 91 is used for after data network module 93 establishes connection, and control WIFI network module 94 carries out pre-connection, and
Judge whether the signal of WIFI network module 94 is stablized;If so, by the network connection for establishing WIFI network module 94 and close number
According to network modules 93, if it is not, then disconnecting the pre-connection of WIFI network module 94.
In several embodiments provided by the present invention, it should be understood that disclosed method and equipment, Ke Yitong
Other modes are crossed to realize.For example, equipment embodiment described above is only schematical, for example, the module or
The division of unit, is only a kind of division of logic function, can there is other dividing mode, such as multiple units when actually realizing
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
In network unit.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units integrate in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Refering to Figure 10, Figure 10 is the structure diagram of one embodiment of computer-readable recording medium provided by the invention, should
Computer-readable recording medium 100 is stored with computer program 101, is realized when computer program 101 is executed by processor following
Step:
Connect first network;The second network of pre-connection;Judge whether the signal of the second network is stablized;If so, will be mobile whole
End switches to the second network by first network, if it is not, then disconnecting the pre-connection of the second network.And
It is data network in first network, when the second network is WIFI network.Obtain the signal strength of the second network;
When the signal of two networks is changed into strong signal or is changed into weak signal from strong signal from weak signal, add up the signal intensity of the second network
Number;Wherein, the signal strength of weak signal is less than the first signal threshold value of setting, and the signal strength of strong signal is more than the letter of setting second
Number threshold value, the first signal threshold value are less than secondary signal threshold value;Judge in set period of time, the accumulated signal change of the second network
Whether number is less than the 3rd threshold value of setting.And
It is data network in first network, the second network includes multiple sub-networks and (identification information of multiple sub-networks and tests
It is identical to demonstrate,prove password) when, obtain network switching frequency of the mobile terminal in multiple sub-networks;Judge whether network switching frequency is small
In the 4th threshold value of setting.
In the embodiment of the computer program of the computer-readable recording medium storage of the present embodiment and above-mentioned mobile terminal
The computer program of memory storage is similar, and the method and step realized when being executed by processor is similar, and which is not described herein again.
The embodiment of the present invention is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can
To be stored in a computer read/write memory medium.Based on such understanding, technical scheme substantially or
Saying all or part of the part to contribute to the prior art or the technical solution can be embodied in the form of software product
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
(can be personal computer, server, or network equipment etc.) or processor (processor) perform each reality of the present invention
Apply all or part of step of mode the method.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
With reference to above-mentioned multiple embodiments, mobile terminal provided by the invention is not directly coupled in network connection
WIFI network, but the stability of detection WIFI network in advance, in WIFI network stabilizations, just carry out network switching.The opposing party
Face, in the case where having connected WIFI network, also detects the stability of WIFI network, when unstable, switches to data network
Network.By the above-mentioned means, it can ensure that the network connection of mobile terminal is unobstructed.
The foregoing is merely embodiments of the present invention, are not intended to limit the scope of the invention, every to utilize this
The equivalent structure or equivalent flow shift that description of the invention and accompanying drawing content are made, it is relevant to be directly or indirectly used in other
Technical field, is included within the scope of the present invention.
Claims (17)
- A kind of 1. method for connecting network, it is characterised in that including:Connect first network;The second network of pre-connection;Judge whether the signal of second network is stablized;If so, the mobile terminal is switched into second network by the first network, if it is not, then disconnecting second net The pre-connection of network.
- 2. according to the method described in claim 1, it is characterized in that,The step whether signal for judging second network is stablized, including:Obtain the signal strength of second network;When the signal of second network is changed into strong signal or is changed into weak signal from strong signal from weak signal, add up described the The signal intensity number of two networks;Wherein, the signal strength of the weak signal is less than the first signal threshold value of setting, the strong signal Signal strength be more than setting secondary signal threshold value, first signal threshold value is less than the secondary signal threshold value;Judge in set period of time, whether the accumulated signal change frequency of second network is less than the 3rd threshold value of setting.
- 3. according to the method described in claim 1, it is characterized in that,The step of second network of pre-connection, including:The identification information and verification password of second network are obtained in advance;Network signal is searched for, when searching second network, passes through the identification information obtained in advance and verification password and institute State the second network and establish pre-connection.
- 4. according to claim 1-3 any one of them methods, it is characterised in thatThe first network is data network, and second network is WIFI network.
- 5. according to the method described in claim 1, it is characterized in that,The first network is data network, and second network includes multiple sub-networks, the mark letter of the multiple sub-network Breath is identical with verification password;The step whether signal for judging second network is stablized, including:Obtain network switching frequency of the mobile terminal in the multiple sub-network;Judge whether the network switching frequency is less than the 4th threshold value of setting.
- 6. according to the method described in claim 5, it is characterized in that,The step of network switching frequency of the detection mobile terminal in the multiple sub-network, including:When the mobile terminal switches in the multiple sub-network, aggregation network switching times;Network switching frequency in the unit of account time.
- 7. according to the method described in claim 1, it is characterized in that,After the described the step of mobile terminal is switched to second network by the first network, further include:Continue to judge whether the signal of second network is stablized;If it is not, then by the mobile terminal by second network switching to the first network.
- 8. the method according to the description of claim 7 is characterized in thatThe method further includes:In the swinging of signal timing of second network, pop-up prompt window prompts the jitter of second network, and Ask the user whether to switch to the first network;If receiving the instruction for being, by the mobile terminal by second network switching to the first network.
- 9. the method according to the description of claim 7 is characterized in thatThe method further includes:In the swinging of signal timing of second network, neighbouring wireless network is searched for;Whether detect in the wireless network searched has the 3rd network pre-saved;If so, then by the mobile terminal by second network switching to the 3rd network.
- 10. the method according to the description of claim 7 is characterized in thatThe method further includes:When being again introduced into the overlay area of second network, the mobile terminal is restarted, and again continue to judge described Whether the signal of two networks is stablized.
- 11. the method according to the description of claim 7 is characterized in thatThe method further includes:When detecting that user connects second network manually, whether the signal for rejudging second network is stablized.
- A kind of 12. mobile terminal, it is characterised in that including:Link block, for connecting first network;AndThe second network of pre-connection;Whether judgment module, the signal for judging second network are stablized;Handover module, for the judgment module judging result for be when, by the mobile terminal by the first network Second network is switched to, and when the judging result of the judgment module is no, disconnects the pre- company of second network Connect.
- 13. mobile terminal according to claim 12, it is characterised in that further include:Acquisition module, for obtaining the signal strength of second network;Accumulation module, for being changed into strong signal from weak signal in the signal of second network or being changed into weak signal from strong signal When, the signal intensity number of accumulative second network;Wherein, the signal strength of the weak signal is less than the first signal threshold of setting Value, the signal strength of the strong signal are more than setting secondary signal threshold value, and first signal threshold value is less than the secondary signal Threshold value;The judgment module is additionally operable to judge in set period of time, and whether the accumulated signal change frequency of second network is small In the 3rd threshold value of setting.
- 14. mobile terminal according to claim 12, it is characterised in thatThe first network is data network, and second network includes multiple sub-networks, the mark letter of the multiple sub-network Breath is identical with verification password;The mobile terminal further includes:Acquisition module, for obtaining network switching frequency of the mobile terminal in the multiple sub-network;The judgment module is additionally operable to judge whether the network switching frequency is less than the 4th threshold value of setting.
- 15. mobile terminal according to claim 12, it is characterised in thatThe judgment module is additionally operable to, when the mobile terminal connects second network, continue to judge second network Whether signal is stablized;The handover module is additionally operable to when the judging result of the judgment module is no, by the mobile terminal by described second Network switching is to the first network.
- 16. a kind of mobile terminal, it is characterised in that including processor, memory and the calculating being stored on the holder Machine program, the processor couple the memory, and the processor performs the computer program to realize such as at work Claim 1 to 11 any one of them method.
- 17. a kind of computer-readable storage medium, it is characterised in that the computer-readable storage medium is stored with computer program, described Computer program is performed realization such as claim 1 to 11 any one of them method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711232587.9A CN108012301A (en) | 2017-11-29 | 2017-11-29 | A kind of mobile terminal and its method for connecting network, computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711232587.9A CN108012301A (en) | 2017-11-29 | 2017-11-29 | A kind of mobile terminal and its method for connecting network, computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108012301A true CN108012301A (en) | 2018-05-08 |
Family
ID=62055066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711232587.9A Pending CN108012301A (en) | 2017-11-29 | 2017-11-29 | A kind of mobile terminal and its method for connecting network, computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108012301A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089327A (en) * | 2018-10-23 | 2018-12-25 | Oppo(重庆)智能科技有限公司 | wireless network connecting method, device, terminal and storage medium |
CN109951845A (en) * | 2019-01-31 | 2019-06-28 | 李明臻 | A kind of information processing method and device |
CN110536367A (en) * | 2019-08-29 | 2019-12-03 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method for switching network, device, storage medium and terminal |
CN110582103A (en) * | 2019-09-24 | 2019-12-17 | 广东以诺通讯有限公司 | method, terminal and storage medium for avoiding network ping-pong switching |
CN113365322A (en) * | 2021-06-03 | 2021-09-07 | 北京千丁互联科技有限公司 | Network switching method and device, security flat panel and readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1898984A (en) * | 2003-10-24 | 2007-01-17 | 高通股份有限公司 | Handoff between a wireless local area network and a cellular communication system |
CN101534531A (en) * | 2009-04-02 | 2009-09-16 | 中兴通讯股份有限公司 | A network switching method and system |
CN102497659A (en) * | 2011-12-05 | 2012-06-13 | 中国电信股份有限公司 | Method and system for network selection under dual-network coverage, and dual-mode terminal |
CN102711164A (en) * | 2012-05-15 | 2012-10-03 | 上海交通大学无锡研究院 | Intelligent management method for data communication link of mobile terminal |
CN103152781A (en) * | 2013-03-26 | 2013-06-12 | 天地(常州)自动化股份有限公司 | Method for automatically roaming and switching mining SIP (Session Initiation Protocol) mobile terminal among mining wireless base stations |
CN104170471A (en) * | 2012-02-24 | 2014-11-26 | 高通股份有限公司 | Method and system for regulating frequent handover by mobile devices between femtocells |
CN105142234A (en) * | 2015-08-12 | 2015-12-09 | Tcl集团股份有限公司 | Network connection method and network connection system of intelligent terminal |
CN107135525A (en) * | 2017-06-21 | 2017-09-05 | 天津光电通信技术有限公司 | A kind of method that WiFi automatically switches with cellular mo-bile data network |
WO2017167694A1 (en) * | 2016-03-31 | 2017-10-05 | British Telecommunications Public Limited Company | Voice service client device |
-
2017
- 2017-11-29 CN CN201711232587.9A patent/CN108012301A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1898984A (en) * | 2003-10-24 | 2007-01-17 | 高通股份有限公司 | Handoff between a wireless local area network and a cellular communication system |
CN101534531A (en) * | 2009-04-02 | 2009-09-16 | 中兴通讯股份有限公司 | A network switching method and system |
CN102497659A (en) * | 2011-12-05 | 2012-06-13 | 中国电信股份有限公司 | Method and system for network selection under dual-network coverage, and dual-mode terminal |
CN104170471A (en) * | 2012-02-24 | 2014-11-26 | 高通股份有限公司 | Method and system for regulating frequent handover by mobile devices between femtocells |
CN102711164A (en) * | 2012-05-15 | 2012-10-03 | 上海交通大学无锡研究院 | Intelligent management method for data communication link of mobile terminal |
CN103152781A (en) * | 2013-03-26 | 2013-06-12 | 天地(常州)自动化股份有限公司 | Method for automatically roaming and switching mining SIP (Session Initiation Protocol) mobile terminal among mining wireless base stations |
CN105142234A (en) * | 2015-08-12 | 2015-12-09 | Tcl集团股份有限公司 | Network connection method and network connection system of intelligent terminal |
WO2017167694A1 (en) * | 2016-03-31 | 2017-10-05 | British Telecommunications Public Limited Company | Voice service client device |
CN107135525A (en) * | 2017-06-21 | 2017-09-05 | 天津光电通信技术有限公司 | A kind of method that WiFi automatically switches with cellular mo-bile data network |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089327A (en) * | 2018-10-23 | 2018-12-25 | Oppo(重庆)智能科技有限公司 | wireless network connecting method, device, terminal and storage medium |
CN109951845A (en) * | 2019-01-31 | 2019-06-28 | 李明臻 | A kind of information processing method and device |
CN109951845B (en) * | 2019-01-31 | 2022-08-30 | 扬州佳航档案服务有限公司 | Information processing method and device |
CN110536367A (en) * | 2019-08-29 | 2019-12-03 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method for switching network, device, storage medium and terminal |
CN110582103A (en) * | 2019-09-24 | 2019-12-17 | 广东以诺通讯有限公司 | method, terminal and storage medium for avoiding network ping-pong switching |
CN113365322A (en) * | 2021-06-03 | 2021-09-07 | 北京千丁互联科技有限公司 | Network switching method and device, security flat panel and readable storage medium |
CN113365322B (en) * | 2021-06-03 | 2022-11-29 | 北京千丁互联科技有限公司 | Network switching method and device, security flat panel and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108012301A (en) | A kind of mobile terminal and its method for connecting network, computer-readable recording medium | |
US10285122B2 (en) | Method and apparatus for handling abnormality of network communication function and storage medium | |
US10425796B2 (en) | Radio access technology searching method and apparatus for emergency call in terminal supporting a plurality of communication networks | |
CN102572833B (en) | A kind of holding successional method, system and device of customer service | |
CN102448187B (en) | The method of automatic access Wi-Fi network and terminal | |
CN101980571B (en) | Method for accelerating cell search and mobile communication terminal | |
US10484921B2 (en) | Wireless hotspot handover method, mobile terminal and storage medium | |
CN103906090B (en) | A kind of method, apparatus measuring the adjacent areas LTE in non-LTE network | |
CN102143555B (en) | Terminal cell search method and relevant equipment and system | |
CN113242580A (en) | Cell residence method, terminal and storage medium | |
CN103906158A (en) | Method for returning to LTE network from 2G/3G network | |
CN103517363B (en) | Differentiation system quick return method and terminal | |
CN108495348A (en) | It is a kind of for the method for switching network of user equipment, equipment and medium | |
CN109511107A (en) | A kind of mobile network's intelligent roaming selection method | |
CN102421088A (en) | Multi-card multi-standby terminal and synchronization method and device thereof | |
CN106465237A (en) | Wireless communication method, processor and wireless terminal | |
CN111954278B (en) | Information reporting method and device, mobile terminal and storage medium | |
US20150031371A1 (en) | Plmn selection method, mobile terminal, bsc and core network device | |
CN103916921A (en) | Mobile terminal and different system cell reselection method thereof | |
US20230132340A1 (en) | Cell residing processing method, terminal device, and computer-readable storage medium | |
CN103874167A (en) | Mode selection method for LTE (long term evolution) multi-mode mobile terminal | |
CN107484212A (en) | Router side WiFi switching methods and router | |
CN103874152A (en) | Control method of mobile terminal | |
CN103813439A (en) | Method for terminal register and terminal | |
CN114828125A (en) | Voice service switching method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180508 |
|
RJ01 | Rejection of invention patent application after publication |