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

Network switching method and device and mobile terminal Download PDF

Info

Publication number
CN114222340B
CN114222340B CN202111506548.XA CN202111506548A CN114222340B CN 114222340 B CN114222340 B CN 114222340B CN 202111506548 A CN202111506548 A CN 202111506548A CN 114222340 B CN114222340 B CN 114222340B
Authority
CN
China
Prior art keywords
network
foreground
real
target
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.)
Active
Application number
CN202111506548.XA
Other languages
Chinese (zh)
Other versions
CN114222340A (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

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 first network is connected, detecting a target event realized based on the second network; switching the first network to the second network, and executing the target event based on the second network; if the target event execution is finished, determining whether a base station side sets a quick fallback mechanism from the second network to the first network; if not, detecting whether a foreground runs a target real-time application, wherein the target real-time application meets a preset real-time requirement; and if the foreground runs the target real-time application, the connection with the second network is maintained. The scheme can solve the problem of data flow interruption caused by the application with higher real-time requirement due to unreasonable switching.

Description

Network switching method and device and mobile terminal
Technical Field
The present invention relates to the field of communications, and in particular, to a network switching method, a device and a mobile terminal.
Background
At present, the coverage of a New Radio (NR) is discontinuous, and a Voice over NR (Voice over NR) is in a debugging and gradual deployment stage, so a 5G Voice scheme used by an operator is EPS Fallback (evolved packet system Fallback), that is, a User Equipment (UE) falls back to LTE (Long Term Evolution ) to perform a Voice over LTE (Voice over LTE, voice service scheme based on a multimedia subsystem IMS) Voice/video call service.
After the call is ended, the terminal returns to the NR by a Fast Return mode. In the prior art scheme, if the interacted data traffic is less than the configured throughput (TPUT) threshold, the UE releases the Radio Resource Control (RRC) locally, starting the L2NR Fast Return to 5G. However, if some applications with higher real-time requirements are running in the foreground at this time, then the amount of data interacted is smaller than the throughput threshold, if the L2NR Fast Return needs to be started according to the prior art scheme, the LTE RRC connection is released, and the 5G is returned, so that data interruption is caused, and the user experience is affected.
Thus, improvements are needed in the art.
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 interruption caused by application with high real-time requirements due to unreasonable switching.
The network switching method provided by the embodiment of the invention comprises the following steps:
if the first network is connected, detecting a target event realized based on the second network;
switching the first network to the second network, and executing the target event based on the second network;
if the target event execution is finished, determining whether a base station side sets a quick fallback mechanism from the second network to the first network;
if not, detecting whether a foreground runs a target real-time application, wherein the target real-time application meets a preset real-time requirement;
and if the foreground runs the target real-time application, the connection with the second network is maintained.
Optionally, in some embodiments of the present invention, after the detecting whether the foreground runs the target real-time application, the method further includes:
and if the foreground does not operate the target real-time application, triggering a quick fallback mechanism from the second network to the first network.
Optionally, in some embodiments of the present invention, the triggering a fast fallback mechanism from the second network to the first network includes:
detecting the data flow of the data transmitted by the foreground in a preset measurement period, and taking the data flow as the throughput of the foreground;
if the throughput is smaller than a preset throughput threshold, the second network is dropped back to the first network;
and if the throughput is not smaller than the preset throughput threshold, maintaining connection with the second network.
Optionally, in some embodiments of the present invention, the detecting whether the foreground runs the target real-time application includes:
and detecting port data of a target user datagram protocol port of the foreground, and judging whether the foreground runs the target real-time application 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 quick fallback mechanism from the second network to the first network;
if yes, determining that the base station side is provided with the quick fallback mechanism;
if not, determining that the base station side is not provided with the quick fallback mechanism.
Optionally, in some embodiments of the present invention, after the determining whether the base station side sets a fast fallback mechanism from the second network to the first network if the target event execution ends, the method further includes:
if yes, the fast fallback mechanism is based on the second network fallback to the first network.
Optionally, in some embodiments of the present invention, after the maintaining the connection with the second network if the foreground runs the target real-time application, the method further includes:
detecting whether the foreground runs the target real-time application or not at intervals of a preset detection period;
if yes, maintaining connection with the second network;
if not, triggering a quick fallback mechanism from the second network to the first network.
Correspondingly, the embodiment of the invention also provides a network switching device, which comprises:
a first detection unit for detecting a target event implemented based on the second network if the first network is connected;
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 whether a base station side sets a fast fallback mechanism from the second network to the first network if the target event execution ends;
the second detection unit is used for detecting whether the foreground runs the target real-time application or not if not, 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 foreground runs the target real-time application.
Correspondingly, the embodiment of the invention also provides a mobile terminal which comprises a memory and a processor, wherein the memory stores application programs, and the processor is used for running the application programs in the memory so as to execute the operations in the network switching method.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the storage medium stores a computer program, and the computer program is suitable for being loaded by the central processing unit so as to execute the steps in the network switching method provided by the embodiment of the invention.
The embodiment of the invention detects the target event realized based on the second network under the condition of connecting the first network; switching the first network to the second network, and executing the target event based on the second network; if the target event execution is finished, determining whether a base station side sets a quick fallback mechanism from the second network to the first network; if not, detecting whether a foreground runs a target real-time application, wherein the target real-time application meets a preset real-time requirement; and if the foreground runs the target real-time application, the connection with the second network is maintained. Therefore, the scheme can determine whether to execute the quick fallback mechanism according to whether the foreground runs the application with high instantaneity, and when the foreground runs the application with high instantaneity, the switching is not carried out on the LTE network, so that the problem of data interruption caused by switching is avoided, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a network switching device according to an embodiment of the present invention;
fig. 2 is a flow chart of a network switching method according to an embodiment of the present invention;
fig. 3 is a flow chart of another network switching method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network switching device 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 following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the 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 personal computer, a notebook computer and other devices. The network switching method comprises the following steps: if the first network is connected, detecting a target event realized based on the second network; switching the first network to the second network, and executing the target event based on the second network; if the target event execution is finished, determining whether a base station side sets a quick fallback mechanism from the second network to the first network; if not, detecting whether a foreground runs a target real-time application, wherein the target real-time application meets a preset real-time requirement; and if the foreground runs the target real-time application, the connection with the second network is maintained.
Fig. 1 is a schematic view of a network switching device according to an embodiment of the present invention, as shown in fig. 1. 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 quick fallback mechanism from the second network to the first network is set at the base station side; if not, detecting whether a foreground runs a target real-time application, wherein the target real-time application meets the preset real-time requirement; if the foreground runs the target real-time application, the mobile terminal keeps connected with the second network.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
As shown in fig. 2, the specific flow of the network switching method may be as follows:
201. if, in the case of a connection to the first network, a target event based on the second network implementation is detected.
In the embodiment of the invention, the first network is set as a 5G network, the second network is set as a 4G network, and the target event is a call event, namely, under the condition of connecting the 5G network, the voice call based on the realization of the 4G network is detected. For example, in SA network, the mobile terminal initiates an EPS fallback procedure, where an EPS fallback (evolved packet system fallback) scheme means that the terminal falls back to 4G when initiating an IMS call on the 5G network, and implements a voice service through the 4G network.
202. 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, voLTE voice service is carried out from the 5G network to LTE.
203. And if the target event execution is finished, determining whether a quick fallback mechanism from the second network to the first network is set at the base station side.
In the embodiment of the present invention, after the execution of the target event, for example, after the end of the VoLTE call, 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 quick 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 quick fallback mechanism from the second network to the first network. If yes, determining that a quick fallback mechanism is arranged on the base station side; if not, the base station side is determined not to be provided with a quick fallback mechanism.
If the base station side is provided with a quick fallback mechanism, the mobile terminal falls back from the second network to the first network based on the quick fallback mechanism.
204. If not, detecting whether a foreground runs a target real-time application, 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 the foreground operates the target real-time application is detected, wherein the target real-time application meets the preset real-time requirement. For example, real-time applications can be classified into applications having high real-time performance, low real-time performance, and high real-time performance.
And if the foreground does not operate the target real-time application, triggering a quick fallback mechanism from the second network to the first network. The method specifically comprises the following steps: detecting data flow of data transmitted by a foreground in a preset measurement period, and taking the data flow as throughput of the foreground; if the throughput is smaller than the preset throughput threshold, the second network is dropped to the first network; if the throughput is not less than the preset throughput threshold, the connection with the second network is maintained. For example, the preset throughput threshold is typically 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 connection with the 4G network is maintained from the front.
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 operates the target real-time application or not based on the port data. For example, a certain game application periodically (e.g., 5 seconds) transmits a heartbeat packet at a User Datagram Protocol (UDP) Port (Port) to detect a network environment, a terminal detects Port data of a corresponding target UDP Port by an identification name (UID) corresponding to the game application, and judges whether the game application is running in the foreground by Port data traffic.
205. And if the foreground runs the target real-time application, the connection with the second network is maintained.
In the embodiment of the invention, if the foreground is detected to run the target real-time application, the mobile terminal keeps connection with the second network, namely the 4G network.
The mobile terminal can detect whether the foreground runs the target real-time application or not at intervals of a preset detection period; if yes, maintaining connection with the second network; if not, triggering a quick fallback mechanism from the second network to the first network. For example, the preset detection period is 30 seconds, whether the foreground runs the application with high real-time performance is detected every 30 seconds, and the network connection can be switched according to the change of the real-time performance application in time.
Referring to fig. 3, fig. 3 is a flow chart of another network switching method according to an embodiment of the invention. As shown in fig. 3, a User Equipment (UE) on the SA network initiates an EPS fallback procedure, and after the VoLTE call ends, the UE waits for NW (network) for a period of time, defaults to 2S. In the waiting time, if the network side configures a quick fallback mechanism based on the network and issues a notification to the UE, the UE returns NR according to the configuration issued by the network side and based on the Fast Return mechanism of the network. If the network does not start the Fast Return function, the terminal judges whether the foreground has the application with higher real-time performance to run or not according to the data of a specific UDP Port corresponding to the UID (user identification) name, no matter how much throughput is. If the foreground runs an application with higher real-time performance, the UE does not trigger an autonomous Fast Return function, and the UE continues to remain on the LTE, so that the problem of data interruption caused by Return NR of the LTE can be solved, and particularly, the problem of more obvious cartoon is caused by the application with higher real-time performance requirement (such as Transmission Time Interval (TTI) >200 ms). If the foreground does not run the application with higher real-time performance, executing according to the original design; i.e., throughput is lower than a threshold (2 Mbps), triggering an autonomous Fast Return function, returning NR; throughput is greater than a threshold (2 Mbps), and autonomous Fast Return functions are not triggered, leaving in LTE.
In order to better implement the above method, the 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 detection unit 301
The first detecting unit 301 is configured to detect a target event implemented based on the second network if the first network is connected.
For example, let the first network be a 5G network, the second network be a 4G network, and the target event be a call event, that is, in the case of connecting the 5G network, the first detection unit 301 detects a voice call based on the implementation of the 4G network. For example, in SA network, the mobile terminal initiates an EPS fallback procedure, where an EPS fallback (evolved packet system fallback) scheme means that the terminal falls back to 4G when initiating an IMS call on the 5G network, and implements a voice service through the 4G network.
(2) Execution unit 302
An execution 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 the 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 the voice call event based on the 4G network, for example, drops from the 5G network to LTE for VoLTE voice service.
(3) Determination unit 303
A determining unit 303, configured to determine whether the base station side sets a fast fallback mechanism from the second network to the first network if the target event execution ends.
For example, in the embodiment of the present invention, after the execution of the target event is finished, for example, after the VoLTE call is finished, 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) A second detection unit 304
And the second detection unit 304 is configured to detect whether a foreground runs a target real-time application if not, 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 having high real-time performance, low real-time performance, and high real-time performance.
(5) Connection unit 305
And the connection unit 305 is configured to, if the foreground runs the target real-time application, keep the connection with the second network by the connection unit 305.
Correspondingly, the embodiment of the present invention further provides a terminal, as shown in fig. 5, where the terminal may include a Radio Frequency (RF) circuit 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, wireless Fidelity) module 407, a processor 408 including one or more processing cores, and a power supply 409. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 5 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 408; in addition, data relating to uplink is transmitted to the base station. Typically, 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, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebooks, etc.) created according to the use of the mobile terminal, etc. In addition, 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 access to the memory 402 by the processor 408 and the input unit 403.
The input unit 403 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, 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 thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device and converts it into touch point coordinates, which are then sent to the processor 408, and can receive commands from the processor 408 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 403 may also comprise other input devices. 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, mouse, joystick, etc.
The display unit 404 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 604 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, upon which or near touch operations are detected by the touch-sensitive surface, which is communicated to the processor 608 to determine the type of touch event, and the processor 408 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 5 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, a 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 backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the terminal are not described in detail herein.
Audio circuitry 406, speakers, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 406 and converted into audio data, which are processed by the audio data output processor 408 for transmission to, for example, another terminal via the RF circuit 401, or which are output to the memory 402 for further processing. Audio circuitry 406 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 407, so that wireless broadband internet access is provided for the user. Although fig. 5 shows a WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 408 is a control center of the terminal, and connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the handset. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles 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 supply 409 (e.g., a battery) for powering the various components, which may be logically connected to the processor 408 through a power management system that performs functions such as managing charge, discharge, and power consumption. The power supply 409 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the processor 408 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 408 executes the application programs stored in the memory 402, so as to implement various functions:
if the first network is connected, detecting a target event realized based on the second network; switching the first network to the second network, and executing the target event based on the second network; if the target event execution is finished, determining whether a base station side sets a quick fallback mechanism from the second network to the first network; if not, detecting whether a foreground runs a target real-time application, wherein the target real-time application meets a preset real-time requirement; and if the foreground runs the target real-time application, the connection with the second network is maintained.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the network switching methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
if the first network is connected, detecting a target event realized based on the second network; switching the first network to the second network, and executing the target event based on the second network; if the target event execution is finished, determining whether a base station side sets a quick fallback mechanism from the second network to the first network; if not, detecting whether a foreground runs a target real-time application, wherein the target real-time application meets a preset real-time requirement; and if the foreground runs the target real-time application, the connection with the second network is maintained.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium may perform steps in any network switching method provided by the embodiments of the present invention, so that the beneficial effects that any network switching method provided by the embodiments of the present invention can be achieved are detailed in the previous embodiments, and are not repeated herein.
The foregoing describes in detail a network switching method, apparatus and mobile terminal provided by the embodiments of the present invention, and specific examples are applied to describe the principles and implementations of the present invention, where the descriptions of the foregoing embodiments are only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (6)

