CN114222340A - Network switching method and device and mobile terminal - Google Patents

Network switching method and device and mobile terminal Download PDF

Info

Publication number
CN114222340A
CN114222340A CN202111506548.XA CN202111506548A CN114222340A CN 114222340 A CN114222340 A CN 114222340A CN 202111506548 A CN202111506548 A CN 202111506548A CN 114222340 A CN114222340 A CN 114222340A
Authority
CN
China
Prior art keywords
network
foreground
target
real
time application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111506548.XA
Other languages
Chinese (zh)
Other versions
CN114222340B (en
Inventor
罗德文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202111506548.XA priority Critical patent/CN114222340B/en
Publication of CN114222340A publication Critical patent/CN114222340A/en
Application granted granted Critical
Publication of CN114222340B publication Critical patent/CN114222340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/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

Abstract

The embodiment of the invention discloses a network switching method, which comprises the following steps: if the target event is realized based on the second network under the condition of connecting the first network, detecting the target event realized based on the second network; switching the first network to the second network, executing the target event based on the second network; if the target event is executed, determining whether a base station side sets a fast fallback mechanism from the second network to the first network; if not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets a preset real-time requirement; and if the target real-time application runs in the foreground, maintaining the connection with the second network. The scheme can solve the problem of data cutoff of applications with high real-time requirements due to unreasonable switching.

Description

Network switching method and device and mobile terminal
Technical Field
The invention relates to the field of communication, in particular to a network switching method, a network switching device and a mobile terminal.
Background
At present, the coverage of a New Radio interface (NR) is discontinuous, and a Voice over NR (Voice over NR, which is a Voice service provided by a 5G access network and a core network and based on an IMS) is in a debugging and gradual deployment stage, so a 5G Voice scheme used by an operator is an EPS Fallback (evolved packet system Fallback), that is, a User Equipment (UE) falls back to an LTE (Long Term Evolution) to perform Voice/video call service of the Voice over LTE (Voice over LTE, a Voice service scheme based on the IMS of a multimedia subsystem).
After the call is finished, the terminal autonomously returns the NR by a Fast Return (Fast Return) mode. In the prior art, if the interactive data traffic is smaller than a configured throughput (TPUT) threshold, the UE locally releases the infinite resource control (RRC), and starts L2NR Fast Return to 5G. However, if some applications with higher real-time requirements are running in the foreground, and then the interactive data volume is smaller than the throughput threshold, if L2NR Fast Return needs to be started according to the prior art scheme, the LTE RRC connection is released, and the Return is 5G, which may cause data interruption and affect the user experience.
Accordingly, there is a need in the art for improvements.
Disclosure of Invention
The embodiment of the invention provides a network switching method, a network switching device and a mobile terminal, which can solve the problem of data cutoff of applications with high real-time requirements caused by unreasonable switching.
The network switching method provided by the embodiment of the invention comprises the following steps:
if the target event is realized based on the second network under the condition of connecting the first network, detecting the target event realized based on the second network;
switching the first network to the second network, executing the target event based on the second network;
if the target event is executed, determining whether a base station side sets a fast fallback mechanism from the second network to the first network;
if not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets a preset real-time requirement;
and if the target real-time application runs in the foreground, maintaining the connection with the second network.
Optionally, in some embodiments of the present invention, after detecting whether the target real-time application is running in the foreground, the method further includes:
and if the target real-time application is not operated in the foreground, triggering a quick fallback mechanism from the second network to the first network.
Optionally, in some embodiments of the present invention, the triggering the fast fallback mechanism from the second network to the first network includes:
detecting data traffic of data transmitted by the foreground in a preset measurement period, and taking the data traffic as the throughput of the foreground;
if the throughput is less than a preset throughput threshold, dropping from the second network to the first network;
and if the throughput is not less than the preset throughput threshold, maintaining the connection with the second network.
Optionally, in some embodiments of the present invention, the detecting whether the target real-time application is run by the foreground includes:
and detecting port data of a target user datagram protocol port of the foreground, and judging whether the target real-time application runs in the foreground or not based on the port data.
Optionally, in some embodiments of the present invention, the determining whether the base station side sets a fast fallback mechanism from the second network to the first network includes:
determining whether a configuration notification sent by the base station side is acquired within a preset time period, wherein the configuration notification is used for indicating that the base station side is provided with a fast fallback mechanism from the second network to the first network;
if so, determining that the rapid fallback mechanism is arranged on the base station side;
if not, determining that the rapid fallback mechanism is not arranged on the base station side.
Optionally, in some embodiments of the present invention, after determining whether the base station side sets a fast fallback mechanism from the second network to the first network if the target event is finished executing, the method further includes:
if so, dropping from the second network to the first network based on the fast drop-back mechanism.
Optionally, in some embodiments of the present invention, after the maintaining the connection with the second network if the target real-time application is run in the foreground, the method further includes:
detecting whether the target real-time application runs on the foreground every other preset detection period;
if so, maintaining the connection with the second network;
and if not, triggering a quick fall-back mechanism from the second network to the first network.
Correspondingly, a network switching apparatus provided in an embodiment of the present invention includes:
the first detection unit is used for detecting a target event realized based on a second network under the condition of connecting a first network;
an execution unit, configured to switch the first network to the second network, and execute the target event based on the second network;
a determining unit, configured to determine, if the target event is finished, whether a base station side sets a fast fallback mechanism from the second network to the first network;
the second detection unit is used for detecting whether a target real-time application runs in a foreground or not if the target real-time application does not run in the foreground, wherein the target real-time application meets the preset real-time requirement;
and the connection unit is used for keeping connection with the second network if the target real-time application runs on the foreground.
Correspondingly, the embodiment of the present invention further provides a mobile terminal, which includes a memory and a processor, where the memory stores an application program, and the processor is configured to run the application program in the memory to perform the operation in the network handover method.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program is suitable for being loaded by the central processing unit to execute the steps in the network handover method provided in the embodiment of the present invention.
The embodiment of the invention detects the target event realized based on the second network if the first network is connected; switching the first network to the second network, executing the target event based on the second network; if the target event is executed, determining whether a base station side sets a fast fallback mechanism from the second network to the first network; if not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets a preset real-time requirement; and if the target real-time application runs in the foreground, maintaining the connection with the second network. Therefore, the scheme can determine whether to execute a quick fallback mechanism according to whether the foreground runs the application with higher real-time performance, and when the foreground runs the application with higher real-time performance, the foreground keeps not to switch on the LTE network, so that the problem of data cutoff caused by switching is avoided, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a network switching apparatus according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a network handover method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another network handover method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network switching apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a network switching method, a network switching device and a mobile terminal. The mobile terminal of the embodiment of the invention can be a mobile phone, a tablet computer, a notebook computer and other equipment. The network switching method comprises the following steps: if the target event is realized based on the second network under the condition of connecting the first network, detecting the target event realized based on the second network; switching the first network to the second network, executing the target event based on the second network; if the target event is executed, determining whether a base station side sets a fast fallback mechanism from the second network to the first network; if not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets a preset real-time requirement; and if the target real-time application runs in the foreground, maintaining the connection with the second network.
As shown in fig. 1, fig. 1 is a schematic view of a network switching apparatus according to an embodiment of the present invention. The method comprises the steps that a base station establishes communication connection with a mobile terminal in a communication range, if the mobile terminal detects a target event realized based on a second network under the condition of connecting a first network, the first network is switched to the second network, and the target event is executed based on the second network; if the target event is executed, the mobile terminal determines whether a base station side sets a fast fallback mechanism from the second network to the first network; if not, detecting whether a target real-time application runs on a foreground, wherein the target real-time application meets a preset real-time requirement; and if the target real-time application runs in the foreground, the mobile terminal keeps being connected with the second network.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
As shown in fig. 2, the specific flow of the network handover method may be as follows:
201. and if the target event is realized on the basis of the second network under the condition of connecting the first network, detecting the target event realized on the basis of the second network.
In the embodiment of the present invention, the first network is a 5G network, the second network is a 4G network, and the target event is a call event, that is, a voice call implemented based on the 4G network is detected when the 5G network is connected. For example, in an SA network, the mobile terminal initiates an EPS fallback procedure, where an EPS fallback (evolved packet system fallback) scheme refers to that the terminal falls back to 4G when initiating an IMS call on a 5G network, and implements a voice service through the 4G network.
202. And switching the first network to the second network, and executing the target event based on the second network.
In the embodiment of the invention, when the target event realized based on the 4G network is detected, the connected 5G network is switched to the 4G network, and the voice call event is executed based on the 4G network, for example, the voice call event falls back to the LTE from the 5G network to carry out the VoLTE voice service.
203. And if the target event execution is finished, determining whether a base station side sets a fast fallback mechanism from the second network to the first network.
In the embodiment of the present invention, after the target event is executed, for example, after the VoLTE call is ended, the mobile terminal determines whether the base station side sets a Fast fallback (Fast Return) mechanism from the second network to the first network.
The mobile terminal determines whether the base station side is configured with a fast fallback mechanism by determining whether a configuration notification sent by the base station side is acquired within a preset time period, wherein the configuration notification is used for indicating that the base station side is provided with the fast fallback mechanism from the second network to the first network. If so, determining that a quick fallback mechanism is arranged on the base station side; if not, determining that the base station side is not provided with a quick fallback mechanism.
And if the base station side is provided with a quick fall-back mechanism, the mobile terminal falls back to the first network from the second network based on the quick fall-back mechanism.
204. If not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets the preset real-time requirement.
In the embodiment of the invention, if the mobile terminal determines that the base station side is not provided with the quick fallback mechanism, whether a target real-time application runs on a foreground is detected, wherein the target real-time application meets the preset real-time requirement. For example, real-time applications can be classified into applications with high real-time performance, low real-time performance neutralization and low real-time performance, and target real-time applications are applications with high real-time performance neutralization and high practicability.
And if the target real-time application is not operated in the foreground, triggering a quick fallback mechanism from the second network to the first network. The method specifically comprises the following steps: detecting data traffic of data transmitted by a foreground in a preset measurement period, and taking the data traffic as the throughput of the foreground; if the throughput is smaller than the preset throughput threshold, the second network falls back to the first network; and if the throughput is not less than the preset throughput threshold, maintaining the connection with the second network. For example, the preset throughput threshold is generally 2Mbps, the preset measurement period may be 2S, if the throughput of the foreground is less than 2Mbps, the foreground falls back to the 5G network from the 4G network, and if the throughput of the foreground is not less than 2Mbps, the foreground maintains the connection with the 4G network.
The step of detecting whether the foreground runs the target real-time application specifically comprises the following steps: and detecting port data of a target user datagram protocol port of the foreground, and judging whether the foreground runs a target real-time application or not based on the port data. For example, a certain game application sends heartbeat packets to a User Datagram Protocol (UDP) Port (Port) periodically (for example, 5 seconds) to detect a network environment, the terminal detects Port data of a corresponding target UDP Port through an identification name (UID) corresponding to the game application, and determines whether the game application is running in a foreground through Port data traffic.
205. And if the target real-time application runs in the foreground, maintaining the connection with the second network.
In the embodiment of the invention, if the target real-time application is detected to be operated in the foreground, the mobile terminal keeps the connection with the second network, namely the 4G network.
The mobile terminal can detect whether a target real-time application runs in the foreground or not every preset detection period; if so, maintaining the connection with the second network; if not, triggering a fast fallback mechanism from the second network to the first network. For example, the preset detection period is 30 seconds, whether an application with high real-time performance runs in the foreground is detected every 30 seconds, and the network connection can be switched in time according to the change of the application with the real-time performance.
Referring to fig. 3, fig. 3 is a flowchart illustrating another network handover method according to an embodiment of the present invention. As shown in fig. 3, a User Equipment (UE) on the SA network initiates an EPS fallback procedure, and after the VoLTE call is ended, the UE waits for a period of time from the NW (network), and defaults to 2S. Within the waiting time, if the network side configures a network-based Fast fallback mechanism and issues a notification to the UE, the UE returns NR according to the configuration issued by the network side and the network-based Fast Return mechanism. If the network does not start the Fast Return function, the terminal firstly judges whether the foreground has an application with higher real-time performance to run by the data of a specific UDP Port corresponding to the UID (user identification) name no matter how much the throughput is. If the foreground runs an application with relatively high real-time performance, the UE cannot trigger an autonomous Fast Return function, and the UE continues to be reserved on the LTE, so that the problem of data cutoff caused by the fact that the LTE returns NR can be solved, and particularly, the application with relatively high real-time performance requirement (for example, the problem of relatively obvious jamming exists when the Transmission Time Interval (TTI) is more than 200 ms) can be solved. If the foreground does not run the application with higher real-time performance, executing the application according to the original design; that is, the throughput is lower than the threshold value (2Mbps), an autonomous Fast Return function is triggered, and NR is returned; the throughput is larger than the threshold (2Mbps), the autonomous Fast Return function is not triggered, and the system is left in the LTE.
In order to better implement the above method, an embodiment of the present invention may further provide a network switching apparatus, where the network switching apparatus may be specifically integrated in a network device, and the network device may be a device such as a mobile terminal.
For example, as shown in fig. 4, the network switching device may include the following:
(1) first detecting unit 301
A first detecting unit 301, configured to detect a target event implemented by a second network if the first network is connected.
For example, if the first network is a 5G network, the second network is a 4G network, and the target event is a call event, that is, in a case where the 5G network is connected, the first detection unit 301 detects a voice call based on the implementation of the 4G network. For example, in an SA network, the mobile terminal initiates an EPS fallback procedure, where an EPS fallback (evolved packet system fallback) scheme refers to that the terminal falls back to 4G when initiating an IMS call on a 5G network, and implements a voice service through the 4G network.
(2) Execution unit 302
An executing unit 302, configured to switch the first network to the second network, and execute the target event based on the second network.
For example, in the embodiment of the present invention, when a target event implemented based on the 4G network is detected, the connected 5G network is switched to the 4G network, and the execution unit 302 executes a voice call event based on the 4G network, for example, dropping from the 5G network to LTE to perform a VoLTE voice service.
(3) Determination unit 303
A determining unit 303, configured to determine, if the target event is finished, whether a base station side sets a fast fallback mechanism from the second network to the first network.
For example, in the embodiment of the present invention, after the target event is executed, for example, after the VoLTE call is ended, the determining unit 303 determines whether the base station side sets a Fast fallback (Fast Return) mechanism from the second network to the first network.
(4) Second detection unit 304
A second detecting unit 304, configured to detect whether a target real-time application is running in a foreground if the target real-time application is not running in the foreground, where the target real-time application meets a preset real-time requirement.
For example, if the mobile terminal determines that the base station side is not provided with the fast fallback mechanism, the second detection unit 304 detects whether the foreground runs a target real-time application, where the target real-time application meets a preset real-time requirement. For example, real-time applications can be classified into applications with high real-time performance, low real-time performance neutralization and low real-time performance, and target real-time applications are applications with high real-time performance neutralization and high practicability.
(5) Connection unit 305
A connection unit 305, configured to, if the target real-time application runs in the foreground, maintain a connection with the second network by the connection unit 305.
Accordingly, as shown in fig. 5, the terminal may include Radio Frequency (RF) circuitry 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the mobile terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
if the target event is realized based on the second network under the condition of connecting the first network, detecting the target event realized based on the second network; switching the first network to the second network, executing the target event based on the second network; if the target event is executed, determining whether a base station side sets a fast fallback mechanism from the second network to the first network; if not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets a preset real-time requirement; and if the target real-time application runs in the foreground, maintaining the connection with the second network.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any network handover method provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
if the target event is realized based on the second network under the condition of connecting the first network, detecting the target event realized based on the second network; switching the first network to the second network, executing the target event based on the second network; if the target event is executed, determining whether a base station side sets a fast fallback mechanism from the second network to the first network; if not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets a preset real-time requirement; and if the target real-time application runs in the foreground, maintaining the connection with the second network.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any network switching method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any network switching method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The network switching method, the network switching device and the mobile terminal provided by the embodiment of the invention are described in detail above, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for network handover, comprising:
if the target event is realized based on the second network under the condition of connecting the first network, detecting the target event realized based on the second network;
switching the first network to the second network, executing the target event based on the second network;
if the target event is executed, determining whether a base station side sets a fast fallback mechanism from the second network to the first network;
if not, detecting whether a target real-time application runs on a foreground or not, wherein the target real-time application meets a preset real-time requirement;
and if the target real-time application runs in the foreground, maintaining the connection with the second network.
2. The network switching method according to claim 1, wherein after detecting whether the foreground runs the target real-time application, the method further comprises:
and if the target real-time application is not operated in the foreground, triggering a quick fallback mechanism from the second network to the first network.
3. The method according to claim 2, wherein the triggering the fast fallback mechanism from the second network to the first network comprises:
detecting data traffic of data transmitted by the foreground in a preset measurement period, and taking the data traffic as the throughput of the foreground;
if the throughput is less than a preset throughput threshold, dropping from the second network to the first network;
and if the throughput is not less than the preset throughput threshold, maintaining the connection with the second network.
4. The network switching method according to claim 1, wherein the detecting whether the foreground runs the target real-time application comprises:
and detecting port data of a target user datagram protocol port of the foreground, and judging whether the target real-time application runs in the foreground or not based on the port data.
5. The method according to claim 1, wherein the determining whether the base station side sets the fast fallback mechanism from the second network to the first network comprises:
determining whether a configuration notification sent by the base station side is acquired within a preset time period, wherein the configuration notification is used for indicating that the base station side is provided with a fast fallback mechanism from the second network to the first network;
if so, determining that the rapid fallback mechanism is arranged on the base station side;
if not, determining that the rapid fallback mechanism is not arranged on the base station side.
6. The method according to claim 1, after determining whether the base station side sets a fast fallback mechanism from the second network to the first network if the target event is finished, further comprising:
if so, dropping from the second network to the first network based on the fast drop-back mechanism.
7. The network switching method according to claim 1, further comprising, after the maintaining the connection with the second network if the target real-time application is running in the foreground:
detecting whether the target real-time application runs on the foreground every other preset detection period;
if so, maintaining the connection with the second network;
and if not, triggering a quick fall-back mechanism from the second network to the first network.
8. A network switching apparatus, comprising:
the first detection unit is used for detecting a target event realized based on a second network under the condition of connecting a first network;
an execution unit, configured to switch the first network to the second network, and execute the target event based on the second network;
a determining unit, configured to determine, if the target event is finished, whether a base station side sets a fast fallback mechanism from the second network to the first network;
the second detection unit is used for detecting whether a target real-time application runs in a foreground or not if the target real-time application does not run in the foreground, wherein the target real-time application meets the preset real-time requirement;
and the connection unit is used for keeping connection with the second network if the target real-time application runs on the foreground.
9. A mobile terminal comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the operations of the network handover method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the network handover method according to any one of claims 1 to 7.
CN202111506548.XA 2021-12-10 2021-12-10 Network switching method and device and mobile terminal Active CN114222340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111506548.XA CN114222340B (en) 2021-12-10 2021-12-10 Network switching method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111506548.XA CN114222340B (en) 2021-12-10 2021-12-10 Network switching method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN114222340A true CN114222340A (en) 2022-03-22
CN114222340B CN114222340B (en) 2024-04-09

Family

ID=80700852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111506548.XA Active CN114222340B (en) 2021-12-10 2021-12-10 Network switching method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN114222340B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343682A (en) * 2020-03-11 2020-06-26 Tcl移动通信科技(宁波)有限公司 Network switching method, device, storage medium and terminal
CN112543487A (en) * 2020-12-03 2021-03-23 北京字节跳动网络技术有限公司 Control method and device of electronic equipment, terminal and storage medium
CN112672391A (en) * 2020-12-29 2021-04-16 京信网络系统股份有限公司 Network communication method, device, equipment and medium
CN112752319A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112752319A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Network switching method, device, terminal and storage medium
CN111343682A (en) * 2020-03-11 2020-06-26 Tcl移动通信科技(宁波)有限公司 Network switching method, device, storage medium and terminal
CN112543487A (en) * 2020-12-03 2021-03-23 北京字节跳动网络技术有限公司 Control method and device of electronic equipment, terminal and storage medium
CN112672391A (en) * 2020-12-29 2021-04-16 京信网络系统股份有限公司 Network communication method, device, equipment and medium

Also Published As

Publication number Publication date
CN114222340B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US9922438B2 (en) Method and apparatus for switching real-time image in instant messaging
US11076354B2 (en) Cell handover method and terminal device
CN110933704A (en) Network communication method, device, storage medium and electronic equipment
CN113507720A (en) Terminal measurement mode management method and device, storage medium and electronic terminal
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN111885748B (en) Method for releasing RRC connection, terminal equipment and network equipment
CN112867078B (en) Base station control method and device and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN112367425B (en) Volume adjusting method and device and terminal
CN105635379B (en) Noise suppression method and device
CN111104012B (en) Distance measuring method and device, storage medium and terminal equipment
CN114222340B (en) Network switching method and device and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN111031038A (en) Network processing method and device, storage medium and terminal equipment
CN112399405A (en) Method and device for reporting user equipment capability information and mobile terminal
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN111132275A (en) Method and device for establishing data connection, storage medium and electronic equipment
CN111106846A (en) Method, system and mobile terminal for reducing SAR value
CN105278967B (en) System updating method, device and system of mobile terminal
CN114158100B (en) Network switching method and device, mobile terminal and readable storage medium
CN109995441B (en) Communication information processing method, device and storage medium
CN111405649B (en) Information transmission method and device and mobile terminal
CN111654578B (en) Mobile terminal sensor restoration method
CN110891304B (en) gPS power consumption control method for mobile terminal

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
GR01 Patent grant