CN108770075A - network connection control method, mobile terminal and computer readable storage medium - Google Patents

network connection control method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108770075A
CN108770075A CN201810535049.5A CN201810535049A CN108770075A CN 108770075 A CN108770075 A CN 108770075A CN 201810535049 A CN201810535049 A CN 201810535049A CN 108770075 A CN108770075 A CN 108770075A
Authority
CN
China
Prior art keywords
signal strength
wlan
threshold value
strength values
network connection
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.)
Withdrawn
Application number
CN201810535049.5A
Other languages
Chinese (zh)
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.)
Shenzhen Lingdu Intelligent Control Technology Co Ltd
Original Assignee
Shenzhen Lingdu Intelligent Control Technology 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 Shenzhen Lingdu Intelligent Control Technology Co Ltd filed Critical Shenzhen Lingdu Intelligent Control Technology Co Ltd
Priority to CN201810535049.5A priority Critical patent/CN108770075A/en
Publication of CN108770075A publication Critical patent/CN108770075A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections

Abstract

The invention discloses a kind of network connection control method, mobile terminal and computer readable storage mediums.Network connection control method includes:When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, the second signal intensity value of mobile network that obtains the first signal strength values of the first WLAN being currently accessed and be currently accessed;If the first signal strength values are less than preset signal strength threshold value, current time affiliated period corresponding remaining available stream magnitude is obtained;When remaining available stream magnitude is more than preset flow threshold value, whether detection second signal intensity value is greater than or equal to preset signal strength threshold value;If second signal intensity value is greater than or equal to preset signal strength threshold value, network connection is disconnected with the first WLAN being currently accessed.Through the invention, based on the network environment residing for mobile terminal, suitable network insertion is automatically selected, the user experience is improved.

Description

