A power consumption control method, device and computer readable storage medium
By acquiring the application running status and processor usage status of smart terminal devices, and statistically analyzing and adjusting the kernel, frequency, and time to determine power consumption values, the problem of unclear power consumption control in existing technologies is solved, enabling clearer power consumption management and improving user experience.
Patent Information
- Application Number
- CN202011541134.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2040-12-23
AI Technical Summary
In existing technologies, the power consumption control strategies of smart terminal devices fail to effectively identify the nature of power consumption, resulting in complex control conditions that may affect normal user operation and lead to a poor user experience.
By acquiring the application's running status and processor usage status, the system can statistically analyze the number of kernel calls, call frequency, and call time. Based on these parameters, the power consumption value can be determined, and the kernel, frequency, and time can be adjusted when threshold conditions are met to achieve more precise power consumption control.
It provides a more explicit and logically clear power consumption control scheme, avoiding the negative impact of conventional strategies on user operation and improving user experience.
Smart Images

Figure CN112631864B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile communications, and more particularly to a power consumption control method, device, and computer-readable storage medium. Background Technology
[0002] In existing technologies, with the continuous development of smart terminal devices, users' demands for longer battery life are also increasing. The easiest way to increase battery life is through power consumption control. Current control strategies include those based on application background running time, the number of background applications, and the status of background applications (e.g., holding a wake-up lock, using a voice channel, navigation applications using location updates, application response calls, network uploads and downloads, system servers migrating to applications), making corresponding judgments and executing kill or freeze operations. However, these control strategies do not address the root cause of power consumption; they only judge and process based on the surface-level functional status of applications. This results in complex control conditions, unclear logic, and a certain probability of occasional disruptions to normal user experience, leading to a poor user experience. Summary of the Invention
[0003] To address the aforementioned technical deficiencies in the prior art, this invention proposes a power consumption control method, which includes:
[0004] Obtain the running status of the application to be monitored and the processor usage status of the application;
[0005] Statistically analyze the kernel call, call frequency, and call time in the occupied state according to the foreground state, background state, and functional state in the running state;
[0006] The power consumption values for the foreground state, the background state, and the functional state are determined based on the kernel call, the call frequency, and the call time, respectively.
[0007] If the power consumption value meets the threshold condition corresponding to the application, then one or more of the following are adjusted when the application is in the foreground state, the background state, or the functional state: the calling kernel, the calling frequency, and the calling time.
[0008] Optionally, obtaining the running status of the application to be monitored and the processor usage status of the application includes:
[0009] Within a preset monitoring time period, the running status of the application is acquired;
[0010] In the running state, the state time when the application is in the foreground state, the background state, and the functional state is determined respectively, wherein the functional state includes the sub-states in which the application performs its various functions.
[0011] Optionally, obtaining the running status of the application to be monitored and the processor usage status of the application further includes:
[0012] During the monitoring period, the application's usage status of the device's processor is obtained;
[0013] In the occupied state, the calling kernel, the calling frequency, and the calling time of the application for each kernel of the processing are determined respectively, wherein each kernel includes small kernels, large kernels, and super large kernels.
[0014] Optionally, the step of statistically analyzing the kernel call, call frequency, and call time in the occupied state according to the foreground state, background state, and functional state in the running state includes:
[0015] Based on the state time of the foreground state, the background state, and the functional state, respectively, the kernel call, the call frequency, and the call time under the three types of state time;
[0016] The kernel call, call frequency, and call time are weighted and calculated for each type of state time.
[0017] Optionally, determining the power consumption values for the foreground state, the background state, and the functional state based on the calling kernel, the calling frequency, and the calling time respectively includes:
[0018] Determine the relationship model between device power consumption and the calling kernel, the calling frequency, and the calling time;
[0019] Substituting the weighted calculation results for each state time into the relational model, the estimated power consumption value is obtained.
[0020] Optionally, if the power consumption value meets the threshold condition corresponding to the application, then adjusting one or more of the following when the application is in the foreground state, the background state, and the functional state: the calling kernel, the calling frequency, and the calling time, includes:
[0021] The threshold conditions corresponding to the application are preset;
[0022] Determine whether the calculated power consumption value meets the threshold condition.
[0023] Optionally, the step of adjusting one or more of the following when the application is in the foreground state, the background state, or the functional state if the power consumption value meets the threshold condition corresponding to the application: (further details omitted)
[0024] If the power consumption value meets the threshold condition corresponding to the application, then the power consumption value is parsed, and one or more states are determined as states to be adjusted among the application being in the foreground state, the background state, and the functional state.
[0025] Adjust one or more of the following when the state to be adjusted is: the kernel being called, the call frequency, and the call time.
[0026] Optionally, the step of adjusting one or more of the following when the application is in the foreground state, the background state, or the functional state if the power consumption value meets the threshold condition corresponding to the application: (further details omitted)
[0027] If the power consumption value meets the threshold condition corresponding to the application, then the power consumption value is parsed, and one or more of the calling kernel, the calling frequency, and the calling time are determined as adjustment targets;
[0028] The adjustment target is adjusted when the application is in any of the foreground state, the background state, and the functional state.
[0029] The present invention also proposes a power consumption control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the power consumption control method as described in any of the preceding claims.
[0030] The present invention also proposes a computer-readable storage medium storing a power control program, which, when executed by a processor, implements the steps of the power control method as described in any of the preceding claims.
[0031] The power consumption control method, device, and computer-readable storage medium of the present invention acquire the running state of the application to be monitored and the processor occupancy status of the application; then, according to the foreground state, background state, and functional state of the running state, the calling kernel, calling frequency, and calling time in the occupancy state are statistically analyzed; finally, the power consumption value in the foreground state, background state, and functional state is determined according to the calling kernel, calling frequency, and calling time; if the power consumption value meets the threshold condition corresponding to the application, one or more of the calling kernel, calling frequency, and calling time are adjusted when the application is in any of the foreground state, background state, and functional state. This achieves a power consumption control scheme with a clearer power consumption management strategy and more explicit control logic, avoiding the impact of conventional complex management methods on users' daily operations, improving power control effect, and enhancing user experience. Attached Figure Description
[0032] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0033] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;
[0034] Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present invention;
[0035] Figure 3 This is a flowchart of the first embodiment of the power consumption control method of the present invention;
[0036] Figure 4 This is a flowchart of the second embodiment of the power consumption control method of the present invention;
[0037] Figure 5 This is a flowchart of the third embodiment of the power consumption control method of the present invention;
[0038] Figure 6 This is a flowchart of the fourth embodiment of the power consumption control method of the present invention;
[0039] Figure 7 This is a flowchart of the fifth embodiment of the power consumption control method of the present invention;
[0040] Figure 8 This is a flowchart of the sixth embodiment of the power consumption control method of the present invention;
[0041] Figure 9 This is a flowchart of the seventh embodiment of the power consumption control method of the present invention;
[0042] Figure 10 This is a flowchart of the eighth embodiment of the power consumption control method of the present invention. Detailed Implementation
[0043] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0044] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0045] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0046] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.
[0047] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0048] The following is combined with Figure 1 A detailed introduction to each component of the mobile terminal:
[0049] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0050] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0051] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0052] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0053] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0054] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0055] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0056] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0057] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0058] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0059] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0060] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0061] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0062] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0063] Please see Figure 2 , Figure 2 This invention provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0064] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0065] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.
[0066] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0067] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0068] Although the above description uses the LTE system as an example, those skilled in the art should understand that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0069] Based on the aforementioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0070] Example 1
[0071] Figure 3 This is a flowchart of the first embodiment of the power consumption control method of the present invention. A power consumption control method, the method comprising:
[0072] S1. Obtain the running status of the application to be monitored and the processor usage status of the application;
[0073] S2. Calculate the kernel call, call frequency, and call time in the occupied state according to the foreground state, background state, and functional state in the running state, respectively.
[0074] S3. Determine the power consumption values of the foreground state, the background state, and the functional state based on the calling kernel, the calling frequency, and the calling time, respectively.
[0075] S4. If the power consumption value meets the threshold condition corresponding to the application, then adjust one or more of the following when the application is in the foreground state, the background state, or the functional state: the calling kernel, the calling frequency, and the calling time.
[0076] Optionally, in this embodiment, the application to be monitored is determined based on the user's monitoring needs or historical power consumption statistics, and then a list of applications to be monitored is generated.
[0077] Optionally, in this embodiment, the identity information of each application is determined in this application list, and the running status of the application and the processor usage status of the application are recorded and statistically analyzed in real time.
[0078] Optionally, in this embodiment, the above states are queried in the system process to determine the frequency and time of each CPU core corresponding to each application, that is, to determine whether the processing call is on a small core, a large core, or a super large core in each running state, the call frequency of each core, and the call time of each core.
[0079] Optionally, in this embodiment, the above data is statistically weighted to obtain an estimated value. It is understood that this embodiment is not used to determine the accurate power consumption of each application in each state, but rather to estimate the power consumption based on the processor call state of the application in each state.
[0080] Optionally, in this embodiment, if the power consumption value meets the threshold condition corresponding to the application, then one or more of the calling kernel, the calling frequency, and the calling time when the application is in any of the foreground state, the background state, and the functional state are adjusted. The time period to be adjusted can be any of the foreground state, the background state, and the functional state when the application is used in subsequent use. The object to be adjusted can be one or more of the calling kernel, the calling frequency, and the calling time when the application is used in subsequent use and involves any of the states.
[0081] The beneficial effect of this embodiment is that it acquires the running state of the application to be monitored and the application's processor usage status; then, it statistically analyzes the called kernel, call frequency, and call time in the usage status according to the foreground state, background state, and functional state of the running state; finally, it determines the power consumption value in the foreground state, background state, and functional state according to the called kernel, call frequency, and call time; if the power consumption value meets the threshold condition corresponding to the application, it adjusts one or more of the called kernel, call frequency, and call time when the application is in any of the foreground state, background state, and functional state. This achieves a power control scheme with a clearer power management strategy and more explicit control logic, avoiding the impact of conventional complex control methods on users' daily operations, improving power control effect, and enhancing user experience.
[0082] Example 2
[0083] Figure 4 This is a flowchart of a second embodiment of the power consumption control method of the present invention. Based on the above embodiment, obtaining the running status of the application to be monitored and the processor occupancy status of the application includes:
[0084] S11. Within a preset monitoring time, obtain the running status of the application;
[0085] S12. In the running state, the state time when the application is in the foreground state, the background state, and the functional state is determined respectively, wherein the functional state includes the sub-states in which the application performs its various functions.
[0086] Optionally, in this embodiment, during a continuous monitoring period, the status time of the foreground state, the background state, and the functional state in each segment is statistically analyzed based on the user's operation.
[0087] Optionally, in this embodiment, the state times of the foreground state, the background state, and the functional state of each segment are summarized to obtain three time segments corresponding to the three state categories within a continuous monitoring time.
[0088] Optionally, in this embodiment, the time of one type of state is further subdivided according to the sub-states of the application executing its various functions, thereby determining the power consumption of the application executing various functions. For example, the text chat function and video chat function of instant messaging software are distinguished and statistically analyzed, thereby improving the accuracy of subsequent calculations.
[0089] The beneficial effect of this embodiment is that it acquires the running state of the application within a preset monitoring time; then, within the running state, it determines the state time of the application in the foreground state, the background state, and the functional state, wherein the functional state includes the sub-states of the application executing its various functions. This achieves a power control scheme with a more explicit power management strategy and clearer control logic, provides a basis for determining the running state, avoids the impact of conventional complex control methods on users' daily operations, improves power control effectiveness, and enhances the user experience.
[0090] Example 3
[0091] Figure 5 This is a flowchart of the third embodiment of the power consumption control method of the present invention. Based on the above embodiment, the step of obtaining the running status of the application to be monitored and the processor occupancy status of the application further includes:
[0092] S13. During the monitoring period, obtain the application's occupancy status of the device's processor;
[0093] S14. In the occupied state, the calling kernel, the calling frequency and the calling time of the application for each kernel of the processing are determined respectively, wherein each kernel includes small kernel, large kernel and super large kernel.
[0094] Optionally, in this embodiment, the current configuration status of the device's processor is identified, wherein the configuration status includes the processor core configuration, processor core frequency configuration, processor core calling logic, etc.
[0095] Optionally, in this embodiment, based on parameters such as the processor core configuration, processor core frequency configuration, and processor core calling logic, the calling kernel, calling frequency, and calling time of the application for each kernel being processed are determined in the occupied state.
[0096] Optionally, in this embodiment, as described in the example above, when the text chat function of the instant messaging software is running in the foreground, the current processor usage status of the application is determined. Specifically, the three data items involved in the text chat running in the foreground are counted: the calling kernel, the calling frequency of each calling kernel, and the calling time of each calling kernel.
[0097] Optionally, in this embodiment, when the video chat function of the instant messaging software is running in the foreground, the current processor usage status of the application is determined. Specifically, during the time when the text chat is running in the foreground, three data items are counted: the calling kernel, the calling frequency of each calling kernel, and the calling time of each calling kernel.
[0098] The beneficial effect of this embodiment is that, by acquiring the application's occupancy status of the device's processor within the monitoring time, and then, in the occupancy status, determining the application's calling kernel, calling frequency, and calling time for each core of the processor, wherein each core includes small cores, large cores, and super-large cores. This achieves a power control scheme with a more explicit power management strategy and clearer control logic, provides a basis for determining the processor's occupancy status, avoids the impact of conventional complex control methods on users' daily operations, improves power control effect, and enhances user experience.
[0099] Example 4
[0100] Figure 6 This is a flowchart of the fourth embodiment of the power consumption control method of the present invention. Based on the above embodiment, the step of statistically analyzing the kernel call, call frequency, and call time in the occupied state according to the foreground state, background state, and functional state in the running state includes:
[0101] S21. Based on the state time of the foreground state, the background state, and the functional state, respectively, calculate the kernel call, the call frequency, and the call time under the three types of state time.
[0102] S22. Perform a weighted calculation on the kernel call, the call frequency, and the call time for each type of state time.
[0103] Optionally, in this embodiment, similarly as described in the example above, the current processor usage status of the two applications is determined for the foreground navigation stage of the navigation software, the background navigation stage of the navigation software, or the text chat function of the instant messaging software running in the foreground. Specifically, the three sets of data are statistically analyzed when the foreground navigation is in progress, the background navigation of the navigation software is in progress, or the text chat is running in the foreground, including the calling kernel, the calling frequency of each calling kernel, and the calling time of each calling kernel.
[0104] Optionally, in this embodiment, the three sets of three data items are weighted and calculated to estimate the power consumption of the device when the two applications mentioned above are the target applications.
[0105] The beneficial effect of this embodiment is that, by statistically analyzing the calling kernel, calling frequency, and calling time under the three categories of state times—foreground state, background state, and functional state—and then performing a weighted calculation on the calling kernel, calling frequency, and calling time under each category of state time, a power control scheme with a more explicit power management strategy and clearer control logic is achieved. This provides a data foundation for weighted calculation, avoids the impact of conventional complex control methods on users' daily operations, improves power control effectiveness, and enhances the user experience.
[0106] Example 5
[0107] Figure 7 This is a flowchart of the fifth embodiment of the power consumption control method of the present invention. Based on the above embodiment, the step of determining the power consumption values of the foreground state, the background state, and the functional state according to the calling kernel, the calling frequency, and the calling time respectively includes:
[0108] S31. Determine the relationship model between device power consumption and the calling kernel, the calling frequency, and the calling time;
[0109] S32. Substitute the weighted calculation results of each state time into the relational model to obtain the estimated power consumption value.
[0110] Optionally, in this embodiment, a relationship model is determined between device power consumption and the calling kernel, the calling frequency, and the calling time. It should be understood that this solution may be to set a power consumption relationship model for a set of target applications of the device, and the setting of the relationship model is based on big data analysis.
[0111] Optionally, in this embodiment, the solution may be to set the power consumption relationship model for each target application of the device separately, that is, to determine the relationship model corresponding to each application, so as to calculate the power consumption of multiple applications one by one.
[0112] Optionally, in this embodiment, considering that multiple applications in the device are running simultaneously, or that the various running states are overlapping and occurring simultaneously, it is more preferable to perform power consumption estimation as a whole system. In this case, a power consumption relationship model is set for the set of all applications in the device. This relationship model is set based on big data analysis. Then, power consumption is calculated separately for each target application.
[0113] The beneficial effect of this embodiment is that by determining the relationship model between device power consumption and the calling kernel, the calling frequency, and the calling time; and then substituting the weighted calculation results under each type of state time into the relationship model, the estimated power consumption value is obtained. This achieves a power control scheme with a more explicit power management strategy and clearer control logic, provides a basis for estimating power consumption values, avoids the impact of conventional complex control methods on users' daily operations, improves power control effect, and enhances user experience.
[0114] Example 6
[0115] Figure 8 This is a flowchart of the sixth embodiment of the power consumption control method of the present invention. Based on the above embodiment, if the power consumption value meets the threshold condition corresponding to the application, then adjusting one or more of the following when the application is in the foreground state, the background state, and the functional state: the calling kernel, the calling frequency, and the calling time.
[0116] S41. Preset the threshold condition corresponding to the application;
[0117] S42. Determine whether the calculated power consumption value meets the threshold condition.
[0118] Optionally, in this embodiment, the threshold condition corresponding to the application is preset according to the user's current remaining battery power. That is, the higher the remaining battery power, the higher the trigger point of the threshold condition and the more passive the power control.
[0119] Optionally, in this embodiment, the threshold condition corresponding to the application is preset according to the user's current system processing resource utilization rate. That is, the higher the system processing resource utilization rate, the lower the trigger point of the threshold condition and the more active the power control.
[0120] Optionally, in this embodiment, the threshold condition corresponding to the application is preset according to the user's set battery life expectation. That is, the higher the user's set battery life expectation, the lower the trigger point of the threshold condition and the more active the power control.
[0121] The beneficial effect of this embodiment is that by presetting the threshold conditions corresponding to the application, and then determining whether the calculated power consumption value meets the threshold conditions, a power control scheme with a more explicit power management strategy and clearer control logic is achieved. This provides a basis for setting threshold conditions, avoids the impact of conventional complex control methods on users' daily operations, improves power control performance, and enhances the user experience.
[0122] Example 7
[0123] Figure 9 This is a flowchart of the seventh embodiment of the power consumption control method of the present invention. Based on the above embodiment, the step of adjusting one or more of the following when the power consumption value meets the threshold condition corresponding to the application: when the application is in the foreground state, the background state, or the functional state: the calling kernel, the calling frequency, and the calling time.
[0124] S43. If the power consumption value meets the threshold condition corresponding to the application, then the power consumption value is parsed, and one or more states are determined as states to be adjusted among the application being in the foreground state, the background state, and the functional state.
[0125] S44. Adjust one or more of the following when adjusting the state to be adjusted: the calling kernel, the calling frequency, and the calling time.
[0126] Optionally, in this embodiment, due to different user habits, for example, some applications may be used in the background for a long time, or a certain function may be used for a long time. Therefore, in order to specifically address the time period with higher power consumption, in this embodiment, one or more states to be adjusted will be specifically selected from the foreground state, the background state, and the function state of the application.
[0127] Optionally, in this embodiment, when in the above-mentioned state to be adjusted, one or more of the calling kernel, the calling frequency, and the calling time in the state to be adjusted are specifically adjusted to solve the power consumption problem in the state to be adjusted.
[0128] The beneficial effect of this embodiment is that, by identifying that the power consumption value meets the threshold condition corresponding to the application, the power consumption value is parsed, and one or more states among the application's foreground state, background state, and functional state are determined as states to be adjusted; one or more of the calling kernel, calling frequency, and calling time are adjusted when the state to be adjusted is reached. This achieves a power control scheme with a more explicit power management strategy and clearer control logic, provides a control method for specific states, avoids the impact of conventional complex control methods on users' daily operations, improves power control effect, and enhances user experience.
[0129] Example 8
[0130] Figure 10 This is a flowchart of the eighth embodiment of the power consumption control method of the present invention. Based on the above embodiment, the step of adjusting one or more of the following when the power consumption value meets the threshold condition corresponding to the application: when the application is in the foreground state, the background state, or the functional state: the calling kernel, the calling frequency, and the calling time.
[0131] S45. If the power consumption value meets the threshold condition corresponding to the application, then the power consumption value is parsed, and one or more of the calling kernel, the calling frequency, and the calling time are determined as adjustment targets;
[0132] S46. Adjust the adjustment target when the application is in any of the foreground state, the background state, and the functional state.
[0133] Optionally, in this embodiment, unlike the above embodiments, this optional solution is a differentiated setting for the adjustment target. That is, considering the adjustment of the processor occupancy state, it can achieve the purpose of reducing power consumption more directly and accurately. Therefore, in this embodiment, one or more of the calling kernel, the calling frequency, and the calling time are determined as the adjustment target. That is, it is first necessary to determine the adjustment object with a higher correlation to the larger power consumption among the above-calculated power consumption values as the adjustment target of this embodiment.
[0134] The beneficial effect of this embodiment is that, by identifying that the power consumption value meets the threshold condition corresponding to the application, the power consumption value is parsed, and one or more of the calling kernel, the calling frequency, and the calling time are determined as adjustment targets; the adjustment targets are adjusted when the application is in any of the foreground state, the background state, and the functional state. This achieves a power control scheme with a more explicit power management strategy and clearer control logic, provides adjustment targets for specific states, avoids the impact of conventional complex control methods on users' daily operations, improves power control effect, and enhances user experience.
[0135] Example 9
[0136] Based on the above embodiments, the present invention also proposes a power consumption control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the power consumption control method as described in any of the above embodiments.
[0137] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0138] Example 10
[0139] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a power control program, which, when executed by a processor, implements the steps of the power control method as described in any of the above embodiments.
[0140] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0141] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0142] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0144] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A power consumption control method, characterized in that, The method includes: Obtain the running status of the application to be monitored and the processor usage status of the application; The system calculates the kernel call, call frequency, and call time for each of the foreground, background, and functional states in the operation state. Specifically, this includes: calculating the kernel call, call frequency, and call time for each of the three states (foreground, background, and functional states) based on their respective state times; and performing a weighted calculation on the kernel call, call frequency, and call time for each state time. The power consumption values for the foreground state, background state, and functional state are determined based on the calling kernel, the calling frequency, and the calling time, respectively. Specifically, this includes: determining a relationship model between device power consumption and the calling kernel, the calling frequency, and the calling time; and substituting the weighted calculation results for each type of state time into the relationship model to obtain the estimated power consumption value. If the power consumption value meets the threshold condition corresponding to the application, then one or more of the following are adjusted when the application is in any of the foreground state, the background state, and the functional state: the calling kernel, the calling frequency, and the calling time. The functional states include sub-states in which the application performs its various functions.
2. The power consumption control method according to claim 1, characterized in that, The process of obtaining the running status of the application to be monitored and the processor usage status of the application includes: Within a preset monitoring time period, the running status of the application is acquired; In the running state, the state time when the application is in the foreground state, the background state, and the functional state is determined respectively.
3. The power consumption control method according to claim 2, characterized in that, The step of obtaining the running status of the application to be monitored and the processor usage status of the application also includes: During the monitoring period, the application's usage status of the device's processor is obtained; In the occupied state, the calling kernel, the calling frequency, and the calling time of the application for each kernel of the processing are determined respectively, wherein each kernel includes small kernels, large kernels, and super large kernels.
4. The power consumption control method according to claim 1, characterized in that, If the power consumption value meets the threshold condition corresponding to the application, then adjusting one or more of the following when the application is in the foreground state, the background state, or the functional state: (This includes) The threshold conditions corresponding to the application are preset; Determine whether the calculated power consumption value meets the threshold condition.
5. The power consumption control method according to claim 4, characterized in that, If the power consumption value meets the threshold condition corresponding to the application, then adjusting one or more of the following when the application is in the foreground state, the background state, or the functional state: (further details omitted) If the power consumption value meets the threshold condition corresponding to the application, then the power consumption value is parsed, and one or more states are determined as states to be adjusted among the application being in the foreground state, the background state, and the functional state. Adjust one or more of the following when the state to be adjusted is: the kernel being called, the call frequency, and the call time.
6. The power consumption control method according to claim 5, characterized in that, If the power consumption value meets the threshold condition corresponding to the application, then adjusting one or more of the following when the application is in the foreground state, the background state, or the functional state: (further details omitted) If the power consumption value meets the threshold condition corresponding to the application, then the power consumption value is parsed, and one or more of the calling kernel, the calling frequency, and the calling time are determined as adjustment targets; The adjustment target is adjusted when the application is in any of the foreground state, the background state, and the functional state.
7. A power consumption control device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the power consumption control method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a power control program, which, when executed by a processor, implements the steps of the power control method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Terminal CPU performance control method, terminal and computer readable storage medium
CN107861602A
Terminal, resource control method thereof and computer readable storage medium
CN109862184A