Power supply control method and electronic equipment

CN119585972APending Publication Date: 2025-03-07HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380055140.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-07-20
Filing Date
2023-04-26
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The overvoltage protection strategy in existing electronic equipment may cause power supply oscillation after OVP protection is triggered, causing the load supply voltage to drop instantaneously and affecting the stable operation of the load.

Method used

By introducing the HIZ mode into electronic equipment, the battery is discharged to release the voltage before the OVP protection is triggered, so that the battery voltage is reduced below the OVP threshold to avoid the triggering of the OVP protection and thereby avoid power supply oscillation. This mode includes adjusting the CV voltage and controlling the working state of the Buck circuit when the temperature changes to ensure that the battery voltage is lower than the new OVP threshold within a preset period of time.

Benefits of technology

It effectively avoids frequent triggering of OVP protection, prevents power supply oscillation, ensures load power supply stability, and avoids excessive loss of battery power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119585972A_ABST
    Figure CN119585972A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a power supply control method and electronic equipment, and relates to the field of electronic equipment. A battery can be effectively protected from overvoltage, and meanwhile, the condition of power supply oscillation caused by triggering of OVP protection is avoided. According to the specific scheme, a first over-voltage protection (OVP) threshold is set in the electronic equipment, and when the voltage of a battery is higher than the first OVP threshold, a power supply module is controlled not to supply power to a load. And controlling the power supply module not to charge the battery in the battery module. And controlling a battery in the battery module to supply power to the load until the voltage of the battery is always lower than a second OVP threshold within a preset duration, and the second OVP threshold is lower than the first OVP threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Power supply control method and electronic equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on July 20, 2022, with application number 202210853401.6 and invention name “A power supply control method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of electronic devices, and in particular to a power supply control method and electronic devices. Background Art

[0003] An overvoltage protection strategy for the battery can be set in the electronic device so that when the battery voltage is too high, the battery is controlled to supply power to the load to achieve battery discharge and pressure relief.

[0004] However, in current overvoltage protection strategies, a problem of instantaneous power supply voltage drop to the load may occur.

[0005] This requires providing effective overvoltage protection for the battery while avoiding instantaneous power supply voltage drops in order to improve load operation stability.

[0006] Summary of the Invention

[0007] The present invention provides a power supply control method and electronic device, which relate to the field of electronic devices and can effectively protect the battery from overvoltage while avoiding power supply oscillation caused by triggering OVP protection.

[0008] In order to achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0009] In a first aspect, a power supply control method is provided for an electronic device, wherein the electronic device is provided with a power supply module, a battery module, and a load. The input end of the power supply module is coupled to an external power source to receive an external current. The output end of the power supply module is coupled to the battery module and the load, respectively, to charge the batteries in the battery module and / or to supply power to the load. The battery module is coupled to the load at a first end and is configured to supply power to the load via the first end. The electronic device is provided with a first overvoltage protection (OVP) threshold. When the voltage of the battery is higher than the first OVP threshold, the method includes: controlling the power supply module not to supply power to the load; controlling the power supply module not to charge the batteries in the battery module; and controlling the batteries in the battery module to supply power to the load until the voltage of the battery remains lower than a second OVP threshold for a preset period of time, wherein the second OVP threshold is lower than the first OVP threshold.

[0010] It should be understood that when the battery voltage exceeds the first OVP threshold, OVP protection is triggered, causing power supply oscillation. Therefore, in the present application, before triggering OVP protection, the battery can be controlled to effectively discharge and release pressure. This ensures that when the native logic determines whether the battery voltage is too high and OVP protection is triggered, the battery voltage has already been reduced, so OVP protection is not triggered. This avoids the corresponding power supply oscillation. For example, in the native logic, the electronic device can modify the CV value when entering an abnormal environment (such as a significant temperature change), causing the corresponding OVP threshold to change. Therefore, the solution provided in this example can be applied before modifying the CV value. Thus, even if modifying the CV value causes the OVP threshold to change, OVP protection is not triggered. It should be noted that in this example, the battery voltage exceeding the first OVP threshold is used as the trigger. In other embodiments of the present application, even if the battery voltage is not higher than the first OVP, if the electronic device determines that the temperature has changed significantly (for example, the temperature has entered the non-charging temperature range), the power supply module can be controlled not to supply power to the load and not to the battery. Furthermore, the battery can be controlled to supply power to the load to facilitate discharge and pressure relief. This allows the battery voltage to be effectively reduced before modifying the CV value, avoiding the triggering of the OVP protection and thus avoiding the resulting power supply oscillation.

[0011] Optionally, the first OVP threshold is determined by the electronic device based on a preset first constant voltage (CV) voltage, and the second OVP threshold is determined by the electronic device based on a second CV voltage, where the second CV voltage is lower than the first CV voltage. This example clarifies how the OVP threshold may be set. For example, the OVP threshold may not be set directly, but rather via the CV voltage.

[0012] Optionally, before controlling the power supply module to stop supplying power to the load, the CV voltage in the electronic device is the first CV voltage. When the power supply module is charging the battery, the method further includes: when the electronic device determines that the current temperature is within the non-charging temperature range, adjusting the CV voltage to the second CV voltage to trigger overvoltage protection for the battery. The current temperature is the current battery temperature or the ambient temperature of the electronic device. In this way, an application scenario of the solution is clarified, such as when the temperature changes to the non-charging temperature range.

[0013] Optionally, the charging temperature range includes a temperature range of 0 degrees Celsius to 50 degrees Celsius, and the non-charging temperature range includes a temperature range below 0 degrees Celsius and above 50 degrees Celsius. In this way, the specific temperature interval of the non-charging temperature range is clarified.

[0014] Optionally, the power supply module supplies power to the load before triggering the electronic device to perform overvoltage protection on the battery. It is understood that this solution can be applied to sudden temperature changes during the charging process, thereby reducing the battery voltage before resetting the CV voltage, thereby avoiding triggering OVP protection after resetting the CV voltage.

[0015] Optionally, after controlling the battery in the battery module to supply power to the load until the battery voltage remains below a second OVP threshold for a predetermined period of time, the method further includes controlling the power supply module to supply power to the load. Thus, after determining that the battery voltage has been effectively reduced and will not trigger OVP protection, the original power supply logic can be restored, such as supplying power to the load via an external current connected to the power supply module. This also prevents excessive loss of battery power.

[0016] Optionally, the power supply module includes a first switch unit and a second switch unit, and the working state of the first switch unit or the second switch unit includes an on state and an off state. The power supply module also includes a power supply control unit, and the power supply control unit is used to control the working states of the first switch unit and the second switch unit through the control ends of the first switch unit and the second switch unit. Controlling the power supply module not to supply power to the load and controlling the power supply module not to charge the battery in the battery module includes: the power supply control unit controls the first switch and the second switch unit to operate in the off state. In this example, the function of the power supply module can be realized by the switch unit. For example, the switch unit can be a MOS tube, a diode, etc.