1. A network switching method, comprising:
if a target event realized based on a second network is detected under the condition of connecting a first network, wherein the first network comprises a 5G network, and the second network comprises a 4G network;
switching the first network to the second network, and executing the target event based on the second network;
if the target event execution is finished, determining whether a base station side sets a quick fallback mechanism from the second network to the first network;
if yes, falling back from the second network to the first network based on the quick falling-back mechanism;
if not, detecting port data of a target user datagram protocol port of a foreground, and judging whether the foreground runs a target real-time application or not based on the port data, wherein the target real-time application meets a preset real-time requirement, and the real-time requirement is determined based on a transmission time interval;
if the foreground runs the target real-time application, the connection with the second network is maintained;
if the foreground does not operate the target real-time application, detecting the data flow of the data transmitted by the foreground in a preset measurement period, and taking the data flow as the throughput of the foreground;
if the throughput is smaller than a preset throughput threshold, the second network is dropped back to the first network;
and if the throughput is not smaller than the preset throughput threshold, maintaining connection with the second network.
2. The network handover method according to claim 1, wherein the determining whether the base station side sets a fast fallback mechanism of 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 quick fallback mechanism from the second network to the first network;
if yes, determining that the base station side is provided with the quick fallback mechanism;
if not, determining that the base station side is not provided with the quick fallback mechanism.
3. The network switching method according to claim 1, further comprising, after the maintaining the connection with the second network if the foreground runs the target real-time application:
detecting whether the foreground runs the target real-time application or not at intervals of a preset detection period;
if yes, maintaining connection with the second network;
if not, triggering a quick fallback mechanism from the second network to the first network.
4. A network switching apparatus, comprising:
a first detection unit for detecting a target event implemented based on the second network if the first network is connected;
an execution unit configured to switch the first network to the second network, and execute the target event based on the second network, where the first network includes a 5G network and the second network includes a 4G network;
a determining unit, configured to determine whether a base station side sets a fast fallback mechanism from the second network to the first network if the target event execution ends; if yes, falling back from the second network to the first network based on the quick falling-back mechanism;
the second detection unit is used for detecting port data of a target user datagram protocol port of the foreground if not, judging whether the foreground runs a target real-time application or not based on the port data, wherein the target real-time application meets a preset real-time requirement, and the real-time requirement is determined based on a transmission time interval;
the connection unit is used for keeping connection with the second network if the foreground runs the target real-time application; if the foreground does not operate the target real-time application, detecting the data flow of the data transmitted by the foreground in a preset measurement period, and taking the data flow as the throughput of the foreground; if the throughput is smaller than a preset throughput threshold, the second network is dropped back to the first network; and if the throughput is not smaller than the preset throughput threshold, maintaining connection with the second network.
5. 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 in the network switching method of any one of claims 1 to 3.
6. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to implement the network handover method of any of claims 1 to 3.
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 CN114222340A (en) 2022-03-22
CN114222340B true 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
CN114222340A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107113747B (en) Communication method, device, terminal and base station
CN110933704B (en) Network communication method, device, storage medium and electronic equipment
US11076354B2 (en) Cell handover method and terminal device
CN110620822A (en) Network element determination method and device
CN113507720B (en) Terminal measurement mode management method and device, storage medium and electronic terminal
CN112351456A (en) Network connection method, device, storage medium and electronic equipment
CN111885748B (en) Method for releasing RRC connection, terminal equipment and network equipment
CN110149639B (en) Interference processing method, terminal equipment and network side equipment
CN112867078B (en) Base station control method and device and mobile terminal
CN113613310B (en) WIFI connection method and device, storage medium and mobile terminal
CN114222340B (en) Network switching method and device and mobile terminal
CN105635379B (en) Noise suppression method and device
CN112367425B (en) Volume adjusting method and device and terminal
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
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
CN111031038A (en) Network processing method and device, storage medium and terminal equipment
CN114245427B (en) Network switching method and device and mobile terminal
CN110891304B (en) gPS power consumption control method for mobile terminal
WO2018103442A1 (en) Information processing method and terminal device
CN114158100B (en) Network switching method and device, mobile terminal and readable storage medium
CN117545054B (en) UWB communication method, device, storage medium and electronic equipment
CN111405649B (en) Information transmission method and device and mobile terminal
CN111642034B (en) Data transmission method, terminal equipment and network equipment

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