Electronic equipment power consumption management method and device, storage medium and electronic equipment
By obtaining the current battery power and power threshold of electronic devices, dynamically adjusting the service module and DDR frequency, the battery life problem caused by redundant power consumption in the existing technology is solved, intelligent power consumption management under different power states is realized, and the battery life of electronic devices is improved.
Patent Information
- Application Number
- CN202510834898.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-08-15
AI Technical Summary
In the prior art, multimedia processing chips operate at the highest frequency by default, resulting in electronic devices continuing to consume redundant power consumption when low load or insufficient battery power, seriously affecting battery life.
By obtaining the current battery power and power threshold of the electronic device, dynamically adjusting the service module and DDR frequency, including closing the branch service module and reducing the frequency of the main service module to adapt to different power states and realizing intelligent power consumption management.
Enhance the battery life of electronic devices, and maintain core business operation under different power states through dynamic adjustment of power consumption strategies, avoiding the risk of early shutdown caused by excessive consumption.
Smart Images

Figure CN120499795A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic devices, and specifically to a method, device, storage medium, and electronic device for managing power consumption of electronic devices. Background Art
[0002] With the popularization of mobile terminals and IoT devices, battery life has become a core bottleneck restricting product competitiveness.
[0003] In existing technologies, multimedia processing chips (such as video codecs and image signal processors) generally use a static power management mode, running at the highest frequency by default to meet peak performance requirements. However, this "one-size-fits-all" design causes electronic devices to continue to consume redundant power even when under low load or when the battery is low, seriously affecting their battery life. Summary of the Invention
[0004] Embodiments of the present application provide a method, device, storage medium, and electronic device for managing power consumption of an electronic device, which can enhance the battery life of the electronic device.
[0005] In a first aspect, an embodiment of the present application provides a method for managing power consumption of an electronic device, including:
[0006] Acquire a current battery level and a current battery level threshold of the electronic device, where the current battery level threshold includes a first threshold and a second threshold;
[0007] Comparing the current battery level with the first threshold and the second threshold respectively;
[0008] When the current battery power is greater than the first threshold, maintaining normal operation of all service modules;
[0009] When the current battery power is less than or equal to the first threshold and greater than the second threshold, shut down the branch service module and reduce the operating frequency and DDR frequency of the main service module;
[0010] When the current battery power is less than the second threshold, the operating frequency of the main service module and the DDR frequency are further reduced.
[0011] In the electronic device power consumption management method provided in the embodiment of the present application, obtaining the current battery power includes:
[0012] Collect battery voltage and current data of the battery through the fuel gauge unit or ADC interface;
[0013] The current battery capacity is calculated based on the battery voltage and the current data by a coulomb counting method or an open circuit voltage method.
[0014] In the electronic device power consumption management method provided in the embodiment of the present application, obtaining the current power threshold includes:
[0015] Get the battery's current average discharge rate, health factor, and additional threshold adjustment;
[0016] calculating a target threshold adjustment amount based on the current average discharge rate, the health factor, and the additional threshold adjustment amount;
[0017] The preset power threshold is adjusted according to the target threshold adjustment amount to generate a current power threshold.
[0018] In the electronic device power consumption management method provided in an embodiment of the present application, obtaining the current average discharge rate, health factor, and additional threshold adjustment amount of the battery includes:
[0019] Calculate the current average discharge rate of the battery using a sliding window;
[0020] generating a health factor of the battery according to a ratio of the battery cycle number to the maximum cycle number;
[0021] Based on the user's expected remaining usage time, an additional threshold adjustment amount is determined.
[0022] In the electronic device power consumption management method provided in an embodiment of the present application, calculating the target threshold adjustment amount based on the current average discharge rate, the health factor, and the additional threshold adjustment amount includes:
[0023] Obtaining a historical average discharge rate of the battery;
[0024] comparing based on the historical average discharge rate and the current average discharge rate;
[0025] determining a basic threshold adjustment amount according to the comparison result and the health factor;
[0026] The basic threshold adjustment amount is added to the additional threshold adjustment amount to obtain a target threshold adjustment amount.
[0027] In the electronic device power consumption management method provided in an embodiment of the present application, determining the basic threshold adjustment amount based on the comparison result and the health factor includes:
[0028] When the current average discharge rate is greater than the historical average discharge rate, obtaining a sum of the health factor and 1, and multiplying the sum by a basic step length as a basic threshold adjustment amount;
[0029] When the current average discharge rate is less than or equal to the historical average discharge rate, a difference between 1 and the health factor is obtained, and a product of the difference and a basic step length is used as a basic threshold adjustment amount.
[0030] In the electronic device power consumption management method provided in an embodiment of the present application, determining the additional threshold adjustment amount based on the user's expected remaining usage time includes:
[0031] estimating the current remaining usage time based on the current battery power and the current average discharge rate;
[0032] The current remaining usage time is compared with the user's expected remaining usage time, and an additional threshold adjustment amount is determined according to the comparison result.
[0033] In a second aspect, an embodiment of the present application provides an electronic device power consumption management device, comprising:
[0034] an acquiring unit, configured to acquire a current battery level and a current battery level threshold of the electronic device, wherein the current battery level threshold includes a first threshold and a second threshold;
[0035] a comparison unit, configured to compare the current battery power with the first threshold and the second threshold respectively; when the current battery power is greater than the first threshold, maintaining normal operation of all business modules; when the current battery power is less than or equal to the first threshold and greater than the second threshold, shutting down the branch business module and reducing the operating frequency and DDR frequency of the main business module; and when the current battery power is less than the second threshold, further reducing the operating frequency and the DDR frequency of the main business module.
[0036] In a third aspect, the present application provides a storage medium storing a plurality of instructions suitable for loading by a processor to execute any of the above-mentioned methods for managing power consumption of an electronic device.
[0037] In a fourth aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned electronic device power consumption management methods when executing the computer program.
[0038] In summary, the electronic device power consumption management method provided by the embodiment of the present application includes obtaining the current battery power and current power threshold of the electronic device, the current power threshold including a first threshold and a second threshold; comparing the current battery power with the first threshold and the second threshold respectively; when the current battery power is greater than the first threshold, maintaining normal operation of all business modules; when the current battery power is less than or equal to the first threshold and greater than the second threshold, shutting down the branch business module and reducing the operating frequency and DDR frequency of the main business module; when the current battery power is less than the second threshold, further reducing the operating frequency and the DDR frequency of the main business module. This solution adjusts the working state of the electronic device in stages by comparing the current battery power of the electronic device with the current power threshold, so that the electronic device can intelligently adjust the system load and reduce power consumption in different power states to enhance battery life. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 This is a flow chart of a method for managing power consumption of an electronic device provided in an embodiment of the present application.
[0041] Figure 2 This is a schematic diagram of the structure of the electronic device power consumption management device provided in an embodiment of the present application.
[0042] Figure 3 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0044] It should be noted that, in this document, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] In the subsequent description, the use of suffixes such as "module", "component" or "unit" to represent elements is only for the purpose of facilitating the description of the present application and has no specific meaning. Therefore, "module", "component" or "unit" can be used interchangeably.
[0047] In the description of this application, it should be noted that the terms "upper," "lower," "left," "right," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this application and simplify the description. They are not intended to indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, terms such as "first" and "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0048] In existing technologies, multimedia processing chips (such as video codecs and image signal processors) generally use a static power management mode, running at the highest frequency by default to meet peak performance requirements. However, this "one-size-fits-all" design causes electronic devices to continue to consume redundant power even when under low load or when the battery is low, seriously affecting their battery life.
[0049] Based on this, an embodiment of the present application provides an electronic device power consumption management method, device, storage medium and electronic device. Specifically, the electronic device power consumption management device can be integrated into an electronic device, and the electronic device can be a server or a terminal and other devices; wherein the terminal can include a mobile phone, a wearable smart device, a tablet computer, a laptop computer, and a personal computer (PC), etc.; the server can be a single server or a server cluster composed of multiple servers, and can be a physical server or a virtual server.
[0050] The following will describe the technical solutions of this application in detail through specific embodiments. It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.
[0051] See also Figure 1 , Figure 1 : is a flow chart of the electronic device power consumption management method provided by the embodiment of the present application. The specific process of the electronic device power consumption management method can be as follows:
[0052] 101. Obtain a current battery power level and a current power level threshold of an electronic device, where the current power level threshold includes a first threshold and a second threshold.
[0053] In some embodiments, the current battery power of the electronic device may be acquired by utilizing a power meter unit of a system on chip (SoC) of the electronic device or by utilizing an ADC interface.
[0054] Specifically, based on a preset sampling period Δt (for example, once per minute), the battery voltage and current data of the battery can be collected through a fuel meter unit or an ADC interface; based on the battery voltage and current data, the current battery capacity E(t) can be calculated by a coulomb counting method or an open circuit voltage method.
[0055] In some embodiments, the current average discharge rate, health factor, and additional threshold adjustment of the battery can be obtained first; then, the target threshold adjustment is calculated based on the current average discharge rate, health factor, and additional threshold adjustment; finally, the preset power threshold is adjusted according to the target threshold adjustment to generate the current power threshold.
[0056] The preset power threshold can be set according to actual conditions and is not limited in this embodiment.
[0057] At this time, you can first obtain the battery power E(t-Δt) of the previous sampling cycle, and then calculate the current battery discharge rate r(t) based on the current battery power E(t), the battery power of the previous sampling cycle, and the sampling cycle Δt. Specifically, it can be as follows:
[0058]
[0059] To smooth out measurement errors, this embodiment uses a sliding window to calculate the current average discharge rate of the battery. A sliding window is a data processing technique used to maintain a fixed-size subset (window) in a continuous data stream and perform calculations or statistical analysis on the data within the window.
[0060] In a sliding window, only a certain number of recent data points are processed, such as the last 10 minutes or the last 100 data samples. As new data arrives, the window "slides"—that is, the oldest data is discarded and the newest data is added. This ensures that the data within the window remains current and representative.
[0061] Various statistics can be calculated within a window, such as average, maximum, minimum, or sum. For example, in battery discharge rate calculation, using a sliding window to calculate the current average discharge rate can more smoothly reflect the real-time status and prevent fluctuations in a single instantaneous value from significantly affecting the overall judgment.
[0062] In this embodiment, the sliding window is used to collect battery discharge rate data R within a preset time (for example, within 10 minutes), and the current average discharge rate of the battery is calculated based on this data. Specifically, the current average discharge rate The calculation process can be as follows:
[0063]
[0064] The current average discharge rate r can reflect the energy consumption trend of the battery in the current period of time.
[0065] Among them, the battery health factor H is based on the battery cycle number C and the maximum cycle number C MAX Specifically, the health factor H can be generated by the following formula:
[0066]
[0067] In this formula, the health factor H is limited to between 0.2 and 1.0 by the clamp function to ensure that the health factor is not too low or too high. The maximum number of cycles C of different types of batteries (such as lithium-ion and polymer) MAX May be different.
[0068] In the embodiment of the present application, the user can set the user's expected remaining usage time T according to the demand for battery life. MINBy introducing the user's subjective expectations (such as battery life) to regulate the system power consumption strategy, the dynamic threshold is not only controlled by the objective battery status, but also responds to the user's personalized needs for remaining usage time.
[0069] In some embodiments, the remaining usage time T can be calculated based on the user's expected usage time. MIN Specifically, the remaining usage time T can be estimated based on the current battery power and the current average discharge rate. ext Then the current remaining usage time T ext and the user's expected remaining usage time T MIN A comparison is performed, and an additional threshold adjustment amount Δextra is determined according to the comparison result.
[0070] When the current remaining usage time T ext Less than the user's expected remaining usage time T MIN When the battery life is insufficient, the additional threshold adjustment Δextra can be calculated by the preset adjustment coefficient k: Δextra=k·(T MIN -T ext ).
[0071] When the current remaining usage time T ext Greater than or equal to the user's expected remaining usage time T MIN When , it indicates that the battery life is sufficient, and the additional threshold adjustment amount Δextra can be 0. Of course, the additional threshold adjustment amount Δextra can also be further modified according to user needs.
[0072] It should be noted that the adjustment coefficient k needs to be adapted according to different electronic devices and usage scenarios so that the additional threshold adjustment amount can meet the battery life requirements without causing frequent or excessive threshold jumps.
[0073] In this embodiment, if battery life is estimated to be insufficient, the threshold is automatically raised, enabling power consumption control earlier. When battery life drops but before the minimum threshold is triggered, the additional threshold adjustment can push the threshold "upward," enabling early entry into a power-saving state, thereby preventing sudden battery depletion from causing the electronic device to shut down. This is particularly true in scenarios where users want to retain a certain amount of usage time (such as navigation, recording, and calls), ensuring that core services continue to function rather than being completely powered off.
[0074] Understandably, when electronic devices are under high load and at high discharge rates, even if the battery charge remains adequate, the remaining usage time expected by the user may still be insufficient. The additional adjustment allows electronic devices to "predictively reduce power consumption" in such scenarios, avoiding the need to wait until the battery level approaches the lower limit before adjusting, thereby freeing up battery resources for future use.
[0075] In some embodiments, the step of "calculating the target threshold adjustment amount based on the current average discharge rate, health factor and additional threshold adjustment amount" can be: obtaining the historical average discharge rate of the battery; comparing the historical average discharge rate and the current average discharge rate; determining the basic threshold adjustment amount based on the comparison result and the health factor; adding the basic threshold adjustment amount to the additional threshold adjustment amount to obtain the target threshold adjustment amount.
[0076] Among them, the historical average discharge rate The average discharge rate of the battery over a longer period of time (such as the past hour or the past day).
[0077] In some embodiments, a long-term window averaging method may be used to obtain the historical average discharge rate. Specifically, it can be as follows:
[0078]
[0079] In the above formula, r(t i ) represents the discharge rate at the i-th historical sampling moment. i represents the i-th sampling time point. m represents the number of historical sampling points (for example, if sampling is performed once per minute for the past 60 minutes, then m = 60m).
[0080] In another embodiment, the exponentially weighted moving average (EWMA) method can be used to obtain the historical average discharge rate. Specifically, we can use exponential weighting to smooth historical data and gradually update the average value so that it is sensitive to new data but does not fluctuate violently, as follows:
[0081] Where α∈(0,1) is the smoothing factor. The smaller α is, the stronger the historical inertia is, while the larger α is, the faster the response is. Indicates the historical average discharge rate at the previous moment (the result of the previous round of calculation). r(t) represents the discharge rate at the current sampling moment t. Represents the historical average discharge rate at the current time t.
[0082] The long-term window averaging method is suitable for offline batch statistics or fixed-window situations, while the exponentially weighted moving average method is more suitable for real-time, continuous, and embedded power management systems. During implementation, the appropriate method can be selected based on the actual situation.
[0083] When the current average discharge rate is greater than the historical average discharge rate, it indicates that the current load is high. In this case, the sum of the health factor and 1 can be obtained, and the product of the sum and the basic step length can be used as the basic threshold adjustment amount.
[0084] When the current average discharge rate is less than or equal to the historical average discharge rate, it indicates that the current load is low. In this case, the difference between 1 and the health factor can be obtained, and the product of the difference and the basic step length can be used as the basic threshold adjustment amount.
[0085] When the health factor approaches the lower limit (for example, close to 0.2), it means that the number of battery cycles is close to the maximum cycle life, the battery performance is degraded, and the energy storage capacity is weakened. This embodiment uses the health factor to adjust the basic step size, so that the adjustment is more aggressive when the load is high. If the health factor is too low, the result of multiplying by (1+health factor) will be smaller than expected, resulting in insufficient adjustment of the basic threshold and failure to trigger the power consumption reduction strategy in time. This may cause the electronic device to maintain a high power output when the battery is in poor condition, thereby accelerating battery aging and causing insufficient battery life. In addition, a health factor that is too low may cause the electronics to insufficiently respond to the true health status of the battery, and may not be able to quickly switch to power saving mode in an emergency, thereby causing the risk of the electronic device shutting down prematurely due to excessive battery load.
[0086] If the health factor value is high, it indicates that the battery cycle number is small and the battery is in a good working condition. When the health factor value is high, this application will use a higher adjustment coefficient (basic step length multiplied by (1+H)) when calculating the basic threshold adjustment amount, which will make the basic threshold adjustment amount relatively larger. When the actual condition of the battery is still good, an excessively large basic threshold adjustment amount may trigger power-saving strategies such as frequency reduction and shutdown of branch services in advance, thereby affecting the performance of electronic devices, especially in scenarios where users have high performance requirements. Electronic devices may adopt a more aggressive power consumption control strategy when the battery condition is still healthy enough, resulting in performance degradation or reduced response speed, which in turn affects the user experience.
[0087] This embodiment limits the health factor H to between 0.2 and 1.0 through the clamp function, which can ensure that the health factor is not too low or too high.
[0088] 102. Compare the current battery power with a first threshold and a second threshold respectively.
[0089] By comparing the current battery power level with the first threshold and the second threshold respectively, it can be determined which power consumption control gear the electronic device currently belongs to.
[0090] 103. When the current battery power is greater than a first threshold, keep all service modules operating normally.
[0091] When the current battery power is greater than the first threshold, it indicates that the current power is sufficient, and the electronic device can maintain normal operation of all service modules. All service modules operate at standard or maximum frequency, and no energy-saving measures are triggered.
[0092] 104. When the current battery power is less than or equal to the first threshold and greater than the second threshold, shut down the branch service module and reduce the operating frequency and DDR frequency of the main service module.
[0093] When the current battery power is less than or equal to the first threshold, it means that the current power has entered the middle range. In order to extend the battery life, the branch business modules (such as auxiliary code streams and non-critical modules) can be turned off, and the first gear frequency reduction control can be performed on the main business module and DDR.
[0094] 105. When the current battery power is less than a second threshold, further reduce the operating frequency of the main service module and the DDR frequency.
[0095] When the current battery charge falls below the second threshold, the electronic device enters the lowest power consumption mode. The main service module continues to operate, but its operating frequency is significantly reduced, and the frequency of the memory bandwidth DDR is also reduced simultaneously. In other words, at this time, the main service module and DDR can be subjected to the second level of frequency reduction control to ensure that the electronic device maintains operation while maximizing power conservation. The second level of frequency reduction control is a further frequency reduction operation based on the completion of the first level of frequency reduction control.
[0096] It is understood that in the implementation of this application, in order to implement a low-power processing strategy that is dynamically adjusted based on the current battery level, the chip and system of the electronic device must support the dynamic frequency switching capability of the service module and related hardware modules (such as DDR). To ensure that the first-level frequency reduction control and the second-level frequency reduction control process are successfully completed without affecting system stability and business continuity, the system design must meet the following technical requirements:
[0097] On the one hand, the step size of the first-gear and second-gear frequency reduction control should be reasonably controllable to avoid problems such as unstable operation, data errors, or service interruptions in business modules such as processors and image processing units due to excessive frequency jumps. Preferably, when executing the first-gear and / or second-gear frequency reduction control, the system can adopt fine-grained, multi-level frequency gears and switch them step by step based on the current battery power to ensure the clock stability of the circuit system and the continuity of task execution.
[0098] Furthermore, the response time for both the first and second frequency reduction controls must be sufficiently short. Upon detecting that the current battery charge level has crossed a threshold, the system should be able to complete the frequency adjustment within a preset timeframe, enabling real-time response to energy consumption control policies. This fast and smooth switching process effectively avoids frame rate drops, image freezes, or audio and video desynchronization in video processing, streaming media, or other timing-sensitive applications, thereby ensuring user experience continuity and service quality.
[0099] In summary, the electronic device power consumption management method provided by the embodiment of the present application includes obtaining the current battery power and current power threshold of the electronic device, the current power threshold including a first threshold and a second threshold; comparing the current battery power with the first threshold and the second threshold respectively; when the current battery power is greater than the first threshold, maintaining the normal operation of all business modules; when the current battery power is less than or equal to the first threshold and greater than the second threshold, shutting down the branch business module and reducing the operating frequency and DDR frequency of the main business module; when the current battery power is less than the second threshold, further reducing the operating frequency and DDR frequency of the main business module. This solution uses a dynamic threshold adjustment algorithm to comprehensively consider the collected current battery power, historical average discharge rate and health factor, and at the same time, combines the user's expected remaining usage time to calculate the target threshold adjustment amount that adapts to the current load and health status, and then adjusts the preset power threshold to obtain the current power threshold, so that the electronic device can automatically switch to the optimal power consumption control strategy under different power states, which not only ensures the continuous operation of the main business module, but also greatly improves the endurance of the electronic device in a low power state, and has strong practicality and flexibility.
[0100] To facilitate better implementation of the electronic device power consumption management method provided in the embodiment of the present application, the embodiment of the present application also provides an electronic device power consumption management device. The meanings of the terms herein are the same as those in the above-mentioned electronic device power consumption management method. For specific implementation details, please refer to the description in the method embodiment.
[0101] See also Figure 2 , Figure 2 201 is a schematic diagram of the structure of the electronic device power consumption management device provided by the embodiment of the present application. The electronic device power consumption management device may include an acquisition unit 201 and a comparison unit 202.
[0102] An acquiring unit 201 is configured to acquire a current battery level and a current battery level threshold of the electronic device, where the current battery level threshold includes a first threshold and a second threshold;
[0103] The comparison unit 202 is used to compare the current battery power with the first threshold and the second threshold respectively; when the current battery power is greater than the first threshold, all business modules are kept in normal operation; when the current battery power is less than or equal to the first threshold and greater than the second threshold, the branch business module is shut down and the operating frequency and DDR frequency of the main business module are reduced; when the current battery power is less than the second threshold, the operating frequency and DDR frequency of the main business module are further reduced.
[0104] The specific implementation of each of the above units can be found in the above-mentioned embodiment of the electronic device power consumption management method, and will not be described in detail here.
[0105] In summary, the electronic device power consumption management device provided in the embodiment of the present application can obtain the current battery power and the current power threshold of the electronic device through the acquisition unit 201, and the current power threshold includes a first threshold and a second threshold; the comparison unit 202 compares the current battery power with the first threshold and the second threshold respectively; when the current battery power is greater than the first threshold, all business modules are kept in normal operation; when the current battery power is less than or equal to the first threshold, and greater than the second threshold, the branch business module is turned off, and the operating frequency and DDR frequency of the main business module are reduced; when the current battery power is less than the second threshold, the operating frequency and DDR frequency of the main business module are further reduced. This solution adjusts the working state of the electronic device in stages by comparing the current battery power of the electronic device with the current power threshold, so that the electronic device can intelligently adjust the system load and reduce power consumption under different power states, thereby enhancing battery life.
[0106] The embodiment of the present application further provides an electronic device, in which the electronic device power consumption management device of the embodiment of the present application may be integrated, such as Figure 3 , which shows a schematic structural diagram of an electronic device involved in an embodiment of the present application, specifically:
[0107] The electronic device may include one or more processing core processors 301 and one or more computer readable storage media memories 302 and other components. Those skilled in the art will understand that Figure 3 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0108] The processor 301 is the control center of the electronic device. It connects the various parts of the entire electronic device using various interfaces and lines. By running or executing the software programs and / or this application stored in the memory 302, and calling the data stored in the memory 302, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operation of storage media, user interface and application programs, etc., and the modem processor mainly handles wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301.
[0109] The memory 302 can be used to store software programs and the present application. The processor 301 executes various functional applications and data processing by running the software programs and the present application stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating storage media, applications required for at least one function, etc.; the data storage area may store data created based on the use of the electronic device, etc. In addition, the memory 302 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0110] Although not shown, the electronic device may further include a display unit, an input unit, a power supply, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application programs stored in the memory 302 to implement various functions as follows:
[0111] Obtaining a current battery level and a current battery level threshold of the electronic device, where the current battery level threshold includes a first threshold and a second threshold;
[0112] Comparing the current battery level with a first threshold and a second threshold respectively;
[0113] When the current battery power is greater than the first threshold, all service modules are kept operating normally;
[0114] When the current battery power is less than or equal to the first threshold and greater than the second threshold, the branch service module is shut down and the operating frequency and DDR frequency of the main service module are reduced;
[0115] When the current battery power is less than the second threshold, the operating frequency of the main service module and the DDR frequency are further reduced.
[0116] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0117] To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any of the methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0118] Obtaining a current battery level and a current battery level threshold of the electronic device, where the current battery level threshold includes a first threshold and a second threshold;
[0119] Comparing the current battery level with a first threshold and a second threshold respectively;
[0120] When the current battery power is greater than the first threshold, all service modules are kept operating normally;
[0121] When the current battery power is less than or equal to the first threshold and greater than the second threshold, the branch service module is shut down and the operating frequency and DDR frequency of the main service module are reduced;
[0122] When the current battery power is less than the second threshold, the operating frequency of the main service module and the DDR frequency are further reduced.
[0123] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0124] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0125] Since the instructions stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by any method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0126] The above is a detailed introduction to the electronic device power consumption management method, device, storage medium and electronic device provided by this application. Specific examples are used in this article to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the core idea of this application; at the same time, for technical personnel in this field, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A method for managing power consumption of an electronic device, characterized in that: include: Acquire a current battery level and a current battery level threshold of the electronic device, where the current battery level threshold includes a first threshold and a second threshold; Comparing the current battery level with the first threshold and the second threshold respectively; When the current battery power is greater than the first threshold, maintaining normal operation of all service modules; When the current battery power is less than or equal to the first threshold and greater than the second threshold, shut down the branch service module and reduce the operating frequency and DDR frequency of the main service module; When the current battery power is less than the second threshold, the operating frequency of the main service module and the DDR frequency are further reduced.
2. The electronic device power consumption management method according to claim 1, wherein: Get the current battery level, including: Collect battery voltage and current data of the battery through the fuel gauge unit or ADC interface; The current battery capacity is calculated based on the battery voltage and the current data by a coulomb counting method or an open circuit voltage method.
3. The electronic device power consumption management method according to claim 1, wherein: Get the current power threshold, including: Get the battery's current average discharge rate, health factor, and additional threshold adjustment; calculating a target threshold adjustment amount based on the current average discharge rate, the health factor, and the additional threshold adjustment amount; The preset power threshold is adjusted according to the target threshold adjustment amount to generate a current power threshold.
4. The electronic device power consumption management method according to claim 3, wherein: The obtaining of the current average discharge rate, health factor, and additional threshold adjustment of the battery includes: Calculate the current average discharge rate of the battery using a sliding window; generating a health factor of the battery according to a ratio of the battery cycle number to the maximum cycle number; Based on the user's expected remaining usage time, an additional threshold adjustment amount is determined.
5. The electronic device power consumption management method according to claim 3, wherein: The calculating the target threshold adjustment amount according to the current average discharge rate, the health factor, and the additional threshold adjustment amount includes: Obtaining a historical average discharge rate of the battery; comparing based on the historical average discharge rate and the current average discharge rate; determining a basic threshold adjustment amount according to the comparison result and the health factor; The basic threshold adjustment amount is added to the additional threshold adjustment amount to obtain a target threshold adjustment amount.
6. The electronic device power consumption management method according to claim 5, wherein: The determining of the basic threshold adjustment amount according to the comparison result and the health factor includes: When the current average discharge rate is greater than the historical average discharge rate, obtaining a sum of the health factor and 1, and multiplying the sum by a basic step length as a basic threshold adjustment amount; When the current average discharge rate is less than or equal to the historical average discharge rate, a difference between 1 and the health factor is obtained, and a product of the difference and a basic step length is used as a basic threshold adjustment amount.
7. The electronic device power consumption management method according to claim 4, wherein: The determining of the additional threshold adjustment amount based on the user's expected remaining usage time includes: estimating the current remaining usage time based on the current battery power and the current average discharge rate; The current remaining usage time is compared with the user's expected remaining usage time, and an additional threshold adjustment amount is determined according to the comparison result.
8. An electronic equipment power consumption management device, characterized in that: include: an acquiring unit, configured to acquire a current battery level and a current battery level threshold of the electronic device, wherein the current battery level threshold includes a first threshold and a second threshold; a comparison unit, configured to compare the current battery power with the first threshold and the second threshold respectively; when the current battery power is greater than the first threshold, maintaining normal operation of all business modules; when the current battery power is less than or equal to the first threshold and greater than the second threshold, shutting down the branch business module and reducing the operating frequency and DDR frequency of the main business module; and when the current battery power is less than the second threshold, further reducing the operating frequency and the DDR frequency of the main business module.
9. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the electronic device power consumption management method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The electronic device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the electronic device power consumption management method according to any one of claims 1 to 7 when executing the computer program.
Citation Information
Cited By
Intercom power consumption control method and device, electronic equipment and storage medium
CN122513853A
Intercom power consumption control method and device, electronic equipment and storage medium
CN122513853B