[0017] Optionally, the battery module includes the battery and a third switch unit, the third switch unit being disposed between the battery and the first end. A control end of the third switch unit is coupled to the power supply control unit. Under control of the power supply control unit, the third switch unit operates in an on state or an off state. Controlling the battery in the battery module to supply power to the load includes: the power supply control unit controlling the third switch unit to operate in an on state.

[0018] Optionally, after controlling the battery in the battery module to supply power to the load until the voltage of the battery is always lower than the second OVP threshold within a preset time, the method also includes: the power supply control unit controls the first switch unit and the second switch unit to operate in an on state, so that the power supply module supplies power to the load.

[0019] Optionally, the first switch unit, the second switch unit, and the third switch unit are MOS tubes.

[0020] Optionally, the first switch unit and the second switch unit form a Buck circuit.

[0021] Optionally, the power supply module is a Charger IC. It should be noted that in some implementations, as shown in this example, the power supply module may be a Charger IC, i.e., a Buck circuit may be integrated into the power supply module. In other implementations, the Buck circuit may also be provided independently of the Charger IC.

[0022] In a second aspect, a power supply device is provided, which has the functions of implementing the electronic device behavior described in the method of the first aspect. These functions can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, such as a control unit or module, a detection unit or module, a judgment unit or module, and an acquisition unit or module.

[0023] In a third aspect, an electronic device is provided, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions. When the one or more processors execute the computer instructions, the electronic device performs any power supply control method provided in the first aspect and possible designs thereof.

[0024] In a fourth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes any power supply control method provided in the first aspect and its possible designs.

[0025] In a fifth aspect, a chip system is provided, comprising an interface circuit and a processor. The interface circuit and the processor are interconnected via a circuit. The interface circuit is configured to receive a signal from a memory and send a signal to the processor, the signal comprising a computer instruction stored in the memory. When the processor executes the computer instruction, the chip system performs any of the power supply control methods provided in the first aspect and its possible designs.

[0026] It can be understood that the solutions provided in the second, third, fourth and fifth aspects are all used to execute the methods provided in the first aspect and its possible designs. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] FIG1 is a schematic diagram of the logical composition of a power supply system;

[0028] FIG2 is a schematic diagram of a charging scenario;

[0029] FIG3 is a schematic diagram of the internal logic of power supply and charging;

[0030] FIG4 is a schematic diagram of an overvoltage protection process;

[0031] FIG5 is a schematic diagram of triggering overvoltage protection;

[0032] FIG6 is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application;

[0033] FIG7 is a schematic diagram of the composition of a power supply module provided in an embodiment of the present application;

[0034] FIG8 is a schematic diagram of the composition of a battery module provided in an embodiment of the present application;

[0035] FIG9 is a schematic diagram of the composition of a power supply system provided in an embodiment of the present application;

[0036] FIG10 is a schematic diagram of power supply and charging of a power supply system provided in an embodiment of the present application;

[0037] FIG11 is a flow chart of a power supply control method provided in an embodiment of the present application;

[0038] FIG12 is a flow chart of another power supply control method provided in an embodiment of the present application;

[0039] FIG13 is a schematic diagram of a state of a power supply system provided in an embodiment of the present application;

[0040] FIG14 is a flow chart of another power supply control method provided in an embodiment of the present application;

[0041] FIG15 is a schematic diagram of the composition of another electronic device provided in an embodiment of the present application;

[0042] FIG16 is a schematic diagram showing the composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] When operating, each load (e.g., system components) in an electronic device requires the electronic device's battery and / or an external power supply to provide current to the load. For example, taking a tablet computer as an example, Figure 1 illustrates a logical diagram of the power supply components of a tablet computer.

[0044] As shown in Figure 1, a battery (or battery pack) can be provided in the tablet computer. When electrical energy is stored in the battery, it can supply power to the load. A power supply module can also be provided in the tablet computer, and the power supply module can be used to manage the power supply strategy of the electronic device. For example, when the tablet computer is connected to an external power supply, the power supply module can be used to control the external power supply to charge the battery. For another example, the power supply module can be used to control the Buck circuit in the power supply module to use the external power supply to supply power to the load. For another example, the power supply module can be used to control the battery to supply power to the load.

[0045] The external power supply of the tablet computer may be input from a power interface provided on the tablet computer.

[0046] For example, referring to FIG2 , a tablet computer may be provided with a universal serial bus (USB) interface. In this example, when one end of a charger is connected to an external power source and the other end is coupled to the USB interface, the USB interface can serve as the tablet computer's power interface to connect to the external power source. In this way, the external power source can generate current (e.g., external current), which is then processed by the charger and then input into the tablet computer.

[0047] In conjunction with the description of Figure 1, please refer to Figure 3. When an external current is input to the tablet, the external current can be input to the tablet's power module. For example, using the external current to charge the battery, the power module can then introduce current to the battery through the charging path shown in Figure 3, thereby charging the tablet.

[0048] Taking the example of powering a load through an external current, the power supply module can output current to the load through the power supply path shown in Figure 3 to achieve power supply to the load.

[0049] It should be noted that, as shown in Figure 1, the battery can also be used to power the load. Therefore, in the example of Figure 3, a battery power supply path can also be provided between the battery and the load. Generally speaking, when the battery is charging, this battery power supply path can be inactive, and the load can be powered by an external current. This prevents the battery from supplying power to the load while charging, thereby achieving the effect of protecting the battery.

[0050] Currently, most electronic devices may also be provided with an overvoltage protection (OVP) strategy for the battery, thereby preventing damage to the battery due to excessively high battery voltage.

[0051] For example, FIG4 shows a schematic diagram of the execution logic of an OVP strategy. The solution shown in FIG4 can be set in the power supply module, or in a module that can be directly or indirectly read by other power supply modules of the electronic device, so that the power supply module can implement overvoltage protection for the battery through the OVP strategy. The solution may include:

[0052] S401 : When the battery voltage is higher than the OVP threshold, trigger the OVP protection.

[0053] The OVP threshold may be a voltage that triggers OVP protection. If the battery voltage is too high, such as higher than the OVP threshold, it is considered that the battery may have an overvoltage risk.

[0054] Generally speaking, take the charging process of an electronic device as an example. The charging process may include a trickle charging stage, a constant current charging stage, a constant voltage charging stage, and a cut-off charging stage. Among them, when the battery of the electronic device is close to full charge, the charging process can be switched from the constant current charging stage to the constant voltage charging stage. The battery voltage in the constant voltage charging stage can be called a constant voltage (CV) voltage. In some cases, the CV voltage can be preset in the electronic device according to the actual situation of the electronic device. In different cases, the CV voltage can also be flexibly adjusted by the electronic device according to the current state.

