Network frequency band switching method and device, terminal and storage medium
By detecting the terminal usage scenario and switching to the target network frequency band with lower power consumption, the problem of terminal equipment in the prior art consumption is solved, and more efficient resource utilization and network stability are achieved.
Patent Information
- Application Number
- CN202311532772.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2025-05-16
AI Technical Summary
When improving the performance of communication networks, the prior art ignores the power consumption differences of terminal devices in different network frequency bands, resulting in large power consumption of devices during communication.
By detecting whether the current usage scenario of the terminal belongs to a preset scenario, and determining the target network frequency band with lower power consumption based on this scenario, intelligent switching of the network frequency band is achieved.
It reduces the power consumption of terminal devices during communication, reduces meaningless network frequency band switching, saves the resources of terminal devices, and improves the network stability of terminal access.
Smart Images

Figure CN120018219A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a network frequency band switching method and device, a terminal and a storage medium. Background Art
[0002] In recent years, with the rapid development of communication technology, users have been provided with communication networks with fast communication speed and high quality, such as the 4th generation mobile communication networks (4G) and the 5th generation mobile communication networks (5G). Usually, terminals can access communication networks through different network frequency bands to achieve network communication. How to improve the performance of network communication has always attracted much attention. Summary of the invention
[0003] The present disclosure provides a network frequency band switching method and device, a terminal and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a network frequency band switching method is provided, including:
[0005] Detect whether the current usage scenario of the terminal belongs to the preset scenario;
[0006] In response to the current usage scenario belonging to the preset scenario, determining a target network frequency band based on the current usage scenario; wherein the power consumption of the target network frequency band is less than the power consumption of the current network frequency band of the terminal;
[0007] Switching the network frequency band of the terminal to the target network frequency band.
[0008] In some embodiments, the detecting whether the current usage scenario of the terminal belongs to a preset scenario includes:
[0009] Detecting a change in the location of the terminal and the stability of the network of the terminal;
[0010] Detecting whether the application currently running on the terminal is a preset application;
[0011] In response to the terminal's location change being less than a preset location change threshold, the terminal's network stability being greater than a preset stability level, and the application currently running on the terminal belonging to the preset application, it is determined that the terminal's current usage scenario belongs to the preset scenario.
[0012] In some embodiments, in response to the current usage scenario belonging to the preset scenario, determining the target network frequency band based on the current usage scenario includes:
[0013] In response to the terminal's current usage scenario including multiple scenarios among the preset scenarios, the target network frequency band is determined based on a target scenario whose priority among the multiple scenarios meets a preset first priority condition; wherein the priority represents the importance of the scenario.
[0014] In some embodiments, determining the target network frequency band based on the current usage scenario includes:
[0015] Based on the current usage scenario, determine a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario;
[0016] Among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is smaller than the first historical power consumption value is determined as the target network frequency band.
[0017] In some embodiments, each network frequency band associated with the usage scenario is correspondingly set with a priority, wherein network frequency bands with different second historical power consumption values have different priorities;
[0018] The determining, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is smaller than the first historical power consumption value as the target network frequency band includes:
[0019] Among the network frequency bands associated with the usage scenario, a network frequency band whose priority satisfies a preset second priority condition and whose second historical power consumption value is less than the first historical power consumption value is determined as the target network frequency band.
[0020] In some embodiments, determining, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is less than the first historical power consumption value as the target network frequency band includes:
[0021] Among the network frequency bands associated with the usage scenario, a network frequency band whose current network quality meets a preset quality condition and whose second historical power consumption value is less than the first historical power consumption value is determined as the target network frequency band.
[0022] In some embodiments, determining, based on the current usage scenario, a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario includes:
[0023] Based on the pre-stored mapping relationship associated with the current usage scenario, determine the first historical power consumption value corresponding to the current network frequency band of the terminal and the second historical power consumption value of each network frequency band associated with the usage scenario; wherein the mapping relationship includes a mapping relationship between network frequency bands and power consumption values.
[0024] In some embodiments, the method further comprises:
[0025] During the historical use of the terminal, determining a network frequency band in which the terminal operates in the usage scenario and a power consumption value within the network frequency band;
[0026] In response to the difference between the power consumption value of the terminal within the network frequency band and the preset power consumption value corresponding to the usage scenario being less than a preset difference threshold, the mapping relationship associated with the usage scenario is generated based on the network frequency band and the power consumption value corresponding to the network frequency band.
[0027] According to a second aspect of an embodiment of the present disclosure, a network frequency band switching device is provided, including:
[0028] A detection module, used to detect whether the current usage scenario of the terminal belongs to a preset scenario;
[0029] A determination module, configured to determine a target network frequency band based on the current usage scenario in response to the current usage scenario belonging to the preset scenario; wherein the power consumption of the target network frequency band is less than the power consumption of the current network frequency band of the terminal;
[0030] The switching module is used to switch the network frequency band of the terminal to the target network frequency band.
[0031] In some embodiments, the detection module is also used to detect the location change of the terminal and the stability of the network of the terminal; detect whether the application currently running on the terminal belongs to a preset application; in response to the location change of the terminal being less than a preset location change threshold, the stability of the network of the terminal being greater than a preset stability level, and the application currently running on the terminal belonging to the preset application, determine that the current usage scenario of the terminal belongs to the preset scenario.
[0032] In some embodiments, the determination module is also used to determine the target network frequency band in response to the current usage scenario of the terminal including multiple scenarios in the preset scenarios, based on the target scenario whose priority meets the preset first priority condition in the multiple scenarios; wherein the priority represents the importance of the scenario.
[0033] In some embodiments, the determination module is also used to determine, based on the current usage scenario, a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario; and determine, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is less than the first historical power consumption value as the target network frequency band.
[0034] In some embodiments, each network frequency band associated with the usage scenario is set with a corresponding priority, wherein network frequency bands with different second historical power consumption values have different priorities; the determination module is also used to determine, among the network frequency bands associated with the usage scenario, a network frequency band whose priority satisfies a preset second priority condition and whose second historical power consumption value is less than the first historical power consumption value as the target network frequency band.
[0035] In some embodiments, the determination module is also used to determine, as the target network frequency band, a network frequency band among the network frequency bands associated with the usage scenario, whose current network quality meets a preset quality condition and whose second historical power consumption value is less than the first historical power consumption value.
[0036] In some embodiments, the determination module is also used to determine the first historical power consumption value corresponding to the current network frequency band of the terminal and the second historical power consumption value of each network frequency band associated with the usage scenario based on a pre-stored mapping relationship associated with the current usage scenario; wherein the mapping relationship includes a mapping relationship between network frequency bands and power consumption values.
[0037] In some embodiments, the determination module is further used to determine the network frequency band of the terminal and the power consumption value within the network frequency band when the terminal is running in the usage scenario during the historical use of the terminal;
[0038] In response to the difference between the power consumption value of the terminal within the network frequency band and the preset power consumption value corresponding to the usage scenario being less than a preset difference threshold, the mapping relationship associated with the usage scenario is generated based on the network frequency band and the power consumption value corresponding to the network frequency band.
[0039] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, including:
[0040] processor;
[0041] a memory for storing processor-executable instructions;
[0042] The processor is configured to execute the network frequency band switching method as described in the first aspect above.
[0043] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, including:
[0044] When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute the network frequency band switching method as described in the first aspect above.
[0045] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0046] In the embodiments of the present disclosure, on the one hand, attention is paid to power consumption factors other than network speed and quality under network frequency bands, and the network frequency band of the current usage scenario is switched to a target network frequency band with lower power consumption, which is beneficial to reducing the power consumption of the terminal device during the communication process; on the other hand, the terminal determines and switches the target network frequency band based on the preset scenario, which reduces meaningless network frequency band switching, helps save the resources of the terminal device, and improves the stability of the network to which the terminal accesses.
[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0049] Figure 1 This is a network frequency band switching method process shown in the embodiment of the present disclosure Figure 1 .
[0050] Figure 2 This is a network frequency band switching method process shown in the embodiment of the present disclosure Figure 2 .
[0051] Figure 3 This is a network frequency band switching method process shown in the embodiment of the present disclosure Figure 3 .
[0052] Figure 4 The figure is a diagram of a network frequency band switching device according to an exemplary embodiment.
[0053] Figure 5 is a block diagram of a terminal device 800 according to an exemplary embodiment. DETAILED DESCRIPTION
[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0055] Figure 1 This is a network frequency band switching method process shown in the embodiment of the present disclosure Figure 1 ,like Figure 1 As shown, the network frequency band switching method includes the following steps:
[0056] S11, detecting whether the current usage scenario of the terminal belongs to a preset scenario;
[0057] S12. In response to the current usage scenario belonging to the preset scenario, determining a target network frequency band based on the current usage scenario; wherein the power consumption of the target network frequency band is less than the power consumption of the current network frequency band of the terminal;
[0058] S13: Switch the network frequency band of the terminal to the target network frequency band.
[0059] In the embodiments of the present disclosure, the execution subject is a terminal that can access various communication networks (such as 4G, 5G networks) to realize communication functions such as calls or software applications, such as: User Equipment (UE), mobile devices, cellular phones, personal digital assistants (PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.; the execution subject can also be other electronic devices. If the execution subject is other electronic devices, the other electronic devices can establish a communication connection with the terminal, obtain the current usage scenario of the terminal, and determine the target network frequency band information that the terminal can switch to according to the current usage scenario of the terminal, and send the target network frequency band information to the terminal so that the terminal can switch the network to the target network frequency band for communication. In some possible implementations, the network frequency band switching method can be implemented by a processor calling a computer-readable instruction stored in a memory. The following is an example of the execution subject being a terminal.
[0060] In step S11, the current usage scenario of the terminal may include the usage scenario of the terminal in terms of geographical location, such as the user using the terminal indoors, in a park, or on a highway; the current usage scenario of the terminal may also be the usage scenario of the terminal in terms of communication status, such as the communication status when the user uses the terminal is relatively stable, or the communication status is poor. The current usage scenario of the terminal may also include the usage scenario of the application software (Application, App) in the terminal, for example, the user is using a voice call App, a short video App, or an office App. In the disclosed embodiment, the terminal may determine the current usage scenario of the terminal based on one or more of the detected terminal usage location information, communication status information, and App usage information.
[0061] In the embodiments of the present disclosure, the usage scenarios can be divided into static usage scenarios and dynamic usage scenarios, wherein the usage scenarios in which the terminal's position change is less than a preset position change threshold and / or the network's stability is greater than a preset stability level can be identified as static usage scenarios; and the usage scenarios in which the position change is greater than or equal to the preset position change threshold and / or the network's stability is less than or equal to the preset stability level are called dynamic usage scenarios. In static or dynamic usage scenarios, the terminal can run any or predetermined applications.
[0062] Generally, if the terminal switches the network frequency band in a dynamic scenario, the unstable network before the switch may cause poor communication quality and even extra power consumption. In this regard, in the embodiment of the present disclosure, the terminal can determine and switch the target network frequency band based on the static usage scenario to reduce the occurrence of poor communication quality and reduce the generation of extra terminal power consumption.
[0063] In some embodiments, the preset scenario is the aforementioned static usage scenario; in other embodiments, the preset scenario may also include a scenario in which the terminal runs a predetermined application under the static usage scenario.
[0064] In step S12, when the current usage scenario of the terminal belongs to the preset scenario, the terminal determines a target frequency band whose power consumption is less than the power consumption of the current network frequency band of the terminal based on the current usage scenario, so as to switch the network frequency band of the terminal to the target network frequency band in step S13.
[0065] Taking the running of a predetermined application as an example, one or more applications can be run simultaneously in the terminal. In some embodiments, if the terminal is in a single scenario of running an application in a static scenario, the terminal can determine the target network frequency band according to the power consumption value corresponding to the current network frequency band and the power consumption value of at least one other network frequency band associated with the usage scenario. For example, when the terminal runs a voice call application while the terminal position remains unchanged, the terminal can obtain the power consumption value under the current network frequency band and the power consumption values corresponding to other network frequency bands of the terminal in the voice call scenario, and determine the network frequency band whose power consumption value among other network frequency bands is less than the power consumption value of the current network frequency band as the target network frequency band, for example, determining the smallest network frequency band as the target network frequency band.
[0066] In other embodiments, if the terminal is in a composite scenario in which multiple applications are running in a static scenario, the terminal may first select a target scenario, and then determine the target network frequency band based on the power consumption value corresponding to the current network frequency band and the power consumption value of at least one other network frequency band associated with the target scenario. Among them, the target scenario can be determined based on the priority of the usage scenario. Usually, the usage scenario with a higher degree of importance can be determined as the target scenario. When the geographical location of the terminal and the degree of network stability are consistent, the priority of the usage scenario can be divided according to the importance of the application. For example, when a user uses the Douyin App while making a voice call through the terminal, the terminal can select a more important voice call scenario as the target scenario. After determining the target scenario, the terminal will obtain the power consumption value under the current network frequency band, as well as the power consumption values corresponding to other network frequency bands of the terminal in the voice call scenario, and determine the network frequency band in other network frequency bands whose power consumption value is less than the power consumption value of the current network frequency band as the target network frequency band.
[0067] In some embodiments, when the terminal determines the power consumption value corresponding to the current network frequency band, the actual power consumption value may be used as the power consumption value corresponding to the current network frequency band; in other embodiments, the terminal may determine the power consumption value corresponding to the current network frequency band based on the historical power consumption value corresponding to the current network frequency band.
[0068] In the embodiment of the present disclosure, the terminal may trigger the network frequency band switching method of the embodiment of the present disclosure in real time, or may periodically trigger the network frequency band switching method at predetermined intervals.
[0069] In related technologies, in order to provide users with the best communication quality (better network speed, better network quality, etc.), artificial intelligence and big data analysis technologies are usually used to collect and analyze user data to establish user portraits, understand users' network usage habits, and analyze and predict users' usage scenarios and usage needs, and intelligently select the best network frequency band to improve users' communication experience. For example, big data analysis methods are used to predict in advance the scenarios where network congestion may occur in subways, gatherings, etc., and combined with data such as base station signal strength, traffic load, and network speed, the best network format and resident cell are selected through artificial intelligence algorithms to minimize network congestion and improve user experience.
[0070] However, in related technologies, user scenario analysis and prediction models based on big data are often complex in structure, consume a lot of equipment resources, and have poor prediction effects for individual users. In addition, scenario analysis and prediction technologies only focus on factors such as network speed and network quality, ignoring the power consumption differences when terminals reside in different network frequency bands, which easily leads to high power consumption of terminal devices when using communication networks.
[0071] In the embodiments of the present disclosure, on the one hand, attention is paid to power consumption factors other than network speed and quality under network frequency bands, and the network frequency band of the current usage scenario is switched to a target network frequency band with lower power consumption, which is beneficial to reducing the power consumption of the terminal device during the communication process; on the other hand, the terminal determines and switches the target network frequency band based on the preset scenario, which reduces meaningless network frequency band switching, helps save the resources of the terminal device, and improves the stability of the network to which the terminal accesses.
[0072] Figure 2 This is a network frequency band switching method process shown in the embodiment of the present disclosure Figure 2 ,like Figure 2 As shown, the aforementioned step S11 includes the following steps:
[0073] S111, detecting a change in the location of the terminal and a stability of a network of the terminal;
[0074] S112, detecting whether the application currently running on the terminal is a preset application;
[0075] S113. In response to the location change of the terminal being less than a preset location change threshold, the stability of the network of the terminal being greater than a preset stability level, and the application currently running on the terminal belonging to the preset application, determining that the current usage scenario of the terminal belongs to the preset scenario.
[0076] As mentioned above, the terminal can determine and switch the target network frequency band based on the static usage scenario. In this regard, in step S111, the terminal first determines whether the terminal is in a static usage scenario, and in step S112, the terminal determines whether to run a preset application, so that in step S113, when it is determined that the terminal is in a static usage scenario and runs a preset application, it is detected whether the current usage scenario of the terminal belongs to the preset scenario.
[0077] In the embodiment of the present disclosure, the terminal determines the change in the location of the terminal by collecting the current location information of the device at a predetermined sampling interval, and determining the change in the location of the terminal based on the location information of adjacent or multiple sampling intervals. Among them, the coordinate information of the terminal can be obtained through the Global Positioning System (GPS). In the embodiment of the present disclosure, if the terminal position changes greatly (for example, greater than a preset position change threshold), it indicates that the position of the terminal has changed; if the terminal position changes little within a certain period of time (for example, less than or equal to a preset position change threshold), it indicates that the position of the terminal remains unchanged. Among them, the preset position change threshold can be the change in the terminal position, or it can be the change ratio of the terminal position.
[0078] In the embodiment of the present disclosure, the terminal determines the stability of the network in a manner that the terminal detects whether the access cell is frequently switched. If the access cell is frequently switched, it indicates that the stability of the current network of the terminal is less than a preset stability level. If the access cell is not frequently switched, it indicates that the stability of the current network of the terminal is greater than or equal to the preset stability level, wherein the preset stability level may be the number of switching times or the switching rate; or the terminal detects the current network quality parameters, and determines whether the current network is stable according to the network quality parameters. If the network quality parameters change suddenly, it indicates that the stability of the current network of the terminal is less than the preset stability level. If the network quality parameters do not change suddenly, it indicates that the stability of the current network of the terminal is greater than or equal to the preset stability level; wherein the preset stability level may be the change amount of the network quality parameters or the change rate of the network quality parameters. Wherein, the network quality parameters may include network parameters such as reference signal received power (RSRP), signal-to-noise interference ratio (SNIR), and received signal strength indicator (RSSI).
[0079] In the embodiment of the present disclosure, the terminal can determine whether the application currently running on the terminal belongs to a preset application by detecting the usage of application software, wherein the preset application can be an application that runs by default when the terminal system is running, such as a clock application of a mobile phone in a static standby state, etc., or a third-party application, such as a data traffic APP application in a non-game scenario, and also a voice application with high power consumption, etc. .
[0080] Since the terminal does not have such high requirements for network stability when it is in idle standby mode and using data traffic APP in non-gaming scenarios, determining and switching the target frequency band in this case will not affect the user experience. In addition, since voice applications consume a lot of power, determining and switching the target frequency band in this case can more specifically reduce the power consumption of the terminal.
[0081] It should be noted that, in the embodiments of the present disclosure, the preset application is not limited to the applications in the above three scenarios. For example, the preset application may also be set to an application other than a video application.
[0082] In the disclosed embodiment, the terminal first determines whether the terminal is in a static usage scenario suitable for reducing device power consumption by switching frequency bands from two perspectives: whether the location has changed and whether the network is stable. In this static usage scenario, the terminal further determines and switches the target network frequency band for the preset application, which can increase the necessity of network frequency band switching.
[0083] In some embodiments, in response to the current usage scenario belonging to the preset scenario, determining the target network frequency band based on the current usage scenario includes:
[0084] In response to the terminal's current usage scenario including multiple scenarios among the preset scenarios, the target network frequency band is determined based on a target scenario whose priority among the multiple scenarios meets a preset first priority condition; wherein the priority represents the importance of the scenario.
[0085] In the disclosed embodiment, the target scenario whose priority satisfies the preset first priority condition may refer to the scenario with the highest priority. As mentioned above, the priority may be determined based on the importance of different applications relative to the user. In the disclosed embodiment, if the terminal runs the first application in a static usage scenario, the usage scenario of the terminal is referred to as the first scenario; if the terminal runs the second application while running the first application, the usage scenario of the terminal including the operation of the second application is referred to as the second scenario, and the two scenarios belong to different scenarios.
[0086] For example, the first application is a voice call application and the second application is the Douyin App. Since the importance of the voice call application is usually higher than that of the Douyin App, the embodiment of the present disclosure can take the usage scenario including voice calls as the target scenario.
[0087] Since the network frequency bands corresponding to different scenarios may be inconsistent, if the network frequency band is switched based on the scenario with low importance, the scenario with high importance may not be executed. Therefore, in the embodiment of the present disclosure, the terminal determines the target network frequency band based on the target scenario whose priority meets the preset first priority condition among multiple scenarios, so that the terminal switches the network frequency band for the usage scenario with higher importance to optimize power consumption, that is, performs targeted network frequency band switching, which can reduce the impact of network frequency band switching on users and is more intelligent. .
[0088] Figure 3 This is a network frequency band switching method process shown in the embodiment of the present disclosure Figure 3 ,like Figure 3 As shown, the aforementioned step S12 includes the following steps:
[0089] S121. Determine, based on the current usage scenario, a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario;
[0090] S122: Determine, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is smaller than the first historical power consumption value as the target network frequency band.
[0091] In the disclosed embodiment, the terminal determines the first historical power consumption value corresponding to the current network band of the terminal based on the current usage scenario. The first historical power consumption value corresponding to the network band can be determined through the network band of the terminal in the current usage scenario and the mapping relationship between the network band and the power consumption data. If the first historical power consumption value exists, then the second historical power consumption value based on the first historical power consumption value and each network band associated with the current usage scenario; if the first historical power consumption value does not exist, the power consumption of the current network band in the current usage scenario can be counted, and the power consumption result obtained by counting is stored in the mapping relationship between the aforementioned network band and the power consumption data. Among them, the mapping relationship between the network band and the power consumption data can be established based on each network band of the usage scenario and the corresponding historical power consumption data. Among them, the mapping relationship between the network band and the power consumption data can be stored in a local database of the terminal, or in other devices (such as a server), so that the terminal can obtain the first historical power consumption value through the local database and other devices.
[0092] In step S122, the terminal determines a network frequency band among the network frequency bands associated with the usage scenario, in which the second historical power consumption value is less than the first historical power consumption value, as the target network frequency band. The network frequency band corresponding to any second historical power consumption value may be determined as the target network frequency band; or the network frequency band corresponding to the lowest historical power consumption value may be determined as the target network frequency band.
[0093] As mentioned above, the terminal can determine the target network frequency band based on the actual power consumption value of the current network frequency band, or it can determine the target network frequency band based on the historical power consumption value corresponding to the current network frequency band. In the embodiment of the present disclosure, the terminal determines it based on the first historical power consumption value corresponding to the current network frequency band. Since the power consumption value corresponding to the network frequency band is accumulated during the historical use of the terminal, the first historical power consumption value corresponding to the current network frequency band can be the middle value, maximum value or average value of multiple historical power consumption values corresponding to the current network frequency band. In addition, the second historical power consumption value of each network frequency band associated with the current usage scenario can also be the middle value, maximum value or average value.
[0094] It can be understood that in the embodiment of the present disclosure, since the historical power consumption values (including the first historical power consumption value and the second historical power consumption value) can be values obtained based on historical statistics, determining the target network frequency band based on the actual power consumption value of the current network frequency band can reduce the impact of sudden changes in the actual power consumption of the current network frequency band, thereby improving the accuracy of network frequency band switching, and the solution is simple and effective.
[0095] In some embodiments, each network frequency band associated with the usage scenario is correspondingly set with a priority, wherein network frequency bands with different second historical power consumption values have different priorities;
[0096] The determining, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is smaller than the first historical power consumption value as the target network frequency band includes:
[0097] Among the network frequency bands associated with the usage scenario, a network frequency band whose priority satisfies a preset second priority condition and whose second historical power consumption value is less than the first historical power consumption value is determined as the target network frequency band.
[0098] In the disclosed embodiment, each network frequency band associated with the usage scenario is correspondingly set with a priority, and the priority is determined based on the second historical power consumption value. For example, in the same usage scenario, the priority of each network frequency band is negatively correlated with the second historical power consumption value corresponding to the network frequency band, and the second historical power consumption value having a large priority is low. In the disclosed embodiment, the priority satisfies the preset second priority condition, for example, the highest priority network frequency band whose second historical power consumption value is less than the first historical power consumption value is determined as the target network frequency band.
[0099] In the disclosed embodiment, each network frequency band associated with the usage scenario is set with a priority based on the second historical power consumption value, so as to facilitate determining the target network frequency band based on the priority, which can help determine the target frequency band that can better save terminal power consumption.
[0100] In some embodiments, determining, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is less than the first historical power consumption value as the target network frequency band includes:
[0101] Among the network frequency bands associated with the usage scenario, a network frequency band whose current network quality meets a preset quality condition and whose second historical power consumption value is less than the first historical power consumption value is determined as the target network frequency band.
[0102] In the disclosed embodiment, the preset quality condition may be set based on the switching situation of the cell currently accessed by the network frequency band, or may be set based on the current network quality parameter of the network frequency band, or may be set from both perspectives. For example, if the switching frequency of the cell currently accessed by the network frequency band is less than the preset switching frequency, and / or the degree of change of the current network quality parameter of the network frequency band is less than the preset degree threshold, the terminal determines that the current network quality of the network frequency band meets the preset quality condition.
[0103] In the disclosed embodiment, the terminal determines as the target network frequency band a network frequency band whose current network quality satisfies a preset quality condition and whose second historical power consumption value is less than the first historical power consumption value among the network frequency bands associated with the usage scenario. This is beneficial for reducing the impact on the terminal network quality while reducing the power consumption of the terminal, reducing the occurrence of network quality deterioration caused by network frequency band switching, and improving the stability of the network switching method.
[0104] In some embodiments, determining, based on the current usage scenario, a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario includes:
[0105] Based on the pre-stored mapping relationship associated with the current usage scenario, determine the first historical power consumption value corresponding to the current network frequency band of the terminal and the second historical power consumption value of each network frequency band associated with the usage scenario; wherein the mapping relationship includes a mapping relationship between network frequency bands and power consumption values.
[0106] In the disclosed embodiment, the mapping relationship associated with the current usage scenario pre-stored in the terminal may include the correspondence between the network frequency band and the power consumption value, and may also include the priority of the usage scenario and the priority of the historical power consumption of the network frequency band. Among them, the mapping relationship can be stored in the local database of the terminal, and can also be stored in other electronic devices that establish a communication connection with the terminal. In the disclosed embodiment, the data in the mapping relationship associated with the current usage scenario pre-stored can be obtained based on the statistics of the network frequency band and the power consumption data within the network frequency band when the usage scenario is running during historical use. In addition, in order to ensure the validity and timeliness of the data, the pre-stored mapping relationship associated with the current usage scenario can be updated regularly.
[0107] In the disclosed embodiment, the terminal first determines a first historical power consumption value corresponding to the current network frequency band based on the current usage scenario and the current network frequency band based on a pre-stored mapping relationship associated with the current usage scenario, and then determines the data in the mapping relationship whose power consumption is less than the first historical power consumption value as the second historical power consumption value based on the first historical power consumption value.
[0108] In the disclosed embodiment, the terminal determines the first historical power consumption value and the second historical power consumption value based on a pre-stored mapping relationship associated with the current usage scenario. Compared with real-time calculation based on the current usage scenario, the real-time calculation amount of the terminal device is reduced and the network switching method is simplified.
[0109] In some embodiments, the method further comprises:
[0110] During the historical use of the terminal, determining a network frequency band in which the terminal operates in the usage scenario and a power consumption value within the network frequency band;
[0111] In response to the difference between the power consumption value of the terminal within the network frequency band and the preset power consumption value corresponding to the usage scenario being less than a preset difference threshold, the mapping relationship associated with the usage scenario is generated based on the network frequency band and the power consumption value corresponding to the network frequency band.
[0112] In the disclosed embodiment, the network frequency band of the terminal and the power consumption value within the network frequency band when the terminal is running in the usage scenario can be determined during the historical use of the terminal. For example, the terminal can start the power consumption statistics service, count the power consumption corresponding to the current network frequency band in the usage scenario, and store the result in the mapping relationship associated with the current usage scenario. Among them, the power consumption can be the total power consumption, average power consumption, etc. of the frequency band used in the usage scenario.
[0113] In the disclosed embodiment, the power consumption value of the terminal in the network frequency band is compared with the preset power consumption value corresponding to the usage scenario. If the difference is less than the preset difference threshold, a mapping relationship associated with the usage scenario is generated based on the network frequency band and the power consumption value corresponding to the network frequency band; if the difference is greater than or equal to the preset difference threshold, the power consumption value is considered invalid and the mapping relationship associated with the usage scenario is not generated. The preset power consumption value corresponding to the usage scenario can usually be set with reference to the data given by each network operator.
[0114] In the disclosed embodiment, when generating a mapping relationship for a usage scenario, the terminal verifies the validity of the statistical power consumption value within the network frequency band based on a preset power consumption value, and generates a mapping relationship between the network frequency band and the power consumption value based only on the valid power consumption value, which is beneficial to improving the accuracy of the mapping relationship and thereby improving the accuracy of the network frequency band switching method.
[0115] Take a mobile phone as an example. The mobile phone has a built-in communication chip. Under normal circumstances, the activation state of the communication chip allows the mobile phone to connect and stay on the network to use communication services. It should be noted that if the mobile phone user is in a scene with complex and changeable signal conditions such as highways and high-speed railways, frequent network frequency band switching will cause problems such as poor communication quality and additional power consumption. In this regard, in the embodiments of the present disclosure, attention is paid to the optimization of power consumption of the resident network frequency band when the mobile phone is in a static usage scenario (preset scenario).
[0116] In this embodiment, the usage scenario of the mobile phone is judged (that is, whether the current usage scenario of the detection terminal in the embodiment of the present disclosure belongs to the preset scenario). The mobile phone can be based on signaling messages and GPS and other technologies. For example, the call management service (TelephonyManager) and location management (LocationManager) can be used to obtain data related to the network stability and location change of the mobile phone. When the network stability of the mobile phone is good and the location change is small, it is determined that the mobile phone is in a static usage scenario; otherwise, the mobile phone is considered to be in a dynamic usage scenario.
[0117] In this embodiment, when the mobile phone is in a static usage scenario, the Band power consumption detection and switching service is turned on (that is, in the embodiment of the present disclosure, in response to the current usage scenario belonging to the preset scenario, the target network frequency band is determined based on the current usage scenario and the frequency band is switched). It should be noted that in order to enhance the generalization performance of the embodiment of the present disclosure, the static usage scenario can be set to at least include static standby, voice calls (set as the highest priority usage scenario), and the use of non-game scenario apps, and the Band power consumption detection and switching service is turned on in the above three usage scenarios. It should be noted that when there is a superposition of usage scenarios, the highest priority scenario is used as the target scenario for power consumption statistics and optimization. For example, if the user is on a call and brushing Douyin, power consumption statistics and Band selection are performed based on the call scenario.
[0118] In this embodiment, the mobile phone must meet the following two conditions to switch the Band:
[0119] 1. The mobile phone enters the three usage scenarios set above, and there is a historical average power consumption record of the communication module (radio) of the switchable target band in the corresponding usage scenarios;
[0120] 2. The signal quality of the target band is good, reducing the impact on call quality and data activity quality.
[0121] In this embodiment, the Band power consumption detection and switching service includes the following steps:
[0122] Step 1. Get the current mobile phone usage scenario S and the frequency band Band B1.
[0123] The mobile phone can search the local Band power consumption database to determine whether the power consumption data of Band B1 already exists in the scene S. If not, go to step 2 to count the power consumption; if yes, go to step 3.
[0124] Step 2. Start the power consumption statistics service of Band B1 in scenario S.
[0125] Based on the power consumption service (BatteryStats API), the mobile phone can count the power consumption and usage time of the communication module in scenario S, calculate the average power consumption current value C of the communication module and store it in the local Band power consumption database. When storing the power consumption data, the search priority P1 is set for Band B1 according to the power consumption current value C. In addition, the power consumption current value can also be prioritized, for example, the priority of the Band with lower power consumption in the same scenario can be set to high.
[0126] Step 3: The mobile phone queries the Band power consumption database to determine whether there are other Bands whose power consumption of the communication module is better than the current Band B1 in scenario S.
[0127] If there are other bands that are better than the current Band B1, and the number of bands is greater than or equal to 1, it indicates that there is a switchable target band, and the process goes to Step 4.
[0128] Step 4: The mobile phone can search for other bands with better power consumption as recorded in Step 3 in order of priority, and set the switching priority P2 for the bands whose signal quality meets the set threshold. When the search is completed, the band with the highest P2 priority is set as the target band, and the mobile phone is switched to the target band; if there is no P2 priority band, no band switching action is performed.
[0129] In this embodiment, the local Band power consumption database of the mobile phone is set and maintained (ie, in the embodiment of the present disclosure, during the historical use of the terminal, a mapping relationship associated with the usage scenario is generated based on the network frequency band and the power consumption value corresponding to the network frequency band).
[0130] It should be noted that this embodiment relies heavily on the historical power consumption records of the communication module of the mobile phone on different bands. To this end, the validity of the power consumption data can be improved from the following two perspectives:
[0131] In this embodiment, the mobile phone can regularly collect and update power consumption data to improve the timeliness of data update, for example, regularly (every three days) update the existing power consumption data of the mobile phone in different scenarios and different bands.
[0132] In this embodiment, a historical experience value H of power consumption when the scene S resides in a specific Band is preset, and the Band power consumption data C measured in Step 2 is compared with H, and the power consumption value with a difference within the threshold is stored, otherwise, the measured value is discarded.
[0133] In this embodiment, the mobile phone detects and switches the Band in a static usage scenario so that the mobile phone preferentially resides in the Band that meets the communication quality conditions and has lower power consumption performance, thereby further reducing the power consumption of the mobile phone and improving the battery life performance of the mobile phone without affecting the quality of the communication network.
[0134] Figure 4 FIG. 1 is a diagram showing a network frequency band switching device according to an exemplary embodiment. Figure 4 In an optional embodiment, the device further comprises:
[0135] The detection module 401 is used to detect whether the current usage scenario of the terminal belongs to a preset scenario;
[0136] The determination module 402 is configured to determine a target network frequency band based on the current usage scenario in response to the current usage scenario belonging to the preset scenario; wherein the power consumption of the target network frequency band is less than the power consumption of the current network frequency band of the terminal;
[0137] The switching module 403 is configured to switch the network frequency band of the terminal to the target network frequency band.
[0138] In some embodiments, the detection module 401 is also used to detect the location change of the terminal and the stability of the network of the terminal; detect whether the application currently running on the terminal belongs to a preset application; in response to the location change of the terminal being less than a preset location change threshold, the stability of the network of the terminal being greater than a preset stability level, and the application currently running on the terminal belonging to the preset application, determine that the current usage scenario of the terminal belongs to the preset scenario.
[0139] In some embodiments, the determination module 402 is also used to determine the target network frequency band in response to the current usage scenario of the terminal including multiple scenarios in the preset scenarios, based on the target scenario whose priority meets the preset first priority condition in the multiple scenarios; wherein the priority represents the importance of the scenario.
[0140] In some embodiments, the determination module 402 is also used to determine, based on the current usage scenario, a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario; and determine, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is less than the first historical power consumption value as the target network frequency band.
[0141] In some embodiments, each network frequency band associated with the usage scenario is set with a corresponding priority, wherein network frequency bands with different second historical power consumption values have different priorities; the determination module 402 is also used to determine, among the network frequency bands associated with the usage scenario, a network frequency band whose priority satisfies a preset second priority condition and whose second historical power consumption value is less than the first historical power consumption value as the target network frequency band.
[0142] In some embodiments, the determination module 402 is also used to determine, as the target network frequency band, a network frequency band whose current network quality meets a preset quality condition and whose second historical power consumption value is less than the first historical power consumption value among the network frequency bands associated with the usage scenario.
[0143] In some embodiments, the determination module 402 is also used to determine the first historical power consumption value corresponding to the current network frequency band of the terminal and the second historical power consumption value of each network frequency band associated with the usage scenario based on a pre-stored mapping relationship associated with the current usage scenario; wherein the mapping relationship includes a mapping relationship between network frequency bands and power consumption values.
[0144] In some embodiments, the determination module 402 is further used to determine the network frequency band of the terminal and the power consumption value within the network frequency band when the terminal is running in the usage scenario during the historical use of the terminal;
[0145] In response to the difference between the power consumption value of the terminal within the network frequency band and the preset power consumption value corresponding to the usage scenario being less than a preset difference threshold, the mapping relationship associated with the usage scenario is generated based on the network frequency band and the power consumption value corresponding to the network frequency band.
[0146] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0147] Figure 5 8 is a block diagram of a terminal device 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
[0148] Reference Figure 5 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0149] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0150] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0151] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0152] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0153] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0154] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0155] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0156] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0157] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0158] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0159] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute the aforementioned network frequency band switching method.
[0160] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims above.
[0161] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A network frequency band switching method, characterized in that: The method comprises: Detect whether the current usage scenario of the terminal belongs to the preset scenario; In response to the current usage scenario belonging to the preset scenario, determining a target network frequency band based on the current usage scenario; wherein the power consumption of the target network frequency band is less than the power consumption of the current network frequency band of the terminal; Switching the network frequency band of the terminal to the target network frequency band.
2. The method according to claim 1, characterized in that The detecting whether the current usage scenario of the terminal belongs to a preset scenario includes: Detecting a change in the location of the terminal and the stability of the network of the terminal; Detecting whether the application currently running on the terminal is a preset application; In response to the location change of the terminal being less than a preset location change threshold, the stability of the network of the terminal being greater than a preset stability level, and the application currently running by the terminal belonging to the preset application, it is determined that the current usage scenario of the terminal belongs to the preset scenario.
3. The method according to claim 1, characterized in that: In response to the current usage scenario belonging to the preset scenario, determining the target network frequency band based on the current usage scenario includes: In response to the terminal's current usage scenario including multiple scenarios among the preset scenarios, the target network frequency band is determined based on a target scenario whose priority among the multiple scenarios meets a preset first priority condition; wherein the priority represents the importance of the scenario.
4. The method according to any one of claims 1 to 3, characterized in that The determining the target network frequency band based on the current usage scenario includes: Based on the current usage scenario, determine a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario; Among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is smaller than the first historical power consumption value is determined as the target network frequency band.
5. The method according to claim 4, characterized in that Each network frequency band associated with the usage scenario is correspondingly set with a priority, wherein network frequency bands with different second historical power consumption values have different priorities; The determining, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is smaller than the first historical power consumption value as the target network frequency band includes: Among the network frequency bands associated with the usage scenario, a network frequency band whose priority satisfies a preset second priority condition and whose second historical power consumption value is less than the first historical power consumption value is determined as the target network frequency band.
6. The method according to claim 4, characterized in that The determining, among the network frequency bands associated with the usage scenario, a network frequency band whose second historical power consumption value is smaller than the first historical power consumption value as the target network frequency band includes: Among the network frequency bands associated with the usage scenario, a network frequency band whose current network quality meets a preset quality condition and whose second historical power consumption value is less than the first historical power consumption value is determined as the target network frequency band.
7. The method according to claim 4, characterized in that The determining, based on the current usage scenario, a first historical power consumption value corresponding to the current network frequency band of the terminal and a second historical power consumption value of each network frequency band associated with the current usage scenario includes: Based on the pre-stored mapping relationship associated with the current usage scenario, determine the first historical power consumption value corresponding to the current network frequency band of the terminal and the second historical power consumption value of each network frequency band associated with the usage scenario; wherein the mapping relationship includes a mapping relationship between network frequency bands and power consumption values.
8. The method according to claim 7, characterized in that The method further comprises: During the historical use of the terminal, determining a network frequency band in which the terminal operates in the usage scenario and a power consumption value within the network frequency band; In response to the difference between the power consumption value of the terminal within the network frequency band and the preset power consumption value corresponding to the usage scenario being less than a preset difference threshold, the mapping relationship associated with the usage scenario is generated based on the network frequency band and the power consumption value corresponding to the network frequency band.
9. A network frequency band switching device, characterized in that: The device comprises: A detection module, used to detect whether the current usage scenario of the terminal belongs to a preset scenario; A determination module, configured to determine a target network frequency band based on the current usage scenario in response to the current usage scenario belonging to the preset scenario; wherein the power consumption of the target network frequency band is less than the power consumption of the current network frequency band of the terminal; The switching module is used to switch the network frequency band of the terminal to the target network frequency band.
10. A terminal, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the network frequency band switching method as described in any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the network frequency band switching method as described in any one of claims 1 to 8.