CN112752319A - Network switching method, device, terminal and storage medium - Google Patents
Network switching method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN112752319A CN112752319A CN201911051704.0A CN201911051704A CN112752319A CN 112752319 A CN112752319 A CN 112752319A CN 201911051704 A CN201911051704 A CN 201911051704A CN 112752319 A CN112752319 A CN 112752319A
- Authority
- CN
- China
- Prior art keywords
- network
- target application
- switching
- terminal
- foreground
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 2
- 239000000126 substance Substances 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 206010020751 Hypersensitivity Diseases 0.000 description 2
- 208000026935 allergic disease Diseases 0.000 description 2
- 230000007815 allergy Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention relates to the technical field of communication, and discloses a network switching method, a network switching device, a network switching terminal and a storage medium. The method comprises the following steps: when the applications which are stationed in the first network and run in the foreground meet preset conditions, setting network switching countdown duration for each target application running in the background; the network switching countdown duration of the target application is determined according to the attention of a user to the target application; and starting network switching countdown of each target application, and switching the terminal network from the first network to the second network when the network switching countdown of each target application is ended, wherein the network rate of the first network is higher than that of the second network. And if the target application is switched to the foreground, terminating the network switching countdown of the target application. The purpose of optimizing the power consumption of the terminal on the basis of not influencing the user experience is achieved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network switching method, an apparatus, a terminal, and a storage medium.
Background
Current mobile network communication technology has been developed to a fifth generation mobile communication network (5G), and the network rate of the 5G network has successfully reached 1 gigabit per second (1Gbps) in a 28 gigahertz (Ghz) band, in contrast, the transmission rate of current fourth generation long term evolution (4G) service is only 75Mbps, and the transmission rate of the future 5G network can reach 10Gbps, which means that a mobile phone user can complete the downloading of a high definition movie in less than one second.
However, the inventors of the present application have found that although the 5G network means an ultra-fast transmission rate, there is also a problem of significant power consumption compared to other network systems, which results in that the power consumption of the current 5G terminal using the 5G network is generally high. For this problem, no better solution exists yet.
Disclosure of Invention
The application provides a network switching method, a network switching device, a terminal and a storage medium.
To solve the above technical problem, an embodiment of the present invention provides a network switching method, including: when the applications which are stationed in the first network and run in the foreground meet preset conditions, setting network switching countdown duration for each target application running in the background; the network switching countdown duration of the target application is determined according to the attention of a user to the target application; starting network switching countdown of each target application, and switching the terminal network from a first network to a second network when the network switching countdown of each target application is finished, wherein the network rate of the first network is higher than that of the second network; wherein the network switch countdown of the target application is terminated when the target application is switched to the foreground.
An embodiment of the present invention further provides a network switching apparatus, including: the terminal comprises a setting module, a switching module and a switching module, wherein the setting module is used for setting network switching countdown duration for each target application running in a background when the terminal is anchored in a first network and the application running in a foreground meets preset conditions; the network switching countdown duration of the target application is determined according to the attention of a user to the target application; the starting module is used for starting the network switching countdown of each target application and terminating the network switching countdown of the target application when the target application is switched to the foreground; and the switching module is used for switching the terminal network from the first network to the second network when the network switching countdown of each target application is ended, wherein the network rate of the first network is higher than that of the second network.
An embodiment of the present invention further provides a terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the network handover method as described above.
Embodiments of the present invention also provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the network switching method as described above is implemented.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a flow chart of a network handover method according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a virtual module for implementing a network switching method according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a method for obtaining a user's attention to a target application according to a second embodiment of the present invention;
fig. 4 is a flow chart of a network handover method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network switching apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic configuration diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and various embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms "first," "second," and the like in the description and in the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. In the embodiments of the present invention, the terminal may be various terminal devices capable of connecting to a mobile network, such as a mobile phone, a tablet computer, etc., which are not illustrated herein.
In this embodiment, when an application that is camped on a first network and runs on a foreground meets a preset condition, setting a network switching countdown duration for each target application running on a background; the network switching countdown duration of the target application is determined according to the attention of a user to the target application; starting network switching countdown of each target application, and switching the terminal network from a first network to a second network when the network switching countdown of each target application is finished, wherein the network rate of the first network is higher than that of the second network; wherein the network switch countdown of the target application is terminated when the target application is switched to the foreground.
The present embodiment will be further explained with reference to the accompanying drawings.
As shown in fig. 1, the network switching method in this embodiment specifically includes:
step 100, stay camped on the first network.
In particular, this step is not in fact a specific action of the terminal, but represents the state in which the current mobile network of the terminal is camped on the first network. The embodiment is mainly applied to a scenario that the terminal is stationed in the first network. In a specific embodiment, the first network may be a fifth generation mobile communication network 5G network. In other embodiments, the first network may be other high-rate, high-power consuming networks.
Step 101, detecting and judging whether the terminal has an application running in a foreground currently. If the application running in the foreground exists currently, executing step 102; and when detecting that the terminal does not have the application running in the foreground currently, executing step 103.
Specifically, on the premise of step 100, it is detected and determined at a preset period whether the application currently running in the foreground meets a preset condition.
In one example, with k seconds as a preset period, reading information of all running applications, including: operating state and data rate. It will be appreciated that as k is smaller, the more sensitive it is to changes in rate, the more accurately the rate changes of the application can be monitored. However, frequent reading of the application information consumes more system resources, so in practical applications, a suitable preset period is selected to balance the monitoring accuracy and the consumption of resources, i.e., the k value can be set empirically.
When detecting that an application runs on the foreground, that is, the number of applications currently running on the foreground is not zero, indicating that a terminal user is paying attention to the application currently running on the foreground of the terminal, so as to avoid that the normal operation of the foreground application is affected by switching to a low-rate network to reduce the user experience, returning to step 100, keeping staying in the first network, and if no application currently running on the foreground exists, that is, the number of applications currently running on the foreground is zero, representing that the foreground does not have the application paid attention to by the user, and continuing to execute step 103; otherwise, step 102 is performed. If the application currently running in the foreground exists, acquiring the data rate of the application currently running in the foreground, and judging whether the data rate of the application currently running in the foreground is greater than a preset threshold rate or not so as to determine whether the application currently running in the foreground has a requirement on a high rate provided by the first network or not.
If the data rate of the application currently running in the foreground is greater than the preset threshold rate, it means that if the network is switched to the second network with a low rate, the normal running of the foreground application is affected, and the user experience is reduced, so that the terminal network is kept on the first network to ensure the user experience. If the application rate currently running in the foreground is less than the preset threshold rate, it indicates that the foreground application has no need for the high rate of the first network, and the process proceeds to step 103.
In a specific application, the preset threshold rate may be set as a maximum network rate provided by the second network for the terminal. However, the preset threshold rate may also be empirically set to a lower value than the maximum network rate provided by the second network to the terminal, so as to provide better experience for the user.
And 103, detecting and judging whether a target application exists currently or not. If the target application exists currently, executing step 104, and starting network switching countdown of each target application; if no target application exists, go to step 106.
Specifically, the target application is an application that runs in the background and requires a data rate greater than a preset threshold rate. If the terminal currently has the target application in the background, it means that the terminal currently has a demand for a high rate of the first network, and if the terminal network is directly switched to the low rate network, the operation of the target application may be affected, and at this time, it is also impossible to determine whether the user pays attention to the target application, so that it is necessary to keep the terminal network camped on the first network for a period of time for the target application to ensure the normal operation of the target application within a period of time.
And 104, setting network switching countdown duration for each target application running in the background, and starting the network switching countdown of each target application.
Specifically, in order to keep the terminal network camped on the first network for a period of time, before starting the network handover countdown of each target application, a network handover countdown duration is first set for each target application according to the user attention. The user attention can be understood as the attention of the user to the target application, and the higher the user attention means the more attention the user is to the target application. In this embodiment, the user attention may be specifically represented by the number of times that the target application is switched from the background to the foreground.
In a specific example, if the target application enters the background for the first time after being started, the network switching countdown duration may be set to a preset initial duration; if the target application does not enter the background for the first time, the network switching countdown duration can be adjusted according to the times of switching the target application from the background to the foreground. And after setting the network switching countdown duration for each target application running in the background, starting the network switching countdown of each target application. The network switching countdown is started for each target application, so that the terminal can always stay in the first network before the network switching countdown of the target application is finished, and a high network rate required by the target application is provided.
And 105, judging whether a target application is switched to a foreground in the process of countdown of each network switch. If the target application is switched to the foreground, executing step 100, and keeping camping on the first network; if no target application is switched to the foreground, step 106 is executed. Step 106, switching the terminal network from the first network to the second network.
Specifically, in the process of network switching countdown, the states of all target applications performing network switching countdown are monitored in real time, when a target application is switched from a background to a foreground, the fact that a user is currently concerned with the target application switched to the foreground is meant, and since the data rate of the target application is greater than a preset threshold rate, it is indicated that the application needs a first network with a high rate, the network switching countdown, namely the timing stop, of the target application is terminated, the situation that a terminal network is switched to a second network with a low rate and low power consumption to ensure the normal operation of the application is avoided, and meanwhile, the influence on user experience is also avoided. If no target application is switched to the foreground before the network switching countdown is overtime, it indicates that the user is not concerned with the background application program currently, and whether the background target application operates normally at the network rate required by the user has no influence on the user experience, so step 106 is executed to switch the terminal network from the first network to the second network. In this embodiment, the second network with a lower network rate and lower power consumption may be a fourth generation mobile communication network 4G.
That is, if any target application switches from the background to the foreground before the network switching countdown of the target application is finished, that is, during the network switching countdown of the target application, indicating that the user focuses on the target application, the network switching countdown of the target application is terminated. If the countdown of all the target applications in the background is overtime, it means that any one target application is not concerned by the user, and at this time, even if the network is switched to the second network with a low rate, the user experience will not be greatly influenced, so that the terminal network can be switched from the first network with a high rate to the second network with a low rate. If any target application is switched from the background to the foreground before the countdown is finished, the situation that the user is concerned about the target application is indicated, and if the network is switched to a second network with a low speed, the user experience can be influenced. Therefore, in this embodiment, when the countdown of all target applications is over, the network is switched to the second network with a low rate, so as to avoid the influence on the user experience.
In a specific implementation, after step 105 and before step 106, it may be further determined whether the terminal user performs an allergy operation, such as starting a new application with a data rate greater than a preset threshold rate, switching a background application to a foreground, starting a network sharing function, actively switching a network, and the like, and if it is determined that the terminal user does not perform the allergy operation, step 106 is performed again, and the terminal network is switched from the first network to the second network. After the terminal is switched to the second network, the sensitive operation can be continuously monitored, and before the sensitive operation is carried out, the terminal can be continuously stationed in the second network so as to reduce the power consumption of the terminal.
In a specific implementation, as shown in fig. 2, the terminal in this embodiment includes the following modules: the system comprises an application program scheduling module, a data service management module, a wireless protocol implementation module and a network optimization module, wherein the network optimization module further comprises: an application state monitoring submodule and a network switching control submodule. The application state monitoring module obtains the foreground and background states of the application currently operated by the terminal through the application program scheduling subsystem, obtains the current data rate of the application through the data service management subsystem, and the data are calculated by the network switching control module and judge whether the terminal currently meets the condition of switching to the second network according to a preset strategy. And if the condition of switching to the second network is met, sending a control instruction to the wireless protocol implementation subsystem to implement the switching of the terminal network.
It should be noted that the above examples in the present embodiment are only for easy understanding, and do not limit the technical scheme of the present invention.
Compared with the prior art, the terminal can switch the current mobile network from a first network with high power consumption and high speed, such as a 5G network, to a second network with low power consumption and low speed, such as a 4G network, according to the attention of the user to the application program with high network speed demand in the current background, so that the purpose of optimizing the power consumption of the terminal on the basis of not influencing the user experience is achieved.
A second embodiment of the present invention relates to a network switching method, and in this embodiment, how to obtain the attention of a user to a target application and how to set a network switching countdown duration of the target application according to the attention of the user to the target application are specifically defined, as shown in fig. 3, the method includes:
Specifically, an observation duration is preset, the observation duration is switched to the background from the target application for the first time and starts to count down, and in the process of observation countdown, the switching times of the target application from the background to the foreground in the observation duration are obtained in the following modes: in the process from the beginning of timing to the end of timing of the observation duration, acquiring a notification message for switching the target application from the background to the foreground, and determining the switching times of the target application from the background to the foreground according to the times of the notification message acquired in the observation duration; or reading the state information of the target application in a preset period in the observation duration, determining whether the target application is switched from the background to the foreground according to the read state information, and counting the switching times of the target application from the background to the foreground in the observation duration.
Specifically, within a preset observation duration, if the number of times that the target application is switched from the background to the foreground is more, it means that the user is frequently observing the current state of the target application, and it means that the user is very concerned with the target application; on the contrary, if the user hardly switches the target application from the background to the foreground within the preset observation duration, it indicates that the user does not pay attention to the application.
And step 203, determining the network switching countdown time length of the target application according to the attention of the user to the target application.
Specifically, the initial network switching countdown duration of the target application is preset, and in the actual use process, the initial network switching countdown duration of the target application is corrected according to the attention degree of a user to the target application, namely the switching frequency of the target application from a background to a foreground, and the corrected duration is used as the network switching countdown duration of the target application.
Further, a first preset threshold and a second preset threshold for the switching times are preset, wherein the second preset threshold is smaller than the first preset threshold. Then judging the value of the switching times, if the switching times reach a first preset threshold value, increasing a preset countdown initial time length according to a first preset adjustment step length, and taking the increased time length as a network switching countdown time length of the target application; and if the switching times are smaller than a second preset threshold, reducing the countdown initial time length according to a second preset adjustment step length, and taking the reduced time length as the network switching countdown time length of the target application.
In one implementation, an initial network switch countdown duration T is pre-set for a target applicationCAnd an observation time length TOWherein T isCIs X seconds, TOIs Z seconds. Under the general condition, Z is more than or equal to 2X and less than or equal to 3X so as to ensure that the countdown is carried out within the observation time lengthAnd restarting for many times. After starting network switch countdown for the target application, at observation time T0When the target application reaches the target application time limit, counting the switching times of the target application within the observation time length, and then comparing the switching times with a first preset threshold and a second preset threshold, wherein the first preset threshold is assumed to be 3 times, and the second preset threshold is assumed to be 1 time. If the switching times of the target application to the foreground in the observation time length are more than or equal to 3 times, the terminal judges that the attention degree of the user to the target application in the time length is higher, and therefore the preset network switching countdown time length is increased according to the first preset step length. If the number of times that the target application is switched to the foreground within the observation time length is less than 1 time, which means that the target application is not switched to the foreground, the terminal determines that the attention of the user to the target application is low within the time length, so that the preset network switching countdown time length is reduced according to the second preset step length. In practical application, if the reduced time length is less than X, the network handover countdown time length can still be counted as X. An upper limit value T is generally set for the network handover countdown durationCMAXIn which T is generally setCMAXThat is, the network switch countdown duration is dynamically adjusted between X and 2X according to the user's attention.
Assuming that the second preset threshold is 1 time, that is, if the number of times of switching the target application to the foreground within the observation duration is only 1 time or 0 time (i.e., never switching to the foreground), the terminal determines that the attention of the user to the target application is decreased within the period of time, and at this time, the preset network switching countdown duration is decreased according to the second preset step length. If the current target application enters a background running state for the first time, the current network switching countdown duration of the target application can be set as an initial value, and then the countdown duration is adjusted according to the times of switching the target application from the background to the foreground.
In an example, the first preset step length and the second preset step length are both fixed values, and may be the same or different. Assuming that the first preset step length and the second preset step length are both 5 seconds, in each correction operation of the network switching countdown time length of the target application, the observation time length is reached, and when the terminal judges that the attention degree of the current user to the target application in the observation time length is high, the network switching countdown time length is increased by 5 seconds; and when the terminal judges that the attention of the user to the target application is reduced in the period of time, the time length of network switching countdown is reduced by 5 seconds.
In another example, the first preset step length and the second preset step length for adjusting the network handover countdown may also be used to correct the network handover countdown time length of the target application according to a certain proportion of the current countdown, and assuming that the proportion is 30%, when the first observation time length arrives and the terminal determines that the current user has high interest level in the target application in the time length, the terminal may count down the network handover time length TCIncrease by 30%, i.e. adjusted TC' -1.3 Tc; when the terminal judges that the attention of the user to the target application is reduced in the period of time, the time length T for counting down the network switching is determinedCReduction to 30%, i.e. adjusted TC' -0.7 Tc. In practical application, if the adjusted T isC' less than initial network switch countdown duration X, will adjust TC' is still set to X.
In this embodiment, network switching countdown of each target application is started according to the network switching countdown duration of each target application; the target application is an application which runs in a background and has a data rate greater than a preset threshold rate; the network switching countdown duration of the target application is determined according to the attention of a user to the target application; if the network switching countdown of each target application is finished, switching the terminal network from the first network to the second network, wherein the network rate of the first network is higher than that of the second network; wherein the network switch countdown of the target application is terminated when the target application is switched to the foreground. Meanwhile, how to obtain the attention of the user to the target application is specifically limited, and how to set the network switching countdown duration of the target application according to the attention of the user to the target application.
Compared with the prior art, the method and the device have the advantages that the holding time before the terminal network is switched from the first network with high speed and high power consumption to the second network is set through the attention of the user to the target application, so that the application program with high user attention and high network speed requirement can better run, meanwhile, when the attention of the user to the application changes, the time when the terminal stays in the first network is correspondingly adjusted, and the purpose of optimizing the power consumption of the terminal on the basis of not influencing the user experience is achieved.
A third embodiment of the present invention relates to a handover method of a network. The third embodiment is substantially the same as the first embodiment, with the main differences being: in the first embodiment, the handover method of the terminal network is applicable to a terminal in any state. In this embodiment, before detecting and determining whether an application running in the foreground exists currently in the first embodiment, a decision step of determining whether to enter a subsequent network handover or not can be determined according to a current specific use state of the terminal. In addition, those skilled in the art will appreciate that the usage status of the terminal may be various and is only exemplary.
A third embodiment of the present invention relates to a method for switching a terminal network, as shown in fig. 4, including:
Specifically, the usage status of the terminal includes: a first use state and a second use state. The first use state represents that a screen of the current terminal is opened, a network sharing function is closed, and the current terminal is not in a charging state; the second use state represents that the screen of the current terminal is closed and the network sharing function is closed, and is in an uncharged state. The network sharing function includes: USB Tethering (USB network sharing) and Wi-Fi hotspot (wireless hotspot network sharing).
Specifically, when the terminal is in the second usage state, which means that the screen of the terminal is closed, it means that the user does not operate the terminal currently, and the terminal is in the standby state, it can be generally regarded that the user has no requirement for the network speed currently, so step 309 is executed to switch the terminal network from the first network to the second network, so as to reduce the power consumption of the terminal and prolong the endurance time of the terminal.
In a specific implementation, even if the terminal is in the second usage state, the terminal may be downloading or video caching, and at this time, the application executing the downloading or video caching obviously needs the first network with a high rate, and in this case, the user may add the application executing the downloading or video caching into the white list in advance to avoid that the user experience is affected by switching the network to the second network when the downloading or video caching is executed.
Specifically, when the terminal is in the first use state, it indicates that the screen of the terminal is on and network sharing or charging is not performed. When the terminal is charging, the duration time caused by high power consumption is not needed to be considered at present; when the terminal is performing network sharing, it means that there is another terminal connected to the internet through the terminal, and in this scenario, there is often a high demand for the network rate. Therefore, when the terminal is in the first usage state, it indicates that the terminal is currently in a general usage scenario, the user is operating the terminal, and the application concerned by the user may have a higher demand on the network rate, and therefore the decision step of whether to switch the application to the second network is further entered. That is, as shown in the following table
That is, the relationship between various usage states and corresponding operations of the terminal is specifically shown in the following table:
screen | Network sharing | Charging of electricity | Operation of |
Opening device | Opening device | Opening device | Holding 5G |
Opening device | Opening device | Closing device | Holding 5G |
Opening device | Closing device | Opening device | Holding 5G |
Opening device | Closing device | Closing device | Further calculating and judging whether to switch to 4G or maintain 5G |
Closing device | Opening device | Opening device | Holding 5G |
Closing device | Opening device | Closing device | Holding 5G |
Closing device | Closing device | Opening device | Holding 5G |
Closing device | Closing device | Closing device | Switching to 4G |
In a specific implementation, when the terminal is performing network sharing, the current data rate of the network sharing function may also be monitored, and if the current data rate of the network sharing function is less than the preset threshold rate, the subsequent decision step of determining whether to switch the network is also performed, so that the power consumption of the terminal may also be reduced without affecting the user experience.
In addition, other functional states of the terminal, such as a connection state of a WLAN function, may be monitored. When the terminal is connected with a WLAN signal, the maximum network rate of WLAN connection is detected, if the maximum network rate of WLAN connection is larger than the preset threshold rate, the power consumption of WLAN connection is lower than that of the first network, and therefore when the network rate of WLAN connection can meet the user requirement, the terminal network can be switched to the second network or the data network can be directly closed to achieve the purpose of reducing the power consumption.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to a network switching apparatus, as shown in fig. 5, including:
a setting module 401, configured to set a network switching countdown duration for each target application running in the background when the terminal is camped on the first network and an application running in the foreground meets a preset condition; and the network switching countdown time length of the target application is determined according to the attention of the user to the target application.
A starting module 402, configured to start network switch countdown of each target application, and terminate the network switch countdown of the target application when the target application is switched to the foreground.
The switching module 403 is configured to switch the terminal network from the first network to the second network when the network switching countdown of each target application is ended, where a network rate of the first network is higher than a network rate of the second network.
In one example, the preset conditions include: the number of the applications running in the foreground is zero, or the data rate of the applications running in the foreground is less than a preset threshold rate.
In one example, the attention of the user to the target application is obtained by the following method: detecting the switching times of the target application from the background to the foreground within a preset observation duration; and determining the attention of the user to the target application according to the switching times.
In one example, the determining, by the network switching countdown duration of the target application according to the attention of the user to the target application, includes: acquiring the switching times of the target application from a background to a foreground; if the switching times reach a first preset threshold value, increasing a preset countdown initial time length according to a first preset adjustment step length, and taking the increased time length as the network switching countdown time length of the target application; if the switching times are smaller than a second preset threshold, reducing the countdown initial time length according to a second preset adjustment step length, and taking the reduced time length as the network switching countdown time length of the target application; wherein the second preset threshold is smaller than the first preset threshold.
In one example, before setting the network switch countdown duration for each target application running in the background, the method further includes:
detecting the current use state of the terminal; if the terminal is currently in the first use state, then executing the detection to determine whether the application running on the foreground exists currently; and if the terminal is in a second use state currently, switching the terminal network from the first network to the second network.
In one example, before setting the network switching countdown duration for each target application running in the background, the method further includes: and detecting whether the target application exists currently.
In one example, the switching times of the target application from the background to the foreground is obtained by the following steps:
acquiring a notification message for switching the target application from a background to a foreground, and determining the switching times of the target application from the background to the foreground according to the acquired times of the notification message; or reading the state information of the target application in a preset period, and determining the switching times of the target application from the background to the foreground according to the read state information.
According to the embodiment, the terminal can switch the current mobile network from a first network with high power consumption and high speed, such as a 5G network, to a second network with low power consumption and low speed, such as a 4G network, according to the attention of a user to an application program with high network speed demand in the current background, so that the purpose of optimizing the power consumption of the terminal on the basis of not influencing the user experience is achieved.
A fifth embodiment of the present invention is directed to a terminal, as shown in fig. 6, including at least one processor 501; and a memory 502 communicatively coupled to the at least one processor 502; the memory 502 stores instructions executable by the at least one processor 501, and the instructions are executed by the at least one processor 501 to enable the at least one processor 501 to execute the network handover method in the first or second embodiment.
The memory 502 and the processor 501 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 501 and the memory 502 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 501 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor 501.
The processor 501 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 502 may be used to store data used by processor 501 in performing operations.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in 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.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A method for network handover, comprising:
when the applications which are stationed in the first network and run in the foreground meet preset conditions, setting network switching countdown duration for each target application running in the background; the network switching countdown duration of the target application is determined according to the attention of a user to the target application;
starting network switching countdown of each target application, and switching a terminal network from a first network to a second network when the network switching countdown of each target application is finished, wherein the network rate of the first network is higher than that of the second network;
and if the target application is switched to the foreground, terminating the network switching countdown of the target application.
2. The network handover method according to claim 1, wherein the preset condition comprises:
the number of the applications running in the foreground is zero, or the data rate of the applications running in the foreground is less than a preset threshold rate.
3. The network switching method according to claim 1, wherein the attention of the user to the target application is obtained by:
detecting the switching times of the target application from the background to the foreground within a preset observation duration;
and determining the attention of the user to the target application according to the switching times.
4. The network switching method according to claim 3, wherein the determining of the network switching countdown duration of the target application according to the attention of the user to the target application comprises:
acquiring the switching times of the target application from a background to a foreground;
if the switching times reach a first preset threshold value, increasing a preset countdown initial time length according to a first preset adjustment step length, and taking the increased time length as the network switching countdown time length of the target application;
if the switching times are smaller than a second preset threshold, reducing the countdown initial time length according to a second preset adjustment step length, and taking the reduced time length as the network switching countdown time length of the target application; wherein the second preset threshold is smaller than the first preset threshold.
5. The network switching method according to claim 2, further comprising, before setting the network switching countdown duration for each target application running in the background:
detecting the current use state of the terminal;
if the terminal is currently in a first use state, then executing the detection whether the application running on the foreground exists currently;
and if the terminal is in a second use state currently, switching the terminal network from the first network to the second network.
6. The network switching method according to claim 1, further comprising, before setting the network switching countdown duration for each target application running in the background:
detecting whether the target application exists currently;
and if the target application does not exist currently, switching the terminal network from the first network to the second network.
7. The network switching method according to claim 3 or 4, wherein the switching times of the target application from background to foreground are obtained by:
acquiring a notification message for switching the target application from a background to a foreground, and determining the switching times of the target application from the background to the foreground according to the acquired times of the notification message;
or reading the state information of the target application in a preset period, and determining the switching times of the target application from the background to the foreground according to the read state information.
8. A network switching apparatus, comprising:
the setting module is used for setting network switching countdown duration for each target application running in the background when the terminal is anchored in the first network and the application running in the foreground meets the preset condition; the network switching countdown duration of the target application is determined according to the attention of a user to the target application;
a starting module, configured to start a network switching countdown of each target application, and terminate the network switching countdown of the target application when the target application is switched to a foreground;
and the switching module is used for switching the terminal network from the first network to the second network when the network switching countdown of each target application is ended, wherein the network rate of the first network is higher than that of the second network.
9. A terminal, comprising:
at least one processor; and the number of the first and second groups,
at least one memory; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the network handover method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the network handover method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911051704.0A CN112752319A (en) | 2019-10-31 | 2019-10-31 | Network switching method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911051704.0A CN112752319A (en) | 2019-10-31 | 2019-10-31 | Network switching method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112752319A true CN112752319A (en) | 2021-05-04 |
Family
ID=75641355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911051704.0A Withdrawn CN112752319A (en) | 2019-10-31 | 2019-10-31 | Network switching method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112752319A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125739A (en) * | 2021-11-15 | 2022-03-01 | 维沃移动通信有限公司 | Network switching method and device, electronic equipment and storage medium |
CN114222340A (en) * | 2021-12-10 | 2022-03-22 | 惠州Tcl移动通信有限公司 | Network switching method and device and mobile terminal |
CN114679758A (en) * | 2022-03-08 | 2022-06-28 | 维沃移动通信有限公司 | Network switching method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103347285A (en) * | 2013-07-16 | 2013-10-09 | 福州大学 | Network type automatic switching method for mobile platform |
CN105636138A (en) * | 2015-12-31 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Network switching method, network switching device and terminal |
CN106658625A (en) * | 2017-02-15 | 2017-05-10 | 中国联合网络通信集团有限公司 | Network switching method and device |
CN107734584A (en) * | 2017-09-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | The method and apparatus of network connection switching, computer equipment, readable storage medium storing program for executing |
CN108834203A (en) * | 2018-06-29 | 2018-11-16 | Oppo(重庆)智能科技有限公司 | Method for switching network, device, terminal and storage medium |
-
2019
- 2019-10-31 CN CN201911051704.0A patent/CN112752319A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103347285A (en) * | 2013-07-16 | 2013-10-09 | 福州大学 | Network type automatic switching method for mobile platform |
CN105636138A (en) * | 2015-12-31 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Network switching method, network switching device and terminal |
CN106658625A (en) * | 2017-02-15 | 2017-05-10 | 中国联合网络通信集团有限公司 | Network switching method and device |
CN107734584A (en) * | 2017-09-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | The method and apparatus of network connection switching, computer equipment, readable storage medium storing program for executing |
CN108834203A (en) * | 2018-06-29 | 2018-11-16 | Oppo(重庆)智能科技有限公司 | Method for switching network, device, terminal and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125739A (en) * | 2021-11-15 | 2022-03-01 | 维沃移动通信有限公司 | Network switching method and device, electronic equipment and storage medium |
CN114125739B (en) * | 2021-11-15 | 2023-09-26 | 维沃移动通信有限公司 | Network switching method and device, electronic equipment and storage medium |
CN114222340A (en) * | 2021-12-10 | 2022-03-22 | 惠州Tcl移动通信有限公司 | Network switching method and device and mobile terminal |
CN114222340B (en) * | 2021-12-10 | 2024-04-09 | 惠州Tcl移动通信有限公司 | Network switching method and device and mobile terminal |
CN114679758A (en) * | 2022-03-08 | 2022-06-28 | 维沃移动通信有限公司 | Network switching method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110536342B (en) | Network mode control method, terminal and storage medium | |
KR101256293B1 (en) | System and method for heartbeat signal generation | |
CN112752319A (en) | Network switching method, device, terminal and storage medium | |
CN104424031B (en) | Method and device for controlling working frequency of processor | |
CN110300461A (en) | A kind of method for connecting network, device and terminal | |
US20120281558A1 (en) | Temperature-driven airlink selection in a multi-mode wireless device | |
EP2525620B1 (en) | Method, device and communication system for dormancy timer control | |
CN110062450B (en) | Method, device and equipment for saving energy consumption of 5G base station and readable storage medium | |
EP2898738B1 (en) | System, method, and device for minimizing uplink registration or location reports for fixed or low-mobility devices | |
CN109548167B (en) | Coverage range self-adaptive adjusting method and device, computer storage medium and equipment | |
CN106549743B (en) | Component carrier link management method and device | |
US20140328239A1 (en) | Radio base station apparatus and transition control method | |
CN104301974A (en) | Network switching method and system and terminal | |
CN112449361B (en) | Detection method, device and system | |
CN110650538B (en) | Resource, time slot format configuration and data transmission methods, devices, equipment and media | |
CN107113092A (en) | Message transmission/method of reseptance, coverage enhancement grade determination/acquisition methods and relevant device | |
WO2023246101A1 (en) | Energy-saving method, and base station and terminal device | |
CN111787582A (en) | Network switching processing method and device | |
WO2022242368A1 (en) | Network connection control method, terminal device and storage medium | |
CN116488729A (en) | Antenna control method and device, storage medium and electronic device | |
EP4054283A1 (en) | Discontinuous reception configuration method, configuration apparatus, base station, terminal, and storage medium | |
US20220400521A1 (en) | Network entity, user equipment and method | |
EP2892283A1 (en) | Radio base station apparatus, radio base station control apparatus and transition control method | |
WO2023109496A1 (en) | Resource allocation method and apparatus, and server and storage medium | |
CN113490265B (en) | Transmitting power control device and method, terminal equipment and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210504 |