[0055] In this example, the OVP threshold can be calculated based on the functional relationship between the preset OVP threshold and the CV voltage. In other words, when the CV voltage needs to be adjusted, the OVP threshold will also be dynamically adjusted accordingly.

[0056] In this example, the power supply module can detect the battery voltage in real time. When the battery voltage is higher than the current OVP threshold, the OVP protection is triggered and the following S402 is executed.

[0057] It should be noted that, in different implementations, the OVP threshold can be a single voltage value or a voltage range. When the OVP threshold is a voltage range, if the battery voltage is higher than the maximum value (i.e., the upper voltage limit) of the voltage range, it is considered that the battery voltage is higher than the OVP threshold, and OVP protection is triggered accordingly, and the following S402 is executed.

[0058] S402: Turn off the Buck circuit and stop supplying power to the load.

[0059] In conjunction with the description of Figure 3, taking the battery charging as an example, the power supply module can control the external current and perform rectification and voltage transformation on the external current through the Buck circuit to obtain the supply current corresponding to the load. This supply current can be transmitted to the load to power the load.

[0060] In this example, after the OVP protection is triggered, the power supply module can shut down the Buck circuit, preventing the external current from flowing to the load through the Buck circuit.

[0061] It is understandable that before the Buck circuit is turned off, the electronic device only uses the Buck circuit to power the load. Then, after executing S402, the Buck circuit no longer powers the load, and a transient supply voltage drop occurs.

[0062] To ensure the normal operation of the load, the power supply module of the electronic device can detect the load's power supply voltage in real time. When the above-mentioned instantaneous power supply voltage drops, the power supply module can use other power sources to continue to supply power to the load. For example, execute S403.

[0063] S403: Open the battery power supply path, so that the load continues to be powered by the battery.

[0064] After the battery supplies power to the load, the battery voltage drops, thereby providing overvoltage protection for the battery. As the battery voltage continues to drop, the power supply module can control the exit of the current OVP protection and resume normal power supply to the load. For example, the power supply module can execute the following steps S404-S405.

[0065] S404: When the battery voltage drops below the OVP threshold, exit the OVP protection.

[0066] S405: Turn on the Buck circuit and start supplying power to the load.

[0067] Thus, after executing S405, the electronic device's power supply can be restored to the state before the OVP protection is triggered, such as using the Buck circuit to supply power using external current. Based on the above processing of S401-S405, the battery voltage is reduced to below the OVP threshold, avoiding the risk of overvoltage.

[0068] It should be noted that, during actual use of the electronic device, the battery voltage may be higher than the OVP threshold due to various reasons, thereby triggering the execution of S401.

[0069] For example, when the temperature changes abnormally, OVP protection may be triggered to protect the battery.

[0070] Take the case where an electronic device is being charged as an example. In order to ensure normal charging of the battery, the electronic device can use the charging path shown in Figure 3 to charge the battery only when it determines that the current temperature (such as battery temperature, or ambient temperature, etc.) is within the charging temperature range. For example, temperature 1 may be within the charging temperature range. Then, when the current temperature is temperature 1, the power supply module can use an external current to charge the battery through the charging path. In some embodiments, the charging temperature range can be 0 degrees Celsius to 45 degrees Celsius. In other embodiments, the charging temperature range can be 0 degrees Celsius to 50 degrees Celsius.

[0071] When the current temperature changes from temperature 1 to temperature 2, and temperature 2 is not within the charging temperature range, the power supply module can limit the charging of the battery. For example, the current temperature is low and is close to 0 degrees Celsius. At a certain moment, when the current temperature is lower than 0 degrees Celsius, the scenario of changing from temperature 1 to temperature 2 will occur. Then, as shown in Figure 5, the power supply module can determine that the current temperature is in the non-charging temperature range (i.e., execute S501). Correspondingly, the power supply module can execute S502 and S503: S502, stop charging the battery; S503, reset the CV voltage.

[0072] It should be understood that when the current temperature is outside the charging temperature range, the battery's ability to withstand the maximum voltage will also be affected. Therefore, in the example of Figure 5, the OVP threshold can be dynamically adjusted by resetting the CV voltage. For example, resetting the CV voltage can mean lowering the CV voltage. Then, the OVP threshold will drop accordingly. As a result, when the battery voltage is high (such as when the battery is almost fully charged or fully charged), the overvoltage protection mechanism shown in Figure 4 will be triggered. In this way, in abnormal environments (such as when the current temperature is no longer within the charging temperature range), the electronic device can trigger the OVP protection earlier and protect the battery from overvoltage.

[0073] However, current overvoltage protection strategies have some issues. For example, referring to Figure 4 , after S402 , the Buck circuit shuts down, causing a transient drop in the voltage supplied to the load. Furthermore, until the battery voltage returns to the required voltage, the voltage supplied to the load remains undervoltage. This can damage voltage-sensitive components in the load.

[0074] Furthermore, as shown in Figure 4 , after the battery voltage drops to the OVP threshold due to battery power, step S405 is executed to restore power to the Buck circuit. This significantly reduces the current in the battery power path, regardless of whether the battery continues to supply power. It is understandable that during the OVP protection triggering process shown in Figure 4 , the battery only discharges briefly, and the energy content does not significantly decrease. Consequently, when the current in the battery power path decreases due to Buck circuit power, the battery voltage increases again. This can cause the battery voltage to exceed the VOP threshold, triggering OVP protection repeatedly. This cycle may be repeated until the battery discharges repeatedly, and the battery voltage does not exceed the OVP threshold even after using the Buck circuit. Consequently, if this OVP protection process is repeated, the transient drop in load supply voltage between steps S402 and S403 will recur, resulting in a more significant impact on the load.

[0075] In the following description, this situation where the supply voltage drops multiple times is referred to as power supply oscillation. Obviously, the occurrence of power supply oscillation can significantly affect the normal operation of the load. Therefore, it is necessary to provide overvoltage protection for the battery while minimizing the occurrence of power supply oscillation.

[0076] In order to solve the above technical problems, an embodiment of the present application provides a power supply control method, which can release the pressure of the battery by discharging it in advance, thereby avoiding the risk of battery overvoltage and the triggering of OVP protection, thereby avoiding the occurrence of power supply oscillation.

[0077] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0078] For example, the solutions described in the embodiments of the present application can be applied to electronic devices. The electronic devices can be mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, cellular phones, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, media players, and the like. The embodiments of the present application do not impose any particular restrictions on the specific form of the devices.

