Power management circuit and method, electronic device, vehicle and computer storage medium
By designing a dual-power supply power management circuit in the automotive domain control circuit, detecting the power state and controlling the on-off of the power supply circuit, the reliability and safety risks caused by power supply failures in the prior art are solved, and higher power supply reliability and safety are achieved.
Patent Information
- Application Number
- CN202410703766.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2025-04-04
AI Technical Summary
The existing automotive domain control circuit loses the power supply when the power supply fails, resulting in poor reliability and high safety risks.
A power management circuit is designed, including first and second power supply circuits, and the on-off of the power supply circuit is controlled by detecting the power supply state, so as to realize dual power supply to the load.
It improves power supply reliability, reduces the risk of load loss, and improves the safety of the system.
Smart Images

Figure CN119765245A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a power management circuit, method, electronic device, vehicle and computer storage medium. Background Art
[0002] With the continuous development of intelligent automotive electrical architecture and autonomous driving technology, the safety requirements for automotive control circuits are becoming increasingly higher. Currently, most domain control circuits are equipped with a power supply. When the power supply fails, the domain control circuit will lose power and stop working. It can only operate normally after replacing a new power supply. The reliability is poor and the safety risk is high. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a power management circuit, method, electronic device, vehicle and computer storage medium.
[0004] To achieve the above-mentioned object, a first aspect of the present application provides a power management circuit, the power management circuit comprising a first power supply circuit and a second power supply circuit, the first end of the first power supply circuit is used to connect to a first power supply, the second end of the first power supply circuit is used to connect to a load, the second end of the second power supply circuit is used to connect to a second power supply, and the second end of the second power supply circuit is used to connect to a load;
[0005] The first power supply circuit and the second power supply circuit are both used to supply power to the load.
[0006] The power management circuit provided in the present application can power the load using the power provided by the first power supply through the first power supply circuit, and power the load using the power provided by the second power supply through the second power supply circuit, thereby realizing dual power supply for the load, improving power supply reliability and reducing the risk of power failure of the load.
[0007] In some embodiments, when the first power supply is in a power-on state, the first power supply circuit is set to be turned on, and when the first power supply is in a power-off state, the first power supply circuit is set to be turned off; and / or,
[0008] When the second power source is in a power-on state, the second power supply circuit is set to be turned on, and when the second power source is in a power-off state, the second power supply circuit is set to be turned off.
[0009] In some embodiments, the power management circuit further includes a first detection circuit and a second detection circuit, the first detection circuit is used to connect to the first power supply, and the second detection circuit is used to connect to the second power supply;
[0010] The first detection circuit is used to detect the power-on / power-off status of the first power supply;
[0011] The second detection circuit is used to detect the power-on / power-off status of the second power supply.
[0012] In some embodiments, the power management circuit further includes:
[0013] a first level conversion circuit, wherein a first end of the first level conversion circuit is connected to a third end of the first power supply circuit, and a second end of the first level conversion circuit is used to connect to a controller; the first level conversion circuit is used to perform level conversion on a first control signal output by the controller, and output the first control signal after level conversion to the first power supply circuit to control the on and off of the first power supply circuit; and / or,
[0014] A second level conversion circuit, wherein the first end of the second level conversion circuit is connected to the third end of the second power supply circuit, and the second end of the second level conversion circuit is used to connect to the controller; the second level conversion circuit is used to perform level conversion on the second control signal output by the controller, and output the second control signal after level conversion to the second power supply circuit to control the on and off of the second power supply circuit.
[0015] In some embodiments, the first power supply circuit includes a first switch module, a first end of the first switch module is used to connect to the first power source, and a second end of the first switch module is used to connect to the load; and / or,
[0016] The second power supply circuit includes a second switch module, a first end of the second switch module is used to connect to the second power source, and a second end of the second switch module is used to connect to the load.
[0017] In some embodiments, the first switch module includes a first switch device, and the first switch device is any one of a first switch tube, a first relay, and a first contactor;
[0018] The second switch module includes a second switch device, and the second switch device is any one of a second switch tube, a second relay, and a second contactor.
[0019] In some embodiments, the first switch device is a first switch tube, a first end of the first switch tube is used to connect to the ground end of the first power supply, a second end of the first switch tube is used to connect to the ground end of the load, and a third end of the first switch tube is used to connect to a controller; and / or,
[0020] The second switch device is a second switch tube, a first end of the second switch tube is used to connect to the ground end of the second power supply, a second end of the second switch tube is used to connect to the ground end of the load, and a third end of the second switch tube is used to connect to the controller.
[0021] In some embodiments, the first switch tube is a first MOS tube, and the drain, source and gate of the first MOS tube correspond to the first end, the second end and the third end of the first switch tube one by one; and / or,
[0022] The second switch tube is a second MOS tube, and the drain, source and gate of the second MOS tube correspond one-to-one to the first end, the second end and the third end of the second switch tube.
[0023] In some embodiments, the first detection circuit includes a first optical coupler, a first end of the first optical coupler is used to connect to the first power supply, and a second end of the first optical coupler is used to connect to a controller; and / or,
[0024] The second detection circuit includes a second optocoupler, a first end of the second optocoupler is used to connect to the second power supply, and a second end of the second optocoupler is used to connect to a controller.
[0025] In some embodiments, the first optical coupler includes a first light-emitting diode and a first phototransistor, the anode of the first light-emitting diode is used to connect to the power supply end of the first power supply, the cathode of the first light-emitting diode is used to connect to the ground end of the first power supply, the collector of the first phototransistor is connected to a DC voltage end through a first resistor and is used to connect to the controller, and the emitter of the first phototransistor is grounded; and / or,
[0026] The second optical coupler includes a second light-emitting diode and a second phototransistor, the anode of the second light-emitting diode is used to connect to the power supply end of the second power supply, the cathode of the second light-emitting diode is used to connect to the ground end of the second power supply, the collector of the second phototransistor is connected to a DC voltage end through a second resistor and is used to connect to the controller, and the emitter of the second phototransistor is grounded;
[0027] Wherein, the DC voltage terminal is used to provide a DC voltage.
[0028] In some embodiments, the first level conversion circuit includes a first transistor, the base of the first transistor is used to connect to the controller, the collector of the first transistor is connected to the third end of the first power supply circuit, and the emitter of the first transistor is grounded; and / or,
[0029] The second level conversion circuit includes a second transistor, the base of the second transistor is used to connect to the controller, the collector of the second transistor is connected to the third end of the second power supply circuit, and the emitter of the second transistor is grounded.
[0030] In some embodiments, a power supply terminal of the first power supply is connected to a power supply terminal of the second power supply.
[0031] In some embodiments, the power management circuit further includes a controller, and the third end of the first power supply circuit and the third end of the second power supply circuit are both connected to the controller;
[0032] The controller is used to control the on / off of the first power supply circuit according to the power-on / off status of the first power supply; and to control the on / off of the second power supply circuit according to the power-on / off status of the second power supply.
[0033] A second aspect of the present application further provides a power management method, which is applied to the power management circuit described in the first aspect, and the method includes:
[0034] According to the power-on / power-off status of the first power supply, controlling the on / off of the first power supply circuit; and,
[0035] The on / off of the second power supply circuit is controlled according to the power-on / off status of the second power supply.
[0036] In some embodiments, when the first power supply is in a power-on state, the first power supply circuit is turned on, and when the first power supply is in a power-off state, the first power supply circuit is turned off;
[0037] When the second power supply is in a power-on state, the second power supply circuit is turned on, and when the second power supply is in a power-off state, the second power supply circuit is turned off.
[0038] In some embodiments, the power-on / power-off status of the first power supply is determined based on a first voltage between a power supply terminal of the power supply and a ground terminal of the first power supply by the first detection circuit, and when the first voltage is higher than or equal to a first preset threshold voltage, the first power supply is in a power-on status, otherwise, the first power supply is in a power-off status;
[0039] The power-on / power-off status of the second power supply is determined based on a second voltage between the power supply end of the second power supply and the ground end of the second power supply. When the second voltage is higher than or equal to a second preset threshold voltage, the second power supply is in a power-on status; otherwise, the second power supply is in a power-off status.
[0040] In some embodiments, the method further comprises:
[0041] When the first switch power supply circuit and the second power supply circuit are both in the on state, the first power supply circuit and the second power supply circuit are controlled to be alternately turned off to perform round-robin detection on the second voltage and the first voltage respectively.
[0042] In some embodiments, the method further comprises:
[0043] During the round-robin detection process, when the first power supply circuit is turned off, the second power supply circuit is turned on, and the first voltage is detected, if the first voltage is higher than or equal to the first preset threshold voltage, the first power supply circuit is controlled to be turned on, and the second power supply circuit is controlled to be turned off to switch to detecting the second voltage. If the first voltage is lower than the first preset threshold voltage, the round-robin detection is stopped and the first power supply circuit is controlled to remain turned off and the second power supply circuit is controlled to remain turned on.
[0044] In some embodiments, the method further comprises:
[0045] During the round-robin detection process, when the second power supply circuit is turned off, the first power supply circuit is turned on, and the second voltage is detected, if the second voltage is higher than or equal to the second preset threshold voltage, the second power supply circuit is controlled to be turned on, and the first power supply circuit is controlled to be turned off to switch to detecting the first voltage. If the second voltage is lower than the second preset threshold voltage, the round-robin detection is stopped and the second power supply circuit is controlled to remain turned off and the first power supply circuit is controlled to remain turned on.
[0046] In some embodiments, the method further comprises:
[0047] When one of the first power supply circuit and the second power supply circuit is in the on state, if a voltage level jump occurs between a power supply terminal and a ground terminal of a power source corresponding to the one of the first power supply circuit and the second power supply circuit, the one of the power supply circuits is controlled to be turned off;
[0048] After the certain power supply circuit is turned off, the on and off of the certain power supply circuit is controlled according to the voltage between the power supply terminal and the ground terminal of the power source corresponding to the certain power supply circuit.
[0049] In some embodiments, after a certain power supply circuit is turned off, when the voltage between the power supply terminal and the ground terminal of the power supply corresponding to the certain power supply circuit is higher than or equal to the corresponding preset threshold voltage, the certain power supply circuit is turned on; when the voltage between the power supply terminal and the ground terminal of the power supply corresponding to the certain power supply circuit is lower than the corresponding preset threshold voltage, the certain power supply circuit remains turned off.
[0050] The third aspect of the present application also provides an electronic device, including a processor, wherein the processor is connected to a memory, and the processor can call an executable program code stored in the memory to execute the power management method described in the second aspect above.
[0051] The fourth aspect of the present application also provides a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the power management method described in the second aspect above.
[0052] The fifth aspect of the present application also provides an electronic device, which includes the power management circuit described in the first aspect above, and the electronic device also includes a first power supply and a second power supply, and the first power supply and the second power supply are both connected to the power management circuit.
[0053] The sixth aspect of the present application also provides a vehicle, the vehicle comprising the power management circuit described in the first aspect above, or the vehicle comprising the electronic device described in the third aspect or the fifth aspect above.
[0054] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is a schematic diagram of a first topological structure of a power management circuit provided in an embodiment of the present application;
[0056] Figure 2 This is a schematic diagram of a second topological structure of a power management circuit provided in an embodiment of the present application;
[0057] Figure 3 is a circuit structure diagram of a power management circuit provided in an embodiment of the present application;
[0058] Figure 4 is a flow chart of a power management method provided by an embodiment of the present application;
[0059] Figure 5 This is a schematic diagram of a first topological structure of an electronic device provided in an embodiment of the present application;
[0060] Figure 6 This is a schematic diagram of a second topological structure of the electronic device provided in an embodiment of the present application.
[0061] The following are the descriptions of the reference numerals:
[0062] Electronic device 1
[0063] Power management circuit 100
[0064] Power supply VCC
[0065] DC voltage terminal VCC1
[0066] Ground terminals GND1, GND2, GND3
[0067] First detection circuit 21
[0068] Second detection circuit 22
[0069] The first power supply circuit 11
[0070] Second power supply circuit 12
[0071] Controller 3
[0072] First power source 200
[0073] Second power supply 300
[0074] Load 400
[0075] Processor 500
[0076] First level conversion circuit 41
[0077] The second level conversion circuit 42
[0078] The first switch Q1
[0079] The second switch tube Q2
[0080] The first transistor Q3
[0081] The second transistor Q4
[0082] The first optocoupler U1
[0083] The first light emitting diode D1
[0084] The first phototransistor T1
[0085] The second optocoupler U2
[0086] The second light emitting diode D2
[0087] The second phototransistor T2
[0088] The first resistor R1
[0089] The second resistor R2
[0090] First interface J1
[0091] Second interface J2
[0092] Resistors R3, R4, R5, R6
[0093] The following specific implementation methods will illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0094] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0095] In addition, the terms "first", "second", etc. in the specification of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0096] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0097] See also Figure 1 , Figure 1 1 is a schematic diagram of a first topology structure of a power management circuit provided in an embodiment of the present application. The present application provides a power management circuit 100 , wherein the power management circuit 100 includes a first power supply circuit 11 and a second power supply circuit 12 .
[0098] Among them, the first end of the first power supply circuit 11 is used to connect to the first power supply 200, the second end of the first power supply circuit 11 is used to connect to the load 400, the second end of the second power supply circuit 12 is used to connect to the second power supply 300, and the second end of the second power supply circuit 12 is used to connect to the load 400.
[0099] The first power supply circuit 11 and the second power supply circuit 12 are both used to supply power to the load 400 .
[0100] The power management circuit 100 provided in the present application can power the load 400 using the power provided by the first power supply 200 through the first power supply circuit 11, and power the load 400 using the power provided by the second power supply 300 through the second power supply circuit 12, thereby realizing dual power supply for the load 400, improving power supply reliability and reducing the risk of power failure of the load 400.
[0101] In some embodiments, when the first power supply 200 is in a power-on state, the first power supply circuit 11 is set to be turned on, and when the first power supply 200 is in a power-off state, the first power supply circuit 11 is set to be turned off; and / or,
[0102] When the second power source 300 is in a power-on state, the second power supply circuit 12 is set to be turned on, and when the second power source 300 is in a power-off state, the second power supply circuit 12 is set to be turned off.
[0103] Please also read Figure 2-3 , Figure 2 This is a schematic diagram of a second topological structure of a power management circuit provided in an embodiment of the present application; Figure 3 It is a circuit structure diagram of the power management circuit provided in an embodiment of the present application.
[0104] In some embodiments, the power management circuit 100 further includes a controller 3 , and the third end of the first power supply circuit 11 and the third end of the second power supply circuit 12 are both connected to the controller 3 .
[0105] The controller 3 is used to output a first control signal to the first power supply circuit 11 according to the power-on / off status of the first power supply 200, so as to control the on and off of the first power supply circuit 11. The controller 3 is also used to output a second control signal to the second power supply circuit 12 according to the power-on / off status of the second power supply 300, so as to control the on and off of the second power supply circuit 12.
[0106] In this way, the on and off of the first power supply circuit 11 and the second power supply circuit 12 are uniformly controlled by the controller 3, and there is no need to set controllers for the two power supply circuits respectively, so the circuit structure is simpler.
[0107] In some embodiments, the controller 3 can be at least one of a central processing unit (CPU), a microcontroller unit (MCU), a digital signal processing (DSP) chip, a complex programmable logic device (CPLD) chip, a field programmable gate array (FPGA) chip, a single-chip microcomputer and various control chips.
[0108] It should be noted that, in some embodiments, the controller 3 may not be disposed in the power management circuit 100 , but may be an external component of the power management circuit 100 .
[0109] In some embodiments, the first power supply circuit 11 includes a first switch module, a first end of the first switch module is used to connect to the first power source 200 , and a second end of the first switch module is used to connect to the load 400 .
[0110] In some embodiments, the second power supply circuit 12 includes a second switch module, a first end of the second switch module is used to connect to the second power source 300 , and a second end of the second switch module is used to connect to the load 400 .
[0111] Exemplarily, the first switch module includes a first switch device, and the first switch device is any one of a first switch tube Q1, a first relay, and a first contactor;
[0112] The second switch module includes a second switch device, and the second switch device is any one of a second switch tube Q2, a second relay, and a second contactor.
[0113] like Figure 3 As shown, in some embodiments, the first switching device is a first switching tube Q1, the first end of the first switching tube Q1 is used to connect to the ground terminal GND1 of the first power supply 200, the second end of the first switching tube Q1 is used to connect to the ground terminal GND3 of the load 400, and the third end of the first switching tube Q1 is used to connect to the controller 3.
[0114] The second switch device is a second switch tube Q2, a first end of the second switch tube Q2 is used to connect to the ground terminal GND2 of the second power supply 300, a second end of the second switch tube Q2 is used to connect to the ground terminal GND3 of the load 400, and a third end of the second switch tube Q2 is used to connect to the controller 3.
[0115] Furthermore, in some embodiments, the first switch tube Q1 is a first MOS tube, and the drain, source and gate of the first MOS tube correspond one-to-one to the first end, the second end and the third end of the first switch tube Q1.
[0116] In some embodiments, the second switch tube Q2 is a second MOS tube, and the drain, source, and gate of the second MOS tube correspond one-to-one to the first end, the second end, and the third end of the second switch tube Q2.
[0117] For example, Figure 3 As shown, the first switch tube Q1 includes a first MOS tube, and the drain, source and gate of the first MOS tube correspond to the first end, the second end and the third end of the first switch tube Q1 one by one.
[0118] The second switch tube Q2 includes a second MOS tube, and a drain, a source and a gate of the second MOS tube correspond one to one with a first end, a second end and a third end of the second switch tube Q2.
[0119] In other embodiments, the first switch tube Q1 and the second switch tube Q2 may also be other types of switch tubes, for example, triode, IGBT (insulated gate bipolar transistor), silicon carbide switch tube, thyristor switch tube, gallium arsenide switch tube, etc.
[0120] In some embodiments, the power management circuit 100 also includes a first detection circuit 21 and a second detection circuit 22, the first end of the first detection circuit 21 is used to connect to the first power supply 200, the second end of the first detection circuit 21 is used to connect to the controller 3, the first end of the second detection circuit 22 is used to connect to the second power supply 300, and the second end of the second detection circuit 22 is used to connect to the controller 3.
[0121] The first detection circuit 21 is used to detect the power-on / power-off status of the first power supply 200, obtain a first detection result, and send the first detection result to the controller 3, so that the controller 3 outputs a first control signal to the first power supply circuit 11 according to the first detection result.
[0122] The second detection circuit 22 is used to detect the power-on / power-off status of the second power supply 300, obtain a second detection result, and send the second detection result to the controller 3, so that the controller 3 outputs a second control signal to the second power supply circuit 12 according to the second detection result.
[0123] Exemplarily, the first detection circuit 21 obtains a corresponding first detection signal (i.e., the first detection result) based on the relationship between the first voltage between the power supply terminal VCC of the first power supply 200 and the ground terminal GND1 of the first power supply 200 and the first preset threshold voltage, wherein when the first voltage between the power supply terminal VCC of the first power supply 200 and the ground terminal GND1 of the first power supply 200 is higher than or equal to the first preset threshold voltage, the first detection signal output by the first detection circuit 21 is a first level, and when the first voltage between the power supply terminal VCC of the first power supply 200 and the ground terminal GND1 of the first power supply 200 is lower than the first preset threshold voltage, the first detection signal output by the first detection circuit 21 is a second level. The first level and the second level are different.
[0124] The second detection circuit 22 obtains a corresponding second detection signal (i.e., the second detection result) based on the relationship between the second voltage between the power supply terminal VCC of the second power supply 300 and the ground terminal GND2 of the second power supply 300 and the second preset threshold voltage, wherein when the second voltage between the power supply terminal VCC of the second power supply 300 and the ground terminal GND2 of the second power supply 300 is higher than or equal to the second preset threshold voltage, the second detection signal output by the second detection circuit 22 is a first level, and when the second voltage between the power supply terminal VCC and the ground terminal GND2 of the second power supply 300 is lower than the second preset threshold voltage, the second detection signal output by the second detection circuit 22 is a second level.
[0125] The first preset threshold voltage and the second preset threshold voltage may be equal or different.
[0126] Furthermore, the controller 3 is used to determine that the first power supply 200 is in a power-on state when the first detection signal is at a first level, and output a corresponding first control signal to the first switch tube Q1 to control the first switch tube Q1 to be turned on, so that the first power supply 200 can supply power to the load 400 through the first switch tube Q1; and is used to determine that the first power supply 200 is in a power-off state when the first detection signal is at a second level, and output a corresponding first control signal to the first switch tube Q1 to control the first switch tube Q1 to be turned off.
[0127] The controller 3 is further used to determine that the second power supply 300 is in a power-on state when the second detection signal is at a first level, and output a corresponding second control signal to the second switch tube Q2 to control the second switch tube Q2 to be turned on, so that the second power supply 300 can supply power to the load 400 through the second switch tube Q2; and to determine that the second power supply 300 is in a power-off state when the second detection signal is at a second level, and output a corresponding second control signal to the second switch tube Q2 to control the second switch tube Q2 to be turned off.
[0128] In some embodiments, the first detection circuit 21 includes a first optical coupler U1 , a first end of the first optical coupler U1 is used to connect to the first power source 200 , and a second end of the first optical coupler U1 is used to connect to the controller 3 .
[0129] In some embodiments, the second detection circuit 22 includes a second optocoupler U2 , a first end of the second optocoupler U2 is used to connect to the second power supply 300 , and a second end of the second optocoupler U2 is used to connect to the controller 3 .
[0130] Furthermore, if Figure 3 As shown, in some embodiments, the first optocoupler U1 includes a first light-emitting diode D1 and a first phototransistor T1, the anode of the first light-emitting diode D1 is used to connect to the power supply terminal VCC of the first power supply 200, the cathode of the first light-emitting diode D1 is used to connect to the ground terminal GND1 of the first power supply 200, the collector of the first phototransistor T1 is connected to the DC voltage terminal VCC1 through the first resistor R1, and is used to connect to the controller 3, and the emitter of the first phototransistor T1 is grounded.
[0131] In some embodiments, the second optical coupler U2 includes a second light-emitting diode D2 and a second phototransistor T2, wherein the anode of the second light-emitting diode D2 is used to connect to the power supply terminal VCC of the second power supply 300, the cathode of the second light-emitting diode D2 is used to connect to the ground terminal GND2 of the second power supply 300, the collector of the second phototransistor T2 is connected to the DC voltage terminal VCC1 through the second resistor R2, and is used to connect to the controller 3, and the emitter of the second phototransistor T2 is grounded. The DC voltage terminal VCC1 is used to provide a DC voltage.
[0132] The first level is a low level, and the second level is a high level.
[0133] Since the circuit structures and working principles of the first detection circuit 21 and the second detection circuit 22 are the same, the first detection circuit 21 is taken as an example for detailed description below.
[0134] When the power management circuit 100 is powered on, when the first power source 200 is positively connected and the voltage provided by the first power source 200 is higher than or equal to the first preset threshold voltage, the voltage between the anode and cathode of the first light-emitting diode D1 is higher than its conduction voltage drop, so that the first light-emitting diode D1 emits light, triggering the first phototransistor T1 to turn on, so that the collector of the first phototransistor T1 is at a low level and outputs a low-level first detection signal to the controller 3. In response to the low-level first detection signal, the controller 3 determines that the first power source 200 is in a power-on state, and controls the first switch tube Q1 to turn on, so that the load 400 receives the voltage provided by the first power source 200 through the turned-on first switch tube Q1.
[0135] When the first power source 200 is reversely connected, or the voltage provided by the first power source 200 is lower than the first preset threshold voltage, the voltage between the anode and cathode of the first light-emitting diode D1 is lower than its conduction voltage drop, so that the first light-emitting diode D1 does not emit light, and the first phototransistor T1 is turned off, so that the collector of the first phototransistor T1 receives the DC voltage provided by the DC voltage terminal VCC1 through the first resistor R1 and is at a high level and outputs a high-level first detection signal to the controller 3. In response to the first detection signal at a high level, the controller 3 determines that the first power source 200 is in a power-off state, and controls the first switch tube Q1 to be turned off.
[0136] In this way, when the power management circuit 100 is powered on, when the first detection signal is at a low level, it means that the first power supply 200 is positively connected to the power supply terminal VCC and the ground terminal GND1 of the first power supply 200 and the voltage provided by the first power supply 200 is higher than or equal to the first preset threshold voltage. At this time, the controller 3 controls the first switch tube Q1 to turn on, so that the load 400 can receive power normally from the first power supply 200; when the first detection signal is at a high level, it means that the first power supply 200 is reversely connected or the power supply of the first power supply 200 is interrupted. At this time, the controller 3 controls the first switch tube Q1 to turn off, which can not only prevent the reverse connection of the power supply from damaging the load 400, but also prevent the power management circuit 100 from sending power back to the first power supply 200 with power interrupted, which has higher safety.
[0137] In some embodiments, the first detection circuit 21 further includes a resistor R3 connected between the anode of the first light-emitting diode D1 and the power supply terminal VCC, and the resistor R3 is used to protect the first light-emitting diode D1. The second detection circuit 22 further includes a resistor R4 connected between the anode of the second light-emitting diode D2 and the power supply terminal VCC, and the resistor R4 is used to protect the second light-emitting diode D2.
[0138] On the one hand, the first optocoupler U1 is used to detect whether the first power supply 200 outputs voltage normally. On the other hand, the first optocoupler U1 is used to electrically isolate the first power supply 200 and the controller 3 to prevent the high voltage provided by the first power supply 200 from damaging the controller 3.
[0139] In other embodiments, the first detection circuit 21 may further include a comparator, which is used to compare the voltage between the power supply terminal and the ground terminal with a first preset threshold voltage, and output a corresponding first detection signal according to the comparison result.
[0140] In some embodiments, the power management circuit 100 further includes a first level conversion circuit 41 and / or a second level conversion circuit 42 .
[0141] The first end of the first level conversion circuit 41 is connected to the third end of the first power supply circuit 11, and the second end of the first level conversion circuit 41 is used to connect to the controller 3. The first level conversion circuit 41 is used to perform level conversion on the first control signal output by the controller 3, and output the first control signal after level conversion to the third end of the first power supply circuit 11, so as to control the on and off of the first power supply circuit 11.
[0142] The first end of the second level conversion circuit 42 is connected to the third end of the second power supply circuit 12, and the second end of the second level conversion circuit 42 is used to connect to the controller 3. The second level conversion circuit 42 is used to perform level conversion on the second control signal output by the controller 3, and output the second control signal after level conversion to the third end of the second power supply circuit 12, so as to control the on and off of the second power supply circuit 12.
[0143] Furthermore, if Figure 3 As shown, in some embodiments, the first level conversion circuit 41 includes a first transistor Q3, the base of the first transistor Q3 is used to connect to the controller 3, the collector of the first transistor Q3 is connected to the third end of the first power supply circuit 11, and the emitter of the first transistor Q3 is grounded.
[0144] In some embodiments, the second level conversion circuit 42 includes a second transistor Q4, the base of the second transistor Q4 is used to connect to the controller 3, the collector of the second transistor Q4 is connected to the third end of the second power supply circuit 12, and the emitter of the second transistor Q4 is grounded.
[0145] The circuit structures and working principles of the first level conversion circuit 41 and the second level conversion circuit 42 are the same, and the first level conversion circuit 41 is taken as an example for detailed description below.
[0146] Specifically, Figure 3 As shown, the first level conversion circuit 41 includes a first transistor Q3, a resistor R5 and a resistor R6, the collector of the first transistor Q3 is connected to the third end of the first switch tube Q1, and is connected to the power supply end VCC of the first power supply 200 through the resistor R6, the base of the first transistor Q3 is used to be connected to the controller 3 through the resistor R5, and the emitter of the first transistor Q3 is grounded.
[0147] During operation, when the first control signal output by the controller 3 to the base of the first transistor Q3 is at a low level, the first transistor Q3 is turned off, and the collector of the first transistor Q3 is connected to the power supply terminal VCC through the resistor R6 and is at a high level, thereby converting the first control signal from a low level to a high level and then outputting it to the third end of the first switch tube Q1, thereby controlling the first switch tube Q1 to be turned on. When the first control signal output by the controller 3 to the base of the first transistor Q3 is at a high level, the first transistor Q3 is turned on, and the collector of the first transistor Q3 is grounded through the resistor R5 and is at a high level, thereby converting the first control signal from a high level to a low level and then outputting it to the third end of the first switch tube Q1, thereby controlling the first switch tube Q1 to be turned off.
[0148] In some embodiments, a power supply terminal VCC of the first power supply 200 is connected to a power supply terminal VCC of the second power supply 300 .
[0149] In some embodiments, the power management circuit 100 further includes a first interface J1 and a second interface J2, wherein the power management circuit 100 is connected to the first power source 200 through the first interface J1, and is connected to the second power source 300 through the second interface J2.
[0150] It should be noted that after the power management circuit 100 is powered on, when the first power supply circuit 11 and the second power supply circuit 12 are both in the on state, if the second power supply 300 is supplying power normally and the first power supply 200 is interrupted, since the first power supply circuit 11 is in the on state, the first power supply 200 will become a power receiving load and obtain power from the second power supply 300. At this time, since the first power supply 200 has internal resistance and a voltage drop, the first voltage between the power supply terminal VCC of the first power supply 200 and the ground terminal GND1 of the first power supply 200 will still be higher than the first preset threshold voltage, so that the first detection signal still maintains a low level, and then the controller 3 will misjudge that the first power supply 200 is supplying power normally and continue to control the first power supply circuit 11 to be turned on. In this way, on the one hand, the system loss will increase, and on the other hand, it will bring safety hazards to the system. Similarly, when the first power supply 200 is supplying power normally and the second power supply 300 is interrupted, the same problem will also exist.
[0151] In view of this, in some embodiments, the controller 3 is also used to control the first power supply circuit 11 and the second power supply circuit to be alternately turned off to perform round-robin detection on the first voltage and the second voltage when the first power supply circuit 11 and the second power supply circuit are both in the on state.
[0152] Specifically, in the process in which the controller 3 controls the first power supply circuit 11 to be turned off and controls the second power supply circuit 12 to be turned on and detects the first voltage, the controller 3 is also used to control the first power supply circuit 11 to be turned on when the first voltage is higher than or equal to the first preset threshold voltage, and to control the second power supply circuit 12 to be turned off to switch to detecting the second voltage, and to stop the round-robin detection and control the first power supply circuit 11 to remain turned off and control the second power supply circuit 12 to remain turned on when the first voltage is lower than the first preset threshold voltage.
[0153] It should be noted that, in the process of detecting the first voltage, since the first power supply circuit 11 is in the off state, the loop between the power supply terminal VCC of the first power supply 200 and the ground terminal GND1 of the first power supply 200 and the second power supply 300 is turned off. At this time, if the first voltage is higher than or equal to the first preset threshold voltage, that is, the first detection signal is at the first level, indicating that the first power supply 200 can supply power normally, then it can be switched to detecting the second voltage; if the first voltage is lower than the first preset threshold voltage, that is, the first detection signal is at the second level, indicating that the power supply of the first power supply 200 is interrupted, then the first power supply circuit 11 is controlled to remain in the off state, thereby preventing the second power supply 300 from supplying power back to the first power supply 200, until the first power supply 200 resumes power supply and then restarts the detection of the first voltage and the second voltage in a cycle.
[0154] In the process in which the controller 3 controls the second power supply circuit 12 to turn off and controls the first power supply circuit 11 to turn on and detects the second voltage, the controller 3 is also used to control the second power supply circuit 12 to turn on when the second voltage is higher than or equal to the second preset threshold voltage, and controls the first power supply circuit 11 to turn off to switch to detecting the first voltage, and is used to stop the round-robin detection and control the second power supply circuit 12 to remain turned off and control the first power supply circuit 11 to remain on when the second voltage is lower than the second preset threshold voltage.
[0155] Specifically, in the process of detecting the second voltage, since the second power supply circuit 12 is in the off state, the loop between the power supply terminal VCC of the second power supply 300 and the ground terminal GND2 of the second power supply 300 and the first power supply 200 is turned off. At this time, if the second voltage is higher than or equal to the second preset threshold voltage, that is, the second detection signal is at the first level, indicating that the second power supply 300 can supply power normally, then it can be switched to detecting the first voltage; if the second voltage is lower than the second preset threshold voltage, that is, the second detection signal is at the second level, indicating that the power supply of the second power supply 300 is interrupted, then the second power supply circuit 12 is controlled to remain in the off state, thereby preventing the first power supply 200 from supplying power back to the second power supply 300, until the second power supply 300 resumes power supply and then restarts the detection of the first voltage and the second voltage in a cycle.
[0156] It should be noted that when performing polling detection, if the polling frequency is too high, it will bring uncertain risks to the stability of the power supply.
[0157] In view of this, in some embodiments, the controller 3 is also used to control a certain power supply circuit to be turned off when one of the first power supply circuit 11 and the second power supply circuit 12 is in an on state and a level jump occurs in the voltage between the power supply end and the ground end of the power supply corresponding to the certain power supply circuit.
[0158] After controlling the certain power supply circuit to be turned off, the controller 3 is further used to control the on and off of the certain power supply circuit according to the voltage between the power supply terminal and the ground terminal of the power source corresponding to the certain power supply circuit.
[0159] Furthermore, after controlling the certain power supply circuit to be turned off, the controller 3 is specifically used to control the certain power supply circuit to be turned on when the voltage between the power supply terminal and the ground terminal of the power supply corresponding to the certain power supply circuit is higher than or equal to the corresponding preset threshold voltage; and when the voltage between the power supply terminal and the ground terminal of the power supply corresponding to the certain power supply circuit is lower than the corresponding preset threshold voltage, control the certain power supply circuit to remain turned off.
[0160] For example, when the first power supply 200 is interrupted and changes from a power supply to a power receiving load, the power supply circuit of the first optical coupler U1 will change (i.e., the power supply from the first power supply 200 changes to the power supply from the second power supply 300). During this transition, the first light-emitting diode D1 will not emit light for a short time, so that the magnitude relationship between the first voltage and the first preset threshold voltage will change, so that the first detection signal will have a level jump. Therefore, it is possible to detect whether the first power supply 200 is interrupted based on this level jump. In this way, there is no need to turn off the first power supply 200 and the second voltage for detection, and the continuity of power supply can be guaranteed.
[0161] See also Figure 4 , Figure 4 is a flow chart of a power management method provided by an embodiment of the present application. Based on the same inventive concept, the present application also provides a power management method, which is applied to the power management circuit 100 described in any of the above embodiments, and the method includes:
[0162] Step S1, controlling the on / off of the first power supply circuit 11 according to the power-on / off status of the first power supply 200; and,
[0163] Step S2, controlling the on / off of the second power supply circuit 12 according to the power-on / off status of the second power supply 300.
[0164] In some embodiments, when the first power source 200 is in a power-on state, the first power supply circuit 11 is turned on, and when the first power source 200 is in a power-off state, the first power supply circuit 11 is turned off;
[0165] When the second power source 300 is in a power-on state, the second power supply circuit 12 is turned on, and when the second power source 300 is in a power-off state, the second power supply circuit 12 is turned off.
[0166] In some embodiments, the power-on / power-off status of the first power supply 200 is determined based on a first voltage between a power supply end of the first power supply 200 and a ground end of the first power supply 200. When the first voltage is higher than or equal to a first preset threshold voltage, the first power supply 200 is in a power-on status; otherwise, the first power supply 200 is in a power-off status.
[0167] The power-on / power-off status of the second power supply 300 is determined based on a second voltage between the power supply end of the second power supply 300 and the ground end of the second power supply 300. When the second voltage is higher than or equal to a second preset threshold voltage, the second power supply 300 is in a power-on status. Otherwise, the second power supply 300 is in a power-off status.
[0168] In some embodiments, the method further comprises:
[0169] When the first power supply circuit 11 and the second power supply circuit 12 are both in the on state, the first power supply circuit 11 and the second power supply circuit 12 are controlled to be alternately turned off to perform round-robin detection on the second voltage and the first voltage respectively.
[0170] In some embodiments, the method further comprises:
[0171] During the round-robin detection process, when the first power supply circuit 11 is turned off, the second power supply circuit 12 is turned on, and the first voltage is detected, if the first voltage is higher than or equal to the first preset threshold voltage, the first power supply circuit 11 is controlled to be turned on, and the second power supply circuit 12 is controlled to be turned off to switch to detecting the second voltage. If the first voltage is lower than the first preset threshold voltage, the round-robin detection is stopped and the first power supply circuit 11 is controlled to remain turned off and the second power supply circuit 12 is controlled to remain turned on.
[0172] In some embodiments, the method further comprises:
[0173] During the round-robin detection process, when the second power supply circuit 12 is turned off, the first power supply circuit 11 is turned on, and the second voltage is detected, if the second voltage is higher than or equal to the second preset threshold voltage, the second power supply circuit 12 is controlled to be turned on, and the first power supply circuit 11 is controlled to be turned off to switch to detecting the first voltage. If the second voltage is lower than the second preset threshold voltage, the round-robin detection is stopped and the second power supply circuit 12 is controlled to remain turned off and the first power supply circuit 11 is controlled to remain turned on.
[0174] In some embodiments, the method further comprises:
[0175] When one of the first power supply circuit 11 and the second power supply circuit 12 is in the on state, if a voltage level jump occurs between the power supply terminal and the ground terminal of the power source corresponding to the one power supply circuit, the one power supply circuit is controlled to be turned off; and,
[0176] After the certain power supply circuit is turned off, the on and off of the certain power supply circuit is controlled according to the voltage between the power supply terminal and the ground terminal of the power source corresponding to the certain power supply circuit.
[0177] In some embodiments, after the certain power supply circuit is turned off, when the voltage between the power supply terminal VCC and the ground terminal of the power supply corresponding to the certain power supply circuit is higher than or equal to the corresponding preset threshold voltage, the certain power supply circuit is turned on; when the voltage between the power supply terminal VCC and the ground terminal of the power supply corresponding to the certain power supply circuit is lower than the corresponding preset threshold voltage, the certain power supply circuit remains turned off.
[0178] It should be noted that the power management method corresponds to the aforementioned power management circuit 100. For a more detailed description, please refer to the contents of the various embodiments of the power management circuit 100 in the previous text. The power management method and the contents of the aforementioned power management circuit 100 can also be referenced to each other.
[0179] See also Figure 5 , Figure 5 1 is a schematic diagram of a first topological structure of an electronic device provided in an embodiment of the present application. The present application also provides an electronic device 1, the electronic device 1 comprising a processor 500, the processor 500 being connected to a memory, the processor 500 being able to call executable program codes stored in the memory to execute the power management method described in any of the above embodiments.
[0180] See also Figure 6 , Figure 61 is a schematic diagram of a second topological structure of an electronic device provided in an embodiment of the present application. The present application also provides another electronic device 1, the electronic device 1 comprising the power management circuit 100 described in any of the above embodiments, the electronic device 1 further comprising a first power supply 200 and a second power supply 300, the first power supply 200 and the second power supply 300 are both connected to the power management circuit 100.
[0181] The present application further provides a vehicle, wherein the vehicle includes the power management circuit 100 described in any one of the above embodiments, or the vehicle includes the electronic device 1 described in any one of the above embodiments.
[0182] The present application also provides a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the power management method described in any of the above embodiments.
[0183] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing programs, which can be used by instruction execution systems, devices or devices or used in combination with them.
[0184] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0185] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0186] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer or may be connected to an external computer (e.g., via the Internet using an Internet service provider) through any type of network, including a local area network (LAN) or a wide area network (WAN).
[0187] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A power management circuit (100), characterized in that: The power management circuit (100) comprises a first power supply circuit (11) and a second power supply circuit (12), wherein a first end of the first power supply circuit (11) is used to connect to a first power supply (200), a second end of the first power supply circuit (11) is used to connect to a load (400), a second end of the second power supply circuit (12) is used to connect to a second power supply (300), and a second end of the second power supply circuit (12) is used to connect to a load (400); The first power supply circuit (11) and the second power supply circuit (12) are both used to supply power to the load (400).
2. The power management circuit (100) according to claim 1, characterized in that: When the first power source (200) is in a power-on state, the first power supply circuit (11) is set to be turned on, and when the first power source (200) is in a power-off state, the first power supply circuit (11) is set to be turned off; and / or, When the second power supply (300) is in a power-on state, the second power supply circuit (12) is set to be turned on, and when the second power supply (300) is in a power-off state, the second power supply circuit (12) is set to be turned off.
3. The power management circuit (100) according to claim 1, characterized in that: The power management circuit (100) further comprises a first detection circuit (21) and a second detection circuit (22), wherein the first detection circuit (21) is used to connect to the first power source (200), and the second detection circuit (22) is used to connect to the second power source (300); The first detection circuit (21) is used to detect the power-on / power-off status of the first power source (200); The second detection circuit (22) is used to detect the power-on / power-off status of the second power supply (300).
4. The power management circuit (100) according to claim 2, characterized in that: The power management circuit (100) further comprises: a first level conversion circuit (41), wherein a first end of the first level conversion circuit (41) is connected to a third end of the first power supply circuit (11), and a second end of the first level conversion circuit (41) is used to connect to a controller (3); the first level conversion circuit (41) is used to perform level conversion on a first control signal output by the controller (3), and output the first control signal after level conversion to the first power supply circuit (11), so as to control the on and off of the first power supply circuit (11); and / or, A second level conversion circuit (42), wherein a first end of the second level conversion circuit (42) is connected to a third end of the second power supply circuit (12), and a second end of the second level conversion circuit (42) is used to connect to a controller (3); the second level conversion circuit (42) is used to perform level conversion on a second control signal output by the controller (3), and output the second control signal after level conversion to the second power supply circuit (12), so as to control the on and off of the second power supply circuit (12).
5. The power management circuit (100) according to claim 1, characterized in that: The first power supply circuit (11) comprises a first switch module, a first end of the first switch module is used to connect to the first power source (200), and a second end of the first switch module is used to connect to the load (400); and / or, The second power supply circuit (12) comprises a second switch module, a first end of the second switch module is used to connect to the second power source (300), and a second end of the second switch module is used to connect to the load (400).
6. The power management circuit (100) according to claim 5, characterized in that: The first switch module includes a first switch device, and the first switch device is any one of a first switch tube (Q1), a first relay, and a first contactor; The second switch module includes a second switch device, and the second switch device is any one of a second switch tube (Q2), a second relay, and a second contactor.
7. The power management circuit (100) according to claim 6, characterized in that: The first switch device is a first switch tube (Q1), a first end of the first switch tube (Q1) is used to connect to a ground end (GND1) of the first power source (200), a second end of the first switch tube (Q1) is used to connect to a ground end (GND3) of the load (400), and a third end of the first switch tube (Q1) is used to connect to a controller (3); and / or, The second switch device is a second switch tube (Q2), a first end of the second switch tube (Q2) is used to connect to a ground end (GND2) of the second power source (300), a second end of the second switch tube (Q2) is used to connect to a ground end (GND3) of the load (400), and a third end of the second switch tube (Q2) is used to connect to a controller (3).
8. The power management circuit (100) according to claim 7, characterized in that: The first switch tube (Q1) is a first MOS tube, and the drain, source and gate of the first MOS tube correspond one to one to the first end, the second end and the third end of the first switch tube (Q1); and / or, The second switch tube (Q2) is a second MOS tube, and the drain, source and gate of the second MOS tube correspond one-to-one to the first end, the second end and the third end of the second switch tube (Q2).
9. The power management circuit (100) according to claim 3, characterized in that: The first detection circuit (21) comprises a first optical coupler (U1), a first end of the first optical coupler (U1) being used to connect to the first power source (200), and a second end of the first optical coupler (U1) being used to connect to a controller (3); and / or, The second detection circuit (22) comprises a second optocoupler (U2), wherein a first end of the second optocoupler (U2) is used to connect to the second power supply (300), and a second end of the second optocoupler (U2) is used to connect to a controller (3).
10. The power management circuit (100) according to claim 9, characterized in that: The first optical coupler (U1) comprises a first light-emitting diode (D1) and a first phototransistor (T1), the anode of the first light-emitting diode (D1) being used to connect to the power supply terminal (VCC) of the first power supply (200), the cathode of the first light-emitting diode (D1) being used to connect to the ground terminal (GND1) of the first power supply (200), the collector of the first phototransistor (T1) being connected to a DC voltage terminal (VCC1) via a first resistor (R1) and being used to connect to the controller (3), the emitter of the first phototransistor (T1) being grounded; and / or, The second optical coupler (U2) comprises a second light-emitting diode (D2) and a second phototransistor (T2), wherein the anode of the second light-emitting diode (D2) is used to connect to the power supply end (VCC) of the second power supply (300), the cathode of the second light-emitting diode (D2) is used to connect to the ground end (GND2) of the second power supply (300), the collector of the second phototransistor (T2) is connected to a DC voltage end (VCC1) via a second resistor (R2) and is used to connect to the controller (3), and the emitter of the second phototransistor (T2) is grounded; Wherein, the DC voltage terminal (VCC1) is used to provide a DC voltage.
11. The power management circuit (100) according to claim 4, characterized in that: The first level conversion circuit (41) comprises a first transistor (Q3), the base of the first transistor (Q3) is used to connect to the controller (3), the collector of the first transistor (Q3) is connected to the third end of the first power supply circuit (11), and the emitter of the first transistor (Q3) is grounded; and / or, The second level conversion circuit (42) comprises a second transistor (Q4), the base of the second transistor (Q4) is used to connect to the controller (3), the collector of the second transistor (Q4) is connected to the third end of the second power supply circuit (12), and the emitter of the second transistor (Q4) is grounded.
12. The power management circuit (100) according to claim 1, characterized in that: The power supply end (VCC) of the first power supply (200) is connected to the power supply end (VCC) of the second power supply (300).
13. The power management circuit (100) according to any one of claims 1 to 12, characterized in that: The power management circuit (100) further comprises a controller (3), and the third end of the first power supply circuit (11) and the third end of the second power supply circuit (12) are both connected to the controller (3); The controller (3) is used to control the on / off of the first power supply circuit (11) according to the power-on / off status of the first power supply (200); and to control the on / off of the second power supply circuit (12) according to the power-on / off status of the second power supply (300).
14. A power management method, characterized in that: The power management method is applied to the power management circuit (100) according to any one of claims 1 to 10, and the method comprises: According to the power-on / power-off status of the first power source (200), the first power supply circuit (11) is controlled to be turned on and off; and The on / off state of the second power supply circuit (12) is controlled according to the power-on / off state of the second power supply (300).
15. The power management method according to claim 14, characterized in that: When the first power source (200) is in a power-on state, the first power supply circuit (11) is turned on, and when the first power source (200) is in a power-off state, the first power supply circuit (11) is turned off; When the second power supply (300) is in a power-on state, the second power supply circuit (12) is turned on; when the second power supply (300) is in a power-off state, the second power supply circuit (12) is turned off.
16. The power management method according to claim 15, characterized in that: The power-on / power-off state of the first power supply (200) is determined based on a first voltage between a power supply terminal (VCC) of the first power supply (200) and a ground terminal (GND1) of the first power supply (200); when the first voltage is higher than or equal to a first preset threshold voltage, the first power supply (200) is in a power-on state, otherwise, the first power supply (200) is in a power-off state; The power-on / power-off state of the second power supply (300) is determined based on a second voltage between a power supply terminal (VCC) of the second power supply (300) and a ground terminal (GND2) of the second power supply (300); when the second voltage is higher than or equal to a second preset threshold voltage, the second power supply (300) is in a power-on state; otherwise, the second power supply (300) is in a power-off state.
17. The power management method according to claim 16, wherein: The method further comprises: When the first power supply circuit (11) and the second power supply circuit (12) are both in the on state, the first power supply circuit (11) and the second power supply circuit (12) are controlled to be alternately turned off to perform round-robin detection on the second voltage and the first voltage respectively.
18. The power management method according to claim 17, wherein: The method further comprises: During the round-robin detection process, when the first power supply circuit (11) is turned off, the second power supply circuit (12) is turned on, and the first voltage is detected, if the first voltage is higher than or equal to the first preset threshold voltage, the first power supply circuit (11) is controlled to be turned on, and the second power supply circuit (12) is controlled to be turned off to switch to detecting the second voltage; if the first voltage is lower than the first preset threshold voltage, the round-robin detection is stopped, the first power supply circuit (11) is controlled to remain turned off, and the second power supply circuit (12) is controlled to remain turned on.
19. The power management method according to claim 17, wherein: The method further comprises: During the round-robin detection process, when the second power supply circuit (12) is turned off, the first power supply circuit (11) is turned on, and the second voltage is detected, if the second voltage is higher than or equal to the second preset threshold voltage, the second power supply circuit (12) is controlled to be turned on, and the first power supply circuit (11) is controlled to be turned off to switch to detecting the first voltage; if the second voltage is lower than the second preset threshold voltage, the round-robin detection is stopped, the second power supply circuit (12) is controlled to remain turned off, and the first power supply circuit (11) is controlled to remain turned on.
20. The power management method according to claim 16, wherein: The method further comprises: When one of the first power supply circuit (11) and the second power supply circuit (12) is in an on state, if a voltage level jump occurs between a power supply terminal (VCC) and a ground terminal of a power source corresponding to the one of the power supply circuits, the one of the power supply circuits is controlled to be turned off; After the certain power supply circuit is turned off, the on and off of the certain power supply circuit is controlled according to the voltage between the power supply terminal (VCC) and the ground terminal of the power supply corresponding to the certain power supply circuit.
21. The power management method according to claim 20, characterized in that: After the certain power supply circuit is turned off, when the voltage between the power supply terminal (VCC) and the ground terminal of the power supply corresponding to the certain power supply circuit is higher than or equal to the corresponding preset threshold voltage, the certain power supply circuit is turned on; when the voltage between the power supply terminal (VCC) and the ground terminal of the power supply corresponding to the certain power supply circuit is lower than the corresponding preset threshold voltage, the certain power supply circuit remains turned off.
22. An electronic device (1), characterized in that: It comprises a processor (500), wherein the processor (500) is connected to a memory, and the processor (500) can call an executable program code stored in the memory to execute the power management method according to any one of claims 14 to 21.
23. A computer storage medium, characterized in that The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the power management method according to any one of claims 14-21.
24. An electronic device (1), characterized in that: The electronic device (1) comprises the power management circuit (100) according to any one of claims 1 to 13, and the electronic device (1) further comprises a first power supply (200) and a second power supply (300), wherein the first power supply (200) and the second power supply (300) are both connected to the power management circuit (100).
25. A vehicle, characterized in that: The vehicle comprises the power management circuit (100) described in any one of items 1-13, or the vehicle comprises the electronic device (1) described in claim 22 or claim 24.