Electronic device, power consumption control method, and readable storage medium

CN122993181APending Publication Date: 2026-10-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611045320.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-14
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

但是,前述通过switchingcapacitor charger对外部设备进行反向充电的方案,充电电流直接取自电池,没有经过buck charger的Q4管(即路径管理FET),而系统功耗控制策略为buck charger会自动根据流经Q4管的电流,调整系统功耗(如CPU频率),从而防止大负载将电池拉保护,因此,采用前述方案系统的功耗控制策略(Power throttle)无法覆盖到此部分电池用于反向充电的放电电流,并且,电池的总放电电流来自switching capacitor charger反向充电电流和系统耗电(通过Q4管)的叠加,在此种情况下,容易导致电池的总放电电流超出电池保护芯片的过流保护(Over Current Protection,OCP)阈值,从而导致电池保护芯片触发OCP,进而导致系统掉电,影响用户体验

Benefits of technology

[0011]本申请实施例提供了一种电子设备,该电子设备包括电池、电池保护芯片和控制装置,电池与电池保护芯片电连接,电池保护芯片与控制装置电连接,电池保护芯片用于检测电池的放电电流值,在该放电电流值大于预设阈值的情况下,电池保护芯片向控制装置发送用于指示控制装置执行预设的降低功耗策略的中断信号,以降低功耗,由于该用于触发中断信号的放电电流值覆盖了电池对外部设备反向充电使用的反向充电电流值,且该预设阈值小于电池保护芯片的过流保护阈值,因此,采用本申请的方案能够有效降低在对外部设备反向充电过程中误触发电池保护芯片的OCP的风险,提升用户体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122993181A_ABST
    Figure CN122993181A_ABST
Patent Text Reader

Abstract

The application discloses an electronic device, a power consumption control method and a readable storage medium. The electronic device comprises a battery, a battery protection chip and a control device, wherein the battery is electrically connected with the battery protection chip, and the battery protection chip is electrically connected with the control device; the battery protection chip is used for detecting a discharge current value of the battery, and sending an interrupt signal to the control device in the case that the discharge current value is greater than a preset threshold value, wherein the discharge current value comprises a reverse charging current value used for reverse charging of an external device, or the discharge current value comprises a system power consumption current value of the electronic device and a reverse charging current value used for reverse charging of an external device, the preset threshold value is less than an overcurrent protection threshold value of the battery protection chip, and the interrupt signal is used for instructing the control device to execute a preset power consumption reduction strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of battery technology, specifically relating to an electronic device, a power consumption control method, and a readable storage medium. Background Technology

[0002] With the development of battery technology, battery energy density is getting higher and higher, and the battery capacity of electronic devices such as mobile phones and tablets is also getting higher and higher. While meeting their own power needs, they can also provide power to external devices through the charging interface (for example, to charge another external electronic device), solving the emergency charging problem in scenarios such as traveling where it is inconvenient to use a power adapter.

[0003] like Figure 1a As shown, the charging system for electronic devices such as mobile phones and tablets includes a regular charging circuit composed of a buck charger and a fast charging circuit composed of a switching capacitor charger. In related technologies, for reverse charging (i.e., charging external devices), the power circuit of the switching capacitor charger in the charging system is reused to achieve fast charging when charging external devices, thereby improving the speed of reverse charging. However, in the aforementioned scheme of reverse charging external devices via a switching capacitor charger, the charging current is directly drawn from the battery and does not pass through the Q4 transistor (i.e., path management FET) of the buck charger. The system power control strategy is that the buck charger automatically adjusts the system power consumption (such as CPU frequency) based on the current flowing through the Q4 transistor to prevent the battery from being pulled to protection by a large load. Therefore, the power throttle strategy of the system using the aforementioned scheme cannot cover the discharge current of this part of the battery used for reverse charging. Furthermore, the total discharge current of the battery comes from the sum of the reverse charging current of the switching capacitor charger and the system power consumption (through the Q4 transistor). In this case, the total discharge current of the battery is likely to exceed the overcurrent protection (OCP) threshold of the battery protection chip, thereby causing the battery protection chip to trigger OCP, resulting in system power loss and affecting user experience. Summary of the Invention

[0004] This application aims to provide an electronic device, a power consumption control method, and a readable storage medium that can reduce the risk of accidental triggering of the OCP of the battery protection chip and improve the user experience.