[0079] Please refer to Figure 6, which is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application. As shown in Figure 6, the electronic device may include a processor 610, an external memory interface 620, an internal memory 621, a USB interface 630, a power supply module 640, a battery module 641, an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, an audio module 670, a speaker 670A, a receiver 670B, a microphone 670C, an earphone interface 670D, a sensor module 680, a button 690, a motor 691, an indicator 692, a camera 693, a display 694, and a subscriber identification module (SIM) card interface 695. Among them, the sensor module 680 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0080] It should be noted that, in the embodiment of the present application, the set of components in the electronic device that require electrical energy to drive, except for the power supply module 640 and the battery module 641, can be referred to as a system unit, a system component or a load.

[0081] The structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than those shown in FIG6 , or may combine or separate certain components, or may have different component arrangements. The components shown in FIG6 may be implemented in hardware, software, or a combination of software and hardware.

[0082] In the example shown in FIG6 , the processor 610 may include one or more processing units, for example, the processor 610 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. The different processing units may be independent devices or integrated into one or more processors.

[0083] The following describes the composition of the power supply module 640 as shown in FIG6 by way of example.

[0084] In the embodiment of the present application, the power supply module 640 can be used to control the power supply strategy of the electronic device. In some embodiments, the function of the power supply module 640 can be implemented by a power supply chip (charger integrated circuit, charger IC).

[0085] For example, in some embodiments, the power supply module 640 can receive an external current from the USB interface 630 and control the external current to charge the battery in the battery module 642. In other embodiments, the power supply module 640 can receive an external current from the USB interface 630 and power the load through a Buck circuit provided in the power supply module 640. In other embodiments, the power supply module 640 can control the battery in the battery module 642 to power the load. In the example of Figure 6, the example of receiving an external current through the USB interface 630 is used for explanation. In other implementations of the present application, the access to the external current can also be achieved through a wireless charging mechanism. For example, a charging coil can be provided in the electronic device for obtaining energy through electromagnetic coupling when it is close to the transmitting coil of the wireless charger, and converting the obtained energy into an external current and inputting it into the electronic device.

[0086] As an implementation, please refer to Figure 7. The power supply module 640 may include a power supply control unit for power supply control, and a Buck circuit. It should be noted that in this example, the power supply control unit and the Buck circuit are separated as an example. In some other implementations, the Buck circuit can also be integrated into the power supply control unit and provided as an integral component in the electronic device. The effects that can be obtained are similar and will not be repeated here.

[0087] Among them, the power supply control unit can control the working status of the Buck circuit and the battery module 641, so as to realize the external current supplying power to the load through the Buck circuit, the external current charging the battery module 641, and the battery module 641 supplying power to the load.

[0088] The Buck circuit may include at least two field-effect transistors (MOSFETs). For example, the Buck circuit may include a MOSFET Q1 and a MOSFET Q2. In the example shown in FIG7 , Q1 and Q2 are N-type MOSFETs. In other implementations, Q1 and / or Q2 may be other types of MOSFETs, such as P-type MOSFETs, or may be other electronic switching components such as triodes.

[0089] As shown in Figure 7, the drain (Drain, D) of Q1 can serve as the input terminal 71 of the power supply module 640 for receiving external current. The source (Source, S) of Q1 is coupled to the D terminal of Q2, the gate (G) of Q1 is coupled to the power supply control unit, the S terminal of Q2 is grounded, and the G terminal is coupled to the power supply control unit. The S terminal of Q1 and the D terminal of Q2 can correspond to the output terminal 72 of the power supply module 640 for outputting current to the outside (such as a battery and / or a load).

[0090] The Buck circuit can operate in different states under different circumstances. For example, the different states may include an on state and an off state. In different states, the on / off states of Q1 and / or Q2 are not exactly the same. The on / off states of Q1 and Q2 can be controlled by the power supply control unit.

[0091] It should be noted that in an embodiment of the present application, when Q1 or Q2 is in the off state, the current will not flow between the D pole and the S pole. In other embodiments, in addition to including the MOS tube, the component corresponding to Q1 may also be integrated with a diode (such as an iron diode) pointing from the D pole to the S pole. Then, when the MOS tube is cut off, the current can still flow between the D pole and the S pole through the iron diode. In this example, more iron diodes can be set in Q1 to hedge the current generated by the iron diode between the D pole and the S pole.

[0092] For example, consider Q1, which is provided with ferroelectric diodes 1 and 2. The current flowing through ferroelectric diodes 1 and 2 can flow in opposite directions. This way, when the MOS transistor in Q1 is in the off state, even if current flows through ferroelectric diode 1, the current can be cut off at ferroelectric diode 2. This allows Q1 to be cut off by controlling the MOS transistor to be cut off, effectively eliminating the current flowing through Q1.

[0093] Based on the composition of the power supply module 640 shown in Figure 7, the Buck circuit can be in the on state when it is necessary to charge the battery or supply power to the load. In this on state, Q1 and Q2 are both turned on, and the Buck circuit can be used to process the external current to obtain an electrical signal that can supply power to the load, or a power supply signal to the battery. Among them, the processing of the external current by the Buck circuit may include but is not limited to stepping down, rectifying, etc. After obtaining the electrical signal that can supply power to the load, the electrical signal can be output to the load through the output terminal 72 for powering, or output to the battery through the output terminal 72 for powering.

[0094] When the Buck circuit is in the off state, Q1 is turned off and Q2 is turned off. At this time, the Buck circuit is turned off and there is no output signal at the output terminal 72. In this case, when a load is running, the battery module 641 can be used to power the load.

[0095] It should be noted that in order to accurately control the power supply strategy of the electronic device, the power supply module 640 (such as the power supply control unit of the power supply module 640) can also obtain other data of the electronic device for reference. For example, other data of the electronic device may include the real-time voltage of the battery in the battery module 642, the battery temperature in the battery module 642, the ambient temperature, etc. In some embodiments, the other data of the above-mentioned electronic device may be obtained by the power supply module 640 itself. In other embodiments, part or all of the other data of the above-mentioned electronic device may also be obtained by the power supply module 640 from other components of the electronic device (such as the processor 610, the sensor module 680, etc.).

[0096] In addition, FIG7 is only an implementation form of a Buck circuit and does not constitute a limitation of the Buck circuit in the embodiments of the present application. In other implementations, the Buck circuit may also include more or fewer components.

[0097] The following describes the composition of the battery module 641 as shown in FIG6 .

[0098] Please refer to Figure 8, which is a schematic diagram of the composition of a battery module 641 provided in this application. The battery module 641 may include a battery or a battery pack, and a battery switching unit.

[0099] The battery pack may include one or more batteries. When the battery pack includes multiple batteries, the different batteries may be connected in series or in parallel. In different implementations, the battery pack may include lithium-ion batteries, lithium polymer batteries, nickel-cadmium batteries, nickel-metal hydride batteries, lithium iron phosphate batteries, etc. The battery pack can be used to store electrical energy so as to supply power to a load in the absence of external current input. When the battery pack is low on power, it can be charged and stored.

