Battery management method, battery management apparatus, and electronic device
By determining the working mode of the electronic device according to the battery power and optimizing the timer triggering time, the problem of insufficient battery power utilization in the existing technology is solved, the battery life is extended and the stability of the device is improved.
Patent Information
- Application Number
- PCT/CN2024/071243
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-14
- Filing Date
- 2024-01-09
- Publication Date
- 2024-10-17
AI Technical Summary
Existing battery management methods are difficult to fully utilize battery power, resulting in shortened battery life, and cannot effectively support the maximum power function of electronic devices under different power conditions.
By determining the working mode according to the battery power when the electronic device wakes up, the device is controlled to operate within the maximum supported power range, including preset working modes and user-selected functions, and the timer trigger time is optimized to reduce the number of wake-ups.
It extends the battery life, avoids crashes or restarts due to insufficient power, makes full use of battery power, and improves user experience.
Smart Images

Figure CN2024071243_17102024_PF_FP_ABST
Abstract
Description
Battery management method, battery management device and electronic equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese Patent Application No. 202310440373.X filed on April 14, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of electronic technology, and in particular to a battery management method, a battery management device, and an electronic device. Background Art
[0004] Battery life has long been a concern in electronic devices. Typically, to extend battery life, electronic devices are placed in a sleep state when not in use and awakened to function as desired. However, current sleep / wake-up schemes struggle to fully utilize the battery's charge, resulting in wasted battery power and reduced battery life. Therefore, there is a need for improved battery management.
[0005] Summary of the Invention
[0006] One of the purposes of the present disclosure is to provide a battery management method, a battery management device, and an electronic device, which can fully utilize the battery power and extend the battery life by determining the working status of the electronic device according to its battery power when waking up the electronic device.
[0007] According to a first aspect of the present disclosure, a battery management method for an electronic device is provided, the battery management method comprising:
[0008] When the electronic device receives the wake-up signal, obtaining a current power level of a battery used for the electronic device;
[0009] Determining an operating mode of the electronic device according to the current power level of the battery, wherein the maximum power under the determined operating mode can be supported by the current power level of the battery; and
[0010] The electronic device is controlled to operate in the determined working mode.
[0011] In some embodiments, the wake-up signal includes at least one of the following:
[0012] Key trigger signal;
[0013] Touch screen trigger signal; and
[0014] Timer trigger signal.
[0015] In some embodiments, the timer for generating the timer trigger signal includes at least one of a software timer and a hardware timer.
[0016] In some embodiments, determining the operating mode of the electronic device according to the current power level of the battery includes:
[0017] According to a preset correspondence between the current power level of the battery and the operating mode of the electronic device, the preset operating mode corresponding to the current power level of the battery is determined as the operating mode of the electronic device.
[0018] In some embodiments, determining the operating mode of the electronic device according to the current power level of the battery includes:
[0019] When the current power level of the battery is greater than or equal to a first preset power level, determining and displaying a plurality of candidate operating modes that can be supported by the current power level of the battery, receiving a selection instruction from a user, and determining a corresponding one of the plurality of candidate operating modes as the operating mode of the electronic device according to the selection instruction; and / or
[0020] When the current power level of the battery is less than a second preset power level, determining an operating mode corresponding to the current power level of the battery as the operating mode of the electronic device;
[0021] Wherein, the second preset power level is less than or equal to the first preset power level.
[0022] In some embodiments, the battery management method further includes:
[0023] When the electronic device is in an awake state, receiving a customized instruction from a user; and
[0024] According to the customized instruction, the functions included in the corresponding working mode are determined.
[0025] In some embodiments, the operating mode of the electronic device includes at least one of the following:
[0026] a first operating mode, in which the electronic device can realize all functions;
[0027] a second operating mode, in which functions of the electronic device having a maximum power greater than or equal to the first maximum power threshold are disabled;
[0028] a third operating mode, in which peripheral devices powered by the electronic device and having a maximum power greater than or equal to a second maximum power threshold are disabled;
[0029] a fourth operating mode, in which the local triggered wake-up of the electronic device is disabled and the electronic device remains in a network online state;
[0030] a fifth working mode, in which the electronic device is in a network offline state and remains in a locally powered sleep state;
[0031] Among them, the first maximum power in the first working mode is greater than the second maximum power in the second working mode, the second maximum power in the second working mode is greater than the third maximum power in the third working mode, the third maximum power in the third working mode is greater than the fourth maximum power in the fourth working mode, and the fourth maximum power in the fourth working mode is greater than the fifth maximum power in the fifth working mode.
[0032] In some embodiments, determining the operating mode of the electronic device according to the current power level of the battery includes:
[0033] When the current power level of the battery is greater than or equal to a first preset proportion of the total power level of the battery, determining the first operating mode as the operating mode of the electronic device;
[0034] When the current power level of the battery is less than a first preset proportion of the total power level of the battery and is greater than or equal to a second preset proportion of the total power level of the battery, determining the second operating mode as the operating mode of the electronic device;
[0035] When the current power level of the battery is less than a second preset proportion of the total power level of the battery and is greater than or equal to a third preset proportion of the total power level of the battery, determining the third operating mode as the operating mode of the electronic device;
[0036] When the current power level of the battery is less than a third preset proportion of the total power level of the battery and is greater than or equal to a fourth preset proportion of the total power level of the battery, determining the fourth operating mode as the operating mode of the electronic device; and
[0037] When the current power level of the battery is less than a fourth preset proportion of the total power level of the battery, determining the fifth operating mode as the operating mode of the electronic device;
[0038] The first preset ratio is greater than the second preset ratio, the second preset ratio is greater than the third preset ratio, and the third preset ratio is greater than the fourth preset ratio.
[0039] In some embodiments, the first preset ratio is 45% to 50% or 50% to 55%, the second preset ratio is 25% to 30% or 30% to 35%, the third preset ratio is 7% to 10% or 10% to 13%, and the fourth preset ratio is 2% to 5% or 5% to 8%.
[0040] In some embodiments, controlling the electronic device to operate in the determined operating mode includes:
[0041] Get the next initial trigger time and maximum delay time of each timer in one or more timers to be triggered,
[0042] Calculate the latest triggering time of each timer based on the initial triggering time and the maximum delay time of each timer, and
[0043] Setting the latest triggering time closest to the current time among the one or more latest triggering times of the one or more timers as the next wake-up time of the electronic device; and / or
[0044] Controlling the electronic device to operate in the determined operating mode includes:
[0045] Get the next initial triggering time and the maximum advance time of each timer in one or more timers to be triggered,
[0046] Calculate the earliest triggering time of each timer based on its initial triggering time and the maximum advance time, and
[0047] When the earliest triggering time of the timer is earlier than or equal to the current triggering time, the timer is triggered.
[0048] In some embodiments, the next wake-up time of the electronic device is set in a hardware timer; and / or at least one of the delayable time and the advanceable time of the timer is set when the timer is created.
[0049] According to a second aspect of the present disclosure, a battery management device for an electronic device is provided. The battery management device includes a memory and a processor. Instructions are stored on the memory. When the instructions are executed by the processor, the steps of the battery management method described above are implemented.
[0050] According to a third aspect of the present disclosure, an electronic device is provided, comprising the battery management device as described above.
[0051] In some embodiments, the electronic device includes at least one of a video camera and a still camera.
[0052] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the steps of the battery management method described above are implemented.
[0053] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0055] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0056] FIG1 shows a schematic flow chart of a battery management method according to an exemplary embodiment of the present disclosure;
[0057] FIG2 shows a corresponding relationship diagram between the current power level of a battery and the operating mode of an electronic device according to a specific example of the present disclosure;
[0058] FIG3 shows a flow chart of step S200 in a battery management method according to a specific embodiment of the present disclosure;
[0059] FIG4 shows a flow chart of step S300 in a battery management method according to another specific embodiment of the present disclosure;
[0060] FIG5 shows a flow chart of step S300 in a battery management method according to another specific embodiment of the present disclosure;
[0061] FIG6 shows a schematic diagram of the wake-up time of an electronic device according to a specific example of the present disclosure;
[0062] FIG7 shows a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
[0063] Note that in the embodiments described below, the same reference numerals are sometimes used in common across different drawings to denote the same parts or parts having the same functions, and their repeated descriptions are omitted. In this specification, similar reference numerals and letters are used to denote similar items. Therefore, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.
[0064] To facilitate understanding, the positions, sizes, and ranges of various structures shown in the drawings and the like may not always represent actual positions, sizes, and ranges. Therefore, the disclosed invention is not limited to the positions, sizes, and ranges disclosed in the drawings and the like. Furthermore, the drawings are not necessarily drawn to scale, and some features may be exaggerated to illustrate details of specific components. DETAILED DESCRIPTION
[0065] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0066] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or use. That is, the various techniques, methods, and devices described herein are presented in an exemplary manner to illustrate various embodiments of the present disclosure and are not intended to be limiting. Those skilled in the art will understand that these are merely exemplary of, and not exhaustive of, ways to practice the present disclosure.
[0067] Technologies, methods and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, such technologies, methods and equipment should be considered part of the authorization specification.
[0068] In order to extend the battery life of electronic devices, the operation of electronic devices can be controlled based on a sleep / wake-up scheme. Specifically, when the electronic device is not in use, it can be set to a sleep state, in which the power consumption of the electronic device is low; when the electronic device needs to be used, it can be woken up to perform the desired function. However, the maximum power (or instantaneous peak power) required for the electronic device to perform various functions may be different. At the same time, when the battery has different remaining power levels, the maximum power it can support is usually also different. Therefore, in order to enable the electronic device to operate various functions normally after being awakened, it is generally necessary to set the electronic device to no longer be able to be awakened when a considerable amount of power is still remaining in the battery. Through the setting method of this solution, as long as the electronic device can be awakened, the remaining power of the battery used for the electronic device is still sufficient to support the operation of the various functions of the electronic device, avoiding the electronic device from freezing, restarting, etc. due to the battery power being unable to support certain functions with higher maximum power. For example, when the battery has 20% remaining power, it may no longer be able to support the normal operation of certain high-power functions. At this time, the electronic device will be set to be unable to wake up or will be automatically shut down. Then, this 20% remaining power will not be effectively utilized. However, in reality, although the 20% remaining power cannot support the operation of high-power functions, it may still be able to support certain low-power functions. Therefore, under this battery management method, a considerable portion of the battery power will not be fully utilized, resulting in a reduction in battery life.
[0069] To address the above issues, the present disclosure proposes a battery management method for an electronic device. By determining the operating state of the electronic device after being awakened based on the battery power, the battery power can be fully utilized. In an exemplary embodiment of the present disclosure, as shown in FIG1 , the battery management method may include:
[0070] Step S100: When the electronic device receives a wake-up signal, the current power level of the battery of the electronic device is obtained.
[0071] Among them, the wake-up signal may include at least one of a key trigger signal, a touch screen trigger signal and a timer trigger signal. Specifically, the user can wake up the electronic device by operating the user interaction interface such as the key and touch screen provided in the electronic device. Generally speaking, once the electronic device receives these trigger signals from the user interaction interface, it can be immediately awakened to respond to the user's needs in a timely manner. Alternatively, in order to enable the electronic device in the dormant state to still operate the functions necessary for keeping alive normally (for example, regular monitoring of various operating parameters of the electronic device, etc.), one or more timers can be set to regularly wake up the electronic device. When the electronic device is awakened by the timer, it can perform corresponding actions based on the triggering of the timer. Here, the timer may include a hardware timer in the form of hardware, or a software timer written in the program software in the form of program code, etc., which can all be configured to generate a timer trigger signal, without limitation here.
[0072] The battery used to power the electronic device can be internal to the electronic device or an external battery that is independent of and electrically connected to the electronic device, without limitation. When the electronic device receives a wake-up signal, a corresponding component such as a microcontroller in the electronic device can communicate with the battery to obtain the current battery charge.
[0073] Returning to FIG1 , the battery management method may further include:
[0074] Step S200: determining the operating mode of the electronic device according to the current power level of the battery.
[0075] The maximum power in the determined operating mode can be supported by the current battery charge. In other words, the current battery charge will be able to support the operation of various functions in the operating mode of the electronic device after it is awakened, thereby avoiding the electronic device from freezing or restarting due to insufficient battery charge to support the maximum power, thereby improving the user experience.
[0076] The operating mode of an electronic device can be determined based on the current battery charge in a variety of ways. In some embodiments, a correspondence between the current battery charge and the operating mode can be pre-set. Once the current battery charge is obtained, the preset operating mode corresponding to the current battery charge can be directly determined as the operating mode of the electronic device based on the preset correspondence between the current battery charge and the operating mode of the electronic device. In the determined operating mode, the electronic device can operate corresponding functions, and the maximum power consumption required to implement these functions can be supported by the current battery charge.
[0077] In a specific embodiment, the operating modes of an electronic device may include a first operating mode (e.g., performance mode), a second operating mode (e.g., standard mode), a third operating mode (e.g., low-power mode), a fourth operating mode (e.g., standby mode), and a fifth operating mode (e.g., no-power mode). In the first operating mode, the electronic device can perform all functions, including high-power consumption additional functions used to improve the performance of the electronic device. In the second operating mode, functions in the electronic device with a maximum power greater than or equal to a first maximum power threshold may be disabled. For example, highly power-consuming functions such as intelligent algorithms in the electronic device may be disabled. In the third operating mode, peripheral devices powered by the electronic device and with a maximum power greater than or equal to a second maximum power threshold may be disabled. For example, if the electronic device is a camera or a still camera, highly power-consuming peripheral devices such as fill lights and speakers powered by the camera or still camera may be disabled. Furthermore, in this specific embodiment, the second maximum power threshold may be lower than the first maximum power threshold. In the fourth operating mode, local triggered wakeup of the electronic device may be disabled, and the electronic device remains online. In the fifth operating mode, the electronic device may be offline, and the electronic device remains in local powered sleep mode. Here, the first maximum power in the first working mode may be greater than the second maximum power in the second working mode, the second maximum power in the second working mode may be greater than the third maximum power in the third working mode, the third maximum power in the third working mode may be greater than the fourth maximum power in the fourth working mode, and the fourth maximum power in the fourth working mode may be greater than the fifth maximum power in the fifth working mode. In other words, as the current power level of the battery decreases, the functions that can be achieved in the working state of the electronic device after being awakened also decrease accordingly. As the current power level of the battery decreases, priority is given to maintaining functions in the electronic device that consume less power or are necessary to maintain the basic operation of the electronic device, while priority is given to disabling additional functions in the electronic device that consume more power and are used to achieve high performance.
[0078] Based on the above five operating modes, determining the operating mode of the electronic device according to the current battery charge may include: determining the first operating mode as the operating mode of the electronic device when the current battery charge is greater than or equal to a first preset proportion of the total battery charge; determining the second operating mode as the operating mode of the electronic device when the current battery charge is less than the first preset proportion of the total battery charge and greater than or equal to a second preset proportion of the total battery charge; determining the third operating mode as the operating mode of the electronic device when the current battery charge is less than the second preset proportion of the total battery charge and greater than or equal to a third preset proportion of the total battery charge; determining the fourth operating mode as the operating mode of the electronic device when the current battery charge is less than the third preset proportion of the total battery charge and greater than or equal to a fourth preset proportion of the total battery charge; and determining the fifth operating mode as the operating mode of the electronic device when the current battery charge is less than the fourth preset proportion of the total battery charge. The first preset proportion is greater than the second preset proportion, the second preset proportion is greater than the third preset proportion, and the third preset proportion is greater than the fourth preset proportion. For example, the first preset ratio may be 45% to 50% or 50% to 55%, the second preset ratio may be 25% to 30% or 30% to 35%, the third preset ratio may be 7% to 10% or 10% to 13%, and the fourth preset ratio may be 2% to 5% or 5% to 8%.
[0079] In a specific example shown in FIG2 , when the current charge of the battery is greater than or equal to 50% of the total charge of the battery, the performance mode is determined as the operating mode of the electronic device; when the current charge of the battery is less than 50% of the total charge of the battery and greater than or equal to 30% of the total charge of the battery, the standard mode is determined as the operating mode of the electronic device; when the current charge of the battery is less than 30% of the total charge of the battery and greater than or equal to 10% of the total charge of the battery, the low power mode is determined as the operating mode of the electronic device; when the current charge of the battery is less than 10% of the total charge of the battery and greater than or equal to 5% of the total charge of the battery, the standby mode is determined as the operating mode of the electronic device; and when the current charge of the battery is less than 5% of the total charge of the battery, the no-power mode is determined as the operating mode of the electronic device. In addition, when the current charge of the battery is less than 2% of the total charge of the battery, it may no longer be able to support the basic functions of the electronic device. At this time, the electronic device can automatically shut down to protect the device and the data therein.
[0080] It is understandable that in some other specific examples, more or fewer working modes can be preset for the electronic device, and a correspondence between the current battery power and the working mode can be established to determine the corresponding working mode of the electronic device after it is awakened based on the current battery power. This is not limited here.
[0081] In other embodiments, if conditions are met, the user may also select a desired operating mode from multiple candidate operating modes based on their actual needs, thereby improving the flexibility of setting the operating mode in the electronic device and better meeting the needs of the user. As shown in FIG3 , in a specific embodiment of the present disclosure, determining the operating mode of the electronic device based on the current battery power may include:
[0082] Step S210, when the current power level of the battery is greater than or equal to a first preset power level, determining and displaying a plurality of candidate operating modes that can be supported by the current power level of the battery;
[0083] Step S220, receiving a selection instruction from the user; and
[0084] Step S230: According to the selection instruction, a corresponding one of the plurality of candidate operating modes is determined as the operating mode of the electronic device.
[0085] Specifically, when the current battery power is high, it may be able to support multiple operating modes. For some users, if it is convenient for them to charge or replace the battery of the electronic device, they may want the electronic device to continue to run functions with higher power consumption. When the battery power is insufficient to support it, they can directly charge or replace the battery. For other users, if it is not convenient for them to charge or replace the battery of the electronic device (for example, when the user is in the wild), they may want the electronic device to run for as long as possible, that is, the battery can have as long a battery life as possible. In order to facilitate the user to select the operating mode of the electronic device after being awakened according to their actual needs, after determining multiple candidate operating modes that can be supported by the current power, they can be displayed to the user via the user interaction interface of the electronic device (for example, a graphical user interface, etc.), and then the user can transmit his selection instruction to the electronic device through the user interaction interface (for example, a button, a touch screen, etc.), so that the corresponding one of the multiple candidate operating modes is determined as the operating mode of the electronic device after being awakened.
[0086] In some embodiments, especially when the current battery charge is low, the operating mode of the electronic device after being awakened can be determined directly based on a preset correspondence, rather than based on a user's selection instruction, so that the battery can last longer in low-battery conditions. Specifically, determining the operating mode of the electronic device based on the current battery charge can further include: when the current battery charge is less than a second preset charge, determining the operating mode corresponding to the current battery charge as the operating mode of the electronic device.
[0087] It is understood that the embodiments of allowing the user to select a desired operating mode from candidate operating modes and directly determining the operating mode based on the battery power level can also be combined. For example, in one specific embodiment, the second preset power level can be less than or equal to the first preset power level. Then, when the current battery power level is greater than or equal to the first preset power level, the operating mode that meets the conditions can be determined based on the user's selection instruction, and when the current battery power level is less than the second preset power level, the operating mode of the electronic device can be directly determined based on the current power level.
[0088] Taking the electronic device described above as including five operating modes as an example, if the current battery charge is greater than or equal to a third preset ratio of the total battery charge (for example, 10%), then it can be determined that the candidate operating modes include performance mode, standard mode, and low power mode. Then, these three candidate operating modes can be displayed to the user, and a selection instruction from the user can be received. Further, one of the operating modes can be determined as the operating mode in which the electronic device is awakened based on the selection instruction to meet the user's specific needs. On the other hand, if the current battery charge is less than the third preset ratio of the total battery charge, then the operating mode corresponding to the current battery charge can be directly determined as the operating mode of the electronic device. For example, if the current battery charge is less than the third preset ratio of the total battery charge and is greater than or equal to the fourth preset ratio of the total battery charge (for example, 5%), then the standby mode is determined as the operating mode in which the electronic device is awakened; if the current battery charge is less than the fourth preset ratio of the total battery charge, then the no-power mode is determined as the operating mode in which the electronic device is awakened.
[0089] It is understandable that in some other specific examples, more or fewer working modes can be preset for the electronic device, the specific values of the first preset power and / or the second preset power can be changed, and a correspondence between the current power of the battery and the working mode can be established to determine the corresponding working mode of the electronic device after it is awakened based on the current power of the battery and / or the selection instructions from the user. This is not limited here.
[0090] In some embodiments, users can also customize the specific functions available in one or more operating modes. Specifically, the battery management method may further include: receiving a customization instruction from the user while the electronic device is in an awake state; and determining, based on the customization instruction, the functions included in the corresponding operating mode. It should be noted that the maximum power of the functions included in the customized operating mode must be supported by the remaining battery charge corresponding to that operating mode. This requirement can be met by displaying only functions that meet the power requirements for user selection or by verifying the maximum power of the customized functions. The user can customize the functions in at least one operating mode directly through the electronic device or through an application (APP) on a mobile terminal, such as a smartphone, that is communicatively connected to the electronic device. In a specific example, when the electronic device is a camera, the customized or configured functions in each operating mode can have different parameters, such as enabling or disabling different intelligent algorithms, setting different algorithm parameters, setting the audio volume adjustment range or enabling or disabling, and setting the fill light brightness adjustment range or enabling or disabling. In other words, the user can configure the function combinations within the operating modes as needed.
[0091] Returning to FIG1 , in an exemplary embodiment of the present disclosure, the battery management method may further include:
[0092] Step S300: Control the electronic device to operate in the determined working mode.
[0093] Because the maximum power in the determined operating mode can be supported by the battery's current charge, this effectively prevents the electronic device from freezing or restarting due to insufficient battery power. Furthermore, by operating the electronic device in the appropriate operating mode based on the current charge level, the remaining battery power can be fully utilized, thereby extending battery life. For example, even if the battery's current charge level is less than 5%, this remaining power can be used to enable the electronic device to support low-power functions, thereby maximizing battery life.
[0094] In some embodiments, in order to keep an electronic device in a keep-alive state, it is usually necessary to periodically wake up the electronic device using a preset timer during its sleep period, and to initiate necessary operations such as processing some external inputs and monitoring and updating system status parameters during the wake-up period of the electronic device. However, multiple operations often require waking up the electronic device at different times and / or in different cycles, which will cause the electronic device to be woken up frequently or even nearly randomly. The more such wake-ups occur, the greater the power consumption of the electronic device will be, and the shorter the battery life will be. In particular, in electronic devices such as camcorders or cameras, their sleep time can account for more than 90% of the total battery life. If this sleep state is frequently interrupted, the battery life will be significantly reduced.
[0095] To address the above issues, a timer's delay and / or advance attributes can be added when creating or setting a timer in an electronic device. That is, in addition to setting the timer's initial trigger time, the timer's delay and / or advance time can also be set in the timer. This delay and / or advance time can be set based on the corresponding service characteristics. Typically, the delay and / or advance time can be conveniently set in a software timer. This expands the time period during which the timer can actually be triggered to a range from the earliest trigger time to the latest trigger time, where the earliest trigger time is the timer's initial trigger time minus the maximum advance time, and the latest trigger time is the timer's initial trigger time plus the maximum delay time. Typically, a timer can be triggered periodically, or its next trigger time can be reset when the timer is triggered. Furthermore, when an electronic device is in a dormant state, a software timer may not be actively triggered. Therefore, the next wake-up time for the electronic device can be set in a hardware timer. The hardware timer can also be triggered normally when the electronic device is in a dormant state, thereby ensuring the normal operation of the electronic device. In an exemplary embodiment of the present disclosure, when a hardware timer is triggered, according to the triggerable period of each timer to be triggered (which may include software timers and hardware timers), as many timers as possible can be triggered and perform corresponding operations within the same wake-up period of the electronic device, so as to reduce the number of times the electronic device is woken up, reduce power consumption, and extend battery life.
[0096] In one aspect, as shown in FIG4 , controlling the electronic device to operate in the determined working mode may include:
[0097] Step S311, obtaining the next initial triggering time and the maximum delay time of each timer among one or more timers to be triggered;
[0098] Step S312, calculating the latest triggering time of each timer according to the initial triggering time of each timer and the maximum delay time; and
[0099] Step S313: setting the latest triggering time closest to the current time among the one or more latest triggering times of the one or more timers as the next wake-up time of the electronic device.
[0100] In this way, when determining the next wake-up time, the latest trigger time among the one or more latest trigger times of one or more timers to be triggered that is closest to the current time is set as the next wake-up time of the electronic device. This can avoid missing the triggering of timers that need to be triggered, thereby ensuring the normal operation of the necessary functions of the electronic device and effectively reducing the number of times the electronic device is woken up.
[0101] On the other hand, as shown in FIG5 , controlling the electronic device to operate in the determined working mode may include:
[0102] Step S321, obtaining the next initial triggering time and the maximum advance time of each timer in one or more timers to be triggered;
[0103] Step S322, calculating the earliest triggering time of each timer according to the initial triggering time of each timer and the maximum advance time; and
[0104] Step S323: When the earliest triggering time of the timer is earlier than or equal to the current triggering time, trigger the timer.
[0105] In this way, each time the electronic device is woken up, it can be checked whether an additional timer that meets the conditions can be triggered during the current wake-up period, that is, a timer whose earliest triggering time is earlier than or equal to the current triggering time. If such a timer exists, the timer is triggered and the corresponding operation is performed, thereby avoiding the situation where the electronic device is frequently woken up again after returning to sleep mode, thereby extending the battery life.
[0106] In a specific example, as shown in FIG6 , assume that there are three timers to be triggered. For the next trigger, the first initial trigger time of the first timer is t10, and its triggerable period is within the range of t11 to t12 based on the maximum delay time and the maximum advance time. The second initial trigger time of the second timer is t20, which cannot be delayed or advanced. The third initial trigger time of the third timer is t3, and its triggerable period is within the range of t31 to t32 based on the maximum delay time and the maximum advance time. Then, according to FIG6 , the latest trigger time of the first timer is t12, the latest trigger time of the second timer is t20, and the latest trigger time of the third timer is t32. Therefore, it can be seen that the earliest trigger time t20 can be determined as the next wake-up time of the electronic device. In addition, if one of the first to third timers is a hardware timer, then t20 can be recorded in the hardware timer to wake up the electronic device. Otherwise, an additional hardware timer can be set to record t20 to wake up the electronic device. On the other hand, as shown in Figure 6, when the electronic device is awakened at t20, since the earliest triggering moment of the third timer is t31, which is earlier than the current triggering moment t20, the third timer can be triggered at this time and the corresponding operation can be performed to reduce the subsequent wake-up times of the electronic device and extend the battery life.
[0107] In an exemplary embodiment of the present disclosure, by determining the working state of the electronic device according to the current battery power when waking up the electronic device, the functions that the electronic device can perform can be controlled based on the difference in the remaining battery power, which can not only improve the performance of the electronic device at its highest working level, but also promote the full release of battery power, thereby helping to extend the battery life. Furthermore, in some embodiments, by setting the delay time and / or advance time of the timer, as many timers as possible are triggered and perform corresponding operations in the same wake-up period, thereby effectively reducing the number of times the electronic device is awakened and further extending the battery life. Compared to the method of reducing the number of wake-ups by reducing the system timing accuracy, the delay time and advance time in the implementation of the present application can be freely set according to the business situation, so that batch integration processing of timers can be achieved while keeping the system timing accuracy unchanged.
[0108] The present disclosure also provides a battery management device 710 for an electronic device 700. As shown in FIG7 , the battery management device 710 may include a memory 711 and a processor 712. The memory 711 stores instructions that, when executed by the processor 712, implement the steps of the battery management method described above. In the specific example shown in FIG7 , the battery management device 710 may be integrated into the electronic device 700. However, it will be appreciated that in other examples, the battery management device may be provided independently of the electronic device and electrically connected to the electronic device.
[0109] Among them, the processor 712 can perform various actions and processes according to the instructions stored in the memory 711. Specifically, the processor 712 can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can be an X86 architecture or an ARM architecture, etc.
[0110] The memory 711 stores executable instructions that are used by the processor 712 to execute the object evaluation method described above. The memory 711 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the method described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0111] The present disclosure also provides an electronic device that may include the battery management device described above. In some embodiments, the electronic device may include one of a video camera and a still camera. It is understood that in other embodiments, the electronic device may also be other types of smart terminals, etc.
[0112] The present disclosure also provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed by a processor, the steps of the battery management method described above can be implemented.
[0113] Similarly, the computer-readable storage medium in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. It should be noted that the computer-readable storage medium described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0114] The present disclosure also provides a computer program product, which includes instructions. When the instructions are executed by a processor, the steps of the battery management method described above can be implemented.
[0115] The instructions may be any set of instructions to be executed directly by one or more processors, such as machine code, or any set of instructions to be executed indirectly, such as a script. The terms "instructions," "application," "process," "steps," and "program" are used interchangeably herein. The instructions may be stored in object code format for direct processing by one or more processors, or as a script or collection of independent source code modules in any other computer language, including those interpreted on demand or compiled in advance. The instructions may include instructions that cause one or more processors to act as the various neural networks herein. The functions, methods, and routines of the instructions are explained in more detail elsewhere herein.
[0116] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0117] The terms "front," "back," "top," "bottom," "above," "below," and the like, if any, in the specification and claims, are used for descriptive purposes and are not necessarily intended to describe invariant relative positions. It is understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein, for example, are capable of operation in other orientations than those illustrated or otherwise described herein.
[0118] As used herein, the word "exemplary" means "serving as an example, instance, or illustration," rather than as a "model" to be precisely copied. Any implementation described as exemplary is not necessarily to be construed as preferred or advantageous over other implementations. Furthermore, the present disclosure is not to be bound by any expressed or implied theory presented in the preceding technical field, background, summary, or detailed description.
[0119] As used herein, the word "substantially" is intended to include any minor variations due to design or manufacturing imperfections, device or component tolerances, environmental influences, and / or other factors. The word "substantially" also allows for deviations from a perfect or ideal condition due to parasitic effects, noise, and other practical considerations that may be present in actual implementations.
[0120] The above description may indicate elements or nodes or features that are "connected" or "coupled" together. As used herein, unless expressly stated otherwise, "connected" means that one element / node / feature is directly connected (or directly communicates) with another element / node / feature electrically, mechanically, logically, or otherwise. Similarly, unless expressly stated otherwise, "coupled" means that one element / node / feature can be mechanically, electrically, logically, or otherwise connected to another element / node / feature in a direct or indirect manner to allow interaction, even if the two features may not be directly connected. In other words, "coupled" is intended to encompass both direct and indirect connections of elements or other features, including connections utilizing one or more intermediate elements.
[0121] It should also be understood that when the term “include / comprises” is used in this document, it indicates the presence of the specified features, integers, steps, operations, units and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, units and / or components and / or their combinations.
[0122] Those skilled in the art will appreciate that the boundaries between the above-mentioned operations are merely illustrative. Multiple operations can be combined into a single operation, a single operation can be distributed among additional operations, and operations can be performed at least partially overlapping in time. Moreover, alternative embodiments can include multiple instances of specific operations, and the order of operations can be changed in various other embodiments. However, other modifications, variations, and replacements are also possible. Therefore, this specification and the accompanying drawings should be considered illustrative, not restrictive.
[0123] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. The various embodiments disclosed herein may be combined in any manner without departing from the spirit and scope of the present disclosure. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A battery management method for an electronic device, include: When the electronic device receives the wake-up signal, obtaining the current power of the battery used for the electronic device; Determining an operating mode of the electronic device according to the current power of the battery, wherein the maximum power under the determined operating mode can be supported by the current power of the battery; as well as The electronic device is controlled to operate in the determined working mode.
2. The battery management method according to claim 1, in, The wake-up signal includes at least one of the following: Key trigger signal; Touch screen trigger signal; and Timer trigger signal.
3. The battery management method according to claim 2, in, The timer for generating the timer trigger signal includes at least one of a software timer and a hardware timer.
4. The battery management method according to claim 1, in, Determining the working mode of the electronic device according to the current power of the battery includes: According to the preset corresponding relationship between the current power of the battery and the working mode of the electronic device, the preset working mode corresponding to the current power of the battery is determined as the working mode of the electronic device.
5. The battery management method according to claim 1, in, Determining the working mode of the electronic device according to the current power of the battery includes: When the current power level of the battery is greater than or equal to a first preset power level, determining and displaying a plurality of candidate operating modes that can be supported by the current power level of the battery, receiving a selection instruction from a user, and determining a corresponding one of the plurality of candidate operating modes as the operating mode of the electronic device according to the selection instruction; and / or When the current power level of the battery is less than a second preset power level, determining the operating mode corresponding to the current power level of the battery as the operating mode of the electronic device; Wherein, the second preset power is less than or equal to the first preset power.
6. The battery management method according to claim 1, further comprising: include: When the electronic device is in the awake state, receiving a customized instruction from a user; as well as According to the customized instruction, the functions included in the corresponding working mode are determined.
7. The battery management method according to claim 1, in, The working mode of the electronic device includes at least one of the following: A first working mode, in which the electronic device can realize all functions; a second operating mode, in which a function in the electronic device having a maximum power greater than or equal to the first maximum power threshold is disabled; a third operating mode, in which peripheral devices powered by the electronic device and having a maximum power greater than or equal to a second maximum power threshold are disabled; a fourth working mode, in which the local trigger wake-up of the electronic device is disabled and the electronic device remains online; A fifth working mode, in which the electronic device is in a network offline state and the electronic device remains in a local powered sleep state; Among them, the first maximum power in the first working mode is greater than the second maximum power in the second working mode, the second maximum power in the second working mode is greater than the third maximum power in the third working mode, the third maximum power in the third working mode is greater than the fourth maximum power in the fourth working mode, and the fourth maximum power in the fourth working mode is greater than the fifth maximum power in the fifth working mode.
8. The battery management method according to claim 7, in, Determining the working mode of the electronic device according to the current power of the battery includes: When the current power of the battery is greater than or equal to a first preset proportion of the total power of the battery, determining the first operating mode as the operating mode of the electronic device; When the current power of the battery is less than a first preset proportion of the total power of the battery and is greater than or equal to a second preset proportion of the total power of the battery, determining the second operating mode as the operating mode of the electronic device; When the current power of the battery is less than a second preset proportion of the total power of the battery and is greater than or equal to a third preset proportion of the total power of the battery, the third operating mode is determined as the operating mode of the electronic device. Mode; When the current power of the battery is less than a third preset proportion of the total power of the battery and is greater than or equal to a fourth preset proportion of the total power of the battery, determining the fourth operating mode as the operating mode of the electronic device; and When the current power of the battery is less than a fourth preset proportion of the total power of the battery, determining the fifth operating mode as the operating mode of the electronic device; Among them, the first preset ratio is greater than the second preset ratio, the second preset ratio is greater than the third preset ratio, and the third preset ratio is greater than the fourth preset ratio.
9. The battery management method according to claim 8, in, The first preset ratio is 45% to 50% or 50% to 55%, the second preset ratio is 25% to 30% or 30% to 35%, the third preset ratio is 7% to 10% or 10% to 13%, and the fourth preset ratio is 2% to 5% or 5% to 8%.
10. The battery management method according to claim 1, in, Controlling the electronic device to operate in the determined working mode includes: Get the next initial triggering time and the maximum delay time of each timer in one or more timers to be triggered, Calculate the latest triggering time of each timer based on the initial triggering time and the maximum delay time of each timer, and Setting the latest triggering time closest to the current time among the one or more latest triggering times of the one or more timers as the next wake-up time of the electronic device; and / or Controlling the electronic device to operate in the determined working mode includes: Get the next initial triggering time and the maximum advance time of each timer in one or more timers to be triggered, Calculate the earliest triggering time of each timer based on the initial triggering time of each timer and the maximum advance time, and When the earliest triggering time of the timer is earlier than or equal to the current triggering time, the timer is triggered.
11. The battery management method according to claim 10, in, The next wake-up time of the electronic device is set in a hardware timer; and / or At least one of the delayable time and the advanceable time of the timer is set when the timer is created.
12. A battery management device for an electronic device, comprising a memory and a processor, wherein instructions are stored in the memory, and when the instructions are executed by the processor, the steps of the battery management method according to any one of claims 1 to 11 are implemented.
13. An electronic device comprising the battery management device according to claim 12.
14. The electronic device of claim 13, comprising at least one of a video camera and a still camera.
15. A computer-readable storage medium, in, The computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the steps of the battery management method according to any one of claims 1 to 11 are implemented. 16 . A computer program product comprising instructions, which, when executed by a processor, implement the steps of the battery management method according to claim 1 .
Citation Information
Patent Citations
Method and device for power saving of mobile phone
CN101287037A
Method and device for displaying key information
CN101616217A
Intelligent power saving mode switching system of mobile terminal
CN103491262A
Mobile communication terminal and power management method thereof
CN103533619A