[0005] In a first aspect, embodiments of this application disclose an electronic device, comprising: a battery, a battery protection chip, and a control device, wherein: the battery is electrically connected to the battery protection chip, and the battery protection chip is electrically connected to the control device; the battery protection chip is used to detect the discharge current value of the battery, and when the discharge current value is greater than a preset threshold, to send an interrupt signal to the control device, wherein the discharge current value includes a reverse charging current value used for reverse charging of an external device, or the discharge current value includes the system power consumption current value of the electronic device and the reverse charging current value used for reverse charging of an external device, the preset threshold is less than the overcurrent protection threshold of the battery protection chip, and the interrupt signal is used to instruct the control device to execute a preset power reduction strategy.

[0006] In a second aspect, embodiments of this application disclose a power consumption control method applied to the electronic device described in the first aspect, comprising: receiving an interrupt signal sent by a battery protection chip, wherein the interrupt signal is a signal sent by the battery protection chip when it detects that the discharge current value of the battery is greater than a preset threshold, the discharge current value includes a reverse charging current value used for reverse charging of an external device, or the discharge current value includes the system power consumption current value of the electronic device and the reverse charging current value used for reverse charging of an external device, the preset threshold being less than the overcurrent protection threshold of the battery protection chip, the interrupt signal being used to indicate the execution of a preset power consumption reduction strategy; and in response to the interrupt signal, executing the preset power consumption reduction strategy.

[0007] Thirdly, embodiments of this application disclose an electronic device including a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the second aspect.

[0008] Fourthly, embodiments of this application disclose a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the second aspect.

[0009] Fifthly, embodiments of this application disclose a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method described in the second aspect.

[0010] In a sixth aspect, embodiments of this application disclose a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the second aspect.

[0011] This application provides an electronic device including a battery, a battery protection chip, and a control device. The battery is electrically connected to the battery protection chip, and the battery protection chip is electrically connected to the control device. The battery protection chip detects the discharge current value of the battery. When the discharge current value exceeds a preset threshold, the battery protection chip sends an interrupt signal to the control device to instruct the control device to execute a preset power reduction strategy to reduce power consumption. Since the discharge current value used to trigger the interrupt signal covers the reverse charging current value used by the battery to reverse charge an external device, and the preset threshold is less than the overcurrent protection threshold of the battery protection chip, the solution of this application can effectively reduce the risk of accidentally triggering the OCP of the battery protection chip during reverse charging of an external device, thereby improving the user experience.

[0012] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0013] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1a A schematic diagram of a charging system for an electronic device based on related technologies; Figure 1b This is a schematic diagram of the power path for reverse charging of other devices via a buck charger in related technologies; Figure 1c This is a schematic diagram of the power path for reverse charging of other devices via a switching capacitor charger in related technologies; Figure 2 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a battery protection chip disclosed in an embodiment of this application; Figure 4 This is a schematic diagram of another battery protection chip disclosed in an embodiment of this application; Figure 5 This is a flowchart illustrating the execution of a control device disclosed in an embodiment of this application; Figure 6 This is a flowchart of a power consumption control method disclosed in an embodiment of this application; Figure 7 This is a structural block diagram of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0014] The embodiments of this application will now be described in detail. Examples of these embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0015] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise stated, "multiple" means two or more. Furthermore, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0016] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "connected" and "linked" should be interpreted broadly. For example, they can refer to a direct connection, an indirect connection through an intermediate medium, or a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0017] See Figure 1a The charging system for electronic devices such as mobile phones and tablets includes a standard charging circuit consisting of a buck charger and a fast charging circuit consisting of a switching capacitor charger. Typically, when a mobile phone or tablet charges other devices, it uses the OTG (On-The-Go) function of this type of device. By reusing the power circuit of the buck charger in the charging system, it operates in reverse boost mode to raise the output voltage to 5V, which is used to drive external USB (Universal Serial Bus) devices (such as USB flash drives and external hard drives) and to charge other devices. A diagram illustrating the power path of reverse charging other devices via a buck charger is shown below. Figure 1b As shown, however, due to the limitations of buck charger conversion efficiency and power density, the output power is usually only 5V / 1.5A~5V / 2A, that is, 7.5W~10W. When charging other devices, the charging power is low, the charging speed is slow, and the heat generation is serious, resulting in a poor user experience.