[0100] For ease of explanation, in the following examples, the battery pack is referred to as a battery.

[0101] The battery module 641 may also include a battery switching unit. The battery switching unit may include an on and off state. When the battery switching unit is on, the battery can be charged or the battery can supply power to the load. When the battery switching unit is off, the battery charging and / or the power supply to the load can be stopped.

[0102] In this example, the battery switching unit is taken as an N-type MOS tube Q3. As shown in Figure 8, the D pole of Q3 can be coupled to the battery, and the G pole of Q3 serves as the control terminal 82 of the battery module 641. Through the control terminal 82, Q3 can be controlled to operate in the on / off state. The off state corresponds to the off state of the battery switching unit. The S pole of Q3 can serve as the port 81 of the battery module 641, which is used to enable the battery to power the load when Q3 is turned on. Alternatively, when Q3 is turned on, it receives an external current through the port 81 for charging. Exemplarily, the port 81 can also be referred to as the first terminal.

[0103] It should be understood that, in conjunction with the description in FIG. 7 , in this example, Q3 may correspond to a MOS transistor. A ferroelectric diode may not be integrated into Q3. This allows for controlling the on / off state of Q3 by controlling the on / off state of the MOS transistor. Of course, if a ferroelectric diode is integrated into Q3, the processing method can refer to the configuration method for multiple ferroelectric diodes in Q1 described above, and will not be further described here.

[0104] The power supply structure of the electronic device is described below by taking the case where the power supply module 640 has the composition shown in FIG. 7 and the battery module 641 has the composition shown in FIG. 8 as an example.

[0105] For example, please refer to Figure 9. Output terminal 72 of power supply module 640 can be coupled to a load. Port 81 of battery module 641 can also be coupled to output terminal 72 or a load. Control terminal 82 of battery module 641 can be coupled to a power supply control unit of power supply module 640 to control the on / off state of Q3 under the control of the power supply control unit.

[0106] The power supply structure shown in FIG9 can realize functions such as powering the load through the Buck circuit by an external current, charging the battery by an external current, and powering the load through the battery.

[0107] For example, as shown in FIG10 , the power supply control unit can control Q1 to be turned on, Q2 to be turned on, and Q3 to be turned off, thereby allowing the external current to supply power to the load through the power supply path. The power supply control unit can also control Q1 to be turned off, Q2 to be turned off, and Q3 to be turned on, thereby allowing the battery to supply power to the load. The power supply control unit can also control Q1 to be turned on, Q2 to be turned off, and Q3 to be turned on, thereby allowing the external current to supply power to the battery through the charging path.

[0108] The solutions provided in the embodiments of the present application can be applied to any electronic device provided in Figures 6 to 10.

[0109] As shown in Figure 4 , the existing OVP protection mechanism may cause power supply oscillation. In the embodiments of the present application, when applied to electronic devices such as those shown in Figures 6-10 , by introducing a high-impedance (HIZ) mode, the battery voltage can be reduced to below the OVP threshold before triggering OVP protection. This prevents the OVP protection process shown in Figure 4 from being triggered, thereby avoiding power supply oscillation.

[0110] In the following description, the solution provided in the embodiment of the present application is described in detail by taking the scenario in which the current temperature (such as ambient temperature or battery temperature) during charging changes from temperature 1 within the charging temperature range to temperature 2 within the non-charging temperature range, thereby triggering OVP protection, as an example.

[0111] For example, please refer to Figure 11, which is a schematic diagram of the overall flow of the solution provided as an example of this application. In conjunction with the example of Figure 5, in S501, that is, when it is determined that the current temperature is in the non-charging temperature range, the power supply control unit can execute S1101: enter HIZ mode. The specific implementation of the HIZ mode will be described in detail later. Through the execution of S1101, the battery voltage can be stably reduced to below the OVP threshold. The OVP threshold can be based on the corresponding OVP threshold after resetting the CV voltage. In this way, continue to execute S503, that is, after resetting the CV voltage, the battery voltage will not be higher than the OVP threshold, thereby avoiding triggering OVP protection.

[0112] That is, before resetting the CV voltage, by executing the HIZ mode, the battery voltage can be reduced to below the new OVP threshold in advance, thereby avoiding triggering the OVP protection and preventing the power supply oscillation shown in FIG4 .

[0113] 12 is a schematic diagram of a specific method of entering the HIZ mode provided in an embodiment of the present application. In the embodiment of the present application, the HIZ mode may include controlling the battery to supply power to the load and shutting down the Buck circuit.

[0114] This solution can be executed by the power supply control unit, or the solution can be preset in the processor of the electronic device, and the processor can perform corresponding control through the power supply control unit to implement the solution shown in Figure 12.

[0115] As shown in Figure 12, the solution may include:

[0116] S1201: When the current temperature of the electronic device changes from temperature 1 to temperature 2, determine that the current temperature is within a non-charging temperature range.

[0117] Temperature 1 may be a temperature within the charging temperature range. Temperature 2 may be a temperature within the non-charging temperature range. In the following description, temperatures within the charging temperature range (e.g., Temperature 1) may also be referred to as normal temperatures. An environment providing normal temperatures is referred to as a normal environment. Correspondingly, temperatures within the non-charging temperature range (e.g., Temperature 2) may also be referred to as abnormal temperatures. An environment providing abnormal temperatures is referred to as an abnormal environment.

[0118] It is understandable that the specific implementation process of S1201 is similar to that of S501 and they can refer to each other.

[0119] When the electronic device is in an abnormal environment, it can determine through temperature detection that the current temperature is within a non-charging temperature range, thereby triggering the execution of S1202.

[0120] S1202: Control the Buck circuit to enter the shutdown state.

[0121] For example, in conjunction with the examples of FIG. 7 , FIG. 9 , or FIG. 10 , controlling the Buck circuit to enter the shutdown state may include: the power supply control unit controls Q1 to be turned off, and controls Q2 to be turned off, thereby stopping charging of the battery to prevent the battery voltage from continuing to rise.

[0122] S1203. Control the battery to supply power to the load.

[0123] For example, in conjunction with the examples of FIG8 , FIG9 , or FIG10 , controlling the battery to supply power to the load may include: the power supply control unit controlling Q3 to be turned on, thereby causing the battery to reduce the voltage when supplying power to the load.

[0124] In conjunction with S1202-S1203, please refer to Figure 13, which illustrates the circuit state after executing S1202-S1203. As shown in Figure 13, Q1 is off, Q2 is off, and Q3 is on. This allows the battery to directly supply power to the load, releasing its energy and reducing the voltage (i.e., discharge and voltage relief).

[0125] It should be noted that in different implementations of the present application, the execution order of S1202-S1203 may be different.