Network connection control method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to field of communication technology more particularly to network connection control method, mobile terminals and computer-readable Storage medium.
Background technology
Currently, mobile phone is usually to realize the function of accessing internet using Wireless LAN or mobile network.For The considerations of being saved money for user, under mobile phone default configuration, the priority of WLAN is higher than mobile network.Work as hand When machine accesses WLAN and mobile network simultaneously, preferentially the work(for accessing internet can be realized using Wireless LAN Energy.But in some special circumstances, although mobile phone has accessed WLAN, but since signal is too poor, is not enough to support hand Machine realizes the function of accessing internet, and at this time since the priority of WLAN is higher than mobile network, it is keeping accessing In the state of WLAN, can not also the function of accessing internet be realized by using mobile network.In this case, If user fails to adjust internetwork connection mode in time, mobile phone will be caused in no internet access state, it is bad to bring user Usage experience.
Invention content
The main purpose of the present invention is to provide a kind of network connection control method, mobile terminal and computer-readable storages Medium, it is intended to when solving mobile phone in the prior art while accessing the first WLAN and mobile network, if passing through the first nothing Line LAN is not enough to that mobile phone is supported to realize the function of accessing internet, and mobile phone will be caused in the skill of no internet access state Art problem.
To achieve the above object, the present invention provides a kind of network connection control method, the network connection control method packet Include following steps:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, acquisition is currently accessed The first WLAN the first signal strength values and the mobile network being currently accessed second signal intensity value;
Detect whether first signal strength values are less than preset signal strength threshold value;
If first signal strength values are less than preset signal strength threshold value, it is corresponding to obtain the current time affiliated period Remaining available stream magnitude;
Detect whether the remaining available stream magnitude is more than preset flow threshold value;
If the residue available stream magnitude is more than preset flow threshold value, detect whether the second signal intensity value is more than Or it is equal to preset signal strength threshold value;
It is first wireless with being currently accessed if the second signal intensity value is greater than or equal to preset signal strength threshold value LAN disconnects network connection.
Optionally, after the disconnection network connection with the first WLAN being currently accessed, further include:
It obtains flow and uses data, and use data to current time affiliated period corresponding residue according to the flow of acquisition Available stream magnitude is updated;
When detecting that it is described pre- that corresponding remaining available stream magnitude of updated current time affiliated period is less than or equal to If when flow threshold, network connection, and outputting alarm prompt are disconnected with the mobile network being currently accessed.
Optionally, whether detection first signal strength values are less than after preset signal strength threshold value, further include:
If first signal strength values are greater than or equal to preset signal strength threshold value, mobile terminal is kept to access first WLAN.
Optionally, whether the detection remaining available stream magnitude is more than after preset flow threshold value, further includes:
If the residue available stream magnitude is less than or equal to preset flow threshold value, keep mobile terminal access first wireless LAN.
Optionally, whether the detection second signal intensity value is greater than or equal to after preset signal strength threshold value, Further include:
If the second signal intensity value is less than preset signal strength threshold value, mobile terminal is kept to access the first wireless office Domain net.
Optionally, the holding mobile terminal accesses after the first WLAN, further includes:
Detect whether that there are the third signal strength values of the second WLAN and second WLAN to be more than institute State the first signal strength values;
If there are the second WLAN, and the third signal strength values of second WLAN are more than described first Signal strength values then disconnect network connection with first WLAN, and access second WLAN.
It is optionally, described when mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, Obtain the first signal strength values of the first WLAN being currently accessed and the second signal for the mobile network being currently accessed The step of intensity value includes:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, every preset duration The signal strength values of first WLAN of acquisition and the signal strength values of mobile network;
When the number of the signal strength values of the first WLAN of acquisition, and the signal strength of the mobile network of acquisition When the number of value is predetermined number, the average value of the signal strength values of the first WLAN of predetermined number is calculated, is worked as First signal strength values of the first WLAN of preceding access calculate being averaged for the signal strength values of predetermined number mobile network Value, the second signal intensity value for the mobile network being currently accessed.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes:Memory, Processor and it is stored in the network connection control program that can be run on the memory and on the processor, the network connects Connect the step of realizing network connection control method as described above when control program is executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Network connection control program is stored on storage medium, the network connection control program realizes institute as above when being executed by processor The step of network connection control method stated.
In the present invention, when mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, obtain The second signal of the first signal strength values and the mobile network being currently accessed that take the first WLAN being currently accessed is strong Angle value;Detect whether first signal strength values are less than preset signal strength threshold value;If first signal strength values are less than Preset signal strength threshold value then obtains current time affiliated period corresponding remaining available stream magnitude;It detects described remaining available Whether flow value is more than preset flow threshold value;If the residue available stream magnitude is more than preset flow threshold value, described the is detected Whether binary signal intensity value is greater than or equal to preset signal strength threshold value;If the second signal intensity value is greater than or equal to default Signal strength threshold then disconnects network connection with the first WLAN being currently accessed.Through the invention, when mobile terminal is same When being in Wireless LAN and mobile network, if the signal strength of Wireless LAN is relatively low, and it is current meet use The condition of mobile network then disconnects the network connection with WLAN so that mobile terminal can be realized by mobile network Net function promotes user experience.
Description of the drawings
Fig. 1 is the mobile terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram that inventive network connects control method first embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
As shown in Figure 1, the mobile terminal may include:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally that the wired of standard connects Mouth, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, can also be stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Optionally, mobile terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, Voicefrequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically Ground, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to the bright of ambient light Secretly adjust the brightness of display screen, proximity sensor can close display screen and/or backlight when mobile terminal is moved in one's ear. As a kind of motion sensor, gravity accelerometer can detect in all directions the big of (generally three axis) acceleration It is small, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile terminal posture, (for example horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, mobile terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor are can also configure, details are not described herein.
It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 1 does not constitute the limit to mobile terminal It is fixed, may include either combining certain components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage media Believe module, Subscriber Interface Module SIM and network connection control program.
In mobile terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, with background server Into row data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And locate Reason device 1001 can be used for calling the network connection control program stored in memory 1005, and execute following operation:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, acquisition is currently accessed The first WLAN the first signal strength values and the mobile network being currently accessed second signal intensity value;
Detect whether first signal strength values are less than preset signal strength threshold value;
If first signal strength values are less than preset signal strength threshold value, it is corresponding to obtain the current time affiliated period Remaining available stream magnitude;
Detect whether the remaining available stream magnitude is more than preset flow threshold value;
If the residue available stream magnitude is more than preset flow threshold value, detect whether the second signal intensity value is more than Or it is equal to preset signal strength threshold value;
It is first wireless with being currently accessed if the second signal intensity value is greater than or equal to preset signal strength threshold value LAN disconnects network connection.
Further, processor 1001 can call the network connection control program stored in memory 1005, also execute It operates below:
It obtains flow and uses data, and use data to current time affiliated period corresponding residue according to the flow of acquisition Available stream magnitude is updated;
When detecting that it is described pre- that corresponding remaining available stream magnitude of updated current time affiliated period is less than or equal to If when flow threshold, network connection, and outputting alarm prompt are disconnected with the mobile network being currently accessed.
Further, processor 1001 can call the network connection control program stored in memory 1005, also execute It operates below:
If first signal strength values are greater than or equal to preset signal strength threshold value, mobile terminal is kept to access first WLAN.
Further, processor 1001 can call the network connection control program stored in memory 1005, also execute It operates below:
If the residue available stream magnitude is less than or equal to preset flow threshold value, keep mobile terminal access first wireless LAN.
Further, processor 1001 can call the network connection control program stored in memory 1005, also execute It operates below:
If the second signal intensity value is less than preset signal strength threshold value, mobile terminal is kept to access the first wireless office Domain net.
Further, processor 1001 can call the network connection control program stored in memory 1005, also execute It operates below:
Detect whether that there are the third signal strength values of the second WLAN and second WLAN to be more than institute State the first signal strength values;
If there are the second WLAN, and the third signal strength values of second WLAN are more than described first Signal strength values then disconnect network connection with first WLAN, and access second WLAN.
Further, processor 1001 can call the network connection control program stored in memory 1005, also execute It operates below:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, every preset duration The signal strength values of first WLAN of acquisition and the signal strength values of mobile network;
When the number of the signal strength values of the first WLAN of acquisition, and the signal strength of the mobile network of acquisition When the number of value is predetermined number, the average value of the signal strength values of the first WLAN of predetermined number is calculated, is worked as First signal strength values of the first WLAN of preceding access calculate being averaged for the signal strength values of predetermined number mobile network Value, the second signal intensity value for the mobile network being currently accessed.
It is the flow diagram that inventive network connects control method first embodiment with reference to Fig. 2, Fig. 2.
In one embodiment, network connection control method includes:
Step S10 is obtained when mobile terminal keeps connection status with the first WLAN and mobile network simultaneously The second signal intensity of first signal strength values of the first WLAN being currently accessed and the mobile network being currently accessed Value;
In the prior art, after the wireless network of mobile terminal switch (such as WLAN switches) is opened, mobile terminal can be automatic Search is presently in the WLAN in position, if in the presence of the Wireless LAN once connected, mobile terminal can be automatic Establish with the network connection of the WLAN, or by user select current search to Wireless LAN, closed with inputting The form of method password is connected to WLAN.After the mobile flow switch of mobile terminal is opened, mobile terminal can be searched automatically Rope is presently in the mobile network in position, and access to mobile network.
In one embodiment of the invention, after wireless network switch and the mobile flow switch unlatching simultaneously of mobile terminal, If there is currently available WLAN and mobile network, mobile terminal (can be denoted as first with the WLAN simultaneously WLAN) and mobile network's holding connection status.When mobile terminal simultaneously with the first WLAN and mobile network When network keeps connection status, the shifting that obtains the first signal strength values of the first WLAN being currently accessed and be currently accessed The second signal intensity value of dynamic network.
In an alternate embodiment of the present invention, when mobile terminal keeps connecting with the first WLAN and mobile network simultaneously Can be the signal strength values that the first Wireless LAN currently connected is obtained from mobile terminal system daily record when connecing state (being denoted as the first signal strength values), and the signal strength of the mobile network currently connected is obtained from mobile terminal system daily record Value (is denoted as second signal intensity value).
In another alternative embodiment of the present invention, when mobile terminal is kept with the first WLAN and mobile network simultaneously Can be obtained from mobile terminal system daily record every preset duration (such as 2 minutes, this is not restricted) when connection status The signal strength values of the first Wireless LAN currently connected, and obtain from mobile terminal system daily record and currently to connect The signal strength values of mobile network, when the quantity of the signal strength values of the first Wireless LAN of acquisition reaches predetermined number When, and when the quantity of signal strength values of mobile network that obtains reaches predetermined number, wherein predetermined number such as 5 (should Value can be adjusted according to actual needs, and this is not restricted), then calculate the signal strength values of 5 the first Wireless LAN Average value (being denoted as the first signal strength values), and calculate the average value of signal strength values of 5 mobile networks and (be denoted as second Signal strength values).
Step S20, detects whether first signal strength values are less than preset signal strength threshold value;
In the present embodiment, the setting of preset signal strength threshold value is configured according to actual needs, such as in real life In, when signal strength being needed to be greater than or equal to -80dBm, the online demand of user could be met, then by preset signal strength threshold value It is set as -80dBm.
In the present embodiment, when mobile phone accesses the first WLAN and mobile network simultaneously, first can be preferentially used Wireless LAN accesses the function of internet to realize.In the present embodiment, it is default whether the first signal strength values of detection are less than Signal strength threshold illustrates the of current mobile terminal access if the first signal strength values are less than preset signal strength threshold value One WLAN cannot be satisfied the online demand of user.
Step S30, if first signal strength values be less than preset signal strength threshold value, obtain current time it is affiliated when The corresponding remaining available stream magnitude of section;
In the present embodiment, if the first signal strength values are less than preset signal strength threshold value, illustrate that mobile terminal currently connects The first WLAN entered cannot be satisfied the online demand of user.
In the present embodiment, when the first WLAN that mobile terminal is currently accessed cannot be satisfied the online demand of user When, obtain corresponding remaining available stream magnitude of presently described period.
In the present embodiment, the SIM card in mobile terminal can generally order flow package, such as the SIM card of the mobile terminal Monthly utilizable flow is 50G.Flow in SIM card by use, mobile terminal can record used flow, according to Having used flow and can using total flow for current record, can be obtained corresponding remaining available stream magnitude of presently described period.
Step S40, detects whether the remaining available stream magnitude is more than preset flow threshold value;
In the present embodiment, preset flow threshold value is configured according to actual conditions.If whether remaining available stream magnitude is more than Preset flow threshold value, then currently usable mobile network realizes function of surfing the Net to explanation.
Step S50 detects the second signal intensity value if the residue available stream magnitude is more than preset flow threshold value Whether preset signal strength threshold value is greater than or equal to;
In the present embodiment, when remaining available stream magnitude is more than preset flow threshold value, then mobile network currently can be used in explanation Realize function of surfing the Net.Then detect whether second signal intensity value is greater than or equal to preset signal strength threshold value.The preset signals are strong Degree is consistent with the preset signal strength threshold value of step S20 meanings.
Step S60 and is currently accessed if the second signal intensity value is greater than or equal to preset signal strength threshold value First WLAN disconnects network connection.
In the present embodiment, if remaining available stream magnitude is more than preset flow threshold value, and the second signal intensity of mobile network Value is greater than or equal to preset signal strength threshold value, then network connection is disconnected with the first WLAN being currently accessed, mobile whole End can realize function of surfing the Net by mobile network.
In the present embodiment, when mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, Obtain the first signal strength values of the first WLAN being currently accessed and the second signal for the mobile network being currently accessed Intensity value;Detect whether first signal strength values are less than preset signal strength threshold value;If first signal strength values are small In preset signal strength threshold value, then current time affiliated period corresponding remaining available stream magnitude is obtained;Detecting the residue can Whether it is more than preset flow threshold value with flow value;If the residue available stream magnitude is more than preset flow threshold value, described in detection Whether second signal intensity value is greater than or equal to preset signal strength threshold value;If the second signal intensity value is greater than or equal to pre- If signal strength threshold, then network connection is disconnected with the first WLAN being currently accessed.Through this embodiment, when mobile whole When holding while being in Wireless LAN and mobile network, if the signal strength of Wireless LAN is relatively low, and current satisfaction Using the condition of mobile network, then the network connection with WLAN is disconnected so that mobile terminal can pass through mobile network's reality Existing function of surfing the Net, promotes user experience.
Further, in inventive network connection one embodiment of control method, after step S60, further include:
It obtains flow and uses data, and use data to current time affiliated period corresponding residue according to the flow of acquisition Available stream magnitude is updated;
When detecting that it is described pre- that corresponding remaining available stream magnitude of updated current time affiliated period is less than or equal to If when flow threshold, network connection, and outputting alarm prompt are disconnected with the mobile network being currently accessed.
In the present embodiment, network connection is disconnected with the first WLAN being currently accessed, mobile terminal can pass through shifting Dynamic real-time performance function of surfing the Net.At this point, obtaining flow uses data, and use data to current time institute according to the flow of acquisition Belong to period corresponding remaining available stream magnitude to be updated, when detecting corresponding residue of updated current time affiliated period When available stream magnitude is less than or equal to preset flow threshold value, network connection is disconnected with the mobile network being currently accessed, and export announcement Alert prompt.Alarm prompt can send out voice or text prompt, prompt user's current time affiliated period corresponding residue can It is insufficient with flow.
Through this embodiment, when detecting current time affiliated period corresponding remaining utilizable flow deficiency, disconnect with The network connection of mobile network, and alarm is sent out, it avoids and excessively uses mobile network, aggravate the financial burden of user.
Further, in inventive network connection one embodiment of control method, after step S20, further include:
If first signal strength values are greater than or equal to preset signal strength threshold value, mobile terminal is kept to access first WLAN.
In the present embodiment, if the first signal strength values are greater than or equal to preset signal strength threshold value, illustrate mobile terminal The first WLAN being currently accessed can meet the online demand of user, then mobile terminal is kept to access the first wireless local Net can save the flow cost of use of user.
Further, in inventive network connection one embodiment of control method, after step S40, further include:
If the residue available stream magnitude is less than or equal to preset flow threshold value, keep mobile terminal access first wireless LAN.
In the present embodiment, if remaining available stream magnitude is less than or equal to preset flow threshold value, in order to avoid excessively using shifting Dynamic network, aggravates the financial burden of user, then mobile terminal is kept to access the first WLAN.
Further, in inventive network connection one embodiment of control method, the detection second signal intensity value Whether it is greater than or equal to after preset signal strength threshold value, further includes:
If the second signal intensity value is less than preset signal strength threshold value, mobile terminal is kept to access the first wireless office Domain net.
In the present embodiment, if second signal intensity value is less than preset signal strength threshold value, even if illustrating currently using movement Network also cannot be satisfied the online demand of user, then keeps mobile terminal to access the first WLAN, can save the stream of user Measure cost of use.
Further, in inventive network connection one embodiment of control method, the holding mobile terminal accesses the first nothing After line LAN, further include:
Detect whether that there are the third signal strength values of the second WLAN and second WLAN to be more than institute State the first signal strength values;
If there are the second WLAN, and the third signal strength values of second WLAN are more than described first Signal strength values then disconnect network connection with first WLAN, and access second WLAN.
In the present embodiment, if the first Wireless LAN being currently accessed cannot be satisfied the online demand of user, and it is current Being unsatisfactory for mobile network's use condition (includes but not limited to:Remaining available stream magnitude is less than or equal to preset flow threshold value;It is mobile The second signal intensity value of network is less than preset signal strength threshold value), then detect whether that there are the second WLAN and second The third signal strength values of WLAN are more than the first signal strength values, if there is currently the second WLAN, and second The third signal strength values of WLAN are more than the first signal strength values, then illustrate the network signal ratio of the second WLAN The network signal of first WLAN is good, then network connection is disconnected with the first WLAN, and access the second wireless local Net promotes the online experience of user to improve speed of surfing the Internet.
Further, in inventive network connection one embodiment of control method, step S10 includes:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, every preset duration The signal strength values of first WLAN of acquisition and the signal strength values of mobile network;
When the number of the signal strength values of the first WLAN of acquisition, and the signal strength of the mobile network of acquisition When the number of value is predetermined number, the average value of the signal strength values of the first WLAN of predetermined number is calculated, is worked as First signal strength values of the first WLAN of preceding access calculate being averaged for the signal strength values of predetermined number mobile network Value, the second signal intensity value for the mobile network being currently accessed.
In another alternative embodiment of the present invention, when mobile terminal is kept with the first WLAN and mobile network simultaneously Can be obtained from mobile terminal system daily record every preset duration (such as 2 minutes, this is not restricted) when connection status The signal strength values of the first Wireless LAN currently connected, and obtain from mobile terminal system daily record and currently to connect The signal strength values of mobile network, when the quantity of the signal strength values of the first Wireless LAN of acquisition reaches predetermined number When, and when the quantity of signal strength values of mobile network that obtains reaches predetermined number, wherein predetermined number such as 5 (should Value can be adjusted according to actual needs, and this is not restricted), then calculate the signal strength values of 5 the first Wireless LAN Average value (being denoted as the first signal strength values), and calculate the average value of signal strength values of 5 mobile networks and (be denoted as second Signal strength values).
Through this embodiment, then the signal strength values for obtaining several the first Wireless LAN calculate average value, will Signal strength values of the average value as the first Wireless LAN;And obtain the signal strength of several mobile LAN networks Value, then calculates average value, using the average value as the signal strength values of mobile network so that the first obtained WLAN The signal strength values of network and the signal strength values of mobile network can more really represent the first Wireless LAN and movement The signal strength of network improves the reliability of this programme.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with network connection control program, the network connection control program realizes network as described above when being executed by processor The step of connecting control method.
Each implementation of the specific embodiment of computer readable storage medium of the present invention and above-mentioned network connection control method Example is essentially identical, and this will not be repeated here.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of network connection control method, which is characterized in that the network connection control method includes the following steps:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, the be currently accessed is obtained First signal strength values of one WLAN and the second signal intensity value for the mobile network being currently accessed;
Detect whether first signal strength values are less than preset signal strength threshold value;
If first signal strength values are less than preset signal strength threshold value, current time affiliated period corresponding residue is obtained Available stream magnitude;
Detect whether the remaining available stream magnitude is more than preset flow threshold value;
If the residue available stream magnitude is more than preset flow threshold value, detect whether the second signal intensity value is more than or waits In preset signal strength threshold value;
If the second signal intensity value is greater than or equal to preset signal strength threshold value, with the first wireless local being currently accessed Net disconnects network connection.
2. network connection control method as described in claim 1, which is characterized in that described with the first wireless office for being currently accessed After domain net disconnects network connection, further include:
It obtains flow and uses data, and is corresponding to the current time affiliated period remaining available using data according to the flow of acquisition Flow value is updated;
When detecting that corresponding remaining available stream magnitude of updated current time affiliated period is less than or equal to the default stream When measuring threshold value, network connection, and outputting alarm prompt are disconnected with the mobile network being currently accessed.
3. network connection control method as described in claim 1, which is characterized in that detection first signal strength values Whether it is less than after preset signal strength threshold value, further includes:
If first signal strength values are greater than or equal to preset signal strength threshold value, keep mobile terminal access first wireless LAN.
4. network connection control method as described in claim 1, which is characterized in that the detection remaining available stream magnitude Whether it is more than after preset flow threshold value, further includes:
If the residue available stream magnitude is less than or equal to preset flow threshold value, mobile terminal is kept to access the first wireless local Net.
5. network connection control method as described in claim 1, which is characterized in that the detection second signal intensity value Whether it is greater than or equal to after preset signal strength threshold value, further includes:
If the second signal intensity value is less than preset signal strength threshold value, mobile terminal is kept to access the first wireless local Net.
6. network connection control method as claimed in claim 5, which is characterized in that the holding mobile terminal accesses the first nothing After line LAN, further include:
Detect whether that there are the third signal strength values of the second WLAN and second WLAN to be more than described the One signal strength values;
If there are the second WLAN, and the third signal strength values of second WLAN are more than first signal Intensity value then disconnects network connection with first WLAN, and accesses second WLAN.
7. such as network connection control method according to any one of claims 1 to 6, which is characterized in that described to work as mobile terminal When keeping connection status with the first WLAN and mobile network simultaneously, the first WLAN being currently accessed is obtained The step of first signal strength values and the second signal intensity value for the mobile network being currently accessed includes:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, obtained every preset duration The signal strength values of first WLAN and the signal strength values of mobile network;
When the number of the signal strength values of the first WLAN of acquisition, and the signal strength values of mobile network that obtain When number is predetermined number, the average value of the signal strength values of the first WLAN of predetermined number is calculated, is currently connect First signal strength values of the first WLAN entered calculate the average value of the signal strength values of predetermined number mobile network, The second signal intensity value for the mobile network being currently accessed.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes:Memory, processor and it is stored in the storage On device and the network connection control program that can run on the processor, the network connection control program is by the processor Following steps are realized when execution:
When mobile terminal keeps connection status with the first WLAN and mobile network simultaneously, the be currently accessed is obtained First signal strength values of one WLAN and the second signal intensity value for the mobile network being currently accessed;
Detect whether first signal strength values are less than preset signal strength threshold value;
If first signal strength values are less than preset signal strength threshold value, current time affiliated period corresponding residue is obtained Available stream magnitude;
Detect whether the remaining available stream magnitude is more than preset flow threshold value;
If the residue available stream magnitude is more than preset flow threshold value, detect whether the second signal intensity value is more than or waits In preset signal strength threshold value;
If the second signal intensity value is greater than or equal to preset signal strength threshold value, with the first wireless local being currently accessed Net disconnects network connection.
9. mobile terminal as claimed in claim 8, which is characterized in that the network connection control program is held by the processor The step of network connection control method as described in any one of claim 2 to 7 is also realized when row.
10. a kind of computer readable storage medium, which is characterized in that be stored with network company on the computer readable storage medium Control program is connect, is realized as described in any one of claim 1 to 7 when the network connection control program is executed by processor The step of network connection control method.
CN201810535049.5A 2018-05-29 2018-05-29 network connection control method, mobile terminal and computer readable storage medium Withdrawn CN108770075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810535049.5A CN108770075A (en) 2018-05-29 2018-05-29 network connection control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810535049.5A CN108770075A (en) 2018-05-29 2018-05-29 network connection control method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108770075A true CN108770075A (en) 2018-11-06

Family

ID=64003794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810535049.5A Withdrawn CN108770075A (en) 2018-05-29 2018-05-29 network connection control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108770075A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109362111A (en) * 2018-12-24 2019-02-19 上海连尚网络科技有限公司 Information cuing method
CN110177380A (en) * 2019-06-28 2019-08-27 南昌黑鲨科技有限公司 Network connection control method, system and computer readable storage medium
CN113286341A (en) * 2021-05-20 2021-08-20 绍兴文理学院元培学院 Method, system, device and storage medium for automatically switching network
CN113518402A (en) * 2021-05-31 2021-10-19 深圳市发掘科技有限公司 Communication method of wireless terminal, computer device, and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109362111A (en) * 2018-12-24 2019-02-19 上海连尚网络科技有限公司 Information cuing method
CN110177380A (en) * 2019-06-28 2019-08-27 南昌黑鲨科技有限公司 Network connection control method, system and computer readable storage medium
CN110177380B (en) * 2019-06-28 2022-03-04 南昌黑鲨科技有限公司 Network connection control method, system and computer readable storage medium
CN113286341A (en) * 2021-05-20 2021-08-20 绍兴文理学院元培学院 Method, system, device and storage medium for automatically switching network
CN113518402A (en) * 2021-05-31 2021-10-19 深圳市发掘科技有限公司 Communication method of wireless terminal, computer device, and storage medium

Similar Documents

Publication Publication Date Title
CN108770075A (en) network connection control method, mobile terminal and computer readable storage medium
CN105677571B (en) Mobile terminal software device for testing compatibility and method
CN109905907A (en) A kind of method for searching network and mobile terminal
CN108650503A (en) Camera fault determination method, device and computer readable storage medium
CN107844730A (en) A kind of graphic code scan method and mobile terminal
CN110049496A (en) A kind of method for network access and mobile terminal
CN108563499A (en) CDN server switching method, mobile terminal and computer readable storage medium
US9453866B2 (en) Method, device and storage medium for controlling antenna
CN104301504A (en) Message viewing method and device and mobile terminal
CN111010663B (en) Information sharing method and device, storage medium and computer equipment
CN108200632A (en) A kind of method and terminal of terminal access LTE network
CN108270696A (en) Internet wide band distribution, mobile terminal and computer storage media
CN108495349A (en) A kind of switching method and mobile terminal of carrier network
CN109005574A (en) Cell selecting method, mobile terminal and computer readable storage medium
CN108234214A (en) Radio-frequency configuration method, mobile terminal and the readable storage medium storing program for executing of mobile terminal
CN111475359B (en) System testing method, device and storage medium under multi-message interaction scene
CN109640342A (en) Smart antenna method of adjustment, device, equipment and readable storage medium storing program for executing
CN108037934A (en) A kind of method and apparatus of application program update
CN108650041A (en) A kind of signal quality display methods and mobile terminal
CN108566638A (en) A kind of method and mobile terminal of more new configuration file
CN107949039A (en) A kind of wireless network connecting method, mobile terminal
CN108037963A (en) Automatic deployment method, device and the computer-readable recording medium of device software
CN109219044A (en) Switching method, mobile terminal and the computer readable storage medium of wireless network
CN107708039A (en) Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit
CN108984231A (en) A kind of login method and mobile terminal of application program account

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20181106