CN110784898B - Network switching method, mobile terminal and computer readable storage medium - Google Patents

Network switching method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN110784898B
CN110784898B CN201911044470.7A CN201911044470A CN110784898B CN 110784898 B CN110784898 B CN 110784898B CN 201911044470 A CN201911044470 A CN 201911044470A CN 110784898 B CN110784898 B CN 110784898B
Authority
CN
China
Prior art keywords
network system
network
preset
byte number
new
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
CN201911044470.7A
Other languages
Chinese (zh)
Other versions
CN110784898A (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.)
Shenzhen Weichuang Lihe Technology Co ltd
Original Assignee
Shenzhen Weichuang Lihe Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Weichuang Lihe Technology Co ltd filed Critical Shenzhen Weichuang Lihe Technology Co ltd
Priority to CN201911044470.7A priority Critical patent/CN110784898B/en
Publication of CN110784898A publication Critical patent/CN110784898A/en
Application granted granted Critical
Publication of CN110784898B publication Critical patent/CN110784898B/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/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • 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/16Performing reselection for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a network switching method, a mobile terminal and a computer readable storage medium, wherein the network switching method comprises the following steps: when the mobile terminal resides in a 4G network system, detecting whether N first type data packets are continuously received or continuously transmitted, wherein N is a positive integer greater than or equal to 2, and the length of the first type data packets is greater than a first preset byte number; and if the N first type data packets are continuously received or continuously transmitted, switching the current network system from the 4G network system to the 5G network system. According to the invention, the network system is switched from the 4G network system to the 5G network system only when a large amount of data needs to be transmitted, so that the data transmission efficiency is improved, and unnecessary terminal energy consumption is avoided.

Description

