CN110087267A - Method for switching network, device, electronic equipment and readable storage medium storing program for executing - Google Patents

Method for switching network, device, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110087267A
CN110087267A CN201910293625.4A CN201910293625A CN110087267A CN 110087267 A CN110087267 A CN 110087267A CN 201910293625 A CN201910293625 A CN 201910293625A CN 110087267 A CN110087267 A CN 110087267A
Authority
CN
China
Prior art keywords
duration
network
mobile terminal
lte network
preset
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
Application number
CN201910293625.4A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910293625.4A priority Critical patent/CN110087267A/en
Publication of CN110087267A publication Critical patent/CN110087267A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting 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 method for switching network, device, electronic equipment and readable storage medium storing program for executing, are related to communication technique field, this method comprises: obtaining the signal strength of the LTE network of mobile terminal;When the signal strength is lower than preset threshold, retain the data connection and IP address of the LTE network;Be delayed preset first duration, is connected to the LTE network by the data connection and IP address;Retain the data connection and IP address of LTE network by Framework framework, is delayed after a period of time, returns directly to LTE network, avoid the handoff procedure for switching to 2G or 3G network from LTE network, improve user experience.

Description

Method for switching network, device, electronic equipment and readable storage medium storing program for executing
Technical field
The present invention relates to communication technique field more particularly to a kind of method for switching network, device, electronic equipment and readable deposit Storage media.
Background technique
At present under telecommunication network, mobile terminal registers LTE (Long Term Evolution, Long Term Evolution) network Later, if user enters into the place of the poor signals such as elevator or garage, the network of mobile terminal can drop to 3G network even 2G network, at this point, if user is watching movie, even when user is preferably local back to signal, the LTE of ambient enviroment Network signal is stronger, which can not immediately fall back to LTE network, because of mobile terminal 2G network currently in use at this time Under have data service, can only until mobile terminal there is no data service when, can just return to LTE network, cause user low Overlong time under fast network, brings inconvenience to users.
Summary of the invention
It is a primary object of the present invention to propose a kind of method for switching network, device, electronic equipment and readable storage medium storing program for executing, When aiming to solve the problem that mobile terminal carries out network switching, the switchback speed problem bad compared with slow, user experience.
To achieve the above object, a kind of method for switching network provided by the invention, comprising:
Obtain the signal strength of the LTE network of mobile terminal;
When the signal strength is lower than preset threshold, retain the data connection and IP address of the LTE network;
Be delayed preset first duration, is connected to the LTE network by the data connection and IP address.
Optionally, it is connected to after the LTE network by the data connection and IP address and includes:
When the mobile terminal is connected to LTE network not successfully when being delayed preset first duration, the shifting is obtained Dynamic terminal is connected to the practical duration of LTE network.
Optionally, the acquisition mobile terminal is connected to after the practical duration of LTE network further include:
Preset first duration is adjusted by the practical duration dynamic.
Optionally, described preset first duration is adjusted by the practical duration dynamic to include:
Geographical location locating for mobile terminal is obtained, it is corresponding with preset first duration to establish the geographical location Relationship;
Corresponding first duration in the geographical location is adjusted according in the collected several practical durations in same geographical location.
Optionally, described preset first duration is adjusted by the practical duration dynamic to include:
Judge whether occur Caton state when the mobile terminal is connected to LTE network, if so, not adjusting described first Duration;
Otherwise, first duration is extended into the practical duration.
Optionally, it is connected to after the LTE network by the data connection and IP address further include:
When the practical duration is greater than preset second duration, the mobile terminal is initiated by 2G network or 3G network Data service connection request is established, and continues to monitor the practical duration that the mobile terminal is connected to LTE network.
Optionally, after the practical duration is greater than preset second duration further include:
Preset second duration is adjusted by the practical duration dynamic.
In addition, to achieve the above object, the present invention also proposes a kind of network switching device, comprising:
Obtain module, the signal strength of the LTE network for obtaining mobile terminal;
Reservation module, for when the signal strength be lower than preset threshold when, retain the LTE network data connection and IP address;
The link block that is delayed is connected to institute by the data connection and IP address for preset first duration that is delayed State LTE network.
In addition, to achieve the above object, the present invention also proposes a kind of electronic equipment, comprising: memory, processor and storage On the memory and the network switching program that can run on the processor, the network switching program is by the processing The step of device realizes above-mentioned method for switching network when executing.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable Storage medium is stored with network switching program, and the network switching program realizes above-mentioned network switching side when being executed by processor The step of method.
A kind of method for switching network, device, electronic equipment and readable storage medium storing program for executing proposed by the present invention, this method comprises: Obtain the signal strength of the LTE network of mobile terminal;When the signal strength is lower than preset threshold, retain the LTE network Data connection and IP address;Be delayed preset first duration, is connected to the LTE net by the data connection and IP address Network;Retain the data connection and IP address of LTE network by Framework framework, is delayed after a period of time, returns directly to LTE network avoids the handoff procedure for switching to 2G or 3G network from LTE network, improves user experience.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of flow chart for method for switching network that the embodiment of the present invention one provides;
Fig. 4 is the flow chart for another method for switching network that the embodiment of the present invention one provides;
Fig. 5 is a kind of method flow diagram of step S50 in Fig. 4;
Fig. 6 is another method flow diagram of step S50 in Fig. 4;
Fig. 7 is the flow chart for another method for switching network that the embodiment of the present invention one provides;
Fig. 8 is a kind of exemplary block diagram of network switching device provided by Embodiment 2 of the present invention;
Fig. 9 is the module diagram for a kind of electronic equipment that the embodiment of the present invention three provides.
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 embodiment
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.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Embodiment one
As shown in figure 3, in the present embodiment, a kind of method for switching network, comprising:
The signal strength of the LTE network of S10, acquisition mobile terminal;
S20, when the signal strength be lower than preset threshold when, retain the data connection and IP address of the LTE network;
S30, preset first duration of delay, are connected to the LTE network by the data connection and IP address.
In the present embodiment, the data connection and IP address of LTE network are retained by Framework framework, is delayed one section After time, LTE network is returned directly to, the handoff procedure for switching to 2G or 3G network from LTE network is avoided, improves user Experience.
In the present embodiment, Framework framework is also used to for retaining LTE data service and IP address in 2G or 3G The function of activating data service under network.Wherein, mobile terminal passes through Modem module and network and the Framework frame Structure communication.
In the present embodiment, mobile terminal carries out data connection by LTE network, when user enters elevator or ground is got off When the place of the poor signals such as library, the signal strength of LTE network is reduced, and when reducing to a certain extent, mobile terminal can be automatic LTE network is disconnected, then connects 2G network or 3G network, when user uses data service at 2G or 3G network, such as: It watches movie, surf the Internet, cannot switch back under LTE network immediately, cause user experience bad;And in the present embodiment, work as LTE network When signal strength is reduced to preset threshold, operating side can't disconnect LTE data connection immediately, but pass through Framework frame Structure retains the data connection and IP address of LTE, and in next certain time, data cached before use is maintained Data service causes the probability very little of Caton, moves since user will not be too long in the stop of the place such as elevator or underground garage Dynamic terminal can lean on mostly it is data cached maintained this period, when user walks out the weaker place of signal, mobile terminal can To reconnect to LTE network by the data connection and IP address of the LTE retained, 2G or 3G network and LTE network are avoided Between switching.
In the present embodiment, preset first duration be can be by the time value of software set, in the present embodiment In, preferably 30 seconds, in 30 seconds, the data cached data service that mobile terminal can be maintained to be currently running, without will cause Data Caton;After 30 seconds, user has also walked out the weaker place of signal, and the signal strength of LTE network is restored to default threshold More than value, mobile terminal reconnects to LTE network by the data connection and IP address of the LTE retained, and user can continue It the operation such as is watched movie and is surfed the Internet by LTE network, and in the process, better user experience, no Caton.
In preset first duration, mobile terminal is connected to LTE network not successfully, that is, within this time, user The weaker place of LTE signal is not walked out, mobile terminal temporarily can not find the LTE network of health, but at this time in mobile terminal The data cached data service that can also maintain to be currently running, without making user feel the experience of Caton, systems stay monitoring The signal strength of LTE network, until the signal strength is higher than the threshold value of signal strength, mobile terminal is connected to LTE network, obtains The mobile terminal is connected to practical duration needed for LTE network, if mobile terminal is all without Caton in the practical duration The phenomenon that, this shows that the data cached in the mobile terminal are enough to maintain mobile terminal in the practical duration smoothly to run, then The practical duration can be set to preset first duration, waited next time, which loses LTE network again in the position Afterwards, it is delayed after first duration reseted, then LTE network is reconnected to by the data connection and IP address of the LTE retained.
In the present embodiment, adjusting preset first duration by the practical duration dynamic includes:
Geographical location locating for mobile terminal is obtained, it is corresponding with preset first duration to establish the geographical location Relationship;
Corresponding first duration in the geographical location is adjusted according in the collected several practical durations in same geographical location.
For example, by its position of acquisition for mobile terminal, it is labeled as position 1 when user enters elevator, it is corresponding default First when it is 30 seconds a length of;After elevator several times, collected duration practical several times is respectively 34 seconds, 36 seconds and 39 Second, then its average value is taken, selects reset to the first duration within 36 seconds;Or its maximum value is taken, select reset to the first duration within 39 seconds, The data service being currently running is maintained using data cached as wide as possible.
When user enters the elevator of underground parking or other place, by its position of acquisition for mobile terminal, it is labeled as Position 2, corresponding preset first when, are 33 seconds a length of;The corresponding practical duration in the position 2 several times is recorded, and to corresponding First duration is adjusted;When after in this way using the position 2, mobile terminal calls first duration to be delayed automatically.
As another embodiment, if the data service that mobile terminal is currently running has some setbacks in the practical duration, There is the sense of Caton, then it represents that the practical duration is too long, is not suitable as preset first duration, does not adjust to first duration It is whole.
In the present embodiment, the first duration maximum value is 1 minute, and the time, which is greater than 1 minute, will will affect user experience.
As another embodiment, in preset second duration, for example in 1 minute, mobile terminal does not connect still It is connected to LTE network, the data service being currently running at this time by data cached maintenance that cannot be smooth then needs to move Terminal is connected to 2G or 3G network, so that the data service that is currently running operates normally, this is not also it is avoided that network is cut certainly Inconvenience when changing.
As shown in figure 4, in the present embodiment, including: after the step S30
S40, when the mobile terminal is connected to LTE network not successfully when being delayed preset first duration, obtain institute State the practical duration that mobile terminal is connected to LTE network.
S50, preset first duration is adjusted by the practical duration dynamic.
In preset first duration, mobile terminal is connected to LTE network not successfully, that is, within this time, user The weaker place of LTE signal is not walked out, mobile terminal temporarily can not find the LTE network of health, but at this time in mobile terminal The data cached data service that can also maintain to be currently running, without making user feel the experience of Caton, systems stay monitoring The signal strength of LTE network, until the signal strength is higher than the threshold value of signal strength, mobile terminal is connected to LTE network, obtains The mobile terminal is connected to practical duration needed for LTE network, if mobile terminal is all without Caton in the practical duration The phenomenon that, this shows that the data cached in the mobile terminal are enough to maintain mobile terminal in the practical duration smoothly to run, then The practical duration can be set to preset first duration, waited next time, which loses LTE network again in the position Afterwards, it is delayed after first duration reseted, then LTE network is reconnected to by the data connection and IP address of the LTE retained.
As shown in figure 5, in the present embodiment, the step S50 includes:
S51, geographical location locating for mobile terminal is obtained, establishes the geographical location and preset first duration Corresponding relationship;
S52, the geographical location corresponding first is adjusted according in the collected several practical durations in same geographical location Duration.
For example, by its position of acquisition for mobile terminal, it is labeled as position 1 when user enters elevator, it is corresponding default First when it is 30 seconds a length of;After elevator several times, collected duration practical several times is respectively 34 seconds, 36 seconds and 39 Second, then its average value is taken, selects reset to the first duration within 36 seconds;Or its maximum value is taken, select reset to the first duration within 39 seconds, The data service being currently running is maintained using data cached as wide as possible.
When user enters the elevator of underground parking or other place, by its position of acquisition for mobile terminal, it is labeled as Position 2, corresponding preset first when, are 33 seconds a length of;The corresponding practical duration in the position 2 several times is recorded, and to corresponding First duration is adjusted;When after in this way using the position 2, mobile terminal calls first duration to be delayed automatically.
As shown in fig. 6, in the present embodiment, the step S50 includes:
S501, judge whether occur Caton state when the mobile terminal is connected to LTE network, if so, S502, uncomfortable Whole first duration;
Otherwise, S503, first duration extended into the practical duration.
In the present embodiment, if the data service that mobile terminal is currently running has some setbacks in the practical duration, there is card The sense paused, then it represents that the practical duration is too long, is not suitable as preset first duration, is not adjusted to first duration.
As shown in fig. 7, in the present embodiment, after step S30 further include:
S60, when the practical duration be greater than preset second duration when, the mobile terminal pass through 2G network or 3G network Data service connection request is established in initiation, and continues to monitor the practical duration that the mobile terminal is connected to LTE network.
S70, preset second duration is adjusted by the practical duration dynamic.
As another embodiment, in preset second duration, for example in 1 minute, mobile terminal does not connect still It is connected to LTE network, the data service being currently running at this time by data cached maintenance that cannot be smooth then needs to move Terminal is connected to 2G or 3G network, so that the data service that is currently running operates normally, this is not also it is avoided that network is cut certainly Inconvenience when changing.
Embodiment two
As shown in figure 8, in the present embodiment, a kind of network switching device, comprising:
Obtain module 31, the signal strength of the LTE network for obtaining mobile terminal;
Reservation module 32, for retaining the data connection of the LTE network when the signal strength is lower than preset threshold And IP address;
Delay link block 33 is connected to for preset first duration that is delayed by the data connection and IP address The LTE network.
In the present embodiment, the data connection and IP address of LTE network are retained by Framework framework, is delayed one section After time, LTE network is returned directly to, the handoff procedure for switching to 2G or 3G network from LTE network is avoided, improves user Experience.
In the present embodiment, mobile terminal carries out data connection by LTE network, when user enters elevator or ground is got off When the place of the poor signals such as library, the signal strength of LTE network is reduced, and when reducing to a certain extent, mobile terminal can be automatic LTE network is disconnected, then connects 2G network or 3G network, when user uses data service at 2G or 3G network, such as: It watches movie, surf the Internet, cannot switch back under LTE network immediately, cause user experience bad;And in the present embodiment, work as LTE network When signal strength is reduced to preset threshold, operating side can't disconnect LTE data connection immediately, but pass through Framework frame Structure retains the data connection and IP address of LTE, and in next certain time, data cached before use is maintained Data service causes the probability very little of Caton, moves since user will not be too long in the stop of the place such as elevator or underground garage Dynamic terminal can lean on mostly it is data cached maintained this period, when user walks out the weaker place of signal, mobile terminal can To reconnect to LTE network by the data connection and IP address of the LTE retained, 2G or 3G network and LTE network are avoided Between switching.
In the present embodiment, preset first duration be can be by the time value of software set, in the present embodiment In, preferably 30 seconds, in 30 seconds, the data cached data service that mobile terminal can be maintained to be currently running, without will cause Data Caton;After 30 seconds, user has also walked out the weaker place of signal, and the signal strength of LTE network is restored to default threshold More than value, mobile terminal reconnects to LTE network by the data connection and IP address of the LTE retained, and user can continue It the operation such as is watched movie and is surfed the Internet by LTE network, and in the process, better user experience, no Caton.
In preset first duration, mobile terminal is connected to LTE network not successfully, that is, within this time, user The weaker place of LTE signal is not walked out, mobile terminal temporarily can not find the LTE network of health, but at this time in mobile terminal The data cached data service that can also maintain to be currently running, without making user feel the experience of Caton, systems stay monitoring The signal strength of LTE network, until the signal strength is higher than the threshold value of signal strength, mobile terminal is connected to LTE network, obtains The mobile terminal is connected to practical duration needed for LTE network, if mobile terminal is all without Caton in the practical duration The phenomenon that, this shows that the data cached in the mobile terminal are enough to maintain mobile terminal in the practical duration smoothly to run, then The practical duration can be set to preset first duration, waited next time, which loses LTE network again in the position Afterwards, it is delayed after first duration reseted, then LTE network is reconnected to by the data connection and IP address of the LTE retained.
In the present embodiment, adjusting preset first duration by the practical duration dynamic includes:
Geographical location locating for mobile terminal is obtained, it is corresponding with preset first duration to establish the geographical location Relationship;
Corresponding first duration in the geographical location is adjusted according in the collected several practical durations in same geographical location.
For example, by its position of acquisition for mobile terminal, it is labeled as position 1 when user enters elevator, it is corresponding default First when it is 30 seconds a length of;After elevator several times, collected duration practical several times is respectively 34 seconds, 36 seconds and 39 Second, then its average value is taken, selects reset to the first duration within 36 seconds;Or its maximum value is taken, select reset to the first duration within 39 seconds, The data service being currently running is maintained using data cached as wide as possible.
When user enters the elevator of underground parking or other place, by its position of acquisition for mobile terminal, it is labeled as Position 2, corresponding preset first when, are 33 seconds a length of;The corresponding practical duration in the position 2 several times is recorded, and to corresponding First duration is adjusted;When after in this way using the position 2, mobile terminal calls first duration to be delayed automatically.
As another embodiment, if the data service that mobile terminal is currently running has some setbacks in the practical duration, There is the sense of Caton, then it represents that the practical duration is too long, is not suitable as preset first duration, does not adjust to first duration It is whole.
In the present embodiment, the first duration maximum value is 1 minute, and the time, which is greater than 1 minute, will will affect user experience.
As another embodiment, in preset second duration, for example in 1 minute, mobile terminal does not connect still It is connected to LTE network, the data service being currently running at this time by data cached maintenance that cannot be smooth then needs to move Terminal is connected to 2G or 3G network, so that the data service that is currently running operates normally, this is not also it is avoided that network is cut certainly Inconvenience when changing.
Embodiment three
As shown in figure 9, in the present embodiment, a kind of electronic equipment, comprising: memory 10, processor 20 and be stored in institute The network switching device 30 that can be run on memory and on the processor is stated, the network switching device is by the processor The step of method for switching network of embodiment one is realized when execution.
In the present embodiment, the memory includes at least a type of readable storage medium storing program for executing, is installed on for storing The operating system of the electronic equipment and types of applications software, such as the program code of network switching device etc., in addition, described deposit Reservoir can be also used for temporarily storing the Various types of data that has exported or will export.
In the present embodiment, the processor can be central processing unit (Central in some embodiments Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor is logical It is usually used in controlling the overall operation of the electronic equipment, in the present embodiment, the processor is for running in the memory The program code or processing data of storage, such as run the network switching device etc..
In the present embodiment, a kind of network switching device, comprising:
Obtain module 31, the signal strength of the LTE network for obtaining mobile terminal;
Reservation module 32, for retaining the data connection of the LTE network when the signal strength is lower than preset threshold And IP address;
Delay link block 33 is connected to for preset first duration that is delayed by the data connection and IP address The LTE network.
In the present embodiment, the data connection and IP address of LTE network are retained by Framework framework, is delayed one section After time, LTE network is returned directly to, the handoff procedure for switching to 2G or 3G network from LTE network is avoided, improves user Experience.
In the present embodiment, mobile terminal carries out data connection by LTE network, when user enters elevator or ground is got off When the place of the poor signals such as library, the signal strength of LTE network is reduced, and when reducing to a certain extent, mobile terminal can be automatic LTE network is disconnected, then connects 2G network or 3G network, when user uses data service at 2G or 3G network, such as: It watches movie, surf the Internet, cannot switch back under LTE network immediately, cause user experience bad;And in the present embodiment, work as LTE network When signal strength is reduced to preset threshold, operating side can't disconnect LTE data connection immediately, but pass through Framework frame Structure retains the data connection and IP address of LTE, and in next certain time, data cached before use is maintained Data service causes the probability very little of Caton, moves since user will not be too long in the stop of the place such as elevator or underground garage Dynamic terminal can lean on mostly it is data cached maintained this period, when user walks out the weaker place of signal, mobile terminal can To reconnect to LTE network by the data connection and IP address of the LTE retained, 2G or 3G network and LTE network are avoided Between switching.
In the present embodiment, preset first duration be can be by the time value of software set, in the present embodiment In, preferably 30 seconds, in 30 seconds, the data cached data service that mobile terminal can be maintained to be currently running, without will cause Data Caton;After 30 seconds, user has also walked out the weaker place of signal, and the signal strength of LTE network is restored to default threshold More than value, mobile terminal reconnects to LTE network by the data connection and IP address of the LTE retained, and user can continue It the operation such as is watched movie and is surfed the Internet by LTE network, and in the process, better user experience, no Caton.
In preset first duration, mobile terminal is connected to LTE network not successfully, that is, within this time, user The weaker place of LTE signal is not walked out, mobile terminal temporarily can not find the LTE network of health, but at this time in mobile terminal The data cached data service that can also maintain to be currently running, without making user feel the experience of Caton, systems stay monitoring The signal strength of LTE network, until the signal strength is higher than the threshold value of signal strength, mobile terminal is connected to LTE network, obtains The mobile terminal is connected to practical duration needed for LTE network, if mobile terminal is all without Caton in the practical duration The phenomenon that, this shows that the data cached in the mobile terminal are enough to maintain mobile terminal in the practical duration smoothly to run, then The practical duration can be set to preset first duration, waited next time, which loses LTE network again in the position Afterwards, it is delayed after first duration reseted, then LTE network is reconnected to by the data connection and IP address of the LTE retained.
In the present embodiment, adjusting preset first duration by the practical duration dynamic includes:
Geographical location locating for mobile terminal is obtained, it is corresponding with preset first duration to establish the geographical location Relationship;
Corresponding first duration in the geographical location is adjusted according in the collected several practical durations in same geographical location.
For example, by its position of acquisition for mobile terminal, it is labeled as position 1 when user enters elevator, it is corresponding default First when it is 30 seconds a length of;After elevator several times, collected duration practical several times is respectively 34 seconds, 36 seconds and 39 Second, then its average value is taken, selects reset to the first duration within 36 seconds;Or its maximum value is taken, select reset to the first duration within 39 seconds, The data service being currently running is maintained using data cached as wide as possible.
When user enters the elevator of underground parking or other place, by its position of acquisition for mobile terminal, it is labeled as Position 2, corresponding preset first when, are 33 seconds a length of;The corresponding practical duration in the position 2 several times is recorded, and to corresponding First duration is adjusted;When after in this way using the position 2, mobile terminal calls first duration to be delayed automatically.
As another embodiment, if the data service that mobile terminal is currently running has some setbacks in the practical duration, There is the sense of Caton, then it represents that the practical duration is too long, is not suitable as preset first duration, does not adjust to first duration It is whole.
In the present embodiment, the first duration maximum value is 1 minute, and the time, which is greater than 1 minute, will will affect user experience.
As another embodiment, in preset second duration, for example in 1 minute, mobile terminal does not connect still It is connected to LTE network, the data service being currently running at this time by data cached maintenance that cannot be smooth then needs to move Terminal is connected to 2G or 3G network, so that the data service that is currently running operates normally, this is not also it is avoided that network is cut certainly Inconvenience when changing.
Example IV
In the present embodiment, a kind of computer readable storage medium, the computer-readable recording medium storage have network Changeover program, when the network switching program is executed by processor the step of the method for switching network of realization embodiment one.
Computer readable storage medium provided by the invention retains the data connection of LTE network by Framework framework And IP address, it is delayed after a period of time, returns directly to LTE network, avoid from LTE network and switch to cutting for 2G or 3G network Process is changed, user experience is improved.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of method for switching network characterized by comprising
Obtain the signal strength of the LTE network of mobile terminal;
When the signal strength is lower than preset threshold, retain the data connection and IP address of the LTE network;
Be delayed preset first duration, is connected to the LTE network by the data connection and IP address.
2. a kind of method for switching network according to claim 1, which is characterized in that pass through the data connection and IP address Be connected to the LTE network includes: later
When the mobile terminal is connected to LTE network not successfully when being delayed preset first duration, obtain described mobile whole End is connected to the practical duration of LTE network.
3. a kind of method for switching network according to claim 2, which is characterized in that described to obtain the mobile terminal connection To the practical duration of LTE network further include:
Preset first duration is adjusted by the practical duration dynamic.
4. a kind of method for switching network according to claim 3, which is characterized in that described to pass through the practical duration dynamic Adjusting preset first duration includes:
Geographical location locating for mobile terminal is obtained, geographical location pass corresponding with preset first duration is established System;
Corresponding first duration in the geographical location is adjusted according in the collected several practical durations in same geographical location.
5. a kind of method for switching network according to claim 3, which is characterized in that described to pass through the practical duration dynamic Adjusting preset first duration includes:
Judge whether occur Caton state when the mobile terminal is connected to LTE network, if so, when not adjusting described first It is long;
Otherwise, first duration is extended into the practical duration.
6. a kind of method for switching network according to claim 2, which is characterized in that pass through the data connection and IP address It is connected to after the LTE network further include:
When the practical duration is greater than preset second duration, the mobile terminal initiates to establish by 2G network or 3G network Data service connection request, and continue to monitor the practical duration that the mobile terminal is connected to LTE network.
7. a kind of method for switching network according to claim 6, which is characterized in that when the practical duration is greater than preset After second duration further include:
Preset second duration is adjusted by the practical duration dynamic.
8. a kind of network switching device characterized by comprising
Obtain module, the signal strength of the LTE network for obtaining mobile terminal;
Reservation module is used for when the signal strength is lower than preset threshold, with retaining data connection and the IP of the LTE network Location;
The link block that is delayed is connected to the LTE by the data connection and IP address for preset first duration that is delayed Network.
9. a kind of electronic equipment characterized by comprising memory, processor and be stored on the memory and can be in institute The network switching program run on processor is stated, such as claim is realized when the network switching program is executed by the processor The step of 1-7 described in any item method for switching network.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has network switching Program realizes such as claim 1-7 described in any item method for switching network when the network switching program is executed by processor The step of.
CN201910293625.4A 2019-04-12 2019-04-12 Method for switching network, device, electronic equipment and readable storage medium storing program for executing Pending CN110087267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910293625.4A CN110087267A (en) 2019-04-12 2019-04-12 Method for switching network, device, electronic equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910293625.4A CN110087267A (en) 2019-04-12 2019-04-12 Method for switching network, device, electronic equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110087267A true CN110087267A (en) 2019-08-02

Family

ID=67414931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910293625.4A Pending CN110087267A (en) 2019-04-12 2019-04-12 Method for switching network, device, electronic equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110087267A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556541A (en) * 2020-04-30 2020-08-18 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal
CN112738745A (en) * 2019-10-14 2021-04-30 Oppo广东移动通信有限公司 Method for controlling network connection and related product
CN117279060A (en) * 2023-11-17 2023-12-22 北京小米移动软件有限公司 Network switching method, device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120315905A1 (en) * 2011-06-07 2012-12-13 Jing Zhu Multi-radio handover manager system and algorithms for heterogeneous wireless networking
CN103314617A (en) * 2011-01-14 2013-09-18 交互数字专利控股公司 Local internet protocol access connection handling during circuit switched fallback and handover
CN103430616A (en) * 2011-03-16 2013-12-04 高通股份有限公司 Method and system for preserving session context during inter -radio access technology service retry
CN104796271A (en) * 2014-01-17 2015-07-22 中兴通讯股份有限公司 Connecting method and connecting device
CN104902527A (en) * 2015-06-29 2015-09-09 小米科技有限责任公司 Communication network switching method and communication network switching device
CN107534884A (en) * 2015-08-12 2018-01-02 谷歌有限责任公司 Quality based on available network switches between networks
CN109495939A (en) * 2019-01-25 2019-03-19 努比亚技术有限公司 Method for switching network, device, mobile terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103314617A (en) * 2011-01-14 2013-09-18 交互数字专利控股公司 Local internet protocol access connection handling during circuit switched fallback and handover
CN103430616A (en) * 2011-03-16 2013-12-04 高通股份有限公司 Method and system for preserving session context during inter -radio access technology service retry
US20120315905A1 (en) * 2011-06-07 2012-12-13 Jing Zhu Multi-radio handover manager system and algorithms for heterogeneous wireless networking
CN104796271A (en) * 2014-01-17 2015-07-22 中兴通讯股份有限公司 Connecting method and connecting device
CN104902527A (en) * 2015-06-29 2015-09-09 小米科技有限责任公司 Communication network switching method and communication network switching device
CN107534884A (en) * 2015-08-12 2018-01-02 谷歌有限责任公司 Quality based on available network switches between networks
CN109495939A (en) * 2019-01-25 2019-03-19 努比亚技术有限公司 Method for switching network, device, mobile terminal and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738745A (en) * 2019-10-14 2021-04-30 Oppo广东移动通信有限公司 Method for controlling network connection and related product
CN111556541A (en) * 2020-04-30 2020-08-18 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal
CN111556541B (en) * 2020-04-30 2022-07-29 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal
CN117279060A (en) * 2023-11-17 2023-12-22 北京小米移动软件有限公司 Network switching method, device and medium

Similar Documents

Publication Publication Date Title
CN109889885A (en) A kind of throwing screen control method, terminal and computer readable storage medium
CN109922205A (en) Throw screen implementation method, mobile terminal and computer readable storage medium
CN110175062A (en) A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN109005574A (en) Cell selecting method, mobile terminal and computer readable storage medium
CN110300435A (en) A kind of communication pattern switching method, terminal and computer readable storage medium
CN110012515A (en) A kind of call failure processing method, terminal and computer readable storage medium
CN108289167A (en) A kind of the shooting interface adjusting method and mobile terminal of mobile terminal
CN109316743A (en) A kind of game control method, terminal and computer readable storage medium
CN110069167A (en) Touch point sweep-out method, mobile terminal and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN110087267A (en) Method for switching network, device, electronic equipment and readable storage medium storing program for executing
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN110086993A (en) Image processing method, device, mobile terminal and computer readable storage medium
CN110290261A (en) Information processing method, electronic equipment and computer readable storage medium
CN109692474A (en) Game control method, mobile terminal and readable storage medium storing program for executing based on mobile terminal
CN109005288A (en) Call processing method, double-sided screen terminal and computer readable storage medium
CN109545120A (en) Screen photosensitive sensors adjusting method, mobile terminal and computer readable storage medium
CN109889651A (en) A kind of notification message processing method, terminal and computer readable storage medium
CN109389394A (en) A kind of multi-screen payment control method, equipment and computer readable storage medium
CN109672843A (en) Video communication method, terminal and computer readable storage medium
CN109068084A (en) Video calling picture display process, mobile terminal and computer readable storage medium
CN108566456A (en) Image pickup method, mobile terminal and computer readable storage medium
CN108306856A (en) A kind of interface merging method, client, server and computer readable storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN109462829A (en) A kind of call transfer method, equipment and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802