Power supply control method and electronic device
By disconnecting the power supply circuit when the electronic device is in standby or off state, the problem of damage caused by continuous battery power supply is solved, the battery life is extended and the components are protected, and the device can operate efficiently and energy-savingly.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-10-16
- Publication Date
- 2026-04-30
AI Technical Summary
When electronic devices are kept in standby or off mode for extended periods, the continuous power supply from the battery can damage the battery and shorten its lifespan.
When the electronic device is in standby or off state, the power supply circuit is disconnected by the microcontroller to stop the power supply to the charging chip, redundant power module and other devices. The step-down circuit protects the critical components. Normal power supply is restored when the external power supply is available.
Extend battery life, protect critical components from overvoltage damage, and ensure efficient energy saving in standby or shutdown mode.
Smart Images

Figure CN2025128132_30042026_PF_FP_ABST
Abstract
Description
A power supply control method and electronic device
[0001] This application claims priority to Chinese Patent Application No. 202411472519.X, filed on October 21, 2024, entitled "A Power Supply Control Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of electronic technology, and in particular to a power supply control method and an electronic device. Background Technology
[0003] With the development of electronic technology, more and more users are using electronic devices, such as personal computers (PCs). Currently, when electronic devices are in standby or off mode, the battery needs to power some components of the device. However, when electronic devices are in standby or off mode for extended periods, the battery's continuous power supply to these components can lead to battery damage. Summary of the Invention
[0004] This application provides a power supply control method and an electronic device, which realizes that when the electronic device is in standby or off state, the battery of the electronic device reduces the external power supply; when the electronic device is in standby or off state for a long time, the battery of the electronic device stops supplying external power, thereby protecting the battery and extending its service life.
[0005] In a first aspect, this application provides an electronic device comprising a battery, a charging chip, a redundant power module, a microcontroller, and a first real-time clock; the charging chip controls the charging and discharging of the battery; the first real-time clock records the system time of the electronic device; the redundant power module steps down and / or regulates the battery voltage; the microcontroller detects whether the power button of the electronic device is pressed and held; the battery supplies power to the charging chip and the redundant power module through a first power supply circuit; the battery supplies power to the microcontroller and the first real-time clock through a second power supply circuit; when the electronic device is in standby or off state, the microcontroller controls the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module. The battery, charging chip, redundant power module, microcontroller, and first real-time clock may be the battery 21, charging chip 31, redundant power module 33, microcontroller 34, and CPU real-time clock 35 mentioned in subsequent embodiments, respectively.
[0006] In this way, when the electronic device is in standby or off state, the microcontroller can control the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and redundant power module. This reduces the battery's external power supply when the electronic device is in standby or off state, thereby extending the battery's lifespan.
[0007] In conjunction with the first aspect, in some embodiments, the first power supply circuit includes a first switch; the microcontroller is used to control the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module, specifically including: the microcontroller sending a first control signal to the control terminal of the first switch, the first control signal being used to control the first switch to disconnect to stop the battery from supplying power to the charging chip and the redundant power module. The first switch may be switch Q3 mentioned in subsequent embodiments, and the first control signal may be control signal 1 mentioned in subsequent embodiments.
[0008] In conjunction with the first aspect, in some embodiments, when the electronic device is in standby or off state, if the battery charge is less than a first threshold, and / or the electronic device has been in standby or off state for a period of time greater than a second threshold, the microcontroller is further configured to control the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock; the microcontroller is also configured to acquire the battery charge; the microcontroller includes a second real-time clock, which is used to record the time the electronic device has been in standby or off state. Thus, when the battery charge is less than the first threshold, and / or the electronic device has been in standby or off state for a period of time greater than the second threshold, the battery can stop supplying power, thereby extending the battery's lifespan.
[0009] In conjunction with the first aspect, in some embodiments, the second power supply circuit includes a second switch, and the first power supply circuit also includes a second switch; the microcontroller is further configured to control the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock, specifically including: the microcontroller sending a second control signal to the control terminal of the second switch, the second control signal being used to control the second switch to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock. The second switch may be switch Q2 mentioned in subsequent embodiments, and the second real-time clock may be the real-time clock 341 of the microcontroller 34 mentioned in subsequent embodiments.
[0010] In conjunction with the first aspect, in some embodiments, the electronic device further includes a fuel gauge connected to the control terminal of the second switch; the microcontroller sends a second control signal to the control terminal of the second switch, specifically including: the microcontroller sending the second control signal to the control terminal of the second switch via the fuel gauge. Wherein, the fuel gauge may be the fuel gauge 22 mentioned in subsequent embodiments, and the second control signal may be the control signal 2 mentioned in subsequent embodiments.
[0011] In conjunction with the first aspect, in some embodiments, the electronic device further includes a third power supply circuit; when the electronic device is connected to an external power source, the external power source supplies power to the second real-time clock through the third power supply circuit.
[0012] In conjunction with the first aspect, in some embodiments, the third power supply circuit includes an LDO regulator. The LDO regulator is used to regulate the supply voltage of the external power source and output the regulated voltage to the second real-time clock. The LDO regulator can be a low-dropout linear regulator 32 mentioned in later embodiments. This way, the LDO regulator outputting the regulated voltage to the second real-time clock protects the second real-time clock from damage due to excessive voltage.
[0013] In conjunction with the first aspect, in some embodiments, the first power supply circuit further includes a buck converter circuit. The buck converter circuit is used to step down the battery voltage and output the stepped-down voltage to the microcontroller. In this way, the buck converter circuit can protect the microcontroller from damage caused by excessive voltage.
[0014] In conjunction with the first aspect, in some embodiments, when the electronic device is connected to an external power supply, the BUCK buck circuit is also used to step down the voltage of the external power supply and output the stepped-down voltage to the microcontroller. The BUCK buck converter can be the buck regulator 36 mentioned in subsequent embodiments.
[0015] In conjunction with the first aspect, in some embodiments, the battery supplies power to the second real-time clock via a second power supply circuit.
[0016] In conjunction with the first aspect, in some embodiments, the first switch includes a first terminal and a second terminal, the first terminal being connected to a battery, and the second terminal being connected to a microcontroller, a charging chip, and a redundant power supply module; the first terminal is also connected to a second real-time clock.
[0017] In conjunction with the first aspect, in some embodiments, the second terminal is connected to the microcontroller via a BUCK buck converter.
[0018] In conjunction with the first aspect, in some embodiments, the second power supply circuit also includes an LDO regulator; the first terminal is also connected to a second real-time clock, specifically including: the first terminal is also connected to the second real-time clock through an LDO regulator.
[0019] In conjunction with the first aspect, in some embodiments, the first terminal is also connected to a first real-time clock via an LDO regulator.
[0020] In conjunction with the first aspect, in some embodiments, the first power supply circuit further includes a third switch, which is connected in series after the first switch. The battery outputs voltage to the redundant power module, the charging chip, and the microcontroller sequentially through the first switch and the third switch. The charging chip is also connected to the control terminal of the third switch to control the opening or closing of the third switch. The third switch may be the switch Q1 mentioned in subsequent embodiments.
[0021] In conjunction with the first aspect, some embodiments further include: a storage unit storing a computer program that, when executed by the microcontroller, causes the electronic device to implement the methods of any one of the second, third, and fourth aspects.
[0022] In a second aspect, this application provides a power supply control method, which is applied to the electronic device of any of the first aspects. The method includes: when the electronic device is in a standby state or a power-off state, the electronic device controls a first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module.
[0023] In this way, when the electronic device is in standby or off state, the electronic device can control the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and redundant power module, thereby extending the battery's lifespan.
[0024] In conjunction with the second aspect, in some embodiments, the electronic device controls the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module. Specifically, this includes the electronic device controlling the microcontroller to send a first control signal to the control terminal of the first switch, the first control signal being used to control the first switch to disconnect.
[0025] In conjunction with the second aspect, in some embodiments, the method further includes: when the electronic device is in standby or power-off state, if the battery power is less than a first threshold, and / or the electronic device is in standby or power-off state for a period of time greater than a second threshold, the electronic device controls the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock.
[0026] In this way, when the battery charge is less than the first threshold and / or the electronic device is in standby or off state for more than the second threshold, the battery can stop supplying power, thereby extending the battery's lifespan.
[0027] In conjunction with the second aspect, in some embodiments, the electronic device controls the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock. Specifically, this includes the electronic device controlling the microcontroller to send a second control signal to the control terminal of the second switch, the second control signal being used to control the second switch to disconnect.
[0028] In conjunction with the second aspect, in some embodiments, when the second power supply circuit is disconnected, in response to the electronic device being connected to an external power source, the microcontroller receives power from the external power source. After receiving power from the external power source, the microcontroller detects whether the power button of the electronic device is pressed and held. If the power button is pressed and held, the microcontroller initiates the power-on process. Thus, when the electronic device is connected to an external power source, it can respond to the user's power-on operation and power on normally.
[0029] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method in any of the possible implementations of the second aspect above.
[0030] Fourthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method in any of the possible implementations of the second aspect above. Attached Figure Description
[0031] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.
[0032] Figure 1 illustrates a power supply technology used in personal computers;
[0033] Figure 2 shows the power supply circuit of electronic device 100;
[0034] Figure 3 shows the power supply circuit of the more complete electronic device 100;
[0035] Figure 4 illustrates a power supply control method for an electronic device 100 provided in an embodiment of this application.
[0036] Figure 5 shows another power supply control method for electronic device 100;
[0037] Figure 6 shows another power supply control method for electronic device 100. Detailed Implementation
[0038] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings.
[0039] In the description of the embodiments of this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0040] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0041] Figure 1 illustrates a power supply technology used in personal computers.
[0042] As shown in Figure 1, a personal computer may include: a battery module, a charging chip (Charger IC), a redundant output power module (ROP), a low dropout linear regulator (LDO) (also known as an LDO regulator), an embedded controller (EC), a CPU real-time clock (RTC), and a switch Q1.
[0043] The battery module may include: a battery, a fuel gauge, and a switch Q2.
[0044] The battery supplies power to the redundant power module and the low-dropout linear regulator sequentially via switch Q2 and then switch Q1. The low-dropout linear regulator steps down and regulates the battery voltage, outputting the stepped-down and regulated voltage to the microcontroller and the CPU's real-time clock. The microcontroller detects whether the power button of the electronic device is pressed; if so, it initiates the power-on process. The CPU's real-time clock records the system time of the electronic device.
[0045] A redundant power module may include one or more power supplies that can be used to step down and / or regulate the voltage of a battery and output the stepped-down and / or regulated voltage to other circuits or devices in an electronic device. For example, the one or more power supplies included in the redundant power module can provide the specific voltage required by the CPU, memory, etc. on the motherboard.
[0046] The charging chip can be connected to the control terminal of switch Q1 to control the closing or opening of switch Q1. In this way, the charging chip controls the charging and discharging of the battery. For example, when the electronic device is charged by an external power source, if the voltage of the external power source is too high, the charging chip can control switch Q1 to open, so as to stop the external power source from charging the battery, thereby protecting the battery from damage.
[0047] When the electronic device is in standby or off state, the battery can power the redundant power module through the first power supply circuit. Further, the battery powers the redundant power module sequentially through switches Q2 and Q1. The battery can also power the real-time clock of the microcontroller and CPU through the second power supply circuit. Further, the battery powers a low-dropout linear regulator sequentially through switches Q2 and Q1. The low-dropout linear regulator regulates the battery voltage and then supplies the regulated voltage to the real-time clock of the microcontroller and CPU. The charging chip can be powered independently by the battery (not shown in the figure). The fuel gauge can be connected to the control terminal of switch Q2 to control the opening or closing of switch Q2; the fuel gauge is powered independently by the battery (not shown in the figure).
[0048] Because electronic devices continuously supply power to redundant power modules, microcontrollers, CPU real-time clocks, charging chips, and fuel gauges while in standby or off mode, if the electronic device remains in standby or off mode for an extended period (e.g., more than 30 days), meaning the battery continuously supplies power to these components during this time, the battery's lifespan will be shortened.
[0049] This application provides a power supply scheme applicable to electronic devices such as computers. In this scheme, when the electronic device is in standby or off state, it can control the first power supply circuit to disconnect, and further, it can control switch Q1 to disconnect, thus stopping the battery from supplying power to the redundant power module and reducing the current drawn by the battery. When the electronic device is in standby or off state for an extended period, it can control the second power supply circuit to disconnect, and further, it can control switch Q2 to disconnect, thus stopping the battery from supplying power and extending its lifespan.
[0050] The power supply circuit of the electronic device 100 provided in the embodiments of this application is described below with reference to Figures 2 and 3.
[0051] Compared to the computer shown in Figure 1, the power supply circuit of electronic device 100 has undergone some improvements to implement the power supply scheme introduced in the embodiments of this application. Electronic device 100 can be any of the following: mobile phone, tablet, handheld computer, desktop computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), as well as smart home devices such as smart screens and smart speakers, wearable devices such as smart bracelets, smartwatches, and smart glasses, extended reality (XR) devices such as augmented reality (AR), virtual reality (VR), and mixed reality (MR), in-vehicle devices, or smart city devices.
[0052] As shown in Figure 2, the electronic device 100 may include: a battery module 20, a charging chip 31, a redundant power supply module 33, a low-dropout linear regulator 32, a microcontroller 34, a CPU real-time clock 35, a diode D1, a switch Q1, and a switch Q3. The battery module 20 may include: a battery 21, a fuel gauge 22, and a switch Q2.
[0053] The uses of the charging chip 31, redundant power supply module 33, low dropout linear regulator 32, microcontroller 34, CPU real-time clock 35, battery 21, and fuel gauge 22 can be referred to the uses of the charging chip, redundant power supply module, low dropout linear regulator, microcontroller, CPU real-time clock, and fuel gauge as described in Figure 1 above, and will not be repeated here.
[0054] Optionally, in the embodiments of this application, switch Q1 can be a field-effect transistor, switch Q2 can be a field-effect transistor, and switch Q3 can be a field-effect transistor.
[0055] In the improved power supply circuit shown in Figure 2, battery 21 can supply power to charging chip 31 and redundant power module 33 through the first power supply circuit. Battery 21 can also supply power to microcontroller 34 and CPU real-time clock 35 through the second power supply circuit.
[0056] When the electronic device 100 is in standby or off state, the microcontroller 34 can be used to control the first power supply circuit to disconnect, thereby stopping the battery 21 from supplying power to the charging chip 31 and the redundant power module 33. This reduces the current supplied by the battery 21 to external devices, thus extending the battery's lifespan.
[0057] Furthermore, battery 21 can sequentially supply power to charging chip 31 and redundant power module 33 via switches Q2, Q3, and Q1. Battery 21 can also sequentially supply power to low-dropout linear regulator 32 via switch Q2 and diode D1. Low-dropout linear regulator 32 can regulate the voltage of battery 21 and output the regulated voltage to microcontroller 34 and CPU real-time clock 35. When electronic device 100 is in standby or off state, microcontroller 34 can send control signal 1 to the control terminal of switch Q3. Control signal 1 is used to control switch Q3 to open, thereby stopping the battery 21 from supplying power to charging chip 31 and redundant power module 33.
[0058] When the electronic device 100 is in standby or off state, if the battery 21's charge is less than a first threshold, and / or the electronic device 100 has been in standby or off state for a longer period than a second threshold, the microcontroller 34 can control the second power supply circuit to disconnect, thereby stopping the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. The microcontroller 34 can be used to acquire the battery 21's charge level; the microcontroller 34 includes a real-time clock 341 (not shown in Figure 2), which can be used to record the time the electronic device 100 has been in standby or off state. Thus, when the electronic device 100 is in standby or off state for an extended period, and / or the battery 21's charge is less than the first threshold, the battery 21 of the electronic device 100 can stop supplying power, thereby extending the battery 21's lifespan.
[0059] Furthermore, when the electronic device 100 is in standby or off state, if the battery 21's charge is less than a first threshold, and / or the electronic device 100 has been in standby or off state for a longer period than a second threshold, the microcontroller 34 can send a control signal 2 to the control terminal of switch Q2. Control signal 2 can be used to control switch Q2 to disconnect, stopping the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. Furthermore, the microcontroller 34 can send control signal 2 to the control terminal of switch Q2 via fuel gauge 22. For example, the microcontroller 34 can send control signal 3 to fuel gauge 22, and after receiving control signal 3 from the microcontroller 34, fuel gauge 22 can send control signal 2 to the control terminal of switch Q2. The microcontroller 34 can communicate with switches Q3, Q2, and fuel gauge 22 using a serial bus communication protocol (e.g., I2C communication). For example, the microcontroller 34 can send control signal 1 to switch Q3 from pin 1 via the serial bus.
[0060] Figure 3 is a schematic diagram of the power supply circuit of the further improved electronic device 100.
[0061] As shown in Figure 3, the power supply circuit of the electronic device 100 shown in Figure 3 is more complete than that shown in Figure 2. Therefore, the power supply circuit of the electronic device 100 shown in Figure 3 can be referenced from the power supply circuit of the electronic device 100 shown in Figure 2. As shown in Figure 3, the electronic device 100 may also include a buck converter 36, a real-time clock 341 of the microcontroller 34, a low-dropout linear regulator 37, a diode D2, and a resistor R1. The real-time clock 341 can be used to record the time when the electronic device 100 is in standby or power-off state.
[0062] The electronic device 100 also includes a third power supply circuit. When the electronic device 100 is connected to an external power source, the external power source can supply power to the real-time clock 341 through the third power supply circuit. Furthermore, when the electronic device 100 is connected to an external power source, the external power source can supply power to the real-time clock 341 in sequence through diode D2 and low-dropout linear regulator 32. The low-dropout linear regulator 32 can be used to regulate the supply voltage of the external power source and output the regulated voltage to the real-time clock 341, thus protecting the real-time clock 341 from damage due to excessive voltage.
[0063] Furthermore, the first power supply circuit of the electronic device 100 also includes a BUCK step-down circuit. The BUCK step-down circuit can be used to step down the voltage of the battery 21 and output the stepped-down voltage to the microcontroller 34. The BUCK step-down circuit further includes a step-down regulator 36. The battery 21 can supply power to the microcontroller 34 sequentially through switches Q2, Q3, Q1, and the step-down regulator 36. The microcontroller 34 can also supply power to the real-time clock 341 (not shown in the figure).
[0064] When electronic device 100 is connected to an external power source, the external power source can also supply power to microcontroller 34 through a buck converter circuit. For example, when electronic device 100 is connected to an external power source, the external power source can supply power to microcontroller 34 through buck regulator 36. Thus, when battery 21 in electronic device 100 stops supplying power to microcontroller 34, electronic device 100 can supply power to microcontroller 34 by connecting an external power source. In this way, microcontroller 34 can re-execute some instructions, such as detecting whether the power button of electronic device 100 has been pressed and held, and initiating the power-on process.
[0065] The step-down regulator 36 can be used to step down the voltage of the external power supply and the voltage of the battery 21, and output the stepped-down voltage to the microcontroller 34. This can protect the microcontroller 34 from damage due to excessive voltage.
[0066] The electronic device 100 can also power the real-time clock 341 through the second power supply circuit. Furthermore, the battery 21 can power the real-time clock 341 in sequence through the switch Q2, the diode D1, and the low-dropout linear regulator 32. The low-dropout linear regulator 32 can be used to step down the voltage of the battery 21 and output the stepped-down voltage to the real-time clock 341, which can protect the real-time clock 341 from damage due to excessive voltage.
[0067] The switch Q3 includes a first terminal and a second terminal. The first terminal is connected to the battery 21 and also to the real-time clock 341. The second terminal is connected to the microcontroller 34, the charging chip 31, and the redundant power module 33. Thus, the battery 21 can supply power to the microcontroller 34, the charging chip 31, and the redundant power module 33 through the switch Q3. Furthermore, the second terminal of the switch Q3 is connected to the microcontroller 34 through a buck regulator 36, allowing the battery 21 to supply power to the microcontroller 34 sequentially through the switch Q3 and the buck regulator 36. The second power supply circuit also includes a low-dropout linear regulator 32. The first terminal of the switch Q3 is also connected to the real-time clock 341 and the CPU's real-time clock 35 through the low-dropout linear regulator 32.
[0068] The first power supply circuit also includes a switch Q1, which is connected in series after the switch Q3. The battery 21 can sequentially supply voltage to the redundant power module 33, the charging chip 31, and the microcontroller 34 through the output voltage of the switch Q3 and the switch Q1. The charging chip 31 is also connected to the control terminal of the switch Q1 to control the opening or closing of the switch Q1.
[0069] The electronic device 100 can also supply power to the CPU's real-time clock 35 via a second power supply circuit. Furthermore, the battery 21 can supply power to the real-time clock 341 sequentially through switch Q2, diode D1, low-dropout linear regulator 32, and low-dropout linear regulator 37. The low-dropout linear regulator 37 can further regulate the voltage of the low-dropout linear regulator 32 and output the stepped-down voltage to the CPU's real-time clock 35. For example, the low-dropout linear regulator 32 can regulate the voltage of the battery 21 to 3.3 volts (V), and the low-dropout linear regulator 37 can further regulate the 3.3V of the low-dropout linear regulator 32 to 1.5V. Then, the low-dropout linear regulator 37 can output the regulated 1.5V to the CPU's real-time clock 35. In this way, the power supply voltage provided by the electronic device 100 to the CPU's real-time clock 35 will not be excessive, protecting the CPU's real-time clock 35 from damage. Resistor R1 can be located between switch Q1 and switch Q3 to reduce the transmission current between switch Q1 and switch Q3, thereby protecting the circuit.
[0070] The electronic device 100 may further include a storage unit (not shown), which may be coupled to or integrated into the microcontroller 34; this application does not specifically limit this. The storage unit stores a computer program that implements the power supply control method provided in the embodiments of this application. When the computer program is executed by the microcontroller 34, the electronic device 100 implements the power supply control method provided in the embodiments of this application.
[0071] In one possible implementation, the battery module 20 and the microcontroller 34 can be a separate power supply system. This subsystem has an interface with other devices in the electronic device 100. For example, the subsystem can be connected to devices such as the charging chip 31, the redundant power supply module 33, and the CPU's real-time clock 35 through the interface.
[0072] Based on the electronic device 100 described above in conjunction with Figures 2 and 3, the power supply control method provided in the embodiments of this application is introduced below.
[0073] As shown in Figure 4, Figure 4 illustrates a power supply control method for an electronic device 100 provided in an embodiment of this application.
[0074] S401. When the electronic device 100 enters standby mode or power-off mode, the electronic device 100 can control the first power supply circuit to disconnect to stop the battery 21 from supplying power to the charging chip 31 and the redundant power module 33.
[0075] The microcontroller 34 can detect whether the electronic device 100 has entered a standby or power-off state. For example, the microcontroller 34 can detect that the electronic device 100 has entered a power-off state and initiate a power-off process by detecting that the power button has been pressed. Alternatively, the microcontroller 34 can receive specific signals from the operating system of the electronic device 100 (for example, when the user selects sleep mode on the operating system interface, the microcontroller 34 can receive an instruction from the operating system that the electronic device 100 has entered a standby state), thereby determining whether the electronic device 100 has entered a standby or power-off state. The microcontroller 34 can also detect whether the electronic device 100 has entered a standby or power-off state through other methods, which are not limited in this application.
[0076] When the electronic device 100 enters standby mode or power-off mode, the electronic device 100 can control the microcontroller 34 to send control signal 1 to the control terminal of switch Q3. Control signal 1 can be used to control switch Q3 to open.
[0077] In this way, when the electronic device 100 is in standby or off state, the battery 21 controlled by the electronic device 100 reduces the external power supply, thereby extending the service life of the battery 21.
[0078] S402. When the electronic device 100 is in standby or power-off state, if the battery 21 has less power than a first threshold, and / or the electronic device 100 has been in standby or power-off state for a longer period than a second threshold, the electronic device 100 may control the second power supply circuit to disconnect to stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35.
[0079] When the electronic device 100 is in standby or off state, it can also obtain the battery power of the battery 21 and record the time it has been in standby or off state. If the battery power of the battery 21 is less than a first threshold, and / or the time the electronic device 100 has been in standby or off state is greater than a second threshold, the electronic device 100 can control the microcontroller 34 to send a control signal 2 to the control terminal of the switch Q2. The control signal 2 can be used to control the switch Q2 to open and stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35.
[0080] In this way, when the electronic device 100 is in standby or off state for a long time, and / or when the battery of the electronic device 100 is too low, the battery 21 of the electronic device 100 can stop supplying power to the outside, thereby protecting the battery 21 and extending the service life of the battery 21.
[0081] When the second power supply circuit is disconnected, in response to the electronic device 100 being connected to an external power source, the microcontroller 34 can receive power from the external power source. After receiving power from the external power source, the microcontroller 34 can detect whether the power button of the electronic device 100 is pressed and held. If the power button is pressed and held, the microcontroller 34 can initiate the power-on process. In this way, when the electronic device 100 is connected to an external power source, the electronic device 100 can respond to the user's power-on operation and thus power on normally.
[0082] The following describes, in conjunction with Figures 5 and 6, two control methods for the electronic device 100 described in Figure 4 to control the second power supply circuit to disconnect and stop the power supply of the battery 21 to the microcontroller 34 and the real-time clock 35 of the CPU.
[0083] First, let's introduce the control method shown in Figure 5. In this method, the electronic device 100 can periodically (e.g., once a week) acquire the battery level of the battery 21 and the time the electronic device 100 has been in standby or off mode, until the electronic device 100 determines that the battery level of the battery 21 is less than a first threshold and the time the electronic device 100 has been in standby or off mode is greater than a second threshold. This allows the electronic device 100 to periodically check the battery level of the battery 21 and the time the electronic device 100 has been in standby or off mode, thus facilitating timely determination of whether to disconnect the second power supply circuit to stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. (See Figure 5.)
[0084] S501. After the electronic device 100 enters standby mode or power-off mode, the microcontroller 34 can obtain the power of the battery 21 and control the real-time clock 341 to start timing.
[0085] The microcontroller 34 can also acquire the battery power of the battery 21. Furthermore, the microcontroller 34 can acquire the battery power of the battery 21 through the fuel gauge 22. In this embodiment, the battery power of the battery 21 refers to the remaining battery power, which can be expressed as a percentage, for example, the remaining battery power of the battery 21 is 20%. For example, the microcontroller 34 can acquire the remaining capacity of the battery 21 (the unit can be mAh) through the fuel gauge 22. The remaining capacity can be used to indicate the current capacity of the battery 21 (the unit can be mAh). The microcontroller 34 can also acquire the fully charged capacity of the battery 21 (the unit can be mAh). The fully charged capacity can be used to indicate the capacity of the battery 21 when it is fully charged. The battery power of the battery 21 = remaining capacity / fully charged capacity × 100%.
[0086] The microcontroller 34 includes a real-time clock 341, which can be used for timing. The time displayed on the real-time clock 341 can be the time when the electronic device 100 is in standby or power-off state.
[0087] In this way, when the microcontroller 34 detects that the electronic device 100 has entered a standby state or a power-off state, the microcontroller 34 can obtain the power of the battery 21 and control the real-time clock 341 to start timing.
[0088] S502 and microcontroller 34 can determine whether the following conditions are met: the battery power of 21 is less than the first threshold, and the real-time clock 341 has been timing for a period of time greater than the second threshold.
[0089] When the microcontroller 34 obtains the battery power of the battery 21 and the time recorded by the real-time clock 341, the microcontroller 34 can determine that the battery power of the battery 21 is less than the first threshold and the time recorded by the real-time clock 341 is greater than the second threshold.
[0090] If the microcontroller 34 determines that the battery 21 has less than a first threshold (e.g., 2%) and the real-time clock 341 has been timing for more than a second threshold (e.g., 30 days), then step S503 is executed.
[0091] If the microcontroller 34 determines that the battery 21 has a charge level greater than or equal to a first threshold (e.g., 2%), or if the real-time clock 341 has a timer duration less than or equal to a second threshold (e.g., 30 days), then step S504 is executed.
[0092] S503, the microcontroller 34 can control the second power supply circuit to disconnect to stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35.
[0093] When the microcontroller 34 determines that the battery 21's charge level is less than a first threshold (e.g., 2%) and the real-time clock 341 has been running for a period exceeding a second threshold (e.g., 30 days), the microcontroller 34 can control the second power supply circuit to disconnect, thereby stopping the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. Furthermore, when the microcontroller 34 determines that the battery 21's charge level is less than the first threshold (e.g., 2%) and the real-time clock 341 has been running for a period exceeding the second threshold (e.g., 30 days), the microcontroller 34 can send a control signal 2 to the control terminal of switch Q2. Additionally, the microcontroller 34 can also send the control signal 2 to the control terminal of switch Q2 via the fuel gauge 22. The control signal 2 can be used to control switch Q2 to disconnect. In this way, the battery 21 can stop supplying power to the microcontroller 34 and the CPU's real-time clock 35, thereby extending the battery 21's lifespan.
[0094] In one possible implementation, when the microcontroller 34 determines that the battery 21's charge level is less than a first threshold (e.g., 2%), or the real-time clock 341's timing duration is greater than a second threshold (e.g., 30 days), the microcontroller 34 can control the second power supply circuit to disconnect, stopping the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. Thus, when the real-time clock 341's timing duration is greater than the second threshold (e.g., 30 days) and the battery 21's charge level is high, the microcontroller 34 can also control the battery 21 to stop supplying power, thereby extending the battery 21's lifespan. In some embodiments, when the battery 21's charge level is less than the first threshold, but the real-time clock 341's timing duration is less than a third threshold, the microcontroller 34 does not control the second power supply circuit to disconnect, and the third threshold is less than the second threshold. This avoids situations where the electronic device 100 is at a low charge level (e.g., below the first threshold of 2%), but the user does not require long-term storage of the electronic device 100, causing the battery 21 to stop supplying power, thus preventing abnormal user experience.
[0095] In one possible implementation, when the microcontroller 34 determines that the real-time clock 341 has been running for a period exceeding a second threshold (e.g., 30 days), the microcontroller 34 can control the second power supply circuit to disconnect, thereby stopping the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. In this way, when the electronic device 100 is in standby or off state for an extended period, the battery 21 can stop supplying power, thus protecting the battery 21 and extending its lifespan.
[0096] The S504 and microcontroller 34 can obtain the battery power of the battery 21 and the timing of the real-time clock 341 at regular intervals.
[0097] When the microcontroller 34 determines that the battery 21's charge level is greater than or equal to a first threshold (e.g., 2%), or the electronic device 100's timing duration is less than or equal to a second threshold (e.g., 30 days), the microcontroller 34 can acquire the battery 21's charge level and the real-time clock 341's timing duration at regular intervals (e.g., one week) and execute step S502. In this way, at regular intervals, the microcontroller 34 can check whether the battery 21's charge level is less than the first threshold and whether the real-time clock 341's timing duration is greater than the second threshold, thereby determining whether to stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. This can better help extend the battery 21's lifespan.
[0098] The control method shown in Figure 6 is described below. In the control method shown in Figure 6, when the electronic device 100 enters standby or power-off mode, the electronic device 100 can first estimate the first time required for the battery 21's charge to reach a first threshold. Then, when the first time is reached, the electronic device 100 determines whether the battery 21's charge is less than the first threshold, where the first time is greater than a second threshold. Thus, compared to the control method shown in Figure 5, the control method shown in Figure 6 does not require periodically checking the battery 21's charge, which improves the efficiency of the electronic device 100 in checking the battery 21's charge. As shown in Figure 6:
[0099] S601. After the electronic device 100 enters standby mode or power-off mode, the microcontroller 34 can obtain the power of the battery 21.
[0100] The information regarding whether the electronic device 100 has entered standby or power-off state and the information regarding the battery power of the battery 21 obtained by the microcontroller 34 can be found in step S501 above, and will not be repeated here.
[0101] S602, the microcontroller 34 can calculate the first time required for the battery 21 to reach the first threshold.
[0102] After obtaining the power level of the battery 21, the microcontroller 34 can calculate the first time required for the battery 21 to reach a first threshold (e.g., 2%) when the electronic device 100 is in standby or off state.
[0103] For example, the process by which the microcontroller 34 calculates the first time required for the battery 21 to reach a first threshold can be as follows: Assuming that when the electronic device 100 is in standby or off state, the current battery capacity is 5000mAh, the fully charged capacity of battery 21 is 10000mAh, the output current of battery 21 is 0.5mA, and the first threshold is 2%. From the calculation formula for the first time: First time = (Current battery 21 capacity - Fully charged capacity of battery 21 × First threshold) / Output current of battery 21, we know that the first time = (3000 - 10000 × 2%) / 0.5 = 1200h, and the unit of the first time can be hours (h).
[0104] Optionally, if the first time is greater than or equal to the second threshold, then the subsequent steps are executed, so that when the electronic device 100 reaches the first time, it can be determined that the electronic device 100 has been in standby or power-off state for a period of time greater than the second threshold. If the first time is less than the second threshold, then the subsequent steps are not executed, so that when the electronic device 100 reaches the first time, it can be determined that the electronic device 100 has been in standby or power-off state for a period of time less than or equal to the second threshold.
[0105] The S603 and microcontroller 34 can use the first time as the wake-up time and control the real-time clock 341 to start timing.
[0106] After the microcontroller 34 calculates the first time required for the battery 21 to reach a first threshold (e.g., 2%), the microcontroller 34 can use the first time as the wake-up time and control the real-time clock 341 to start timing.
[0107] S604. When the time counted by the real-time clock 341 is equal to the wake-up time, the microcontroller 34 can obtain the battery power of the battery 21 when the wake-up time is reached.
[0108] When the time counted by the real-time clock 341 equals the wake-up time, the real-time clock 341 can send a command to the microcontroller 34. This command can be used to trigger the microcontroller 34 to obtain the battery level of the battery 21 at the time of wake-up. In this way, the microcontroller 34 does not need to read the battery level of the battery 21 at regular intervals.
[0109] S605 and microcontroller 34 can determine whether the battery power of 21 is less than the first threshold.
[0110] After the microcontroller 34 obtains the power level of the battery 21, the microcontroller 34 can determine whether the power level of the battery 21 is less than the first threshold.
[0111] If the current battery power of 21 is less than the first threshold, then proceed to step S606.
[0112] If the current battery power of 21 is greater than or equal to the first threshold, then proceed to step S607.
[0113] S606, the microcontroller 34 can control the second power supply circuit to disconnect to stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35.
[0114] The function of microcontroller 34 to control the second power supply circuit to disconnect in order to stop the power supply of battery 21 to microcontroller 34 and CPU real-time clock 35 can be referred to step S503 above, and will not be repeated here.
[0115] S607, the microcontroller 34 can calculate the second time required for the battery 21 to reach the first threshold, and use the second time as the wake-up time, and control the real-time clock 341 to restart the timing.
[0116] When the real-time clock 341 reaches the wake-up time, the microcontroller 34 can obtain the battery level of the battery 21 at that time. If the microcontroller 34 determines that the battery level of the battery 21 is greater than or equal to a first threshold, it can recalculate the second time required for the battery level of the battery 21 to reach the first threshold and use this second time as the new wake-up time. Then, the microcontroller 34 can control the real-time clock 341 to restart the timing and continue executing step S604. In this way, the microcontroller 34 can check whether the battery level of the battery 21 is less than the first threshold at the wake-up time. Until the battery level of the battery 21 is less than the first threshold and the electronic device 100 has been in standby or powered off state for an extended period, the microcontroller 34 can control the second power supply circuit to disconnect, stopping the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35, thereby protecting the battery 21 and extending its lifespan.
[0117] The electronic device 100 is not limited to the two control methods described in Figures 5 and 6, which involve the electronic device 100 controlling the second power supply circuit to disconnect in order to stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35. The electronic device 100 may also control the second power supply circuit to disconnect in order to stop the battery 21 from supplying power to the microcontroller 34 and the CPU's real-time clock 35 through other methods. This application does not limit the scope of these methods.
[0118] This application also provides a chip, including a processing circuit and an interface circuit. The interface circuit is used to receive code and transmit it to the processing circuit. The processing circuit is used to run code instructions to implement the steps in the above-described method embodiments. The chip may be a microcontroller 34.
[0119] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0120] This application also provides a computer program product that stores a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.
[0121] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in RAM, flash memory, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, read-only optical discs (CD-ROMs), or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Additionally, the ASIC can reside in a transceiver or relay device. Alternatively, the processor and storage medium can exist as discrete components in a wireless access network device or user equipment.
[0122] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0123] The above detailed embodiments further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.
Claims
1. An electronic device, characterized in that, The electronic device includes a battery, a charging chip, a redundant power module, a microcontroller, and a first real-time clock; the charging chip is used to control the charging and discharging of the battery; the first real-time clock is used to record the system time of the electronic device. The redundant power supply module is used to step down and / or regulate the voltage of the battery; the microcontroller is used to detect whether the power button of the electronic device is pressed and held; the battery supplies power to the charging chip and the redundant power supply module through a first power supply circuit; the battery supplies power to the microcontroller and the first real-time clock through a second power supply circuit. When the electronic device is in standby or off state, the microcontroller controls the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module.
2. The electronic device according to claim 1, characterized in that, The first power supply circuit includes a first switch; the microcontroller is used to control the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module, specifically including: The microcontroller sends a first control signal to the control terminal of the first switch. The first control signal is used to control the first switch to open so as to stop the battery from supplying power to the charging chip and the redundant power module.
3. The electronic device according to claim 2, characterized in that, When the electronic device is in standby or off state, if the battery charge is less than a first threshold and / or the electronic device is in standby or off state for a period of time greater than a second threshold, the microcontroller is further configured to control the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock; the microcontroller is further configured to acquire the battery charge; the microcontroller includes a second real-time clock, which is used to record the time the electronic device is in standby or off state.
4. The electronic device according to claim 3, characterized in that, The second power supply circuit includes a second switch, and the first power supply circuit also includes the second switch; the microcontroller is further configured to control the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock, specifically including: The microcontroller sends a second control signal to the control terminal of the second switch. The second control signal is used to control the second switch to open so as to stop the battery from supplying power to the microcontroller and the first real-time clock.
5. The electronic device according to claim 4, characterized in that, The electronic device further includes a fuel gauge connected to the control terminal of the second switch; the microcontroller sends a second control signal to the control terminal of the second switch, specifically including: The microcontroller sends a second control signal to the control terminal of the second switch via the fuel gauge.
6. The electronic device according to any one of claims 3-5, characterized in that, The electronic device further includes a third power supply circuit; when the electronic device is connected to an external power source, the external power source supplies power to the second real-time clock through the third power supply circuit.
7. The electronic device according to claim 6, characterized in that, The third power supply circuit includes an LDO regulator, which is used to regulate the supply voltage of the external power supply and output the regulated voltage to the second real-time clock.
8. The electronic device according to claim 7, characterized in that, The first power supply circuit also includes a BUCK step-down circuit, which is used to step down the voltage of the battery and output the stepped-down voltage to the microcontroller.
9. The electronic device according to claim 8, characterized in that, When the electronic device is connected to an external power source, the BUCK step-down circuit is also used to step down the voltage of the external power source and output the stepped-down voltage to the microcontroller.
10. The electronic device according to claim 9, characterized in that, The battery supplies power to the second real-time clock through the second power supply circuit.
11. The electronic device according to claim 10, characterized in that, The first switch includes a first terminal and a second terminal. The first terminal is connected to the battery, and the second terminal is connected to the microcontroller, the charging chip, and the redundant power supply module. The first terminal is also connected to the second real-time clock.
12. The electronic device according to claim 11, wherein the second terminal is connected to the microcontroller, specifically comprising: The second terminal is connected to the microcontroller via the BUCK step-down converter.
13. The electronic device according to claim 11 or 12, characterized in that, The second power supply circuit also includes the LDO regulator; the first terminal is also connected to the second real-time clock, specifically including: the first terminal is also connected to the second real-time clock through the LDO regulator.
14. The electronic device according to claim 13, characterized in that, The first terminal is also connected to the first real-time clock via the LDO regulator.
15. The electronic device according to any one of claims 2-14, characterized in that, The first power supply circuit also includes a third switch, which is connected in series after the first switch. The battery outputs voltage to the redundant power module, the charging chip, and the microcontroller in sequence through the first switch and the third switch. The charging chip is also connected to the control terminal of the third switch to control the opening or closing of the third switch.
16. The electronic device according to any one of claims 1-15, characterized in that, It also includes: a storage unit storing a computer program, which, when executed by the microcontroller, causes the electronic device to perform the method described in any one of 17-21.
17. A power supply control method, characterized in that, The power supply control method is applied to the electronic device according to any one of claims 1-16, the method comprising: When the electronic device is in standby or off state, the electronic device controls the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module.
18. The method according to claim 17, characterized in that, The electronic device controls the first power supply circuit to disconnect to stop the battery from supplying power to the charging chip and the redundant power module, specifically including: The electronic device controls the microcontroller to send a first control signal to the control terminal of the first switch, and the first control signal is used to control the first switch to open.
19. The method according to claim 17 or 18, characterized in that, The method further includes: when the electronic device is in standby or power-off state, if the battery power is less than a first threshold, and / or the electronic device is in standby or power-off state for a period of time greater than a second threshold, the electronic device controls the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock.
20. The method according to claim 19, characterized in that, The electronic device controls the second power supply circuit to disconnect to stop the battery from supplying power to the microcontroller and the first real-time clock, specifically including: The electronic device controls the microcontroller to send a second control signal to the control terminal of the second switch, and the second control signal is used to control the second switch to open.
21. The method according to claim 19 or 20, characterized in that, When the second power supply circuit is disconnected, in response to the electronic device being connected to an external power source, the microcontroller is used to receive power from the external power source; After receiving power from an external power source, the microcontroller detects whether the power button of the electronic device is pressed and held. If the power button is pressed and held, the microcontroller initiates the power-on process.
22. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 17-21.
23. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 17-21.
Citation Information
Patent Citations
Shutdown power supply circuit of electronic equipment and electronic equipment
CN111628541A
Electronic equipment, control method thereof and storage medium
CN111782028A
Electronic equipment and control method thereof
CN118295504A
Electrical power control unit (EPCU) with reduced shutdown power consumption
CN2779456Y