CN112752318A - Network switching method and device, mobile terminal and readable storage medium - Google Patents

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

Info

Publication number
CN112752318A
CN112752318A CN201911043949.9A CN201911043949A CN112752318A CN 112752318 A CN112752318 A CN 112752318A CN 201911043949 A CN201911043949 A CN 201911043949A CN 112752318 A CN112752318 A CN 112752318A
Authority
CN
China
Prior art keywords
network
communication network
switching
mobile terminal
average
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911043949.9A
Other languages
Chinese (zh)
Other versions
CN112752318B (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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201911043949.9A priority Critical patent/CN112752318B/en
Publication of CN112752318A publication Critical patent/CN112752318A/en
Application granted granted Critical
Publication of CN112752318B publication Critical patent/CN112752318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/00837Determination of triggering parameters for hand-off
    • H04W36/008375Determination of triggering parameters for hand-off based on historical data
    • 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
    • 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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • 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

Abstract

The application provides a network switching method, a network switching device, a mobile terminal and a readable storage medium, and relates to the field of communication. According to the method and the device, the average buffer amount of the data to be scheduled cached by the mobile terminal in the preset historical time period is obtained, and the obtained average buffer amount is compared with the preset first buffer amount threshold value and the preset second buffer amount threshold value, so that the current communication network of the mobile terminal is switched into a 4G network or a 5G network according to a specific comparison result, the mobile terminal is prevented from frequently switching the communication network in the moving process like the prior art, the network switching frequency of the mobile terminal in the moving process is reduced, and the terminal power consumption of the mobile terminal is reduced.

Description

Network switching method and device, mobile terminal and readable storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a network handover method, apparatus, mobile terminal, and readable storage medium.
Background
With the continuous development of internet technology and the successful development of 5G (5-Generation, fifth Generation mobile communication technology) technology, mobile terminals (e.g., smart phones) that support both 4G (4-Generation, fourth Generation mobile communication technology) network communication functions and 5G network communication functions have been developed and will be rapidly popularized. Compared with the 4G network, the data transmission rate of the mobile terminal is higher when the mobile terminal uses the 5G network for communication, but at the same time, the power consumption of the mobile terminal is higher when the mobile terminal uses the 5G network for communication than when the mobile terminal uses the 4G network for communication.
At present, such mobile terminals implement a corresponding network communication function by accessing a communication network corresponding to a network base station to which a mobile location belongs, but because the respective building distribution conditions of the 4G base station and the 5G base station are greatly different, such mobile terminals frequently switch the currently accessed communication network during the moving process and execute corresponding signaling transmission operation, which results in excessive power consumption of the mobile terminals.
Disclosure of Invention
In view of the above, an object of the present application is to provide a network switching method, an apparatus, a mobile terminal and a readable storage medium, which can automatically switch a current communication network of the mobile terminal between a 4G network and a 5G network according to a history cache condition of data to be scheduled, so as to reduce a network switching frequency of the mobile terminal during a moving process, thereby reducing power consumption of the terminal.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a network handover method, which is applied to a mobile terminal, and the method includes:
acquiring the average buffer amount of the data to be scheduled cached by the mobile terminal in a preset historical time period;
and comparing the average buffer amount with a preset first buffer amount threshold and a preset second buffer amount threshold, and switching the current communication network of the mobile terminal between a 4G network and a 5G network according to the comparison result, wherein the first buffer amount threshold is larger than the second buffer amount threshold.
In an optional embodiment, the switching the current communication network of the mobile terminal between the 4G network and the 5G network according to the comparison result includes:
if the average buffer amount is larger than the first buffer amount threshold value, detecting whether the communication network is a 5G network or not, and switching the communication network to the 5G network when the communication network is not the 5G network;
if the average buffer amount is smaller than the second buffer amount threshold value, detecting whether the communication network is a 4G network or not, and switching the communication network to the 4G network when the communication network is not the 4G network.
In an optional implementation manner, the switching the current communication network of the mobile terminal between the 4G network and the 5G network according to the comparison result further includes:
if the average buffer amount is not smaller than the second buffer amount threshold and not larger than the first buffer amount threshold, acquiring the average uplink authorization amount corresponding to the data to be scheduled of the mobile terminal in the preset historical time period;
comparing the average uplink authorization quantity with a preset authorization quantity threshold;
when the average uplink authorization amount is smaller than the authorization amount threshold value, detecting whether the communication network is a 5G network or not, and switching the communication network to the 5G network when the communication network is not the 5G network;
and when the average uplink authorization amount is not less than the authorization amount threshold value, detecting whether the communication network is a 4G network or not, and switching the communication network to the 4G network when the communication network is not the 4G network.
In an optional implementation manner, the switching the current communication network of the mobile terminal between the 4G network and the 5G network according to the comparison result further includes:
if the average buffer amount is not smaller than the second buffer amount threshold and not larger than the first buffer amount threshold, acquiring the average uplink authorization amount corresponding to the data to be scheduled of the mobile terminal in the preset historical time period;
calculating a proportional value between the average uplink authorization amount and the average buffer storage amount, and comparing the calculated proportional value with a preset proportional threshold value;
when the calculated ratio value is smaller than the ratio threshold value, detecting whether the communication network is a 5G network or not, and switching the communication network to the 5G network when the communication network is not the 5G network;
and when the calculated ratio value is not less than the ratio threshold value, detecting whether the communication network is a 4G network or not, and switching the communication network to the 4G network when the communication network is not the 4G network.
In a second aspect, an embodiment of the present application provides a network switching apparatus, which is applied to a mobile terminal, and the apparatus includes:
the buffer storage obtaining module is used for obtaining the average buffer storage of the data to be scheduled, which is cached by the mobile terminal in a preset historical time period;
and the communication network switching module is used for comparing the average buffer amount with a preset first buffer amount threshold and a preset second buffer amount threshold, and switching the current communication network of the mobile terminal between a 4G network and a 5G network according to the comparison result, wherein the first buffer amount threshold is greater than the second buffer amount threshold.
In an optional embodiment, the communication network switching module includes:
the 5G detection switching submodule is used for detecting whether the communication network is a 5G network or not if the average buffer storage amount is larger than the first buffer storage amount threshold value, and switching the communication network to the 5G network when the communication network is not the 5G network;
and the 4G detection switching submodule is used for detecting whether the communication network is a 4G network or not if the average buffer amount is smaller than the second buffer amount threshold value, and switching the communication network to the 4G network when the communication network is not the 4G network.
In an optional embodiment, the communication network switching module further includes:
the authorization quantity obtaining sub-module is used for obtaining the average uplink authorization quantity corresponding to the data to be scheduled in the preset historical time period by the mobile terminal if the average buffer storage quantity is not smaller than the second buffer storage quantity threshold and not larger than the first buffer storage quantity threshold;
the authorization quantity comparison submodule is used for comparing the average uplink authorization quantity with a preset authorization quantity threshold;
the 5G detection switching sub-module is further configured to detect whether the communication network is a 5G network when the average uplink grant is smaller than the grant threshold, and switch the communication network to the 5G network when the average uplink grant is not the 5G network;
the 4G detection switching sub-module is further configured to detect whether the communication network is a 4G network when the average uplink grant is not less than the grant threshold, and switch the communication network to the 4G network when the communication network is not the 4G network.
In an optional embodiment, the communication network switching module further includes:
the authorization quantity obtaining sub-module is used for obtaining the average uplink authorization quantity corresponding to the data to be scheduled in the preset historical time period by the mobile terminal if the average buffer storage quantity is not smaller than the second buffer storage quantity threshold and not larger than the first buffer storage quantity threshold;
the proportion calculation comparison submodule is used for calculating a proportion value between the average uplink authorization quantity and the average buffer storage quantity and comparing the calculated proportion value with a preset proportion threshold value;
the 5G detection switching submodule is further used for detecting whether the communication network is a 5G network or not when the calculated proportion value is smaller than the proportion threshold value, and switching the communication network to the 5G network when the communication network is not the 5G network;
the 4G detection switching submodule is further configured to detect whether the communication network is a 4G network or not when the calculated ratio value is not smaller than the ratio threshold, and switch the communication network to the 4G network when the communication network is not the 4G network.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor and a memory, where the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the network handover method in any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, and when the computer program is executed, the network handover method according to any one of the foregoing embodiments is implemented.
Compared with the prior art, the method has the following beneficial effects:
according to the method and the device, the average buffer amount of the data to be scheduled cached by the mobile terminal in the preset historical time period is obtained, and the obtained average buffer amount is compared with the preset first buffer amount threshold value and the preset second buffer amount threshold value, so that the current communication network of the mobile terminal is switched into a 4G network or a 5G network according to a specific comparison result, the mobile terminal is prevented from frequently switching the communication network in the moving process like the prior art, the network switching frequency of the mobile terminal in the moving process is reduced, and the terminal power consumption of the mobile terminal is reduced.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic block diagram of a structure of a mobile terminal according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a network handover method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating one of the sub-steps included in step S220 in FIG. 2;
FIG. 4 is a second schematic flowchart illustrating the sub-steps included in step S220 in FIG. 2;
FIG. 5 is a third schematic flowchart illustrating the sub-steps included in step S220 in FIG. 2;
fig. 6 is a schematic functional block diagram of a network switching apparatus according to an embodiment of the present application;
FIG. 7 is a functional block diagram of the communication network switching module of FIG. 6;
fig. 8 is a second functional block diagram of the communication network switching module of fig. 6;
fig. 9 is a third functional block diagram of the communication network switching module in fig. 6.
Icon: 10-a mobile terminal; 11-a memory; 12-a processor; 13-a communication unit; 100-network switching means; 110-buffer amount obtaining module; 120-a communication network switching module; a 121-5G detection switching submodule; 122-4G detection switching submodule; 123-authorization quantity obtaining submodule; 124-authorization quantity comparison submodule; 125-ratio calculation comparison submodule.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, fig. 1 is a block diagram illustrating a structure of a mobile terminal 10 according to an embodiment of the present disclosure. In this embodiment, the mobile terminal 10 may simultaneously support a 4G network communication function and a 5G network communication function, and the mobile terminal 10 may automatically switch the current communication network between the 4G network and the 5G network according to a history cache condition of data to be scheduled, so as to reduce a network switching frequency of the mobile terminal 10 during a moving process and reduce terminal power consumption. The data to be scheduled is data that needs to be transmitted uplink to a currently connected network base station and is cached by the mobile terminal 10, and the network base station may be a communication base station corresponding to a 4G network or a communication base station corresponding to a 5G network. The mobile terminal 10 may be, but is not limited to, a smart phone, a tablet computer, a smart watch, and the like.
In the present embodiment, the mobile terminal 10 includes a network switching device 100, a memory 11, a processor 12 and a communication unit 13. The various elements of the memory 11, the processor 12 and the communication unit 13 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the memory 11, the processor 12 and the communication unit 13 may be electrically connected to each other through one or more communication buses or signal lines.
In this embodiment, the memory 11 may be used for storing a program, and the processor 12 may execute the program accordingly after receiving the execution instruction. The Memory 11 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
In this embodiment, the processor 12 may be an integrated circuit chip having signal processing capabilities. The Processor 12 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that implements or executes the methods, steps and logic blocks disclosed in the embodiments of the present application.
In the present embodiment, the communication unit 13 is configured to establish a communication connection between the mobile terminal 10 and another electronic device through a network, and to transceive data through the network. For example, the mobile terminal 10 establishes a communication connection with a communication base station corresponding to a 4G network or a 5G network through the communication unit 13.
In this embodiment, the network switching device 100 includes at least one software function module capable of being stored in the memory 11 in the form of software or firmware or being solidified in the operating system of the mobile terminal 10. The processor 12 may be used to execute executable modules stored in the memory 11, such as software functional modules and computer programs included in the network switching device 100.
It should be understood that the block diagram shown in fig. 1 is merely a structural component diagram of the mobile terminal 10, and that the mobile terminal 10 may include more or fewer components than those shown in fig. 1, or may have a different configuration than that shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 2, fig. 2 is a flowchart illustrating a network handover method according to an embodiment of the present disclosure. In the embodiment of the present application, the network handover method is applied to the mobile terminal 10, and specific procedures and steps of the network handover method shown in fig. 2 are described in detail below.
In step S210, an average buffer amount of the data to be scheduled, which is buffered by the mobile terminal 10 in the preset historical time period, is obtained.
In this embodiment, the duration corresponding to the preset time period may be 1 minute, 2 minutes, or 1.5 minutes, and the specific duration value may be configured differently according to requirements. The mobile terminal 10 obtains the cache data volume of the data to be scheduled, which is recorded by the mobile terminal at preset time intervals in the preset historical time period, and performs average calculation according to the data recording times in the preset historical time period for the obtained cache data volume corresponding to the preset historical time period, so as to obtain the corresponding average cache amount. The preset time interval may be 1ms, or 2ms, or 1.5ms, and the specific time interval value may be configured differently according to the requirement.
Step S220 compares the average buffer amount with a preset first buffer amount threshold and a preset second buffer amount threshold, and switches the current communication network of the mobile terminal 10 between the 4G network and the 5G network according to the comparison result.
In this embodiment, the first cache amount threshold is greater than the second cache amount threshold, and the mobile terminal 10 adjusts the current communication network to be the 4G network or the 5G network according to the numerical value of the average cache amount and the first cache amount threshold and the second cache amount threshold by comparing the obtained average cache amount with the first cache amount threshold and the second cache amount threshold, so as to avoid that the mobile terminal 10 frequently performs a communication network switching operation in the moving process as in the prior art, reduce the network switching frequency of the mobile terminal 10 in the moving process, and reduce the terminal power consumption of the mobile terminal 10.
Further, referring to fig. 3, fig. 3 is a schematic flowchart illustrating a sub-step included in step S220 in fig. 2. In this embodiment, the step of switching the current communication network of the mobile terminal 10 between the 4G network and the 5G network according to the comparison result in the step S220 may include a substep S221 and a substep S222.
And a substep S221 of detecting whether the communication network is a 5G network if the average buffer amount is larger than the first buffer amount threshold value, and switching the communication network to the 5G network if the communication network is not the 5G network.
In this embodiment, if the average buffer amount is greater than the first buffer amount threshold, it indicates that the data size of the current data to be scheduled is very large, and the 4G network cannot satisfy the uplink transmission of all the data to be scheduled, and a 5G network should be selected for uplink transmission operation. At this time, the mobile terminal 10 detects whether the current communication network is a 5G network, and switches the communication network to the 5G network when the current communication network is not the 5G network. If the current communication network is detected to be a 5G network, the current communication network may be maintained.
And a substep S222, if the average buffer amount is less than the second buffer amount threshold value, detecting whether the communication network is a 4G network, and switching the communication network to the 4G network when the communication network is not the 4G network.
In this embodiment, if the average buffer amount is smaller than the second buffer amount threshold, it indicates that the data amount of the current data to be scheduled is very small, and the 4G network can meet the uplink transmission of all the data to be scheduled without selecting the 5G network for uplink transmission operation. At this time, the mobile terminal 10 detects whether the current communication network is a 4G network, and switches the communication network to the 4G network when the current communication network is not the 4G network, so as to avoid terminal loss caused by continuously using the 5G network. If the current communication network is detected to be a 4G network, the current communication network may be maintained.
Optionally, referring to fig. 4, fig. 4 is a second schematic flowchart of the sub-steps included in step S220 in fig. 2. In an implementation manner of this embodiment, the step of switching the current communication network of the mobile terminal 10 between the 4G network and the 5G network according to the comparison result in the step S220 may further include a substep S223, a substep S224, a substep S225, and a substep S226 in addition to the substep S221 and the substep S222.
In the sub-step S223, if the average buffer amount is not less than the second buffer amount threshold and not greater than the first buffer amount threshold, the average uplink grant corresponding to the data to be scheduled in the preset historical time period of the mobile terminal 10 is obtained.
In this embodiment, when the mobile terminal 10 buffers the data to be scheduled, it needs to send a data uplink transmission request to a network base station communicatively connected thereto to obtain an uplink grant allocated by the network base station for the data to be scheduled, where an amount of grant data corresponding to the uplink grant is used to indicate an amount of data allowed to be transmitted by the network base station for the data to be scheduled. When the average buffer amount is not less than the second buffer amount threshold and not more than the first buffer amount threshold, an average uplink grant corresponding to the data to be scheduled in a preset historical time period of the mobile terminal 10 needs to be introduced, and whether a 4G network is selected as the communication network or a 5G network is selected as the communication network is determined according to the average uplink grant.
The step of obtaining the average uplink grant corresponding to the data to be scheduled in the preset historical time period by the mobile terminal 10 includes:
acquiring the corresponding uplink authorization times of the mobile terminal 10 in the preset historical time period and the authorization data volume when the uplink authorization is acquired each time;
and calculating the average value of all the obtained authorization data according to the uplink authorization times to obtain the corresponding average uplink authorization amount.
And a sub-step S224, comparing the average uplink grant amount with a preset grant amount threshold.
In this embodiment, the mobile terminal 10 determines whether to select the 4G network or the 5G network as the communication network by comparing the obtained average uplink grant with a preset grant threshold.
And a substep S225, when the average uplink authorization amount is smaller than the authorization amount threshold value, detecting whether the communication network is a 5G network, and switching the communication network to the 5G network when the communication network is not the 5G network.
In this embodiment, when the obtained average uplink grant is smaller than the grant threshold, it indicates that the grant data amount of the uplink grant allocated in the 4G network cannot satisfy the uplink transmission of all the data to be scheduled, and the 5G network should be selected for uplink transmission operation. At this time, the mobile terminal 10 detects whether the current communication network is a 5G network, and switches the communication network to the 5G network when the current communication network is not the 5G network. If the current communication network is detected to be a 5G network, the current communication network may be maintained.
And a substep S226, when the average uplink authorization amount is not less than the authorization amount threshold value, detecting whether the communication network is a 4G network, and switching the communication network to the 4G network when the communication network is not the 4G network.
In this embodiment, when the obtained average uplink grant is not less than the grant threshold, it indicates that the grant data amount of the uplink grant allocated in the 4G network can satisfy the uplink transmission of all the data to be scheduled, and the 5G network does not need to be selected for the uplink transmission operation. At this time, the mobile terminal 10 detects whether the current communication network is a 4G network, and switches the communication network to the 4G network when the current communication network is not the 4G network, so as to avoid terminal loss caused by continuously using the 5G network. If the current communication network is detected to be a 4G network, the current communication network may be maintained.
Optionally, referring to fig. 5, fig. 5 is a third schematic flowchart illustrating sub-steps included in step S220 in fig. 2. In another implementation manner of this embodiment, the step of switching the communication network of the mobile terminal 10 between the 4G network and the 5G network according to the comparison result in the step S220 may further include a substep S223, a substep S227, a substep S228, and a substep S229 in addition to the substep S221 and the substep S222.
In the sub-step S223, if the average buffer amount is not less than the second buffer amount threshold and not greater than the first buffer amount threshold, the average uplink grant corresponding to the data to be scheduled in the preset historical time period of the mobile terminal 10 is obtained.
And a substep S227 of calculating a proportional value between the average uplink authorization amount and the average buffer storage amount, and comparing the calculated proportional value with a preset proportional threshold value.
In this embodiment, the mobile terminal 10 obtains the corresponding proportional value by performing ratio operation on the obtained average uplink grant and the average buffer amount, and compares the obtained proportional value with a preset proportional threshold value to determine whether to select a 4G network or a 5G network as the communication network.
And a substep S228 of detecting whether the communication network is a 5G network or not when the calculated ratio value is smaller than the ratio threshold value, and switching the communication network to the 5G network when the communication network is not the 5G network.
In this embodiment, when the obtained ratio value is smaller than the ratio threshold, it indicates that the granted data amount of the uplink grant allocated in the 4G network cannot satisfy the uplink transmission of all the data to be scheduled, and the 5G network should be selected to perform the uplink transmission operation. At this time, the mobile terminal 10 detects whether the current communication network is a 5G network, and switches the communication network to the 5G network when the current communication network is not the 5G network. If the current communication network is detected to be a 5G network, the current communication network may be maintained.
And a substep S229, when the calculated ratio value is not less than the ratio threshold value, detecting whether the communication network is a 4G network, and switching the communication network to the 4G network if the communication network is not the 4G network.
In this embodiment, when the obtained ratio value is not less than the ratio threshold, it indicates that the granted data amount of the uplink grant allocated in the 4G network can satisfy the uplink transmission of all the data to be scheduled, and the 5G network does not need to be selected for the uplink transmission operation. At this time, the mobile terminal 10 detects whether the current communication network is a 4G network, and switches the communication network to the 4G network when the current communication network is not the 4G network, so as to avoid terminal loss caused by continuously using the 5G network. If the current communication network is detected to be a 4G network, the current communication network may be maintained.
In the embodiment of the present application, the mobile terminal 10 obtains the average buffer amount of the data to be scheduled, which is cached in the preset historical time period by itself, and compares the obtained average buffer amount with the preset first buffer amount threshold and the second buffer amount threshold, so as to switch the current communication network to the 4G network or the 5G network according to the specific comparison result, thereby avoiding frequent communication network switching operation in the moving process as in the prior art, reducing the network switching frequency in the moving process, and reducing the terminal power consumption of itself.
Referring to fig. 6, fig. 6 is a functional module schematic diagram of a network switching apparatus 100 according to an embodiment of the present disclosure. In the embodiment of the present application, the network switching apparatus 100 includes an amount buffer acquiring module 110 and a communication network switching module 120.
The buffer amount obtaining module 110 is configured to obtain an average buffer amount of the data to be scheduled, which is cached by the mobile terminal 10 in a preset historical time period.
The communication network switching module 120 is configured to compare the average buffer amount with a preset first buffer amount threshold and a preset second buffer amount threshold, and switch the current communication network of the mobile terminal 10 between the 4G network and the 5G network according to the comparison result, where the first buffer amount threshold is greater than the second buffer amount threshold.
Optionally, referring to fig. 7, fig. 7 is a functional block diagram of the communication network switching module 120 in fig. 6. In this embodiment, the communication network switching module 120 includes a 5G detection switching sub-module 121 and a 4G detection switching sub-module 122.
The 5G detection switching submodule 121 is configured to detect whether the communication network is a 5G network or not if the average buffer amount is greater than the first buffer amount threshold, and switch the communication network to the 5G network if the communication network is not the 5G network.
The 4G detection switching sub-module 122 is configured to detect whether the communication network is a 4G network if the average buffer amount is smaller than the second buffer amount threshold, and switch the communication network to the 4G network if the communication network is not the 4G network.
Optionally, referring to fig. 8, fig. 8 is a second functional module schematic diagram of the communication network switching module 120 in fig. 6. In an implementation manner of this embodiment, the communication network switching module 120 includes, in addition to the 5G detection switching sub-module 121 and the 4G detection switching sub-module 122, an authorization quantity obtaining sub-module 123 and an authorization quantity comparing sub-module 124.
The authorization amount obtaining sub-module 123 is configured to obtain an average uplink authorization amount corresponding to the data to be scheduled in a preset historical time period by the mobile terminal 10 if the average buffer amount is not less than the second buffer amount threshold and not greater than the first buffer amount threshold.
The authorization amount comparison submodule 124 is configured to compare the average uplink authorization amount with a preset authorization amount threshold.
The 5G detection switching sub-module 121 is further configured to detect whether the communication network is a 5G network when the average uplink grant is smaller than the grant threshold, and switch the communication network to the 5G network when the average uplink grant is not the 5G network.
The 4G detection switching sub-module 122 is further configured to detect whether the communication network is a 4G network when the average uplink grant is not less than the grant threshold, and switch the communication network to the 4G network when the communication network is not the 4G network.
Optionally, referring to fig. 9, fig. 9 is a third functional module schematic diagram of the communication network switching module 120 in fig. 6. In another implementation manner of this embodiment, the communication network switching module 120 includes, in addition to the 5G detection switching submodule 121 and the 4G detection switching submodule 122, an authorized amount obtaining submodule 123 and a ratio calculation comparing submodule 125.
The authorization amount obtaining sub-module 123 is configured to obtain an average uplink authorization amount corresponding to the data to be scheduled in a preset historical time period by the mobile terminal 10 if the average buffer amount is not less than the second buffer amount threshold and not greater than the first buffer amount threshold.
The ratio calculation and comparison submodule 125 is configured to calculate a ratio value between the average uplink authorization amount and the average buffer amount, and compare the calculated ratio value with a preset ratio threshold.
The 5G detection switching submodule 121 is further configured to detect whether the communication network is a 5G network when the calculated ratio value is smaller than the ratio threshold, and switch the communication network to the 5G network when the communication network is not the 5G network.
The 4G detection switching sub-module 122 is further configured to detect whether the communication network is a 4G network when the calculated ratio value is not less than the ratio threshold, and switch the communication network to the 4G network when the communication network is not the 4G network.
It should be noted that the basic principle and the generated technical effect of the network switching apparatus 100 provided in the present embodiment are the same as those of the network switching method described above, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments for the network switching method.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, in the network switching method, the network switching device, the mobile terminal and the readable storage medium provided by the application, the application obtains the average buffer amount of the data to be scheduled, which is cached by the mobile terminal in the preset historical time period, and compares the obtained average buffer amount with the preset first buffer amount threshold and the second buffer amount threshold, so as to switch the current communication network of the mobile terminal to the 4G network or the 5G network according to the specific comparison result, thereby preventing the mobile terminal from frequently performing the communication network switching operation in the moving process as in the prior art, reducing the network switching frequency of the mobile terminal in the moving process, and reducing the terminal power consumption of the mobile terminal.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A network switching method is applied to a mobile terminal, and comprises the following steps:
acquiring the average buffer amount of the data to be scheduled cached by the mobile terminal in a preset historical time period;
and comparing the average buffer amount with a preset first buffer amount threshold and a preset second buffer amount threshold, and switching the current communication network of the mobile terminal between a 4G network and a 5G network according to the comparison result, wherein the first buffer amount threshold is larger than the second buffer amount threshold.
2. The method according to claim 1, wherein the switching the current communication network of the mobile terminal between the 4G network and the 5G network according to the comparison result comprises:
if the average buffer amount is larger than the first buffer amount threshold value, detecting whether the communication network is a 5G network or not, and switching the communication network to the 5G network when the communication network is not the 5G network;
if the average buffer amount is smaller than the second buffer amount threshold value, detecting whether the communication network is a 4G network or not, and switching the communication network to the 4G network when the communication network is not the 4G network.
3. The method according to claim 2, wherein the switching the current communication network of the mobile terminal between the 4G network and the 5G network according to the comparison result further comprises:
if the average buffer amount is not smaller than the second buffer amount threshold and not larger than the first buffer amount threshold, acquiring the average uplink authorization amount corresponding to the data to be scheduled of the mobile terminal in the preset historical time period;
comparing the average uplink authorization quantity with a preset authorization quantity threshold;
when the average uplink authorization amount is smaller than the authorization amount threshold value, detecting whether the communication network is a 5G network or not, and switching the communication network to the 5G network when the communication network is not the 5G network;
and when the average uplink authorization amount is not less than the authorization amount threshold value, detecting whether the communication network is a 4G network or not, and switching the communication network to the 4G network when the communication network is not the 4G network.
4. The method according to claim 2, wherein the switching the current communication network of the mobile terminal between the 4G network and the 5G network according to the comparison result further comprises:
if the average buffer amount is not smaller than the second buffer amount threshold and not larger than the first buffer amount threshold, acquiring the average uplink authorization amount corresponding to the data to be scheduled of the mobile terminal in the preset historical time period;
calculating a proportional value between the average uplink authorization amount and the average buffer storage amount, and comparing the calculated proportional value with a preset proportional threshold value;
when the calculated ratio value is smaller than the ratio threshold value, detecting whether the communication network is a 5G network or not, and switching the communication network to the 5G network when the communication network is not the 5G network;
and when the calculated ratio value is not less than the ratio threshold value, detecting whether the communication network is a 4G network or not, and switching the communication network to the 4G network when the communication network is not the 4G network.
5. A network switching apparatus, applied to a mobile terminal, the apparatus comprising:
the buffer storage obtaining module is used for obtaining the average buffer storage of the data to be scheduled, which is cached by the mobile terminal in a preset historical time period;
and the communication network switching module is used for comparing the average buffer amount with a preset first buffer amount threshold and a preset second buffer amount threshold, and switching the current communication network of the mobile terminal between a 4G network and a 5G network according to the comparison result, wherein the first buffer amount threshold is greater than the second buffer amount threshold.
6. The apparatus of claim 5, wherein the communication network switching module comprises:
the 5G detection switching submodule is used for detecting whether the communication network is a 5G network or not if the average buffer storage amount is larger than the first buffer storage amount threshold value, and switching the communication network to the 5G network when the communication network is not the 5G network;
and the 4G detection switching submodule is used for detecting whether the communication network is a 4G network or not if the average buffer amount is smaller than the second buffer amount threshold value, and switching the communication network to the 4G network when the communication network is not the 4G network.
7. The apparatus of claim 6, wherein the communication network switching module further comprises:
the authorization quantity obtaining sub-module is used for obtaining the average uplink authorization quantity corresponding to the data to be scheduled in the preset historical time period by the mobile terminal if the average buffer storage quantity is not smaller than the second buffer storage quantity threshold and not larger than the first buffer storage quantity threshold;
the authorization quantity comparison submodule is used for comparing the average uplink authorization quantity with a preset authorization quantity threshold;
the 5G detection switching sub-module is further configured to detect whether the communication network is a 5G network when the average uplink grant is smaller than the grant threshold, and switch the communication network to the 5G network when the average uplink grant is not the 5G network;
the 4G detection switching sub-module is further configured to detect whether the communication network is a 4G network when the average uplink grant is not less than the grant threshold, and switch the communication network to the 4G network when the communication network is not the 4G network.
8. The apparatus of claim 6, wherein the communication network switching module further comprises:
the authorization quantity obtaining sub-module is used for obtaining the average uplink authorization quantity corresponding to the data to be scheduled in the preset historical time period by the mobile terminal if the average buffer storage quantity is not smaller than the second buffer storage quantity threshold and not larger than the first buffer storage quantity threshold;
the proportion calculation comparison submodule is used for calculating a proportion value between the average uplink authorization quantity and the average buffer storage quantity and comparing the calculated proportion value with a preset proportion threshold value;
the 5G detection switching submodule is further used for detecting whether the communication network is a 5G network or not when the calculated proportion value is smaller than the proportion threshold value, and switching the communication network to the 5G network when the communication network is not the 5G network;
the 4G detection switching submodule is further configured to detect whether the communication network is a 4G network or not when the calculated ratio value is not smaller than the ratio threshold, and switch the communication network to the 4G network when the communication network is not the 4G network.
9. A mobile terminal comprising a processor and a memory, the memory storing machine executable instructions executable by the processor to implement the network handover method of any of claims 1 to 4.
10. A readable storage medium having stored thereon a computer program, wherein the computer program, when executed, implements the network handover method of any one of claims 1-4.
CN201911043949.9A 2019-10-30 2019-10-30 Network switching method and device, mobile terminal and readable storage medium Active CN112752318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911043949.9A CN112752318B (en) 2019-10-30 2019-10-30 Network switching method and device, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911043949.9A CN112752318B (en) 2019-10-30 2019-10-30 Network switching method and device, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN112752318A true CN112752318A (en) 2021-05-04
CN112752318B CN112752318B (en) 2023-08-22

Family

ID=75640456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911043949.9A Active CN112752318B (en) 2019-10-30 2019-10-30 Network switching method and device, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN112752318B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015143863A1 (en) * 2014-03-26 2015-10-01 中兴通讯股份有限公司 Flow-based network switching method and apparatus and terminal
CN105072645A (en) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 Terminal Internet self-adaptive adjusting method based on China Telecom network type and device
CN105142186A (en) * 2015-07-24 2015-12-09 广东欧珀移动通信有限公司 Method and device for self-adaptively adjusting Internet access of terminal based on China mobile network type
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
US20190124574A1 (en) * 2016-09-07 2019-04-25 Guangdong Oppo Mobile Telecommunications Corp. Ltd. Method and apparatus for determining state of terminal device
WO2019179204A1 (en) * 2018-03-23 2019-09-26 上海连尚网络科技有限公司 Data transmission method and device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015143863A1 (en) * 2014-03-26 2015-10-01 中兴通讯股份有限公司 Flow-based network switching method and apparatus and terminal
CN105072645A (en) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 Terminal Internet self-adaptive adjusting method based on China Telecom network type and device
CN105142186A (en) * 2015-07-24 2015-12-09 广东欧珀移动通信有限公司 Method and device for self-adaptively adjusting Internet access of terminal based on China mobile network type
US20190124574A1 (en) * 2016-09-07 2019-04-25 Guangdong Oppo Mobile Telecommunications Corp. Ltd. Method and apparatus for determining state of terminal device
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
WO2019179204A1 (en) * 2018-03-23 2019-09-26 上海连尚网络科技有限公司 Data transmission method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN112752318B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN104424031B (en) Method and device for controlling working frequency of processor
CN109376062B (en) Network state prompting method and related device
CN103686663A (en) Network flow monitoring method and device
CN111078446A (en) Fault information acquisition method and device, electronic equipment and storage medium
CN104050039A (en) Method and device for having control over multimedia playing
CN109462699A (en) The control method of the Doze mode of mobile terminal
CN111479016B (en) Terminal use duration reminding method and device, terminal and storage medium
CN111669799A (en) Network connection method and device and electronic equipment
CN112333763A (en) Network selection method and device
CN115328974A (en) Data real-time detection method, device, equipment and readable storage medium
CN111132132A (en) Traffic management method and device and terminal equipment
CN107979843B (en) WiFi hotspot connection processing method, device and medium for terminal
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN112752318A (en) Network switching method and device, mobile terminal and readable storage medium
CN110868347A (en) Message prompting method, device and system
CN113329436A (en) Connection control method, terminal and storage medium
CN111654899A (en) Wearable device control method and device, electronic device and storage medium
CN104298548A (en) Information processing method and electronic device
CN109218330B (en) Method for managing IMS registration, electronic device and computer readable storage medium
CN111338905A (en) Application node data processing method and device
CN114175748A (en) Communication frequency adjusting method and device, electronic equipment and storage medium
CN104156052A (en) Method for managing real-time desktop clock
CN111182526A (en) Data updating method, mobile terminal and computer storage medium
CN104812033A (en) Terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant