Disclosure of Invention
In view of the above problems, the present invention provides a network link control method, a mobile terminal and a computer storage medium, which intelligently control the on or off of a second network having a network standard higher than that of a first network from a mobile terminal side by identifying the use condition of the mobile terminal, so that the network can be turned on only when needed, and the problems of large power consumption, short use time and the like when two networks are simultaneously connected for a long time can be well solved.
One embodiment of the present invention provides a network link control method applied to a mobile terminal, where the mobile terminal supports a first network and a second network, and a network standard of the second network is higher than that of the first network, and the method includes:
when a preset condition is met, detecting whether the mobile terminal is in a data connection state currently, wherein the data connection state is based on the first network connection;
if the data connection state is achieved, judging whether the current real-time flow is larger than a preset flow threshold or judging whether the size of the data to be transmitted is larger than a preset data threshold;
if so, starting cell measurement of the second network to allow the second network to establish a link.
Further, in the above network link control method, the preset condition includes any one of the following cases:
detecting a screen-on operation; and detecting the power-on operation of the baseband chip corresponding to the second network.
Further, in the network link control method, traffic monitoring is performed after the mobile terminal is powered on or off in a flight mode, and data traffic statistics is performed according to a preset time interval; canceling flow monitoring when the mobile terminal is turned off, and starting flow monitoring when the screen-on operation is detected; canceling flow monitoring when the baseband chip is powered off, and starting flow monitoring when power-on operation is detected;
the step of judging whether the current real-time flow is greater than a preset flow threshold value comprises the following steps:
acquiring the total data flow counted at the current moment and the total data flow counted at the previous moment;
and calculating a flow difference value between the current moment and the last moment to obtain the current real-time flow, and judging the current real-time flow and a preset flow threshold value.
Further, in the above network link control method, the determining whether the size of the data to be transmitted is greater than a preset data threshold value includes:
acquiring the size of data to be transmitted according to data information of the data to be uploaded or data information which is issued by network equipment and contains the data to be downloaded;
and judging the size of the data to be transmitted and a preset data threshold value.
Further, in the above network link control method, the mobile terminal stores a second network application package configuration list in advance, and the method further includes:
and if the mobile terminal is in a data connection state, when the packet name of the current foreground application is identified to belong to the second network application packet configuration list, starting cell measurement of the second network to allow the second network to establish a link.
Further, in the above network link control method, the method further includes:
if the second network has established a link, acquiring the current signal-to-noise ratio of the first network, and acquiring the current signal-to-noise ratio and signal intensity of the second network;
if the signal-to-noise ratio of the first network is smaller than a first preset signal-to-noise ratio, the signal-to-noise ratio of the second network is larger than a second preset signal-to-noise ratio, and the signal intensity of the second network is larger than a first preset signal intensity, keeping the cell measurement starting state of the second network; otherwise, closing the cell measurement of the second network to prevent the second network from establishing the link again.
Further, in the above network link control method, the method further includes:
and when the temperature of the mobile terminal is detected to be greater than a preset temperature threshold value, if the second network establishes the link, closing the cell measurement of the second network to prevent the second network from establishing the link again.
Further, in the above network link control method, the first network is a 4G network, and the second network is a 5G network.
Yet another embodiment of the present invention provides a mobile terminal comprising a processor and a memory for storing a computer program, the processor being configured to execute the computer program to implement the network link control method described above.
Still another embodiment of the present invention provides a computer storage medium storing the computer program used in the above-described mobile terminal.
The network link control method identifies a large-flow scene by judging whether real-time flow or data to be transmitted is larger than a preset threshold value for the mobile terminal supporting two network types, and realizes the establishment control of the mobile terminal side on a second network with a higher network type by controlling the opening of cell measurement in the large-flow scene.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The embodiments described below are applicable to a mobile terminal such as a mobile phone as shown in fig. 1. Fig. 1 shows a block diagram of the mobile phone, and themobile phone 100 includes: an RF (Radio Frequency)circuit 110, amemory 120, aninput unit 130, adisplay unit 140, a photographing unit 150, anaudio circuit 160, a WiFi (wireless fidelity)module 170, aprocessor 180, and apower supply 190. Among other things, theRF circuitry 110 may be used to receive and transmit wireless signals, etc.; thememory 120 can be used for storing applications and user-related file information required for the operation of themobile phone 100. Theinput unit 130 may include keys, a touch panel, and may also include other input devices, etc. for receiving information input from a user, etc.; thedisplay unit 140 may include a display panel, and is mainly used to display information such as images and text. The shooting unit 150 mainly includes front and rear cameras and the like, and is mainly used for shooting pictures, videos and the like; theaudio circuit 160 may be connected to a speaker or the like for playing voice or the like; theWiFi module 170 is connected to a WiFi antenna, and is configured to receive and transmit WiFi signals to achieve information transmission. Theprocessor 180 is used as a control processing center of themobile phone 100, and is mainly used for enabling other units or modules to execute corresponding functions and the like. And thepower supply 190 mainly includes a battery device for supplying a required operating voltage and the like to each module or unit in thecellular phone 100.
Those skilled in the art will appreciate that the configuration of thehandset 100 shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. The technical solution of the present invention is described below by taking a mobile phone as an example, but the present invention is not limited to be applied to a mobile phone, and can also be applied to a tablet computer capable of communicating and the like.
Example 1
Referring to fig. 2, the present embodiment provides a network link control method, which can be applied to a mobile terminal, such as a mobile phone, a tablet computer with a mobile communication function, and the like. The mobile terminal supports a first network and a second network, and the network type of the second network is higher than that of the first network. For example, the first network is a 4G network and the second network may be a 5G network; alternatively, the first network may be a 5G network and the second network may be a 6G network, and so on. Generally, the first network is a default network type used by the mobile terminal, and the second network is another network simultaneously supported by the mobile terminal. Compared with the first network, the second network with higher network type is suitable for occasions with larger data flow, faster transmission speed, smaller transmission delay and the like.
As shown in fig. 2, the network link control method will be described in detail below.
Step S10, when a preset condition is satisfied, detecting whether the mobile terminal is currently in a data connection state, where the data connection state is based on the first network connection.
Illustratively, the preset condition may include, but is not limited to, any one of the following cases: detecting a screen-up operation, detecting a power-on operation of a baseband chip corresponding to the second network, and the like. For example, when a screen-up operation is detected, i.e. the mobile terminal enters a screen-up state, the detection of the data connection state will be triggered.
Or, when detecting a power-on operation of the baseband chip corresponding to the second network, that is, when the baseband chip corresponding to the second network is in an online state, the detection of the data connection state is triggered. In this embodiment, the mobile terminal includes two baseband chips for supporting two different mobile network types, where the baseband chip supporting the second network generally adopts separate power management, for example, a system setting application in the mobile terminal may be used to perform software setting to power on the baseband chip, that is, to be in an online state. Of course, the baseband chip may also adopt a power management mode for uniformly powering on the system, and the like, which is not limited herein.
It can be understood that the detection of the data connection state is triggered only when the mobile terminal is in a bright screen state or when the baseband chip corresponding to the second network is powered on, so that the purposes of saving power, reducing system resource occupation and the like can be further achieved. Taking the operation of detecting the bright screen as an example, in most cases, when the mobile terminal is in the screen-off state, the mobile terminal is usually in the standby state, that is, the non-use state, so that the link establishment of the second network by the mobile terminal in the background when the screen-off state occurs can be avoided as much as possible. For users, the problems of too fast power failure and the like can be effectively prevented.
In this embodiment, the data connection state refers to a mobile data connection state, and when the mobile data connection state is in a data connection state, data connection is allowed to be performed by using the first network and/or the second network. Wherein the data connection status is to connect data based on the first network when the second network is not connected.
Step S20, if the data connection state is detected, determine whether the current real-time traffic is greater than a preset traffic threshold or determine whether the size of the data to be transmitted is greater than a preset data threshold.
For the step S20, it can be identified whether the mobile terminal is in a scenario with large data traffic by including the above at least two ways, and then the cell measurement of the second network is allowed to be turned on in the scenario to allow the second network to establish a link, so that the mobile terminal can utilize the second network for data transmission.
It can be understood that, because the network standard of the second network is higher than that of the first network, the second network has the characteristics of faster transmission speed, larger transmission data volume and the like compared with the first network. Therefore, in a large-flow scene, when the mobile terminal sends or receives data through the second network, the transmission rate is greatly improved, the transmission time is also shortened, and the user experience can be improved.
As a possible scenario, the large data traffic scenario will be identified by judging real-time traffic. For the step S20, before determining whether the current real-time flow rate is greater than the preset flow rate threshold, the method further includes: and carrying out flow monitoring, namely carrying out flow monitoring after the mobile terminal is started or in a flight mode is closed, and carrying out data flow statistics according to a preset time interval.
In this embodiment, after the mobile terminal is powered on, the mobile terminal performs traffic monitoring to count total data traffic sent and/or received by the mobile terminal after the mobile terminal is powered on. In addition, if the mobile terminal starts the flight mode, the flow monitoring is cancelled. And after the mobile terminal closes the flight mode, clearing the flow data counted before and monitoring the flow again.
The preset time interval may be set according to actual requirements, for example, may be set to 1s, 3s, or 5s, etc. When the flow monitoring is carried out, data flow statistics is carried out once every preset time interval, so that the total data flow from the monitoring starting time to the current time of the mobile terminal is continuously accumulated. It can be understood that the real-time flow can be calculated by performing data flow statistics once per preset time interval, and then the real-time flow can be used for judging whether the mobile terminal is currently in a large-flow use scene.
Further optionally, when the screen is turned off, the flow monitoring is cancelled, and when the screen-on operation is detected, the flow monitoring is started to continue monitoring, so that background power consumption and the like can be reduced when the screen is turned off. Optionally, if the mobile terminal is performing data transmission when the screen is turned off, the traffic monitoring is not cancelled.
Further optionally, when it is detected that the baseband chip of the second network is powered off, the flow monitoring is cancelled, and when the power-on operation is detected again, the flow monitoring is started to continue monitoring, so that power consumption, occupation of system resources and the like can be reduced. It can be understood that canceling the monitoring during the screen-off or the power-off of the baseband chip corresponding to the second network means suspending the traffic monitoring operation, which can reduce the real-time occupation of system resources, and can also prolong the endurance time of the mobile terminal.
Then, as for the above step S20, the "determining whether the current real-time flow rate is greater than the preset flow rate threshold" mainly includes the following steps: acquiring the total data flow counted at the current moment and the total data flow counted at the previous moment; and calculating a flow difference value between the current moment and the last moment to obtain the current real-time flow, and judging the current real-time flow and a preset flow threshold value.
Wherein the real-time traffic is data traffic generated based on the first network. It can be understood that the total data flow counted at the current time is the same as the statistical start time of the total data flow counted at the previous time, and for example, the total data flow counted at the current time may be a time when the flow monitoring is performed since the aircraft is started, or a time when the flow monitoring is restarted after the flight mode is turned off. And the previous time and the current time are related to a preset time interval. For example, if the preset time interval is 5s, the flow difference between the current time and the previous time is the current real-time flow obtained within the 5 s.
If the current real-time flow is greater than the preset flow threshold, taking 5S as an example, assuming that the first network is 4G and the second network is 5G, if the flow difference between the current time and the previous time is greater than 10M, that is, the data flow in 5S is greater than 10M, determining that the current time is a large-flow scene, and allowing the second network 5G to be opened, namely, executing step S30; otherwise, step S40 is executed. In this embodiment, the preset traffic threshold may be set according to an average transmission rate of the first network, and the like.
As another possible case, for the step S20, the "determining whether the size of the data to be transmitted is greater than the preset data threshold" mainly includes the following steps: acquiring the size of data to be transmitted according to data information of the data to be uploaded or data information which is issued by network equipment and contains the data to be downloaded; and judging the size of the data to be transmitted and a preset data threshold value.
It can be understood that when the mobile terminal is about to download or upload a large data packet, whether the data packet is in a large flow scene can be determined according to the size of the data packet to be transmitted. For example, when 500M application package data needs to be downloaded from the network, if the preset data threshold is 200M, the network device will issue data download information including the size of the application package, and the mobile terminal will obtain the size of the application package to be transmitted from the data download information, and control to start cell measurement of the second network when determining that the application package is greater than 200M, that is, step S30. Otherwise, step S40 is executed, i.e. the off state of the cell measurement of the second network is maintained.
Step S30, cell measurements of the second network are started to allow the second network to establish a link.
Step S40, cell measurements of the second network are not turned on to prevent the second network from establishing a link.
The cell measurement of the second network refers to that the mobile terminal serving as the user equipment measures a cell in which the second network access point is located, so as to obtain cell information and send the cell information to the network side equipment, and then the network side equipment performs subsequent operations such as network configuration and network link establishment on the mobile terminal. The measurement result of the cell measurement may include, but is not limited to, the frequency of the radio frequency signal transmitted for the second network access point, the signal quality of the cell, and the like. In this embodiment, the connection control of the second network from the mobile terminal side may be implemented by controlling to turn on or off the cell measurement of the second network of the mobile terminal to allow or prevent the establishment of the second network link.
In addition to allowing the second network to establish a link in a use situation with a large data traffic, considering that some specific applications for data transmission based on the second network may be installed on the mobile terminal, if it is detected that the user needs to use the specific applications, the second network is allowed to be opened to meet the user's needs.
As shown in fig. 2, after the step S10, the method further includes a step S11 of recognizing whether the packet name of the current foreground application belongs to the second network application packet configuration list, and if so, executing a step S30 of starting cell measurement of the second network to allow the second network to establish a link.
Exemplarily, the mobile terminal stores a configuration list of application packages using the second network, i.e., an APK list in advance. The configuration of the APK list may be performed for the mobile terminal, for example, by the server. For the above step S11, if the mobile terminal is in the data connection state, when the application in the APK list is identified in the foreground application, the cell measurement of the second network is started to allow the second network to establish a link, so as to meet the requirement of the user for normal use of the second network application.
When the second network starting condition is met, the cell measurement is in a starting state, so that the second network establishes network link under the control of the network side equipment. Preferably, when the current task is completed, such as ending data transmission or exiting the second network application, the cell measurement of the second network will be closed in time to prevent the second network from establishing a link again. However, it is considered that if the signal of the first network is too weak and the signal of the second network is good, the link of the second network will be maintained at this time. As shown in FIG. 3, after the above step S30, the method further includes steps S31-S35.
In step S31, the second network has established a link.
Step S32, obtain the current snr of the first network and the current snr and signal strength of the second network.
Step S33, determine whether the snr of the first network is smaller than a first predetermined snr, the snr of the second network is larger than a second predetermined snr, and the signal strength of the second network is larger than the first predetermined signal strength.
Step S34, the on state of the cell measurement of the second network is maintained.
Step S35, cell measurements of the second network are turned off to prevent the second network from establishing a link again.
Wherein, the signal-to-noise ratio (SNR) is mainly used to represent one of the parameters of the current channel quality; the Signal strength, RSRP (Reference Signal Receiving Power), is one of the parameters representing the strength of the wireless Signal. Of course, the first network and the second network in this embodiment may also use other parameters related to the channel quality or the Signal Strength to perform the Signal condition determination, such as RSRQ (Reference Signal Received quality), RSSI (Received Signal Strength Indication), and so on.
For the step S33, if the first predetermined snr is S1 and the second predetermined snr is S2, where S1 is not greater than S2 and the first predetermined signal strength is R1, if: the SNR of the first network is less than S1, while the SNR of the second network is greater than S2 and RSRP is greater than R1, it can be determined that the first network is in a signal weak state and the second network is in a signal good state. The on state of the cell measurements of the second network will then be maintained to allow the second network to establish a link. If the preset condition is not met, the cell measurement of the second network is closed to prevent the second network from establishing the link again.
Exemplarily, the first predetermined snr and the second predetermined snr can be set with reference to a signal quality that can be accepted by the corresponding network type when transmitting data. The first predetermined signal strength may be set with reference to a lowest signal strength at which the second network can perform data transmission.
For example, if the first network is a 4G network, the second network is a 5G network, and if there are S1 ═ 5dB, S2 ═ 7dB, and R1 ═ 100dbm, when acquiring the SNR and RSRP of an LTE (Long Term Evolution) signal corresponding to the 4G network and the SNR and RSRP of an NR (New Radio) signal corresponding to the 5G network, if both satisfy: SNR of LTE signal <5dB and SNR of NR signal >7dB & RSRP > -100dbm, then continue to maintain link establishment of the second network. Otherwise, the cell measurement of the second network is closed.
It will be appreciated that if the cell measurements of the second network are kept on, this means that the mobile terminal is always allowed to make the link setup of the second network, while during the time that the link setup is allowed, the mobile terminal may remain connected to the current cell or to a neighbouring cell where other signals are better, etc. After the cell measurement of the second network is closed, the mobile terminal does not immediately disconnect the network link with the current cell, and usually waits until the network side device configures and releases the network link.
As another possible scenario, the network link control method further includes: and when the temperature of the mobile terminal is detected to be greater than a preset temperature threshold value, if the second network establishes the link, closing the cell measurement of the second network to prevent the second network from establishing the link again.
Among them, temperature is an important index affecting the performance of the mobile terminal. When two baseband chips establish connection simultaneously, the power consumption of the mobile terminal is greatly increased, so that the temperature of the terminal rises sharply, and in order to avoid affecting the normal use of the mobile terminal, if the temperature is detected to exceed a preset temperature threshold, for example, when the temperature is detected to exceed 50 ℃, and the second network is in a link established state at the moment, the cell measurement of the second network is closed to prevent the second network from establishing a link again, so that the power consumption of the system is reduced, and the purpose of reducing the temperature of the system is achieved.
As can be seen from the above description, as shown in fig. 4, if the current cell measurement is in the closed state, when the second network opening condition is satisfied, for example, it is detected that the real-time traffic is greater than the preset traffic threshold or the size of the data to be transmitted is greater than the preset data threshold, or it is recognized that the packet name of the current foreground application belongs to the second network application packet configuration list, or any one of the above-mentioned usage scenarios, such as that the signal of the first network is too weak and the signal of the second network is good, the cell measurement is switched from the closed state to the open state, and at this time, the second network establishes the network link for the first time or establishes the network link again under the control of the network side device.
As shown in fig. 5, if the current cell measurement is in an open state, when the second network open condition is not satisfied, for example, a scene of any condition that the second network can be opened, such as that the real-time traffic is not detected to be greater than the preset traffic threshold, the size of the data to be transmitted is not detected to be greater than the preset data threshold, and the packet name of the current foreground application is not identified to belong to the second network application packet configuration list, or when the system temperature is detected to be greater than the preset temperature threshold, the cell measurement is switched from the open state to the closed state, and at this time, the link establishment or re-establishment of the second network is prevented.
The network link control method provided by the embodiment of the invention is applied to a mobile terminal supporting two network systems, and realizes the establishment control of a second network with a higher network system by identifying a large-flow scene and controlling the starting of cell measurement in the large-flow scene. In addition, other use scenes of the mobile terminal can be identified, such as when the second network is opened for application, or the first network signal is weak and the second network signal is good, and the system temperature is too high, so that the second network can be opened or closed intelligently, and the second network can be opened only when the second network is needed. Compared with the existing scheme of completely controlling the second network link by the network end, the method can realize the control of the second network link at the mobile terminal side, can avoid the two network systems from simultaneously establishing the network link for a long time, further greatly reduces the power consumption of the mobile terminal, prolongs the service life of the mobile terminal, and improves the customer experience and the like.
Example 2
Referring to fig. 6, based on the network link control method inembodiment 1, this embodiment provides a networklink control device 1, where the networklink control device 1 is applied to a mobile terminal, the mobile terminal supports a first network and a second network, and a network standard of the second network is higher than that of the first network, and in this embodiment, the networklink control device 1 includes:
a data connectionstate detection module 10, configured to detect whether the mobile terminal is currently in a data connection state when a preset condition is met, where the data connection state is based on the first network connection.
And the datatraffic determination module 20 is configured to determine whether the current real-time traffic is greater than a preset traffic threshold or determine whether the size of the data to be transmitted is greater than a preset data threshold if the data is in the data connection state.
A cellmeasurement control module 30, configured to, if the cell measurement is greater than the threshold, start cell measurement of the second network to allow the second network to establish a link.
It is to be understood that the networklink control apparatus 1 described above corresponds to the network link control method ofembodiment 1. Any of the options inembodiment 1 are also applicable to this embodiment, and will not be described in detail here.
The invention also provides a mobile terminal which can comprise a smart phone, a tablet computer and the like. The mobile terminal comprises a memory and a processor, wherein the memory can be used for storing a computer program, and the processor enables the mobile terminal to execute the functions of each module in the network link control method or the network link control device by running the computer program.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 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 invention also provides a computer storage medium for storing the computer program used in the mobile terminal.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can 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 various embodiments of the present invention. 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 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, each functional module or unit in each embodiment of the present invention 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 computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. 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.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.