[0018] To address the issue of low charging power during reverse charging via a buck charger, the power circuit of a switching capacitor charger in the charging system is reused, enabling it to achieve a 1:2 reverse output capability. This increases the battery voltage VBAT to 2*VBAT, and then establishes a handshake with the device being charged via protocols such as PD (Power Delivery). Furthermore, because the switching capacitor charger boasts a conversion efficiency of approximately 98% and is free from inductor overcurrent limitations, it can achieve fast charging when charging external devices, improving reverse charging speed, reducing heat generation, and enhancing the user experience. A schematic diagram of the power path for reverse charging other devices via a switching capacitor charger is shown below. Figure 1c As shown. However, in the reverse charging scheme using a switching capacitor charger, the charging current is directly taken from the battery and does not pass through the Q4 transistor (i.e., path management FET) of the buck charger. The system power control strategy is that the buck charger automatically adjusts the system power consumption (such as CPU frequency) based on the current flowing through the Q4 transistor to prevent the battery from being pulled to protection by a large load. Therefore, the power control strategy of the system using the aforementioned scheme cannot cover the discharge current of this part of the battery used for reverse charging. Furthermore, the total discharge current of the battery comes from the sum of the reverse charging current of the switching capacitor charger and the system power consumption (through the Q4 transistor). In the scenario of reverse charging + system heavy load superposition, the total discharge current of the battery is likely to exceed the overcurrent protection (OCP) threshold of the battery protection chip, thereby causing the battery protection chip to trigger OCP, resulting in system power loss and affecting user experience.

[0019] When a mobile phone or tablet screen is detected to be on, the switching capacitor charger can be actively turned off to reduce the reverse charging power, thereby preventing the OCP of the battery protection chip from being triggered. However, this solution has at least the following problems: 1) Due to the delay in screen activation detection, the screen activation action itself is a relatively heavy-load scenario. The OCP trigger delay of the battery protection chip is in the millisecond range. The solution of detecting screen activation through software and then reducing charging power has poor real-time performance and cannot solve the risk of triggering the OCP of the battery protection chip. 2) Controlling reverse charging power solely by differentiating between screen-on and screen-off scenarios reduces charging power during screen-on scenarios, thus decreasing charging speed gains. Furthermore, screen-off scenarios may also involve high system loads, in which case the battery protection chip's OCP cannot be prevented from being triggered.

[0020] In summary, the solution of actively shutting down the switching capacitor charger to reduce reverse charging power when the screen of an electronic device such as a mobile phone or tablet is detected to be on cannot effectively prevent the OCP of the battery protection chip from being triggered.

[0021] The electronic device, power consumption control method, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios, in order to solve the above-mentioned technical problems.

[0022] like Figure 2 As shown in the figure, this application discloses an electronic device, which includes a battery 110, a battery protection chip 120, and a control device 130, wherein: the battery 110 is electrically connected to the battery protection chip 120, and the battery protection chip 120 is electrically connected to the control device 130; the battery protection chip 120 is used to detect the discharge current value of the battery 110, and when the discharge current value is greater than a preset threshold, it sends an interrupt signal to the control device 130, wherein the discharge current value includes a reverse charging current value used for reverse charging of an external device, or the discharge current value includes the system power consumption current value of the electronic device and the reverse charging current value used for reverse charging of an external device, the preset threshold is less than the overcurrent protection threshold of the battery protection chip 120, and the interrupt signal is used to instruct the control device 130 to execute a preset power reduction strategy.

[0023] It should be noted that the external device in this application refers to other electronic devices that need to be charged.

[0024] When the discharge current value of the battery 110 detected by the battery protection chip 120 includes the reverse charging current value used for reverse charging of an external device, the battery protection chip 120 and the battery 110 are connected in a manner that can detect the reverse charging current value used by the battery for reverse charging of an external device. This application does not make specific limitations here.

[0025] When the discharge current value of the battery 110 detected by the battery protection chip 120 includes the system power consumption current value of the electronic device and the reverse charging current value used for reverse charging of the external device, the connection method between the battery 110 and the battery protection chip 120 can be consistent with the connection method between the battery and the battery protection chip in the prior art. The circuit module in the battery protection chip 120 used to detect the charging and discharging current value of the battery 110 can be reused to detect the discharge current value of the battery 110. The discharge current value is the sum of the system power consumption current value of the electronic device and the reverse charging current value used by the battery 110 for reverse charging of the external device.

[0026] When the battery protection chip 120 of this application detects that the discharge current value of the battery 110 is greater than a preset threshold, it sends an interrupt signal to the control device 130 of the electronic device to instruct the control device 130 to execute a preset power reduction strategy to reduce power consumption. Since the discharge current value used to trigger the interrupt signal in this application includes the reverse charging current value used by the battery 110 for reverse charging of an external device, the signal triggering the power reduction strategy covers the discharge current used by the battery 110 for reverse charging. Therefore, the risk of accidentally triggering the overcurrent protection (OCP) of the battery protection chip 120 can be effectively reduced, improving the user experience. It should be noted that the preset threshold in this application is lower than the overcurrent protection threshold of the battery protection chip 120 to effectively reduce the risk of accidentally triggering the OCP of the battery protection chip 120.

[0027] For example, the control device 130 in this application can be the main control chip SOC of an electronic device. It should be noted that the control device 130 in this application is not limited to the main control chip SOC of an electronic device, and can also be other modules or structures in the electronic device that can realize corresponding control functions.

[0028] The solution proposed in this application addresses the risk of triggering the battery protection chip's OCP during reverse charging by providing a faster response speed through hardware-level response, reducing the risk of erroneous OCP triggering and improving user experience. Furthermore, with this solution, if an electronic device uses a fast charging circuit to reverse charge an external device, reverse fast charging can continue as long as the discharge current of battery 110 is less than a preset threshold, regardless of whether the screen is on or off. Compared to the aforementioned solution that actively shuts down the switching capacitor charger to reduce reverse charging power and prevent triggering the battery protection chip's OCP when the screen of an electronic device such as a phone or tablet is detected to be on, this solution avoids the problems of low charging power and slow charging in scenarios where the device is being used while reverse charging an external device.

[0029] This application provides an electronic device including a battery 110, a battery protection chip 120, and a control device 130. The battery 110 is electrically connected to the battery protection chip 120, and the battery protection chip 120 is electrically connected to the control device 130. The battery protection chip 120 is used to detect the discharge current value of the battery 110. When the discharge current value is greater than a preset threshold, the battery protection chip 120 sends an interrupt signal to the control device 130 to instruct the control device 130 to execute a preset power reduction strategy to reduce power consumption. Since the discharge current value used to trigger the interrupt signal covers the reverse charging current value used by the battery 110 to reverse charge an external device, and the preset threshold is less than the overcurrent protection threshold of the battery protection chip 120, the solution of this application can effectively reduce the risk of accidentally triggering the OCP of the battery protection chip 120 during reverse charging of an external device, thereby improving the user experience.

[0030] In one implementation, such as Figure 3 As shown, the battery protection chip 120 may include a current detection circuit 121 and a logic circuit 122, wherein: the input terminal of the current detection circuit 121 is electrically connected to the battery 110, and the output terminal of the current detection circuit 121 is electrically connected to the input terminal of the logic circuit 122; the current detection circuit 121 is used to detect the discharge current value and send the discharge current value to the logic circuit 122; the output terminal of the logic circuit 122 is electrically connected to the control device 130, and the logic circuit 122 is used to send the interrupt signal to the control device 130 when the received discharge current value is greater than the preset threshold.

[0031] When the battery's discharge current value includes the system power consumption current of the electronic device and the reverse charging current value used for reverse charging of external devices, such as Figure 3 As shown, the input terminal of the current detection circuit 121 can be electrically connected to the battery 110 through the charge / discharge current sensing resistor RSNS. The current detection circuit 121 in this application can reuse the original current detection circuit in the battery protection chip 120. The current detection circuit 121 determines the discharge current value of the battery 110 based on the resistance value of the charge / discharge current sensing resistor RSNS and the voltage across the charge / discharge current sensing resistor RSNS.

[0032] By adopting the solution of this application, the current detection circuit 121 in the battery protection chip 120 detects the discharge current value of the battery 110 in real time and sends the discharge current value to the logic circuit 122 in the battery protection chip 120. The logic circuit 122 determines whether the received discharge current value is greater than a preset threshold. If the discharge current value is greater than the preset threshold, an interrupt output is triggered. The logic circuit 122 sends an interrupt signal to the control device 130 so that the control device 130 executes a preset power reduction strategy, reducing the risk of erroneously triggering the OCP of the battery protection chip 120 and improving the user experience.

[0033] In one implementation, such as Figure 3 As shown, the battery protection chip 120 may also include an interrupt output pin 123 (i.e., Figure 3 The output of the logic circuit 122 is electrically connected to the control device 130 via the interrupt output pin 123, which is used to transmit the interrupt signal.

[0034] It should be noted that the interrupt output pin 123 in this application is a newly added pin on the battery protection chip 120 for transmitting the above-mentioned interrupt signal. By adopting the solution of this embodiment, the function of the original pin on the battery protection chip 120 can be maintained without changing it.

[0035] In another implementation, such as Figure 4 As shown, the battery protection chip 120 may also include a control pin 124 (i.e., Figure 4 The output of the logic circuit 122 is electrically connected to the control device 130 via the control pin 124 (CTRL pin in the circuit). The control pin 124 is used to transmit the interrupt signal and execute the target function, wherein the target function includes at least one of transmitting a shipping mode command, transmitting an acknowledgment character signal, and adjusting the over-discharge protection point of the battery protection chip 120 by adjusting the logic level.

[0036] It should be noted that the control pin 124 in this application is at least one of the original pins on the battery protection chip 120 used for executing the transmission of shipmode commands, transmitting ACK (ACK knowledge character) signals, and adjusting the over-discharge protection point of the battery protection chip 120 through logic levels. This application reuses the original control pin 124 on the battery protection chip 120, and sets the output terminal of the logic circuit 122 to be electrically connected to the control device 130 through the original control pin 124 on the battery protection chip 120, so that the control pin 124 on the battery protection chip 120 is also used to transmit the aforementioned interrupt signal. By adopting the solution of this embodiment, only the aforementioned logic circuit 122 needs to be added to the battery protection chip 120, without adding any new pins to the battery protection chip 120. The pin map (including pin arrangement diagram and pin function list) and peripheral circuit design of the battery protection chip 120 can be reused, thereby avoiding the incompatibility of the solution due to the addition of additional chip pins and increasing the versatility of the solution.

[0037] In this embodiment of the application, the battery protection chip 120 may further include a current detection pin 125 (i.e., Figure 3 The input terminal of the current detection circuit 121 is electrically connected to the positive or negative terminal of the battery 110 via the current detection pin 125 (CS pin in the circuit). In other words, the solution of this application can be used for both negative and positive terminal protection of the battery. Figures 2 to 4 The diagram shown illustrates the protection of the battery's negative terminal. When used for the protection of the battery's positive terminal, the input terminal of the current detection circuit 121 is electrically connected to the positive terminal of the battery 110 through the current detection pin 125 and the charge / discharge current sensing resistor RSNS. Figure 3 Resistor R1 is connected between the VSS pin of battery protection chip 120 and the negative terminal B- of battery 110. The MOSFET connected to the DOUT pin of battery protection chip 120 is located between the positive terminal B+ of battery 110 and the positive terminal P+ of battery 110 connector. The MOSFET connected to the COUT pin of battery protection chip 120 is located between the positive terminal B+ of battery 110 and the positive terminal P+ of battery 110 connector. The VM pin of battery protection chip 120 is connected to the positive terminal P+ of battery 110 connector through resistor R2.

[0038] In one implementation, the current detection circuit in the battery protection chip 120 can be used to both detect the discharge current value of the battery 110 and send an interrupt signal to the control device 130 when the discharge current value is greater than a preset threshold. That is, the detection of the discharge current value and the sending of the interrupt signal can be achieved through the current detection circuit.

[0039] In this embodiment of the application, the preset power reduction strategy may include at least one of the following: switching from reverse charging the external device through the first charging circuit 140 to reverse charging the external device through the second charging circuit 150, sending a signal to the external device requesting reduced power, and reducing the system power consumption of the electronic device, wherein the first charging circuit 140 and the second charging circuit 150 are charging circuits with different charging powers in the electronic device, and the charging power of the first charging circuit 140 is greater than the charging power of the second charging circuit 150.

[0040] For example, such as Figure 2 As shown, the first charging circuit 140 can be a fast charging circuit composed of a switching capacitor charger, and the second charging circuit 150 can be a regular charging circuit composed of a buck charger.

[0041] When the first charging circuit 140 is used to reverse charge an external device and the discharge current of the battery 110 is greater than a preset threshold, the power reduction strategy executed by the control device 130 according to the received interrupt signal may include at least one of the following: switching from reverse charging the external device through the first charging circuit 140 to reverse charging the external device through the second charging circuit 150, sending a signal to the external device to reduce power request, and reducing the system power consumption of the electronic device.

[0042] The switch from reverse charging of external devices via the first charging circuit 140 to reverse charging of external devices via the second charging circuit 150 can be achieved by sending a shutdown signal to the switching capacitor charger via the control device 130 to disable the reverse 1:2 output of the switching capacitor charger, and by sending an activation signal to the buck charger via the control device 130 to power the external devices in OTG mode.

[0043] Sending a signal to reduce the requested power to an external device can be achieved by the control device 130 issuing a command through a communication protocol (such as the PD protocol) to cause the device being charged (i.e., the aforementioned external device) to actively reduce the requested power.

[0044] Reducing the system power consumption of electronic devices can be achieved through methods such as CPU underclocking.

[0045] It should be noted that power reduction strategies are not limited to those listed above, and may also include other strategies that can reduce the power consumption of electronic devices.

[0046] In this application, the execution flow of the control device 130 in the electronic device is as follows: Figure 5 As shown, when the control device 130 receives an interrupt signal sent by the battery protection chip 120, the control device 130 executes a preset power reduction strategy; otherwise, the control device 130 continues to detect whether an interrupt signal has been received.

[0047] This application also discloses a power consumption control method, applied to the electronic device described above, such as... Figure 6 As shown, the power consumption control method includes the following steps: S620 receives an interrupt signal sent by the battery protection chip 120.

[0048] The interrupt signal is a signal sent by the battery protection chip 120 when it detects that the discharge current value of the battery 110 is greater than a preset threshold. The discharge current value includes the reverse charging current value used for reverse charging of external devices, or the discharge current value includes the system power consumption current value of the electronic device and the reverse charging current value used for reverse charging of external devices. The preset threshold is less than the overcurrent protection threshold of the battery protection chip 120. The interrupt signal is used to indicate the execution of a preset power reduction strategy.

[0049] S640. In response to the interrupt signal, execute the preset power reduction strategy.

[0050] This application provides a power consumption control method. The control device 130 receives an interrupt signal sent by the battery protection chip 120 when it detects that the discharge current value of the battery 110 is greater than a preset threshold, and executes a preset power consumption reduction strategy in response to the interrupt signal to reduce the power consumption of the electronic device. Since the discharge current value used to trigger the interrupt signal covers the reverse charging current value used by the battery 110 to reverse charge an external device, and the preset threshold is less than the overcurrent protection threshold of the battery protection chip 120, the solution of this application can effectively reduce the risk of accidentally triggering the OCP of the battery protection chip 120 during reverse charging of an external device, thereby improving the user experience.

[0051] In one implementation, receiving the interrupt signal sent by the battery protection chip 120 may include: receiving the interrupt signal sent by the battery protection chip 120 through the interrupt output pin 123, wherein the interrupt output pin 123 is used to transmit the interrupt signal.

[0052] It should be noted that the interrupt output pin 123 in this application is a newly added pin on the battery protection chip 120 for transmitting the above-mentioned interrupt signal. By adopting the solution of this embodiment, the function of the original pin on the battery protection chip 120 can be maintained without changing it.

[0053] In another implementation, receiving the interrupt signal sent by the battery protection chip 120 may include: receiving the interrupt signal sent by the battery protection chip 120 through a control pin 124, wherein the control pin 124 is used to transmit the interrupt signal and execute a target function, wherein the target function includes at least one of transmitting a shipping mode instruction, transmitting an acknowledgment character signal, and adjusting the over-discharge protection point of the battery protection chip 120 through a logic level.

[0054] It should be noted that the control pin 124 in this application is at least one of the original pins on the battery protection chip 120 used to execute the transmission of the shipmode command, transmit the ACK (ACK knowledge character) signal, and adjust the over-discharge protection point of the battery protection chip 120 through logic level. This application transmits the above-mentioned interrupt signals by reusing the original control pin 124 on the battery protection chip 120, without adding any new pins to the battery protection chip 120. It can reuse the pin map (including pin arrangement diagram and pin function list) and peripheral circuit design of the battery protection chip 120, thereby avoiding the incompatibility of the solution due to the addition of additional chip pins and increasing the versatility of the solution.

[0055] Optionally, such as Figure 7 As shown, this application embodiment also provides an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores a program or instructions that can run on the processor 701. When the program or instructions are executed by the processor 701, they implement the various steps of the above-described power consumption control method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0056] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0057] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described power consumption control method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0058] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0059] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described power consumption control method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0060] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0061] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the power consumption control method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0062] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0063] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.

Claims

1. An electronic device, characterized in that, include: Battery, battery protection chip and control device, wherein: The battery is electrically connected to the battery protection chip, and the battery protection chip is electrically connected to the control device; The battery protection chip is used to detect the discharge current value of the battery, and when the discharge current value is greater than a preset threshold, it sends an interrupt signal to the control device. The discharge current value includes the reverse charging current value used for reverse charging of external devices, or the discharge current value includes the system power consumption current value of the electronic device and the reverse charging current value used for reverse charging of external devices. The preset threshold is less than the overcurrent protection threshold of the battery protection chip. The interrupt signal is used to instruct the control device to execute a preset power reduction strategy.

2. The electronic device according to claim 1, characterized in that, The battery protection chip includes a current detection circuit and a logic circuit, wherein: The input terminal of the current detection circuit is electrically connected to the battery, and the output terminal of the current detection circuit is electrically connected to the input terminal of the logic circuit. The current detection circuit is used to detect the discharge current value and send the discharge current value to the logic circuit. The output terminal of the logic circuit is electrically connected to the control device. The logic circuit is used to send the interrupt signal to the control device when the received discharge current value is greater than the preset threshold.

3. The electronic device according to claim 2, characterized in that, The battery protection chip also includes an interrupt output pin. The output of the logic circuit is electrically connected to the control device through the interrupt output pin, which is used to transmit the interrupt signal.

4. The electronic device according to claim 2, characterized in that, The battery protection chip also includes a control pin. The output of the logic circuit is electrically connected to the control device through the control pin. The control pin is used to transmit the interrupt signal and execute the target function. The target function includes at least one of transmitting a shipping mode command, transmitting an acknowledgment character signal, and adjusting the over-discharge protection point of the battery protection chip through logic level.

5. The electronic device according to claim 2, characterized in that, The battery protection chip also includes a current detection pin, and the input terminal of the current detection circuit is electrically connected to the positive or negative terminal of the battery through the current detection pin.

6. The electronic device according to claim 1, characterized in that, The preset power reduction strategy includes at least one of the following: switching from reverse charging the external device through a first charging circuit to reverse charging the external device through a second charging circuit, sending a power reduction request signal to the external device, and reducing the system power consumption of the electronic device, wherein the first charging circuit and the second charging circuit are charging circuits with different charging powers in the electronic device, and the charging power of the first charging circuit is greater than the charging power of the second charging circuit.

7. A power consumption control method, characterized in that, Applied to the electronic device according to any one of claims 1 to 6, comprising: The system receives an interrupt signal sent by a battery protection chip. The interrupt signal is sent by the battery protection chip when it detects that the discharge current value of the battery is greater than a preset threshold. The discharge current value includes the reverse charging current value used for reverse charging of external devices, or the discharge current value includes the system power consumption current value of the electronic device and the reverse charging current value used for reverse charging of external devices. The preset threshold is less than the overcurrent protection threshold of the battery protection chip. The interrupt signal is used to indicate the execution of a preset power reduction strategy. In response to the interrupt signal, the preset power reduction strategy is executed.

8. The method according to claim 7, characterized in that, The interrupt signal received from the battery protection chip includes: The system receives an interrupt signal sent by the battery protection chip via an interrupt output pin, wherein the interrupt output pin is used to transmit the interrupt signal.

9. The method according to claim 7, characterized in that, The interrupt signal received from the battery protection chip includes: The system receives an interrupt signal sent by the battery protection chip via a control pin, wherein the control pin is used to transmit the interrupt signal and execute a target function, wherein the target function includes at least one of transmitting a shipping mode command, transmitting an acknowledgment character signal, and adjusting the over-discharge protection point of the battery protection chip via a logic level.

10. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the power consumption control method as described in any one of claims 7-9.

11. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the power consumption control method as described in any one of claims 7-9.