Power supply control method and electronic equipment
By introducing a power supply control method in electronic devices and using external adapters to power the target components, the problem of excessive heating of charging ICs under the traditional charging architecture is solved, and battery life and equipment safety are improved.
Patent Information
- Application Number
- CN202411391390.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-02-07
AI Technical Summary
The limited heat dissipation conditions of electronic devices lead to excessive heat generation of charging ICs under the traditional charging architecture, causing charging current limit or charging discontinuation problems, which in turn affects battery life.
A power supply control method is provided, by determining whether the electronic device is connected to an external adapter, controlling the input voltage matching between the first power supply circuit and the second power supply circuit, thereby switching the power supply circuit to avoid excessive heat generation of the charging IC.
By directly supplying power to the target components by an external adapter, the current limit or charging problems caused by excessive heating of the charging IC is avoided, the battery life is improved, and the safety of electronic devices is enhanced.
Smart Images

Figure CN119401591A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of charging technology, and in particular to a power supply control method and an electronic device. Background Art
[0002] At present, the power of display screens of electronic devices such as mobile phones and tablets is gradually increasing. Due to the limited heat dissipation conditions of electronic devices, the charging IC under the traditional charging architecture generates excessive heat, causing problems such as charging current limiting or charging suspension, which in turn affects the battery life. Summary of the invention
[0003] The present disclosure provides a power supply control method and an electronic device.
[0004] According to a first aspect of the present disclosure, a power supply control method is provided, the method comprising:
[0005] Determining that the electronic device is not connected to an external adapter, supplying power to the target component based on a first power supply circuit, wherein the first power supply circuit can use a first output voltage provided by a battery as a first input voltage;
[0006] Determine that the electronic device is connected to an external adapter, control the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit;
[0007] When the target component is powered by the second power supply circuit, the second power supply circuit can use a second output voltage directly output by the external adapter as a second input voltage, wherein the second input voltage is different from the first input voltage.
[0008] In one embodiment of the present application, controlling the input voltage provided by the first power supply circuit and the second power supply circuit to meet the voltage matching condition includes: step-adjusting the first input voltage or the second input voltage so that the input voltages slowly match, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
[0009] In an implementation of the present application, the method further includes:
[0010] Detecting whether the external adapter supports the target charging protocol;
[0011] If the target charging protocol is supported, adjusting the second input voltage of the external adapter to meet the voltage matching condition;
[0012] If the target charging protocol is not supported, the first input voltage is adjusted based on a third power supply circuit to meet the voltage matching condition, the third power supply circuit is connected in parallel with the first power supply circuit, and the third input voltage of the third power supply circuit is the first output voltage.
[0013] In an implementation of the present application, adjusting the second input voltage of the external adapter to meet the voltage matching condition includes:
[0014] Determining that the battery is in a constant voltage charging mode, controlling the external adapter to step-up a second output voltage, and when a voltage difference between the second input voltage and the first input voltage is greater than a first preset voltage threshold, switching a power supply circuit of the target component from the first power supply circuit to the second power supply circuit;
[0015] It is determined that the battery is in a constant current charging mode, and power is supplied to the target component based on a first power supply circuit.
[0016] In an implementation of the present application, adjusting the first input voltage based on the third power supply circuit to meet the voltage matching condition includes:
[0017] In response to determining that the external adapter does not support the target charging protocol, controlling the power supply circuit between the third power supply circuit and the target component to be turned on, and adjusting the third output voltage of the third power supply circuit in steps based on the voltage adjustment unit of the third power supply circuit so that the third output voltage matches the second input voltage;
[0018] When the third output voltage matches the second input voltage, the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit.
[0019] In an implementation of the present application, the voltage adjustment unit includes a boost module and a buck module, and the voltage adjustment unit based on the third power supply circuit step-adjusts the third output voltage of the third power supply circuit so that the third output voltage matches the second input voltage, including:
[0020] Determine that the second output voltage directly output by the external adapter reaches a stable state, control the boost module to step-up the third output voltage of the third power supply circuit, and when the voltage difference between the third output voltage and the second input voltage is not less than a second preset voltage threshold, control the power supply circuit between the second power supply circuit and the target component to be turned on;
[0021] The step-down module is controlled to step-down the third output voltage of the third power supply circuit, and when the voltage difference between the second input voltage and the third output voltage is not less than a third preset voltage threshold, it is determined that the third output voltage matches the second input voltage.
[0022] According to a second aspect of the present disclosure, there is provided an electronic device, including:
[0023] A first power supply circuit, used to supply power to a target component, wherein the first power supply circuit can use a first output voltage provided by a battery as a first input voltage;
[0024] a second power supply circuit, used to supply power to the target component, wherein the second power supply circuit can use a second output voltage directly output by the external adapter as a second input voltage, wherein the second input voltage is different from the first input voltage;
[0025] The controller determines that the electronic device is connected to an external adapter, controls the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition, and switches the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
[0026] In one embodiment of the present application, the electronic device also includes a matching circuit for step-adjusting the first input voltage or the second input voltage so that the input voltages are slowly matched, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
[0027] In one embodiment of the present application, the matching circuit includes a third power supply circuit, which is connected in parallel with the first power supply circuit. The third input voltage of the third power supply circuit serves as the first output voltage. The third power supply circuit is used to adjust the first input voltage based on the third power supply circuit to meet the voltage matching condition if the external adapter does not support the target charging protocol.
[0028] In one embodiment of the present application, the third power supply circuit includes a voltage adjustment unit, which is used to increase the third output voltage of the third power supply circuit in a first step when the power supply circuit between the third power supply circuit and the target component is turned on, so that the third output voltage matches the second input voltage; after the third output voltage is greater than the second input voltage, the third output voltage of the third power supply circuit is reduced in a second step to maintain the matching of the third output voltage with the second input voltage.
[0029] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0031] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0032] Figure 1 A schematic diagram of a flow chart of a power supply control method provided in an embodiment of the present application is shown;
[0033] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown;
[0034] Figure 3 A schematic diagram of a process for adjusting voltage provided in an embodiment of the present application is shown;
[0035] Figure 4 Another schematic diagram of a process for adjusting voltage provided in an embodiment of the present application is shown;
[0036] Figure 5 A schematic diagram of a process for matching a third output voltage with a second input voltage provided in an embodiment of the present application is shown;
[0037] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown;
[0038] Figure 7 A schematic diagram of a connection structure between an electronic device and an external adapter provided in an embodiment of the present application is shown;
[0039] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0040] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0041] Due to the limited heat dissipation conditions of electronic devices, excessive heat generation of the charging IC under the traditional charging architecture will cause problems such as charging current limiting or charging stop, thereby affecting the battery life. Therefore, in order to solve this problem, the present application provides a power supply control method and an electronic device. The electronic device provided in the present application can be a mobile phone, a computer, a tablet computer and other devices, and the power supply control method provided in the present application can be applied to electronic devices such as mobile phones and tablet computers.
[0042] The technical solution of the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application.
[0043] Figure 1 A schematic diagram of a flow chart of a power supply control method provided in an embodiment of the present application is shown. Figure 1 As shown, the method includes:
[0044] S101, determining that the electronic device is not connected to an external adapter, supplying power to a target component based on a first power supply circuit, wherein the first power supply circuit can use a first output voltage provided by a battery as a first input voltage.
[0045] In the present application, the external adapter may include a mobile power supply, a desktop charging station, a power adapter, and the like, which are adapters capable of supplying power to the electronic device.
[0046] In the present application, the first power supply circuit is connected to a battery of the electronic device, and the first output voltage output by the battery can be used as the first input voltage of the first power supply circuit, and the output voltage of the first power supply circuit can be used to power the target component.
[0047] S102, determining that the electronic device is connected to an external adapter, controlling the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
[0048] When the target component is powered by the second power supply circuit, the second power supply circuit can use a second output voltage directly output by the external adapter as a second input voltage, wherein the second input voltage is different from the first input voltage.
[0049] In the present application, the second power supply circuit can be connected in series to an external adapter. The target component can be a component in an electronic device that requires current to work, such as a display, memory, CPU, motor, and communication interface.
[0050] By adopting the power supply control method provided in the present application, when the electronic device is not connected to an external adapter, the target component can be powered by the first power supply circuit. When the electronic device is connected to an external adapter, the input voltages provided by the first power supply circuit and the second power supply circuit can be controlled to meet the voltage matching condition, thereby switching the power supply circuit of the target component from the first power supply circuit to the second power supply circuit. The second power supply circuit can use the second output voltage directly output by the external adapter as the second input voltage, that is, the target component is powered directly by the external adapter instead of the battery, thereby avoiding the problem of charging current limiting or charging suspension caused by excessive heating of the charging IC in the traditional charging method, and improving the battery life.
[0051] In a possible implementation, controlling the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition may include: step-adjusting the first input voltage or the second input voltage so that the input voltages slowly match, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
[0052] In the present disclosure, step-by-step adjusting the first input voltage or the second input voltage may include: step-by-step reducing the first input voltage or step-by-step increasing the second input voltage.
[0053] In the present application, the first input voltage or the second input voltage can be adjusted in steps so that the output voltage of the first power supply circuit and the output voltage of the second power supply circuit slowly match, thereby ensuring the stability and reliability of the input voltage of the power supply circuit of the target component during the switching process of switching the power supply circuit of the target component from the first power supply circuit to the second power supply circuit, thereby avoiding the problem of damage to the target component due to excessive voltage difference during the switching process.
[0054] In one possible implementation, Figure 2 Another schematic diagram of the power supply control method provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, before step-adjusting the first input voltage or the second input voltage, the power supply control method may further include:
[0055] S201, detecting whether the external adapter supports a target charging protocol.
[0056] In the present disclosure, the target charging protocol may include a PPS (Power Profile Specification) protocol. PPS is a communication protocol for power management. The external adapter allows the electronic device to negotiate the voltage and current supplied by the external adapter, that is, the electronic device can control the external adapter supporting the PPS protocol to dynamically adjust its own voltage and current. The target charging protocol may also include a QC (Quick Charge) protocol. The QC protocol allows electronic devices to quickly switch between different voltages when charging, thereby increasing the charging speed.
[0057] S202: If the target charging protocol is supported, adjust the second input voltage of the external adapter to meet the voltage matching condition.
[0058] In the present disclosure, when the external adapter supports the target charging protocol, the electronic device can control the external adapter to step up its own second output voltage, and the second power supply circuit uses the second output voltage directly output by the external adapter as the second input voltage. Therefore, increasing the second output voltage is to increase the second input voltage. By increasing the second input voltage, the voltage difference between the second input voltage and the first input voltage can be within the range that the target component can withstand, thereby avoiding the problem of component overheating or component damage due to excessive voltage difference when the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit. For example, if the target component is an AMOLED (Active Matrix Organic Light Emitting Diode) display screen of an electronic device, the AMOLED power supply circuit is more sensitive to the voltage drop of the input voltage. When the input voltage jumps significantly, the AMOLED screen is prone to screen shaking. For example, when the input voltage drops by a voltage greater than or equal to 1.5V, the AMOLED screen will experience screen shaking. Therefore, the second input voltage can be increased in steps so that the voltage difference between the second input voltage and the first input voltage is within the range where the AMOLED screen will not shake. For example, the second input voltage can be increased in steps so that the voltage difference between the second input voltage and the first input voltage reaches 0.5V.
[0059] In one possible implementation, Figure 3 A schematic diagram of a process for adjusting voltage provided in an embodiment of the present application is shown. Figure 3 As shown, adjusting the second input voltage of the external adapter to meet the voltage matching condition may include:
[0060] S301, determining that the battery is in a constant voltage charging mode, controlling the external adapter to step-up the second output voltage, and when the voltage difference between the second input voltage and the first input voltage is greater than a first preset voltage threshold, the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit.
[0061] The battery is in constant voltage charging mode, that is, the external adapter needs to provide a fixed charging voltage to charge the battery. In order to match the first input voltage and the second input voltage, the electronic device can control the external adapter to step up its own second output voltage so that the voltage difference between the second input voltage and the first input voltage is greater than the first preset voltage threshold. Wherein, the external adapter is controlled to step up its own second output voltage, for example, the second output voltage can be increased in steps of 0.1V / s (volts per second), or the second output voltage can be increased in steps of 0.2V / s. The first preset voltage threshold can be set according to actual application requirements, for example, it can be set to 0.5V or 0.6V, etc. When the first power supply circuit and the second power supply circuit are both connected to the power supply circuit of the target component, if the voltage difference between the second input voltage and the first input voltage is greater than the first preset voltage threshold, the power supply circuit of the target component will switch from the first power supply circuit to the second power supply circuit, and the second power supply circuit will supply power to the target component.
[0062] In the present application, when the voltage difference between the second input voltage and the first input voltage is greater than the first preset voltage threshold, it is also possible to detect whether the first input voltage maintains a high voltage in a first preset time period. The first preset time period can be set to 15 seconds or 20 seconds, etc. In a possible implementation, a first voltage comparator can be used to detect the first input voltage and the first reference voltage. If the first input voltage is higher than the first reference voltage, the first voltage comparator outputs a high level. If the first voltage comparator outputs a high level within the first preset time period, it indicates that the first input voltage is high, and it is necessary to continue to step up the second output voltage of the external adapter to ensure that the power supply circuit of the target component switches smoothly between the first power supply circuit and the second power supply circuit. If the first voltage comparator does not output a high level within the first preset time period, the current second output voltage of the external adapter can be maintained.
[0063] In the present application, the first voltage comparator may be a hardware circuit for detecting the first input voltage and the first reference voltage, or may be a virtual program for detecting the first input voltage and the first reference voltage.
[0064] S302, determining that the battery is in a constant current charging mode, and controlling the first power supply circuit to supply power to the target component.
[0065] In the constant current charging mode, the external adapter can charge the battery at a fixed current, but the output voltage of the external adapter will change with the charging status of the battery. Therefore, in order to avoid problems such as jitter, component overheating or component damage due to voltage jumps in the power supply circuit, the target component can be powered based on the first power supply circuit.
[0066] In the present application, there is no limitation on the execution order of S301 and S302.
[0067] S203: If the target charging protocol is not supported, adjust the first input voltage based on a third power supply circuit to meet the voltage matching condition.
[0068] In the present application, the external adapter does not support the target charging protocol, that is, the second output voltage of the external adapter cannot be adjusted. In the case where the external adapter does not support the target charging protocol, the first input voltage can be adjusted through the third power supply circuit to meet the voltage matching condition. The third power supply circuit is connected in parallel with the first power supply circuit, and the third input voltage of the third power supply circuit is the first output voltage, that is, the third power supply circuit is connected in parallel with the first power supply circuit to the power supply circuit of the battery. Specifically, the third power supply circuit can be connected in parallel with the first power supply circuit to the charging IC, and the battery voltage output by the charging IC is used as the third input voltage.
[0069] In one possible implementation, Figure 4 Another schematic diagram of a process for adjusting voltage provided in an embodiment of the present application is shown. Figure 4 As shown, adjusting the first input voltage based on the third power supply circuit to meet the voltage matching condition may include:
[0070] S401, in response to determining that the external adapter does not support the target charging protocol, controlling the power supply circuit between the third power supply circuit and the target component to be turned on, and step-adjusting the third output voltage of the third power supply circuit based on the voltage adjustment unit of the third power supply circuit so that the third output voltage matches the second input voltage.
[0071] In the present application, a third switch can be set between the third power supply circuit and the target component. In response to determining that the external adapter does not support the target charging protocol, the electronic device can control the third switch to close, thereby turning on the power supply circuit between the third power supply circuit and the target component.
[0072] In the present application, a voltage adjustment unit may also be connected in series to the third power supply circuit for the third input voltage of the third power supply circuit. After the power supply circuit between the third power supply circuit and the target component is turned on, in order to enable the power supply circuit of the target component to switch from the first power supply circuit to the second power supply circuit, the voltage adjustment unit may be used to step-down the third output voltage of the third power supply circuit so that the voltage difference between the second input voltage and the third output voltage is within the voltage difference range that the target component can withstand. The voltage difference range that the target component can withstand refers to the voltage difference range that will not cause the target component to jitter, overheat or damage the component.
[0073] In one possible implementation, Figure 5 A schematic diagram of a process for matching a third output voltage with a second input voltage provided in an embodiment of the present application is shown. Figure 5 As shown, the voltage adjustment unit includes a boost module and a buck module, and the voltage adjustment unit based on the third power supply circuit step-adjusts the third output voltage of the third power supply circuit so that the third output voltage matches the second input voltage, which may include:
[0074] S501, determine that the second output voltage directly output by the external adapter reaches a stable state, control the boost module to step-up the third output voltage of the third power supply circuit, and when the voltage difference between the third output voltage and the second input voltage is not less than a second preset voltage threshold, control the power supply circuit between the second power supply circuit and the target component to be turned on.
[0075] After an external adapter that does not support the target charging protocol is connected to an electronic device, it can be increased to a fixed charging voltage to charge the battery. The fixed voltage may vary depending on the configuration of the battery. Generally, the fixed voltage is 15V. After the external adapter increases the fixed voltage, the second output voltage reaches a stable state.
[0076] In the present application, the voltage adjustment unit includes a boost module and a buck module. For example, the voltage adjustment unit can adopt a BUCK-BOOST converter, wherein the BOOST converter is a boost module, which can be used to increase the third output voltage of the third power supply circuit, and the BUCK converter is a buck module, which can be used to reduce the third output voltage of the third power supply circuit. In the present application, a second switch can be set between the second power supply circuit and the target component, and then the connection between the second power supply circuit and the power supply circuit of the target component can be turned on / off by closing / opening the second switch. The second preset voltage threshold can be set according to actual application requirements, for example, it can be set to 0.5V or 0.7V, etc.
[0077] After the second output voltage reaches a stable state, the third output voltage of the third power supply circuit can be stepped up by using a BOOST converter, and when the voltage difference between the third output voltage and the second input voltage is not less than the second preset voltage threshold, the connection between the second power supply circuit and the power supply circuit of the target component is turned on by closing the second switch. The third output voltage of the third power supply circuit is stepped up by using a BOOST converter, and the step size of the step-up can be set according to actual application requirements. For example, the step size of the step-up can be set to 0.1V / s or 0.2V / s, etc., that is, the third output voltage can be stepped up by 0.1V / s or the third output voltage can be stepped up by 0.2V / s.
[0078] S502, controlling the step-down module to step-down the third output voltage of the third power supply circuit, and determining that the third output voltage matches the second input voltage when the voltage difference between the second input voltage and the third output voltage is not less than a third preset voltage threshold.
[0079] After the connection between the second power supply circuit and the power supply circuit of the target component is turned on by closing the second switch, the third output voltage of the third power supply circuit can be stepped down by the step-down module so that the third output voltage is lower than the second input voltage, thereby ensuring that the power supply circuit of the target component can be switched from the first power supply circuit to the second power supply circuit. Specifically, when the voltage difference between the second input voltage and the third output voltage is not less than the third preset voltage threshold, the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit, that is, the second output voltage provided by the external adapter directly powers the target component.
[0080] Among them, the third preset voltage threshold can be set according to actual application requirements, for example, it can be set to 0.5V or 0.6V, etc. After the power supply circuit between the second power supply circuit and the target component is turned on, the third output voltage of the third power supply circuit can be stepped down by using the BUCK converter. Specifically, the step size of the step-down can be set according to actual application requirements. For example, the step size of the step-down can be set to 0.1V / s or 0.2V / s, etc., that is, the third output voltage can be reduced according to the voltage step of 0.1V / s or 0.2V / s.
[0081] The third output voltage of the third power supply circuit is stepped up by a BOOST converter, and the power supply circuit between the second power supply circuit and the target component is turned on when the voltage difference between the third output voltage and the second input voltage is not less than a second preset voltage threshold. The third output voltage of the third power supply circuit is then stepped down by a BUCK converter, and when the voltage difference between the second input voltage and the third output voltage is not less than a third preset voltage threshold, it is determined that the third output voltage matches the second input voltage.
[0082] S402: When the third output voltage matches the second input voltage, the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit.
[0083] When the voltage difference between the second input voltage and the third output voltage is not less than the third preset voltage threshold, it is determined that the third output voltage matches the second input voltage, and the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit, that is, the second output voltage provided by the external adapter directly powers the target component. Through the boost and buck processing of the third output voltage by the BUCK-BOOST converter, the voltage difference between the second input voltage and the third output voltage can be adjusted so that the voltage difference is within the tolerable voltage difference range of the target component, thereby avoiding the damage and jitter of the target component caused by the excessive voltage difference when switching the power supply circuit, extending the service life of the target component, and improving the safety of the electronic device. In addition, by directly powering the target component with the second output voltage provided by the external adapter, the voltage supply pressure of the battery during the charging process can be reduced, and the charging efficiency of the battery can be improved.
[0084] In the present application, when the voltage difference between the second input voltage and the third output voltage is not less than the third preset voltage threshold, it is also possible to detect whether the third output voltage maintains a high voltage in a third preset time period. The third preset time period can be set to 15 seconds or 20 seconds, etc. In a possible implementation, a third voltage comparator can be used to detect the third output voltage and a third reference voltage. If the third output voltage is higher than the third reference voltage, the third voltage comparator outputs a high level. If the third voltage comparator outputs a high level in the third preset time period, it indicates that the third output voltage is high, and it is necessary to continue to use the BUCK converter ladder to reduce the third output voltage of the third power supply circuit to ensure that the power supply circuit of the target component switches smoothly between the first power supply circuit and the second power supply circuit. If the third voltage comparator does not output a high level in the third preset time period, the current third output voltage can be maintained.
[0085] In the present application, the third voltage comparator may be a hardware circuit for detecting the third output voltage and the third reference voltage, or may be a virtual program for detecting the third output voltage and the third reference voltage.
[0086] In the present application, if the electronic device detects that the external adapter is disconnected, the third power supply circuit can be used to power the target component. After the third output voltage is stepped down by the BUCK converter, the voltage difference between the third output voltage and the battery voltage is small. Therefore, after the external adapter is disconnected, the third power supply circuit is switched to power the target component, which can also avoid component damage, jitter and other problems in the target component. In order to smoothly transition to the battery powering the target component, the BUCK converter can continue to be used to step down the third output voltage of the third power supply circuit, and the third output voltage can be reduced to be equal to the first output voltage of the battery. At this time, the third switch can be disconnected, that is, the connection between the third power supply circuit and the target component is cut off, and the power supply circuit of the target component is switched to the power supply circuit provided by the battery, and the battery powers the target component.
[0087] In the present application, the second power supply circuit is directly connected to the external adapter, that is, a DC circuit is created for the external adapter to power the target component. At the same time, in order to avoid the problem that the target component is damaged due to excessive voltage difference when the power supply circuit of the target component is switched, the voltage of the external adapter can be increased, or the voltage of the third power supply circuit can be adjusted to match the voltage of the first power supply circuit and the voltage of the second power supply circuit, so that the voltage difference between the first input voltage of the first power supply circuit and the second input voltage of the second power supply circuit is within the voltage difference range that the target component can withstand, and then the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit, and the target component is directly powered by the second power supply circuit, which not only reduces the power loss caused by battery power supply, improves the working efficiency of the target component and the power supply efficiency of the battery, but also improves the safety of the electronic device. In addition, in the present application, the external adapter can directly power the target component through the first power supply circuit, so that the battery no longer needs to power the target component during the charging process, thereby avoiding the problem of battery overheating caused by power supply and extending the battery life.
[0088] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. Figure 6 As shown, the electronic device includes:
[0089] A first power supply circuit 601, used to supply power to a target component, wherein the first power supply circuit can use a first output voltage provided by a battery as a first input voltage;
[0090] A second power supply circuit 602, used to supply power to the target component, wherein the second power supply circuit can use a second output voltage directly output by an external adapter as a second input voltage, wherein the second input voltage is different from the first input voltage;
[0091] The controller 603 determines that the electronic device is connected to an external adapter, controls the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition, and switches the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
[0092] With the electronic device provided by the present application, when the electronic device is not connected to an external adapter, the target component can be powered by the first power supply circuit. When the electronic device is connected to an external adapter, the input voltages provided by the first power supply circuit and the second power supply circuit can be controlled to meet a voltage matching condition, thereby switching the power supply circuit of the target component from the first power supply circuit to the second power supply circuit. The second power supply circuit can use the second output voltage directly output by the external adapter as the second input voltage, that is, the target component is powered directly by the external adapter instead of the battery, thereby avoiding the problem of charging current limiting or charging stopping caused by excessive heating of the charging IC in the traditional charging method, and improving the battery life.
[0093] In one embodiment, the electronic device further includes a matching circuit for step-adjusting the first input voltage or the second input voltage so that the input voltages are slowly matched, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
[0094] In one embodiment, the matching circuit includes a third power supply circuit, which is connected in parallel with the first power supply circuit. The third input voltage of the third power supply circuit serves as the first output voltage. The third power supply circuit is used to adjust the first input voltage based on the third power supply circuit to meet the voltage matching condition if the external adapter does not support the target charging protocol.
[0095] In the present application, the controller 603 can detect whether the external adapter supports the target charging protocol. If the target charging protocol is supported, the controller 603 can control the adjustment of the second input voltage of the external adapter to meet the voltage matching condition. Specifically, if it is determined that the battery is in a constant voltage charging mode, the controller 603 can control the external adapter to step up the second output voltage, and when the voltage difference between the second input voltage and the first input voltage is greater than a first preset voltage threshold, the power supply circuit of the target component switches from the first power supply circuit to the second power supply circuit; if it is determined that the battery is in a constant current charging mode, the controller 603 can control the power supply to the target component based on the first power supply circuit.
[0096] If the external adapter does not support the target charging protocol, the first input voltage may be adjusted based on the third power supply circuit to meet the voltage matching condition.
[0097] In one possible implementation, the third power supply circuit includes a voltage adjustment unit, which is used to increase the third output voltage of the third power supply circuit in a first step when the power supply circuit between the third power supply circuit and the target component is turned on, so that the third output voltage matches the second input voltage; after the third output voltage is greater than the second input voltage, the third output voltage of the third power supply circuit is reduced in a second step to maintain the matching of the third output voltage with the second input voltage.
[0098] In the present application, the first step length and the second step length can be set separately according to actual application requirements. The first step length and the second step length can be the same or different. For example, the first step length can be set to 0.1V / s and the second step length can be set to 0.2V / s.
[0099] In the present application, the electronic device further includes a third switch and a second switch, the third switch is used to turn on / off the connection between the third power supply circuit and the target component, and the second switch can be used to turn on / off the connection between the second power supply circuit and the power supply circuit of the target component. When it is determined that the external adapter does not support the target charging protocol, the controller 603 can control the third switch to close, thereby turning on the power supply circuit between the third power supply circuit and the target component, and then step-adjusting the third output voltage of the third power supply circuit based on the voltage adjustment unit of the third power supply circuit so that the third output voltage matches the second input voltage. When the third output voltage matches the second input voltage, the power supply circuit of the target component switches from the first power supply circuit to the second power supply circuit.
[0100] In the present application, the voltage adjustment unit may include a boost module and a buck module. After determining that the second output voltage directly output by the external adapter reaches a stable state, the controller 603 may control the boost module to step-up the third output voltage of the third power supply circuit. When the voltage difference between the third output voltage and the second input voltage is not less than a second preset voltage threshold, the power supply circuit between the second power supply circuit and the target component is controlled to be turned on, and then the buck module is controlled to step-down the third output voltage of the third power supply circuit. When the voltage difference between the second input voltage and the third output voltage is not less than a third preset voltage threshold, it is determined that the third output voltage matches the second input voltage, and the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit.
[0101] The power supply control method provided in the present application can be applied to a controller of an electronic device.
[0102] Figure 7A schematic diagram of a connection structure between an electronic device and an external adapter provided in an embodiment of the present application is shown. Figure 7 As shown, the electronic device 700 includes a voltage converter 701, a charging IC 702, a battery 703, a voltage adjustment unit 704, a second switch 705, a third switch 706, a first voltage comparator 707, a third voltage comparator 708 and a target component 709. The charging IC 702 is connected to the battery 703 to manage the charging process of the battery. The voltage converter 701 is used to convert the voltage between the battery and the charging IC. The charging IC receives the first output voltage output by the battery and supplies power to the target component 709 through the first power supply circuit 711. The charging IC can also supply power to the target component 709 through the third power supply circuit 713. The second power supply circuit 712 is directly connected to the connection circuit of the external adapter 720. The electronic device can supply power to the target component through the external adapter 720. Figure 7 As shown, the second power supply circuit 712 is connected to the second switch 705, the third power supply circuit 713 is connected to the third switch 706, and the third power supply circuit is also connected to the voltage adjustment unit 704, which may include a boost module and a buck module. The controller of the electronic device can control the voltage adjustment unit 704 to increase or decrease the third output voltage of the third power supply circuit 713 through an I2C (Inter-Integrated Circuit, serial communication protocol) bus. The first voltage comparator 707 can detect the first input voltage and the first reference voltage. If the first input voltage is higher than the first reference voltage, the first voltage comparator outputs a high level. The third voltage comparator 708 can detect the third output voltage and the third reference voltage. If the third output voltage is higher than the third reference voltage, the third voltage comparator outputs a high level.
[0103] like Figure 7 As shown, if the external adapter 720 supports the target charging protocol, the controller can adjust the second input voltage of the external adapter 720 to meet the voltage matching condition. Specifically, if the battery is in the constant voltage charging mode, the second switch 705 is controlled to be closed, and then the external adapter 709 is controlled to step up the second output voltage. When the voltage difference between the second input voltage and the first input voltage is greater than the first preset voltage threshold, the power supply circuit of the target component is switched from the first power supply circuit 711 to the second power supply circuit 712. The first voltage comparator 707 can detect the first input voltage and the first reference voltage. If the first input voltage is higher than the first reference voltage for 20 seconds, the external adapter 709 continues to be controlled to step up the second output voltage. Otherwise, the current output voltage of the external adapter 709 is maintained. If it is determined that the battery is in the constant current charging mode, power can be supplied to the target component based on the first power supply circuit 711.
[0104] Still Figure 7As shown, the external adapter 720 does not support the target charging protocol, the controller can control the third switch 706 to be turned on, and after the second output voltage directly output by the external adapter rises to 15V and reaches a stable state, the controller can control the boost module of the voltage adjustment unit 704 to step-up the third output voltage of the third power supply circuit, and when the voltage difference between the third output voltage and the second input voltage is not less than the second preset voltage threshold, the second switch 705 is controlled to be closed, and then the controller can control the buck module of the voltage adjustment unit 704 to step-down the third output voltage of the third power supply circuit 713, and when the voltage difference between the second input voltage and the third output voltage is not less than the third preset voltage threshold, it is determined that the third output voltage matches the second input voltage, and the power supply circuit of the target component is switched from the first power supply circuit 711 to the second power supply circuit 712. The third voltage comparator 708 can detect the third output voltage and the third reference voltage. If the third output voltage is higher than the third reference voltage for 20 seconds, the controller continues to control the step-down module of the voltage adjustment unit 704 to step-down the third output voltage of the third power supply circuit 713. Otherwise, the current third output voltage of the third power supply circuit is maintained.
[0105] If the external adapter 720 is disconnected from the electronic device, the controller can control the step-down module of the voltage adjustment unit 704 to step-down the third output voltage of the third power supply circuit until the third output voltage reaches the voltage output by the battery. At this time, the third switch 706 and the second switch 705 can be controlled to be disconnected.
[0106] With the electronic device provided by the present application, the second power supply circuit is directly connected to the external adapter, that is, a DC circuit is created for the external adapter to power the target component. At the same time, in order to avoid the problem that the voltage difference of the power supply circuit of the target component is too large during switching, causing damage to the target component, the voltage of the first power supply circuit and the voltage of the second power supply circuit can be matched by increasing the voltage of the external adapter or adjusting the voltage of the third power supply circuit, so that the voltage difference between the first input voltage of the first power supply circuit and the second input voltage of the second power supply circuit is within the voltage difference range that the target component can withstand, and then the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit. By directly powering the target component through the second power supply circuit, not only the energy loss caused by battery power supply is reduced, the working efficiency of the target component and the power supply efficiency of the battery are improved, but also the safety of the electronic device is improved.
[0107] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0108] Figure 8A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0109] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0110] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0111] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the power supply control method. For example, in some embodiments, the power supply control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the power supply control method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the power supply control method in any other appropriate manner (e.g., by means of firmware).
[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), integrated systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0114] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0115] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0116] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0117] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0119] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0120] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A power supply control method, the method comprising: Determining that the electronic device is not connected to an external adapter, supplying power to the target component based on a first power supply circuit, wherein the first power supply circuit can use a first output voltage provided by a battery as a first input voltage; Determine that the electronic device is connected to an external adapter, control the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit; When the target component is powered by the second power supply circuit, the second power supply circuit can use a second output voltage directly output by the external adapter as a second input voltage, wherein the second input voltage is different from the first input voltage.
2. The method according to claim 1, wherein controlling the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition comprises: The first input voltage or the second input voltage is step-regulated so that the input voltages are slowly matched, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
3. The method according to claim 1, further comprising: Detecting whether the external adapter supports the target charging protocol; If the target charging protocol is supported, adjusting the second input voltage of the external adapter to meet the voltage matching condition; If the target charging protocol is not supported, the first input voltage is adjusted based on a third power supply circuit to meet the voltage matching condition, the third power supply circuit is connected in parallel with the first power supply circuit, and the third input voltage of the third power supply circuit is the first output voltage.
4. The method according to claim 3, wherein adjusting the second input voltage of the external adapter to meet the voltage matching condition comprises: Determining that the battery is in a constant voltage charging mode, controlling the external adapter to step-up a second output voltage, and when a voltage difference between the second input voltage and the first input voltage is greater than a first preset voltage threshold, switching a power supply circuit of the target component from the first power supply circuit to the second power supply circuit; It is determined that the battery is in a constant current charging mode, and power is supplied to the target component based on a first power supply circuit.
5. The method according to claim 3, adjusting the first input voltage based on the third power supply circuit to meet the voltage matching condition, comprising: In response to determining that the external adapter does not support the target charging protocol, controlling the power supply circuit between the third power supply circuit and the target component to be turned on, and adjusting the third output voltage of the third power supply circuit in steps based on the voltage adjustment unit of the third power supply circuit so that the third output voltage matches the second input voltage; When the third output voltage matches the second input voltage, the power supply circuit of the target component is switched from the first power supply circuit to the second power supply circuit.
6. The method according to claim 5, wherein the voltage adjustment unit comprises a boost module and a buck module, and the voltage adjustment unit based on the third power supply circuit step-adjusts the third output voltage of the third power supply circuit so that the third output voltage matches the second input voltage, comprising: Determine that the second output voltage directly output by the external adapter reaches a stable state, control the boost module to step-up the third output voltage of the third power supply circuit, and when the voltage difference between the third output voltage and the second input voltage is not less than a second preset voltage threshold, control the power supply circuit between the second power supply circuit and the target component to be turned on; The step-down module is controlled to step-down the third output voltage of the third power supply circuit, and when the voltage difference between the second input voltage and the third output voltage is not less than a third preset voltage threshold, it is determined that the third output voltage matches the second input voltage.
7. An electronic device comprising: A first power supply circuit, used to supply power to a target component, wherein the first power supply circuit can use a first output voltage provided by a battery as a first input voltage; a second power supply circuit, used to supply power to the target component, wherein the second power supply circuit can use a second output voltage directly output by the external adapter as a second input voltage, wherein the second input voltage is different from the first input voltage; The controller determines that the electronic device is connected to an external adapter, controls the input voltages provided by the first power supply circuit and the second power supply circuit to meet a voltage matching condition, and switches the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
8. The electronic device according to claim 7 further comprises a matching circuit for step-adjusting the first input voltage or the second input voltage so that the input voltages are slowly matched, so as to switch the power supply circuit of the target component from the first power supply circuit to the second power supply circuit.
9. The electronic device according to claim 8, wherein the matching circuit comprises a third power supply circuit, wherein the third power supply circuit is connected in parallel with the first power supply circuit, wherein a third input voltage of the third power supply circuit serves as the first output voltage, and wherein the third power supply circuit is used to adjust the first input voltage based on the third power supply circuit to meet the voltage matching condition if the external adapter does not support the target charging protocol.
10. The electronic device according to claim 9, wherein the third power supply circuit comprises a voltage adjustment unit, and the voltage adjustment unit is used to increase the third output voltage of the third power supply circuit in a first step when the power supply circuit between the third power supply circuit and the target component is turned on, so that the third output voltage matches the second input voltage; and after the third output voltage is greater than the second input voltage, reduce the third output voltage of the third power supply circuit in a second step to maintain the matching of the third output voltage with the second input voltage.