[0126] In some implementations, the power supply control unit of the electronic device can first control the battery to supply power to the load (such as S1203), that is, control Q3 to be turned on, so that the battery can discharge and release the pressure as soon as possible. Then, the power supply control unit of the electronic device can control the Buck circuit to enter the shutdown state (such as S1202), that is, control Q1 and Q2 to be cut off, thereby avoiding the battery voltage rising again due to the external current charging the battery. At the same time, it can also avoid the reduction in the speed of battery discharge and pressure release caused by the external current and the battery supplying power to the load at the same time.

[0127] In other implementations, the power supply control unit of the electronic device can also execute S1202-S1203 simultaneously, that is, simultaneously control Q1 to be turned off, Q2 to be turned off, and Q3 to be turned on, thereby allowing the battery to discharge and release pressure efficiently.

[0128] S1204: Determine whether the battery voltage is always lower than the new OVP threshold within a preset time period.

[0129] In conjunction with the foregoing description, the power supply control unit of the power supply module 640 can detect the battery voltage. In various implementations, this battery voltage detection can be continuous, thereby obtaining the battery voltage in real time. In other implementations, this battery voltage detection can be intermittent sampling, thereby reducing the overhead of the battery voltage acquisition process.

[0130] In addition, the power supply control unit itself may have the ability to detect the battery voltage. In other implementations of the present application, the power supply control unit may also obtain the battery voltage through a processor or other components of the electronic device.

[0131] In this example, based on the ability to detect the battery voltage, the electronic device can determine that the battery voltage remains below the new OVP threshold for a predetermined period of time. In other words, the battery voltage is stabilized within a safe range through discharge and voltage relief in the aforementioned steps.

[0132] It is understandable that the OVP threshold can be flexibly adjusted according to the CV voltage. In conjunction with the description of FIG5 , when the electronic device is at an abnormal temperature, the CV voltage can be adjusted to protect the battery in an abnormal environment.

[0133] For example, under normal conditions (e.g., the current temperature is Temperature 1), the CV voltage is set to a first voltage, and under abnormal conditions, the CV voltage is set to a second voltage. Generally speaking, as the environment deteriorates, the second voltage can be lower than the first voltage, thereby lowering the OVP threshold and better protecting the battery. For example, the first voltage can be set to 4.38V and the second voltage can be set to 4.1V.

[0134] In S1204, the electronic device may obtain the second voltage and thereby determine an OVP threshold under an abnormal environment, which is also a new OVP threshold.

[0135] Before setting the CV voltage to the second voltage, the electronic device can discharge the battery through steps S1202-S1203 to release the pressure. This allows the battery voltage to stabilize below the OVP threshold determined based on the second voltage in step S1204. This ensures that even if the CV voltage is set to the more stringent second voltage, OVP protection will not be triggered, preventing the process shown in Figure 4 from proceeding. This prevents power supply oscillations.

[0136] In the embodiment of the present application, the control process of S1202-S1204 described above corresponds to entering HIZ mode in S1101 as shown in Figure 11. That is, by entering HIZ mode, the Buck circuit is shut down, ceasing power supply to the load and charging the battery. Simultaneously, by entering HIZ mode, the battery can discharge and release the voltage while supplying power to the load. The battery resumes supplying power to the load no later than the Buck circuit enters the shutdown state. This prevents the supply voltage from dropping after the Buck circuit enters the shutdown state before the battery supplies power to the load.

[0137] S1205. Exit HIZ mode.

[0138] Exemplarily, the power supply control unit of the electronic device may control the Buck circuit to restore the conductive state.

[0139] It's understandable that in the native logic shown in Figure 5, Q1 and Q2 in the Buck circuit can be in the on state when the battery is charging. In this example, to allow the battery to discharge and release pressure, the Buck circuit is controlled to enter HIZ mode. After executing S1204, it can be confirmed that the battery voltage is below the OVP threshold and will not trigger OVP protection. The electronic device can then control the Buck circuit to exit HIZ mode and restore the previous on state.

[0140] S1206: Set the CV voltage.

[0141] Therefore, after exiting HIZ mode, the power supply control to the load switches to normal logic and continues the response mechanism for entering an abnormal temperature condition as shown in Figure 5. For example, a new CV voltage is set to provide OVP protection when the battery voltage is too high.

[0142] In this example, the battery has already been discharged before the CV voltage is set. In step S1204, continuous monitoring for a preset period ensures that the battery voltage remains below the OVP threshold. Therefore, a situation in which the instantaneous voltage falls below the OVP threshold and the battery voltage rises above the OVP threshold after the Buck circuit is powered is avoided.

[0143] In this way, the solution provided by this application can discharge the battery in advance after entering an abnormal environment and before setting the CV voltage. This avoids frequent triggering of OVP protection without significantly modifying the original battery protection logic, thereby avoiding the corresponding power supply oscillation.

[0144] It should be understood that the solutions provided in the examples of Figures 11 and 12 can address the problem of power supply oscillation caused by abnormal temperature fluctuations causing the battery voltage to exceed the OVP threshold. It should be understood that other abnormal conditions may also affect the battery's ability to withstand the maximum voltage. Therefore, the HIZ mode solution provided in the embodiments of this application can also be used to implement overvoltage protection for the battery while avoiding repeated triggering of the OVP protection.

[0145] It should be noted that in step S1206, the setting of the new CV voltage can follow the logic previously set in the electronic device. For example, in a normal environment, the CV voltage can be set to a first voltage. In an abnormal environment, the CV voltage can be set to a second voltage. The second voltage can be less than the first voltage. For example, the first voltage can be set to 4.38V, and the second voltage can be set to 4.1V. Correspondingly, when the CV voltage is set to 4.1V, the voltage range corresponding to the OVP threshold can be 3.9V to 4.1V. Then, when the battery voltage is lower than 3.9V, it is considered that the battery does not have an overvoltage risk. Correspondingly, when the battery voltage is higher than 4.1V, it is considered that the battery has an overvoltage risk, thereby triggering OVP protection.

[0146] In other embodiments of the present application, the addition of the HIZ mode as shown in FIG11 or FIG12 allows the battery to better avoid overvoltage risks. Therefore, in step S1206, the new CV voltage may also be set by the electronic device (such as the power supply control unit of the electronic device) based on the current voltage value.

[0147] For example, please refer to Figure 14, which is a flow chart of another power supply control method provided in an embodiment of the present application. In this solution, the power supply control unit of the electronic device can flexibly adjust the new CV voltage according to the battery voltage. This allows the CV voltage to be adjusted more reasonably without triggering the OVP protection, thereby providing better overvoltage protection for the battery. It should be noted that in other implementations of the present application, the execution subject of the solution shown in Figure 14 can also be other modules with control capabilities in the electronic device, such as a processor.

[0148] As shown in Figure 14, the solution may include:

[0149] S1401: The CV voltage value is a first voltage, and it is determined that the current temperature is within the non-charging temperature range. Before the current temperature enters the non-charging temperature range, the current temperature may be within the charging temperature range. Correspondingly, when the current temperature is within the charging temperature range, the CV voltage may be the first voltage, such as 4.38V.

[0150] S1402: Determine that the CV voltage to be set is a second voltage. The second voltage may be the CV voltage that needs to be adjusted when the current temperature enters the non-charging temperature range according to the native CV adjustment strategy. The second voltage may be lower than the first voltage. For example, the second voltage may be set to 4.1V.

[0151] S1403: Determine whether the second voltage is higher than a first value. The first value may be determined based on the maximum voltage that the battery can withstand in a non-charging temperature range and may be preset in the electronic device. For example, the first value may be set to 4.1V.

[0152] In other embodiments of the present application, a different first value may be selected based on whether the current temperature is above or below the charging temperature range. For example, when the temperature is above the charging temperature range, the maximum voltage the battery can withstand is voltage A. When the temperature is below the charging temperature range, the maximum voltage the battery can withstand is voltage B. In this case, in step S1403, the electronic device can flexibly select the first value as A or B based on the current temperature, thereby more accurately determining whether the second voltage is higher than the first value.

[0153] If the second voltage is higher than the first value, then S1404 is executed. Otherwise, if the second voltage is lower than the first value, then S1407 is executed.

[0154] S1404: Determine whether the current state is in HIZ mode. The HIZ mode may include the Buck circuit being in HIZ mode and the battery supplying power to the load. That is, Q1 and Q2 are off, and Q3 is on.

[0155] It is understandable that when the second voltage is higher than the first value, the corresponding OVP threshold is also higher. Then, in step S1404, it can be determined whether the current mode is HIZ mode, so as to perform subsequent operations.

[0156] 13 , if Q1 and Q2 are turned off and Q3 is turned on, it is determined that the current state is in the HIZ mode. Otherwise, it is determined that the current state is not in the HIZ mode.

[0157] As a specific implementation method, an indicator bit corresponding to the state of the HIZ mode can be set in the electronic device. For example, the indicator bit can use a binary number to identify whether the electronic device is currently in the HIZ mode. As an example, when the electronic device enters the HIZ mode, the indicator bit can be set to 1, which corresponds to the indication that the electronic device is currently in the HIZ mode. Conversely, when the electronic device exits the HIZ mode, the indicator bit can be set to 0, which corresponds to the indication that the electronic device is not currently in the HIZ mode. Then, during the execution of S1404, whether the electronic device is in the HIZ mode can be determined based on the indicator bit. For example, the electronic device can read the value of the indicator bit. When the value of the indicator bit is 1, it is determined that the electronic device is currently in the HIZ mode. Conversely, when the value of the indicator bit is 0, it is determined that the electronic device is not currently in the HIZ mode.

[0158] When it is determined that the current mode is HIZ, the following S1405-S1406 are executed. Otherwise, when it is determined that the current mode is not HIZ, S1406 is directly executed.

[0159] S1405. Exit HIZ mode. For example, since the battery currently does not require additional overvoltage protection, HIZ mode can be exited to allow the power supply module to operate normally and efficiently. In some embodiments, after exiting HIZ mode, the state of the Buck circuit and the battery switching unit in the battery module can be restored to the state before entering HIZ mode. For example, Q1 and Q2 can be turned on, and Q3 can be turned off.

[0160] S1406 , setting the CV voltage to a first voltage.

[0161] Therefore, according to the native CV adjustment strategy, when the CV voltage that needs to be adjusted is high, HIZ mode can be exited. This allows the power supply module to operate normally and efficiently without the risk of battery overvoltage. This also prevents triggering OVP protection and causing power supply oscillation.

[0162] S1407: Obtain battery voltage.

[0163] In this example, if the CV voltage to be set is low, the corresponding OVP threshold will also be low, which may cause the OVP protection to be triggered frequently.

[0164] In this example, the electronic device can determine whether to discharge the battery in HIZ mode based on the battery voltage to release the pressure and avoid triggering the OVP protection.

[0165] S1408: Determine whether the current mode is HIZ.

[0166] When the electronic device is already in the HIZ mode, S1409 and subsequent processes are executed. Otherwise, when the electronic device is not in the HIZ mode, S1412 and subsequent processes are executed.

[0167] S1409: Determine whether the battery voltage is less than a first OVP threshold.

[0168] The first OVP threshold may be an OVP threshold corresponding to the currently smaller second voltage (ie, the second voltage not greater than the first value). For example, if the OVP threshold corresponds to a voltage range, the first OVP threshold may be the lower limit of the voltage range.

[0169] For example, if the second voltage is 4.1V, the corresponding OVP threshold voltage range may be 3.9V-4.1V, and the first OVP threshold is also 3.9V.

[0170] In this example, whether the OVP protection may be triggered can be determined by judging whether the battery voltage is less than the lower limit voltage of the OVP threshold (ie, the first OVP threshold), so that a corresponding strategy can be adopted.

[0171] For example, when the battery voltage is less than the first OVP threshold, S1410 is executed. When the battery voltage is not less than the first OVP threshold, the process jumps to S1406.

[0172] It can be understood that when the battery voltage is greater than or equal to the first OVP threshold, the battery voltage will continue to decrease because the Buck circuit is already in HIZ mode. Therefore, based on the HIZ mode, it is ensured that the battery voltage will drop below the OVP threshold before exiting HIZ mode. Therefore, the current HIZ mode can be maintained, and the CV voltage can be set to the higher first voltage (as in S1406).

[0173] S1410. Exit HIZ mode.

[0174] Corresponding to S1409, if the battery voltage is less than the first OVP threshold, it can be ensured that the battery voltage will not trigger OVP protection. Therefore, there is no need to discharge the battery to release the pressure. Then, in S1410, the Buck circuit can be controlled to exit HIZ mode. Then, execution continues with S1411.

[0175] S1411 , setting the CV voltage to a second voltage.

[0176] Since the battery voltage is already lower than the OVP threshold, the CV voltage can be set to a second voltage, such as 4.1V, according to the native CV adjustment strategy.

[0177] S1412: Determine whether the battery voltage is greater than a second OVP threshold.

[0178] The second OVP threshold may be an OVP threshold corresponding to the current smaller second voltage (ie, a second voltage not greater than the first value). For example, if the OVP threshold corresponds to a voltage range, the second OVP threshold may be the upper limit of the voltage range.

[0179] For example, if the second voltage is 4.1V, the corresponding OVP threshold voltage range may be 3.9V-4.1V, and the second OVP threshold is also 4.1V.

[0180] In this example, whether the OVP protection may be triggered can be determined by judging whether the battery voltage is greater than the upper limit voltage of the OVP threshold (ie, the second OVP threshold), so that a corresponding strategy can be adopted.

[0181] For example, if the battery voltage is greater than the second OVP threshold, then S1413 is executed. Conversely, if the battery voltage is less than the second OVP threshold, then the process jumps to S1411.

[0182] It is understood that if the battery voltage is less than the second OVP threshold, then if the CV voltage is adjusted to the second voltage, the battery voltage will not exceed the corresponding OVP threshold, that is, the OVP protection will not be triggered. Then, the electronic device can set the CV voltage to the second voltage according to the native CV adjustment strategy by executing S1411.

[0183] S1413. Enter HIZ mode.

[0184] In this example, if the battery voltage is greater than the second OVP threshold, it indicates that the battery voltage is high and there is an overvoltage risk. Therefore, in step S1413, the electronic device can be controlled to enter HIZ mode. For example, Q1 and Q2 of the Buck circuit are controlled to be off, and Q3 is controlled to be on. This stops powering the load and charging the battery. Alternatively, the battery can begin to supply power to the load, discharging and releasing the voltage.

[0185] Next, the electronic device may jump to execute S1406 , such as setting the CV voltage to a higher first voltage (such as 4.38V), thereby avoiding false triggering of the OVP protection that may occur when the battery voltage is relatively high.

[0186] Thus, through the example of the scheme shown in FIG14, combined with the description of the scheme shown in FIG12, those skilled in the art should be able to clearly and accurately understand the scheme provided in the embodiment of the present application. The power supply control scheme provided in the embodiment of the present application can effectively provide overvoltage protection for the battery while avoiding the triggering of OVP protection, thereby avoiding the occurrence of power supply oscillation.

[0187] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of electronic equipment. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0188] The embodiments of the present application can divide the functional modules of the devices involved therein according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.

[0189] For example, please refer to Figure 15, which is a schematic diagram of the composition of an electronic device 1500 provided in an embodiment of the present application. As shown in Figure 15, the electronic device 1500 may include: a processor 1501 and a memory 1502. In some embodiments, the processor 1501 may correspond to the power supply module (such as a charger IC) in the aforementioned example. The memory 1502 is used to store computer-executable instructions. When the processor 1501 executes the instructions stored in the memory 1502, the electronic device 1500 may execute any of the technical solutions shown in the above embodiments.

[0190] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0191] Please refer to Figure 16, which shows a schematic diagram of the composition of a chip system 1600. The chip system 1600 may include: a processor 1601 and a communication interface 1602, which are used to support the power supply device to implement the functions involved in the above embodiments. In one possible design, the chip system 1600 also includes a memory for storing program instructions and data necessary for the terminal. The chip system 1600 can be composed of a chip, or it can include a chip and other discrete devices.

[0192] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0193] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0194] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0195] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0196] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0197] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A power supply control method, characterized in that: Applicable to electronic equipment, wherein the electronic equipment is provided with a power supply module, a battery module and a load; The input end of the power supply module is coupled to an external power source so as to receive an external current; The output end of the power supply module is coupled to the battery module and the load respectively, so as to charge the battery in the battery module and / or supply power to the load; The battery module is coupled to the load at a first end, and the battery module is configured to supply power to the load through the first end; the method comprising: The electronic device is provided with a first overvoltage protection OVP threshold. When the voltage of the battery is higher than the first OVP threshold, Controlling the power supply module to not supply power to the load; Controlling the power supply module not to charge the batteries in the battery module; The batteries in the battery module are controlled to supply power to the load until the voltage of the battery is always lower than a second OVP threshold within a preset time period, and the second OVP threshold is lower than the first OVP threshold.

2. The method according to claim 1, characterized in that The first OVP threshold is determined by the electronic device according to a preset first constant voltage CV voltage, and the second OVP threshold is determined by the electronic device according to a second CV voltage, which is lower than the first CV voltage.

3. The method according to claim 2, characterized in that Before controlling the power supply module not to supply power to the load, the CV voltage in the electronic device is the first CV voltage; In the case where the power supply module charges the battery, the method further includes: When the electronic device determines that the current temperature is within the non-charging temperature range, the CV voltage is adjusted to the second CV voltage to trigger overvoltage protection of the battery; the current temperature is the current battery temperature, or the ambient temperature of the electronic device.

4. The method according to claim 3, characterized in that The charging temperature range includes a temperature range of 0 degrees Celsius to 50 degrees Celsius, and the non-charging temperature range includes a temperature range below 0 degrees Celsius and above 50 degrees Celsius.

5. The method according to any one of claims 1 to 4, characterized in that Before triggering the electronic device to perform overvoltage protection on the battery, the power supply module supplies power to the load.

6. The method according to claim 5, characterized in that After controlling the battery in the battery module to supply power to the load until the voltage of the battery is always lower than the second OVP threshold within a preset time period, the method further includes: controlling the power supply module to supply power to the load.

7. The method according to any one of claims 1 to 6, characterized in that The power supply module includes a first switch unit and a second switch unit, wherein the working state of the first switch unit or the second switch unit includes an on state and an off state. The power supply module also includes a power supply control unit, which is used to control the working state of the first switch unit and the second switch unit through the control ends of the first switch unit and the second switch unit; The controlling the power supply module not to supply power to the load and controlling the power supply module not to charge the battery in the battery module includes: The power supply control unit controls the first switch and the second switch unit to operate in a cut-off state.

8. The method according to claim 7, characterized in that The battery module includes the battery and a third switch unit, the third switch unit is arranged between the battery and the first end; the control end of the third switch unit is coupled to the power supply control unit; under the control of the power supply control unit, the third switch unit operates in an on state or an off state; The controlling the battery in the battery module to supply power to the load includes: The power supply control unit controls the third switch unit to operate in a conducting state.

9. The method according to claim 7 or 8, characterized in that After controlling the battery in the battery module to supply power to the load until the voltage of the battery remains lower than a second OVP threshold for a preset time period, the method further includes: The power supply control unit controls the first switch unit and the second switch unit to operate in a conducting state, so that the power supply module supplies power to the load.

10. The method according to any one of claims 7 to 9, characterized in that The first switch unit, the second switch unit, and the third switch unit are MOS tubes.

11. The method according to claim 10, characterized in that The first switch unit and the second switch unit form a Buck circuit.

12. The method according to claim 10 or 11, characterized in that The power supply module is a Charger IC.

13. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions; When the one or more processors execute the computer instructions, the electronic device executes the power supply control method according to any one of claims 1 to 12.

14. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the power supply control method according to any one of claims 1 to 12.

15. A chip system, characterized in that: The chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from a memory and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the chip system executes the power supply control method according to any one of claims 1 to 12.