Network switching method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network switching method, a mobile terminal, and a computer readable storage medium.
Background
With the rapid development of 5G technology, 5G terminals have begun to be commercially available gradually. Although the highest transmission rate of a 5G network is much higher than that of a 4G network, many applications do not require high-rate support in end use. Such as text chat, brushing web pages for news, etc. That is, from the experience effect, many scenes with low requirements on the rate are not very different from 4G to 5G, and using a 5G network greatly increases the power consumption of the terminal compared with using a 4G network. In this case, how to perform network handover to reduce power consumption of the terminal is a concern in the industry.
In the prior art, whether to switch the network to 5G is determined by the current application scenario of the terminal, such as whether to perform a downloading job. By this switching condition, even when a file with a relatively small data size is downloaded, the file is switched to the 5G network to perform the downloading operation. However, even if the download work is performed through the 4G network, the time required for the file with a relatively small data amount is very small compared with the 5G network. Namely, the downloading work is carried out through the 5G network, the data transmission time cannot be obviously shortened, and the power consumption of the terminal is increased.
Disclosure of Invention
The invention mainly aims to provide a network switching method, a mobile terminal and a computer readable storage medium, and aims to solve the technical problems that even if a 5G network is switched to, the data transmission efficiency cannot be obviously improved and the power consumption of the terminal is increased due to unreasonable network switching conditions in the prior art.
In order to achieve the above object, the present invention provides a network switching method applied to a mobile terminal, the mobile terminal supporting 4G and 5G networks, the network switching method comprising:
when the mobile terminal resides in a 4G network system, detecting whether N first type data packets are continuously received or continuously transmitted, wherein N is a positive integer greater than or equal to 2, and the length of the first type data packets is greater than a first preset byte number;
and if the N first type data packets are continuously received or continuously transmitted, switching the current network system from the 4G network system to the 5G network system.
Optionally, if N first type data packets are continuously received or continuously sent, switching the current network system from the 4G network system to the 5G network system includes:
and if the N first type data packets are continuously received or continuously sent, acquiring a first network transmission rate corresponding to the 4G network system, and switching the current network system from the 4G network system to the 5G network system.
Optionally, after the switching the current network system from the 4G network system to the 5G network system, the method further includes:
acquiring a second network transmission rate corresponding to the 5G network system;
calculating to obtain a transmission rate improvement rate according to the first network transmission rate and the second network transmission rate;
and when the transmission rate lifting rate is smaller than a preset lifting rate, switching the current network system from the 5G network system to the 4G network system.
Optionally, after the calculating the transmission rate improvement rate according to the first network transmission rate and the second network transmission rate, the method further includes:
when the transmission rate increasing rate is greater than or equal to a preset increasing rate, detecting whether M second-class data packets are continuously received or continuously sent, wherein M is a positive integer greater than or equal to 2, and the length of the second-class data packets is smaller than a second preset byte number;
if M second class data packets are continuously received or continuously transmitted, the current network system is switched from the 5G network system to the 4G network system.
Optionally, the switching the current network system from the 5G network system to the 4G network system includes:
and when the current residual electric quantity of the mobile terminal is smaller than the preset electric quantity, switching the current network system from the 5G network system to the 4G network system.
Optionally, the network switching method further includes:
when the occurrence times of network system switching events in the preset time period are detected to be greater than or equal to the preset times, the N value is adjusted to be a new N value, the first preset byte number is adjusted to be a new first preset byte number, the M value is adjusted to be a new M value, the second preset byte number is adjusted to be a new second preset byte number, the preset lifting rate is adjusted to be a new preset lifting rate, wherein the new N value is greater than the N value, the new first preset byte number is greater than the first preset byte number, the new M value is greater than the M value, and the new second preset byte number is smaller than the second preset byte number, and the new preset lifting rate is smaller than the preset lifting rate.
In addition, to achieve the above object, the present invention also provides a mobile terminal including: the network switching device comprises a memory, a processor and a network switching program which is stored in the memory and can run on the processor, wherein the network switching program realizes the steps of the network switching method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a network switching program which, when executed by a processor, implements the steps of the network switching method as described above.
In the invention, when the mobile terminal resides in a 4G network system, whether N first type data packets are continuously received or continuously transmitted is detected, wherein N is a positive integer greater than or equal to 2, and the length of the first type data packets is greater than a first preset byte number; and if the N first type data packets are continuously received or continuously transmitted, switching the current network system from the 4G network system to the 5G network system. According to the invention, the network system is switched from the 4G network system to the 5G network system only when a large amount of data needs to be transmitted, so that the data transmission efficiency is improved, and unnecessary terminal energy consumption is avoided.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
fig. 3 is a flow chart of an embodiment of a network switching method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
In the embodiment of the invention, the network switching method is applied to the mobile terminal, and the terminal can be implemented in various forms. For example, the mobile terminal according to the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant (Personal Digital Assistant, PDA), or the like.
The following description will be given taking a tablet computer as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to other types of mobile terminals, in addition to elements particularly used for the purpose of movement.
Referring to fig. 1, fig. 1 is a schematic hardware structure of a mobile terminal implementing various embodiments of the present invention, where the terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 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 GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the terminal gesture (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured for the terminal, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of 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, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 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.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the home page display terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a network switching program may be included in the memory 109 as one type of computer storage medium, and the processor 110 may be configured to call the network switching program stored in the memory 109 and perform the steps of the following network switching method embodiments.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating an embodiment of a network switching method according to the present invention.
In an embodiment, a network switching method is applied to a mobile terminal, where the mobile terminal supports 4G and 5G networks, and the network switching method includes:
step S10, when the mobile terminal resides in a 4G network system, detecting whether N first type data packets are continuously received or continuously transmitted, wherein N is a positive integer greater than or equal to 2, and the length of the first type data packets is greater than a first preset byte number;
in this embodiment, when the mobile terminal resides in the 4G network system, the IP layer is monitored to obtain the length of each data packet received by the mobile terminal, and determine whether the length of the data packet is greater than a first preset byte number, and if the length of the data packet is greater than the first preset byte number, determine that the data packet is a first type of data packet. For example, when the mobile terminal resides in the 4G network system, a data packet is received at a certain time, the length of the data packet is obtained by analyzing the data packet, and the data packet is marked as the first type of data by comparing and finding that the length of the data packet is greater than the first preset byte number. The first preset byte number is set according to actual needs, for example, is set to 5k. It is easy to understand that when N data packets are received consecutively and the length of each data packet is greater than the first preset number of bytes, that is, N consecutive data packets of the first type are received, it is indicated that there is a large amount of data to be transmitted currently. In this embodiment, the specific value of N is not limited, and N is set according to actual needs, for example, set to 20.
When the mobile terminal resides in the 4G network system, the IP layer is monitored, the length of each data packet sent by the mobile terminal can be obtained, whether the length of the data packet is larger than a first preset byte number is judged, and if the length of the data packet is larger than the first preset byte number, the data packet is determined to be the first type data packet. For example, when the mobile terminal resides in the 4G network system, a data packet is sent at a certain time, the length of the data packet is obtained by analyzing the data packet, and the data packet is marked as the first type of data by comparing and finding that the length of the data packet is greater than the first preset byte number. The first preset byte number is set according to actual needs, for example, is set to 5k. It is easy to understand that when N data packets are continuously transmitted and the length of each data packet is greater than the first preset number of bytes, that is, N data packets of the first type are continuously transmitted, it is indicated that there is a large amount of data to be transmitted currently. In this embodiment, the specific value of N is not limited, and N is set according to actual needs, for example, set to 20.
Step S20, if N first type data packets are continuously received or continuously transmitted, the current network system is switched from the 4G network system to the 5G network system.
In this embodiment, if N continuous first class data packets are received, it is indicated that there is a large amount of data to be transmitted currently, and in this case, the current network system is switched from the 4G network system to the 5G network system for data transmission in the 5G network system, thereby improving the data transmission efficiency. If N first-class data packets are continuously sent, the fact that a large amount of data needs to be transmitted is also indicated, and in this case, the current network system is switched from the 4G network system to the 5G network system for data transmission under the 5G network system, so that the data transmission efficiency is improved.
In this embodiment, when the mobile terminal resides in a 4G network system, detecting whether N first type data packets are continuously received or continuously transmitted, where N is a positive integer greater than or equal to 2, and a length of the first type data packets is greater than a first preset byte number; and if the N first type data packets are continuously received or continuously transmitted, switching the current network system from the 4G network system to the 5G network system. Through the embodiment, when the mobile terminal resides in the 4G network system, if it is detected that there is a large amount of data to be transmitted currently, the current network system is switched from the 4G network system to the 5G network system, so as to perform data transmission in the 5G network system. Because the data transmission rate of the 5G network is obviously better than that of the 4G network for a large amount of data, the time required for data transmission can be greatly shortened by adopting the 5G network for data transmission compared with the 4G network, namely the data transmission efficiency is obviously improved. In this embodiment, only for the scenario that a large amount of data needs to be transmitted, the current network system is switched from the 4G network system to the 5G network system, instead of switching the current network system from the 4G network system to the 5G network system as long as data is output, so that the situation that even if the network system is switched to the 5G network, the data transmission efficiency cannot be obviously improved, and the power consumption of the terminal is increased is avoided.
Further, in an embodiment of the network switching method of the present invention, step S20 includes:
step S201, if N first class data packets are continuously received or continuously sent, a first network transmission rate corresponding to the 4G network system is obtained, and the current network system is switched from the 4G network system to the 5G network system.
In this embodiment, if N first type data packets are continuously received or continuously sent, a first network transmission rate corresponding to the 4G network system is obtained. The first network transmission rate refers to a real-time network transmission rate in a 4G network system. When detecting that N first-class data packets are continuously received or continuously sent, the method invokes the current data transmission parameters, acquires the network transmission rate from the data transmission parameters, takes the network transmission rate acquired from the data transmission parameters as the first network transmission rate corresponding to the 4G network system, and then switches the current network system from the 4G network system to the 5G network system.
In this embodiment, the first network transmission rate corresponding to the 4G network system is obtained, so as to determine whether the network transmission rate is greatly improved after the network system is subsequently switched to the 5G network system, thereby determining whether the network system needs to be switched from the 5G network system to the 4G network system (because if the network transmission rate is not obviously improved after the network system is switched from the 4G network system to the 5G network system, the network system should be switched from the 5G network system to the 4G network system in view of saving the energy consumption of the terminal).
Based on the foregoing embodiments, in an embodiment of the network switching method of the present invention, after step S201, the method further includes:
acquiring a second network transmission rate corresponding to the 5G network system; calculating to obtain a transmission rate improvement rate according to the first network transmission rate and the second network transmission rate; and when the transmission rate lifting rate is smaller than a preset lifting rate, switching the current network system from the 5G network system to the 4G network system.
In this embodiment, it is considered that in some special cases, for example, the terminal is in a position with poor network coverage, at this time, the network transmission rate of the terminal in the 4G network system is very small compared with the network transmission rate of the terminal in the 5G network system, and using the 5G network also greatly increases the terminal energy consumption compared with the 4G network. Therefore, after step S201, the second network transmission rate corresponding to the 5G network system is further obtained, and the transmission rate improvement rate is calculated according to the first network transmission rate and the second network transmission rate, where the formula for calculating the transmission rate improvement rate is:
Figure BDA0002253757630000111
wherein R is the transmission rate increase rate, R 1 For the first network transmission rate, R 2 Is the second network transmission rate. When R is smaller than the preset lifting rate, it is indicated that after the network system is switched from the 4G network system to the 5G network system, the network transmission rate is only slightly lifted, the 5G network is used for data transmission, the transmission rate cannot be greatly lifted, and the energy consumption of the terminal can be greatly increased, so that in this case, the current network system is switched from the 5G network systemAnd switching the system to a 4G network system. Thereby avoiding unnecessary increase of the power consumption of the terminal.
Further, in an embodiment of the network switching method of the present invention, after the transmission rate improving rate is calculated according to the first network transmission rate and the second network transmission rate, the method further includes:
when the transmission rate increasing rate is greater than or equal to a preset increasing rate, detecting whether M second-class data packets are continuously received or continuously sent, wherein M is a positive integer greater than or equal to 2, and the length of the second-class data packets is smaller than a second preset byte number; if M second class data packets are continuously received or continuously transmitted, the current network system is switched from the 5G network system to the 4G network system.
In this embodiment, when the transmission rate increase rate is greater than or equal to the preset increase rate, it is indicated that the data transmission using the 5G network is significantly better than the data transmission using the 4G network, so that the network system is kept unchanged, but considering that the data amount is smaller in the later stage of data transmission, it is not necessary to use the 5G network for data transmission. Therefore, when the transmission rate increasing rate is greater than or equal to the preset increasing rate, the IP layer is monitored to acquire the length of each data packet received by the mobile terminal, and whether the length of the data packet is smaller than the second preset byte number is judged, if the length of the data packet is smaller than the second preset byte number, the data packet is determined to be the second type data packet. For example, when the mobile terminal resides in the 5G network system, a data packet is received at a certain time, the length of the data packet is obtained by analyzing the data packet, and the data packet is marked as the second type data by comparing and finding that the length of the data packet is smaller than the second preset byte number. The second preset byte number is set according to actual needs, for example, 1.5k. It is easy to understand that when N data packets are continuously received and the length of each data packet is smaller than the second preset byte number, that is, when N continuous second class data packets are received, it is indicated that the amount of data to be transmitted is relatively small, and the data transmission work can be completed relatively quickly even through the 4G network, so that the network system needs to be switched from the 5G network system to the 4G network system in view of saving the energy consumption of the terminal. In this embodiment, the specific value of N is not limited, and N is set according to actual needs, for example, set to 20.
When the transmission rate increase rate is greater than or equal to the preset increase rate, it is indicated that the use of the 5G network for data transmission is significantly better than the use of the 4G network for data transmission, so that the network system is kept unchanged, but it is considered that the use of the 5G network for data transmission is unnecessary when the data amount is smaller in the later stage of data transmission. Therefore, when the transmission rate increasing rate is greater than or equal to the preset increasing rate, the IP layer is monitored to acquire the length of each data packet sent by the mobile terminal, and whether the length of the data packet is smaller than the second preset byte number is judged, if the length of the data packet is smaller than the second preset byte number, the data packet is determined to be the second type data packet. For example, when the mobile terminal resides in the 5G network system, a data packet is sent at a certain time, the length of the data packet is obtained by analyzing the data packet, and the data packet is marked as the second type data by comparing and finding that the length of the data packet is smaller than the second preset byte number. The second preset byte number is set according to actual needs, for example, 1.5k. It is easy to understand that when N data packets are continuously sent and the length of each data packet is smaller than the second preset byte number, that is, N second class data packets are continuously sent, it is indicated that the amount of data to be transmitted is relatively small, and the data transmission work can be completed relatively quickly even through the 4G network, so that the network system needs to be switched from the 5G network system to the 4G network system in view of saving energy consumption of the terminal. In this embodiment, the specific value of N is not limited, and N is set according to actual needs, for example, set to 20.
Further, in an embodiment of the network switching method of the present invention, the switching the current network system from the 5G network system to the 4G network system includes:
and when the current residual electric quantity of the mobile terminal is smaller than the preset electric quantity, switching the current network system from the 5G network system to the 4G network system.
In the above embodiment, when the network transmission rate of the 5G network system is not higher than that of the 4G network system, or when the amount of data to be transmitted is smaller, the network system needs to be switched from the 5G network system to the 4G network system in consideration of saving the terminal energy consumption. In this embodiment, when the network transmission rate of the 5G network system is not higher than that of the 4G network system, or when the amount of data to be transmitted is smaller, if the current remaining power of the mobile terminal is smaller than the preset power, the current network system is switched from the 5G network system to the 4G network system.
Further, in an embodiment of the network switching method of the present invention, the network switching method further includes:
when the occurrence times of network system switching events in the preset time period are detected to be greater than or equal to the preset times, the N value is adjusted to be a new N value, the first preset byte number is adjusted to be a new first preset byte number, the M value is adjusted to be a new M value, the second preset byte number is adjusted to be a new second preset byte number, the preset lifting rate is adjusted to be a new preset lifting rate, wherein the new N value is greater than the N value, the new first preset byte number is greater than the first preset byte number, the new M value is greater than the M value, and the new second preset byte number is smaller than the second preset byte number, and the new preset lifting rate is smaller than the preset lifting rate.
In this embodiment, since frequent network switching affects normal use of the terminal and increases power consumption of the terminal, when the number of occurrences of a network system switching event (from a 4G network system to a 5G network system or from a 5G network system to a 4G network system is all network system switching events) within a preset period (e.g., 10 minutes) is greater than or equal to a preset number of times (e.g., 5 times), the N value, the first preset byte number, the M value, the second preset byte number, and the preset lifting rate need to be adjusted to reduce the number of occurrences of the network system switching event. Wherein the new N value is greater than the N value, the new first predetermined number of bytes is greater than the first predetermined number of bytes, the new M value is greater than the M value, the new second predetermined number of bytes is less than the second predetermined number of bytes, and the new predetermined rate of increase is less than the predetermined rate of increase.
In addition, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: the network switching system comprises a memory, a processor and a network switching program which is stored in the memory and can run on the processor, wherein the network switching program realizes the steps of the network switching method according to the embodiments when being executed by the processor.
The specific embodiment of the mobile terminal of the present invention is basically the same as each embodiment of the above network switching method, and will not be described herein.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a network switching program, and the network switching program realizes the steps of the embodiments of the network switching method when being executed by a processor.
The specific embodiments of the computer readable storage medium of the present invention are substantially the same as the embodiments of the network switching method described above, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (4)

1. A network switching method applied to a mobile terminal, the mobile terminal supporting 4G and 5G networks, the network switching method comprising:
when the mobile terminal resides in a 4G network system, detecting whether N first type data packets are continuously received or continuously transmitted, wherein N is a positive integer greater than or equal to 2, and the length of the first type data packets is greater than a first preset byte number;
if N first type data packets are continuously received or continuously sent, acquiring a first network transmission rate corresponding to the 4G network system, and switching the current network system from the 4G network system to the 5G network system;
acquiring a second network transmission rate corresponding to the 5G network system;
calculating to obtain a transmission rate improvement rate according to the first network transmission rate and the second network transmission rate;
when the transmission rate lifting rate is smaller than a preset lifting rate, switching the current network system from a 5G network system to a 4G network system;
after the transmission rate improvement rate is calculated according to the first network transmission rate and the second network transmission rate, the method further includes:
when the transmission rate increasing rate is greater than or equal to a preset increasing rate, detecting whether M second-class data packets are continuously received or continuously sent, wherein M is a positive integer greater than or equal to 2, and the length of the second-class data packets is smaller than a second preset byte number;
if M second class data packets are continuously received or continuously sent, the current network system is switched from a 5G network system to a 4G network system;
when the occurrence times of network system switching events in the preset time period are detected to be greater than or equal to the preset times, the N value is adjusted to be a new N value, the first preset byte number is adjusted to be a new first preset byte number, the M value is adjusted to be a new M value, the second preset byte number is adjusted to be a new second preset byte number, the preset lifting rate is adjusted to be a new preset lifting rate, wherein the new N value is greater than the N value, the new first preset byte number is greater than the first preset byte number, the new M value is greater than the M value, and the new second preset byte number is smaller than the second preset byte number, and the new preset lifting rate is smaller than the preset lifting rate.
2. The network switching method of claim 1, wherein switching the current network system from the 5G network system to the 4G network system comprises:
and when the current residual electric quantity of the mobile terminal is smaller than the preset electric quantity, switching the current network system from the 5G network system to the 4G network system.
3. A mobile terminal, the mobile terminal comprising: a memory, a processor, and a network switch program stored on the memory and operable on the processor, the network switch program when executed by the processor implementing the steps of:
when the mobile terminal resides in a 4G network system, detecting whether N first type data packets are continuously received or continuously transmitted, wherein N is a positive integer greater than or equal to 2, and the length of the first type data packets is greater than a first preset byte number;
if N first type data packets are continuously received or continuously sent, acquiring a first network transmission rate corresponding to the 4G network system, and switching the current network system from the 4G network system to the 5G network system;
acquiring a second network transmission rate corresponding to the 5G network system;
calculating to obtain a transmission rate improvement rate according to the first network transmission rate and the second network transmission rate;
when the transmission rate lifting rate is smaller than a preset lifting rate, switching the current network system from a 5G network system to a 4G network system;
after the transmission rate improvement rate is calculated according to the first network transmission rate and the second network transmission rate, the method further includes:
when the transmission rate increasing rate is greater than or equal to a preset increasing rate, detecting whether M second-class data packets are continuously received or continuously sent, wherein M is a positive integer greater than or equal to 2, and the length of the second-class data packets is smaller than a second preset byte number;
if M second class data packets are continuously received or continuously sent, the current network system is switched from a 5G network system to a 4G network system;
when the occurrence times of network system switching events in the preset time period are detected to be greater than or equal to the preset times, the N value is adjusted to be a new N value, the first preset byte number is adjusted to be a new first preset byte number, the M value is adjusted to be a new M value, the second preset byte number is adjusted to be a new second preset byte number, the preset lifting rate is adjusted to be a new preset lifting rate, wherein the new N value is greater than the N value, the new first preset byte number is greater than the first preset byte number, the new M value is greater than the M value, and the new second preset byte number is smaller than the second preset byte number, and the new preset lifting rate is smaller than the preset lifting rate.
4. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a network switching program which, when executed by a processor, implements the steps of the network switching method according to claim 1 or 2.
CN201911044470.7A 2019-10-30 2019-10-30 Network switching method, mobile terminal and computer readable storage medium Active CN110784898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911044470.7A CN110784898B (en) 2019-10-30 2019-10-30 Network switching method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911044470.7A CN110784898B (en) 2019-10-30 2019-10-30 Network switching method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110784898A CN110784898A (en) 2020-02-11
CN110784898B true CN110784898B (en) 2023-07-14

Family

ID=69387701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911044470.7A Active CN110784898B (en) 2019-10-30 2019-10-30 Network switching method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110784898B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800840B (en) * 2020-06-29 2022-10-28 RealMe重庆移动通信有限公司 Cell connection control method, device, mobile terminal and storage medium
CN111970738B (en) * 2020-08-29 2023-06-27 努比亚技术有限公司 Network switching control method, device and computer readable storage medium
CN112272394B (en) * 2020-09-21 2022-04-19 南京酷派软件技术有限公司 Cell switching method, device, storage medium and electronic equipment
CN112437472B (en) * 2020-11-17 2022-12-06 刘超峰 Network switching method, equipment and computer readable storage medium
CN112543487B (en) * 2020-12-03 2023-05-02 北京字节跳动网络技术有限公司 Control method, device, terminal and storage medium of electronic equipment
CN112437476A (en) * 2020-12-08 2021-03-02 努比亚技术有限公司 Network switching control method and device, intelligent terminal and readable storage medium
CN112616154A (en) * 2020-12-16 2021-04-06 努比亚技术有限公司 Power saving method based on 5G network, terminal and computer readable medium
CN112788691B (en) * 2021-03-03 2023-06-30 北京小米移动软件有限公司 Method, device and storage medium for controlling network connection
CN113329395A (en) * 2021-05-28 2021-08-31 展讯通信(上海)有限公司 Network selection method and device, computer readable storage medium and terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714249A (en) * 2016-12-19 2017-05-24 深圳市万普拉斯科技有限公司 Network switching method, apparatus and mobile terminal thereof

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980569A (en) * 2010-07-22 2011-02-23 展讯通信(上海)有限公司 Data service transmission method of dual-mode terminal and dual-mode terminal
US8548475B2 (en) * 2011-08-17 2013-10-01 Apple Inc. Method for optimizing power consumption in wireless devices using data rate efficiency factor
US10143018B2 (en) * 2012-06-27 2018-11-27 Google Llc Computing device with wireless network selection feature
US9838929B2 (en) * 2012-08-06 2017-12-05 Nec Corporation Radio communication system and handover control method
CN106304278A (en) * 2015-05-19 2017-01-04 中兴通讯股份有限公司 Network selecting method, device and mobile terminal
CN105142186B (en) * 2015-07-24 2018-12-11 广东欧珀移动通信有限公司 Terminal online self-adapting regulation method and device based on China Mobile network standard
CN106358255A (en) * 2016-09-18 2017-01-25 广东小天才科技有限公司 Communication system switching method and device and mobile terminal
CN107846715A (en) * 2016-09-20 2018-03-27 深圳市盛路物联通讯技术有限公司 Access point switching method and device of the Internet of Things based on transmission rate
CN106455027A (en) * 2016-10-27 2017-02-22 广东欧珀移动通信有限公司 Network standard adjustment method and mobile terminal
CN107770793A (en) * 2017-12-11 2018-03-06 广东欧珀移动通信有限公司 Method for switching network, device and equipment
CN108366403B (en) * 2018-02-02 2020-12-25 Oppo广东移动通信有限公司 Network switching method, device, terminal and storage medium
CN109743765A (en) * 2018-12-29 2019-05-10 出门问问信息科技有限公司 Data processing method, device, wearable device and computer readable storage medium
CN109379767A (en) * 2018-12-29 2019-02-22 出门问问信息科技有限公司 Method for switching network, device, wearable device and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714249A (en) * 2016-12-19 2017-05-24 深圳市万普拉斯科技有限公司 Network switching method, apparatus and mobile terminal thereof

Also Published As

Publication number Publication date
CN110784898A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN110784898B (en) Network switching method, mobile terminal and computer readable storage medium
CN110175062B (en) Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium
CN108834089B (en) SIM card switching method, mobile terminal and computer readable storage medium
CN110087287B (en) Control method and device for terminal network searching, mobile terminal and storage medium
CN112799577B (en) Method, terminal and storage medium for projecting small window
CN109890022B (en) Data transmission control method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN110365347B (en) Power amplifier control method, device and computer readable storage medium
CN110069167B (en) Touch point cleaning method, mobile terminal and computer readable storage medium
CN110049481B (en) Service indication method and related equipment
CN107124428B (en) Method, equipment and storage medium for improving VoLTE call success rate
CN112822538A (en) Screen projection display method, screen projection device, terminal and storage medium
CN114126015A (en) Power consumption control method, intelligent terminal and storage medium
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN109890072B (en) Terminal power saving control method and device, mobile terminal and readable storage medium
CN109545120B (en) Screen light sensor adjusting method, mobile terminal and computer readable storage medium
CN112954755B (en) Optimized network switching method and device and computer readable storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN112866804B (en) Screen projection self-adaption method, mobile terminal and readable storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN110191477B (en) Network search control method, terminal and computer readable storage medium
CN107517487B (en) Call control method and mobile terminal
CN107517445B (en) WLAN hotspot searching method and mobile terminal
CN107360599B (en) Intelligent wifi networking method and 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230616

Address after: 518000 1306A, Building 2, Zhuoyue Meilin Center Square (North District), No. 128, Zhongkang Road, Meidu Community, Meilin Street, Futian District, Shenzhen, Guangdong

Applicant after: Shenzhen Weichuang Lihe Technology Co.,Ltd.

Address before: 518000 6-8 / F, 10-11 / F, 6 / F, 6-10 / F, C zone, Han's innovation building, No. 9018, Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant