Power management system and electronic equipment
By introducing a delayed power-off mechanism of the switch status detection module and the power control module in the electronic device, the data loss problem during data read and write operations is solved, ensuring data integrity and hardware security.
Patent Information
- Application Number
- CN202422370865.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2034-09-26
AI Technical Summary
In the prior art, electronic devices directly lose power during data read and write operations, resulting in data loss.
The switch status detection module is used to output the off signal when the switch is detected to be disconnected. The power control module disconnects the power supply after the preset delay time period to ensure that the control module completes the data read and write operations before powering off.
It realizes data reading and writing operations before power outage, reduces data loss, avoids long-term power consumption, and protects hardware components.
Smart Images

Figure CN223194440U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of power management, and particularly to a power management system and an electronic device. Background Art
[0002] Currently, many electronic devices supply power to the main control unit, sensors, motors, and other peripherals through a mechanical main switch after the battery, and then through multiple levels of voltage conversion, and directly cut off the power to shut down through the mechanical main switch.
[0003] In practical applications, an electronic device needs to record relevant data during the operation process. When data read / write operations occur, the data will be cached in a temporary storage area, and the data in these caches has not been formally written into the storage space. Therefore, if the power switch is directly turned off during the data read / write operation to cut off the power of the device, the data in the cache will be lost, resulting in the inability to normally save the unfinished files of the system and causing data loss. Utility Model Content
[0004] This application provides a power management system and an electronic device to solve the problem of data loss caused by directly cutting off the power supply through a switch to shut down.
[0005] According to the first aspect of the embodiments of this application, a power management system is provided, including a switch, a switch state detection module, and a power control module;
[0006] The switch state detection module is configured to output a turn-off signal to the control module and the power control module when detecting that the switch is turned off, where the turn-off signal is used to instruct the control module to end the data read / write operation;
[0007] The power control module is configured to respond to the turn-off signal and turn off after a preset delay duration, so that the first power supply stops supplying power to the control module.
[0008] Optionally, the power control module is further configured to respond to the power-off control signal output by the control module and turn off, so that the first power supply stops supplying power to the control module.
[0009] Optionally, the power control module includes a first controllable switch and a power control circuit;
[0010] The first controllable switch is connected between the first power supply and the control module; ]>
[0011] The power control circuit is connected to the control end of the first controllable switch, and is configured to control the first controllable switch to turn off after a preset delay duration in response to the turn-off signal, or control the first controllable switch to turn off in response to the power-off control signal.
[0012] Optionally, the power control circuit includes a hardware delay shutdown circuit and a control shutdown circuit;
[0013] The hardware delay shutdown circuit is configured to control the first controllable switch to disconnect after a preset delay duration in response to the off signal;
[0014] The control shutdown circuit is configured to control the first controllable switch to disconnect in response to the power-off control signal.
[0015] Optionally, the hardware delay shutdown circuit includes a first voltage dividing circuit, a second voltage dividing circuit, a first switch circuit, and a first energy storage circuit;
[0016] The first voltage dividing circuit is configured to receive the off signal, divide the voltage of the off signal, and output a first divided voltage signal to the first energy storage circuit and the first switch circuit; wherein, the first divided voltage signal is used to charge the first energy storage circuit, and the voltage of the first divided voltage signal increases during the charging process of the first energy storage circuit;
[0017] The second voltage dividing circuit is configured to divide the voltage of the first power supply and output a second divided voltage signal to the first switch circuit;
[0018] The first switch circuit is configured to receive the first divided voltage signal and the second divided voltage signal. After the preset delay duration, when the difference between the voltage of the first divided voltage signal and the voltage of the second divided voltage signal is equal to a preset value, the first switch circuit conducts and controls the first controllable switch to disconnect.
[0019] Optionally, the control shutdown circuit includes a second switch circuit and a second controllable switch;
[0020] The second switch circuit is configured to control the second controllable switch to disconnect in response to the power-off control signal output by the control module;
[0021] The second controllable switch is configured to control the first controllable switch to disconnect when it disconnects.
[0022] Optionally, the switch state detection module includes a third voltage dividing circuit and a second energy storage circuit;
[0023] The third voltage dividing circuit is configured to receive the on signal output when the switch is closed, divide the voltage of the on signal, and output a third divided voltage signal to the second energy storage circuit; wherein, the third divided voltage signal is used to charge the second energy storage circuit; when it is detected that the switch is disconnected, the voltage of the third divided voltage signal is reduced;
[0024] The second energy storage circuit is configured to charge the third voltage dividing circuit when detecting a decrease in the voltage of the third voltage dividing signal, and output the off signal to the control module and the power supply control module.
[0025] Optionally, the power supply control circuit further includes a power supply maintaining circuit;
[0026] The power supply maintaining circuit is configured to control the first controllable switch to close in response to the on signal output when the switch is closed, so that the first power supply supplies power to the control module.
[0027] Optionally, the power supply maintaining circuit includes an on signal detection circuit, a power supply maintaining enabling circuit, and a second controllable switch;
[0028] The on signal detection circuit is configured to control the second controllable switch to close in response to the on signal output when the switch is closed;
[0029] The second controllable switch is configured to control the first controllable switch to close when it is closed;
[0030] The power supply maintaining enabling circuit is configured to control the second controllable switch to close in response to a power supply maintaining enabling signal when the first controllable switch is closed.
[0031] Optionally, the power management system further includes the control module;
[0032] The control module includes a micro control unit and a central processing unit;
[0033] The micro control unit is configured to send an end data read / write instruction to the central processing unit after receiving the off signal output by the switch state detection module, receive a shutdown instruction sent by the central processing unit after completing the data read / write operation, and output a power off control signal to the power supply control module after receiving the shutdown instruction.
[0034] Optionally, the switch is configured to connect the first power supply and the motor when it is closed, so that the first power supply supplies power to the motor.
[0035] Optionally, the power management system further includes a charging management circuit;
[0036] The charging management circuit is configured to control the second power supply to supply power to the control module.
[0037] Optionally, the power management system further includes a clock power conversion circuit;
[0038] The input end of the clock power conversion circuit is connected to the first power supply, and the output end of the clock power conversion circuit is connected to the clock power input end of the control module.
[0039] According to a second aspect of embodiments of the present application, there is provided an electronic device, including the power management system as described in the first aspect.
[0040] In the present application, the power management system includes a switch, a switch state detection module, and a power control module. The switch state detection module is configured to output a turn-off signal to the control module and the power control module when detecting that the switch is turned off. The turn-off signal is used to instruct the control module to end the data reading and writing operations. The power control module is configured to respond to the turn-off signal and turn off after a preset delay duration, so that the first power supply stops supplying power to the control module. When detecting that the switch is turned off, the switch state detection module outputs a turn-off signal to instruct the control module to end the data reading and writing operations. Moreover, the first power supply does not immediately stop supplying power to the control module when the switch is turned off. Instead, the power control module responds to the turn-off signal and turns off after a preset delay duration, so that the first power supply stops supplying power to the control module, achieving delayed power-off. Within the preset delay duration, the control module can end the data reading and writing operations, achieving the completion of data reading and writing operations before the power supply stops, reducing the occurrence of data loss, and solving the problem of data loss caused by directly cutting off the power supply through the switch to shut down. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0042] Figure 1 It is a schematic structural diagram of a power management system provided in an embodiment of the present application;
[0043] Figure 2 It is a schematic structural diagram of a power control module provided in an embodiment of the present application;
[0044] Figure 3 It is a schematic structural diagram of a power control module provided in an embodiment of the present application;
[0045] Figure 4 It is a schematic structural diagram of a hardware delay shutdown circuit provided in an embodiment of the present application;
[0046] Figure 5 It is a schematic structural diagram of a power management system provided in an embodiment of the present application;
[0047] Figure 6 It is a schematic structural diagram of a control shutdown circuit provided in an embodiment of the present application;
[0048] Figure 7 It is a schematic structural diagram of a switch state detection module provided in an embodiment of the present application;
[0049] Figure 8 It is a schematic structural diagram of a power control module provided in an embodiment of the present application;
[0050] Figure 9 It is a schematic structural diagram of a power supply maintenance circuit provided in an embodiment of the present application;
[0051] Figure 10 It is a schematic structural diagram of a power management system provided in an embodiment of the present application. Detailed implementation manners
[0052] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0053] Exemplary power management system
[0054] Please refer to Figure 1 , in an exemplary embodiment, a power management system is provided. As Figure 1 shown, the power management system includes a switch 100, a switch state detection module 200, and a power control module 300;
[0055] The switch state detection module 200 is configured to output a turn-off signal to the control module 400 and the power control module 300 when it detects that the switch 100 is turned off. Among them, the turn-off signal is used to instruct the control module 400 to end the data reading and writing operation;
[0056] The power control module 300 is configured to respond to the turn-off signal and turn off after a preset delay duration, so that the first power supply 500 stops supplying power to the control module 400.
[0057] When it detects that the switch is turned off, the switch state detection module outputs a turn-off signal to instruct the control module to end the data reading and writing operation. Moreover, the first power supply does not immediately stop supplying power to the control module when the switch is turned off. Instead, the power control module responds to the turn-off signal and turns off after a preset delay duration, so that the first power supply stops supplying power to the control module, realizing delayed power-off. Within the preset delay duration, the control module can end the data reading and writing operation, achieving the completion of the data reading and writing operation before the power supply stops, reducing the occurrence of data loss, and solving the problem of data loss caused by directly cutting off the power supply by the switch to shut down.
[0058] In an exemplary embodiment, the switch 100 may be a push-button switch, a toggle switch, or other types of switches. This application does not limit this.
[0059] In some embodiments, the control module 400 stores relevant data during the operation process in a storage medium. In an exemplary embodiment, the storage medium includes eMMC (Embedded Multi Media Card), and the storage medium may also be of other types. This application does not limit this. eMMC is an internal storage device, similar to a flash card, and it can be used in mobile phones, tablets, digital cameras, and other portable devices. When using eMMC, read and write operations must be completed before the system is normally shut down, otherwise it may cause data loss or file corruption. When eMMC read and write operations occur, the system caches the data in a temporary storage area, and the data in these caches has not been officially written into the storage space. Therefore, if the device is powered off during the read and write operation, the data in the cache will be lost, which may cause file corruption or data loss. In addition, when eMMC read and write operations are in progress, the device consumes a large amount of power and heat. If the power is suddenly cut off, it may cause damage to the chip or other hardware components. These damages may not be repaired, thereby reducing the device performance or making it unable to be used normally.
[0060] In some embodiments, the power control module 300 is further configured to disconnect in response to a power-off control signal output by the control module 400, so that the first power supply 500 stops supplying power to the control module 400.
[0061] After the control module 400 completes the data read and write operation, it outputs a power-off control signal to the power control module 300. The power control module 300 disconnects in response to the power-off control signal output by the control module 400, so that the first power supply 500 stops supplying power to the control module 400. It can control the power control module 300 to disconnect through the control module 400 after the data read and write operation is completed, and timely control the power control module 300 to disconnect after the data read and write operation is completed, so that the first power supply 500 stops supplying power to the control module 400, avoiding long-term power consumption. Moreover, it realizes the completion of the data read and write operation before the power supply stops, reducing the occurrence of data loss, and solves the problem of data loss caused by directly cutting off the power supply through the switch to shut down.
[0062] In some embodiments, the off signal may be a single signal, and the switch state detection module inputs this single off signal to the control module and the power control module; the off signal may include a first off signal and a second off signal. The switch state detection module outputs the first off signal to the control module and the second off signal to the power control module. The first off signal is used to instruct the control module to end the data reading and writing operation. The power control module responds to the second off signal and disconnects after a preset delay duration, so that the first power supply stops supplying power to the control module. The present application does not limit this.
[0063] In some embodiments, as Figure 2 shown, the power control module 300 includes a first controllable switch 310 and a power control circuit 320;
[0064] The first controllable switch 310 is connected between the first power supply 500 and the control module 400;
[0065] The power control circuit 320 is connected to the control end of the first controllable switch 310 and is used to control the first controllable switch 310 to disconnect after a preset delay duration in response to the off signal, or control the first controllable switch 310 to disconnect in response to the power-off control signal.
[0066] The first controllable switch 310 is connected between the first power supply 500 and the control module 400. By controlling the first controllable switch 310 to disconnect through the power control circuit 320, the first power supply 500 stops supplying power to the control module 400. The power control circuit 320 is connected to the control end of the first controllable switch 310 and is used to control the first controllable switch 310 to disconnect after a preset delay duration in response to the off signal, or control the first controllable switch 310 to disconnect in response to the power-off control signal, which can achieve delayed power-off in response to the off signal and power-off in response to the power-off control signal, providing double protection, completing data reading and writing operations before the power supply stops, reducing the occurrence of data loss, solving the problem of data loss caused by directly cutting off the power supply by the switch, and moreover, avoiding long-term power consumption.
[0067] In an exemplary embodiment, the first controllable switch 310 may be a P-channel MOS (abbreviation of MOSFET, Metal-Oxide-Semiconductor Field-Effect Transistor), and the first controllable switch 310 may also be other controllable switches, for example, IGBT (Insulated Gate Bipolar Transistor), etc. The present application does not limit this.
[0068] In an exemplary embodiment, the first controllable switch 310 is a P-channel MOS, i.e., a PMOS. The source of the first controllable switch 310 is connected to the first power supply 500, the drain of the first controllable switch 310 is connected to the control module 400, and the power supply control circuit 320 is connected to the gate of the first controllable switch 310. The power supply control circuit 320 controls the first controllable switch 310 to turn off. It can be that the power supply control circuit 320 outputs a high-level signal to act on the gate of the first controllable switch 310 to control the first controllable switch 310 to turn off.
[0069] In an exemplary embodiment, the output terminal of the first controllable switch 310 is connected to the control module 400. It can be that the output terminal of the first controllable switch 310 is directly connected to the control module 400, or it can be that the output terminal of the first controllable switch 310 is connected to the control module 400 through a voltage conversion module. When the voltage of the first power supply 500 matches the supply voltage of the control module 400, it can be that the output terminal of the first controllable switch 310 is directly connected to the control module 400 without voltage conversion. When the voltage of the first power supply 500 does not match the supply voltage of the control module 400, it can be that the output terminal of the first controllable switch 310 is connected to the control module 400 through a voltage conversion module to convert the voltage of the first power supply 500 into the supply voltage of the control module 400 through the voltage conversion module and input it to the control module 400.
[0070] In an exemplary embodiment, the voltage conversion module can also implement multi-level voltage conversion. The control module 400 can include a micro-control unit and a central processing unit. The voltage conversion module can be connected to the micro-control unit and the central processing unit. The voltage conversion module can also be connected to a sensor system and other peripherals. The voltage of the first power supply 500 generates multi-level different voltages through the voltage conversion module to supply power to the micro-control unit, the central processing unit, the sensor system, and other peripherals.
[0071] In an exemplary embodiment, the output terminal of the first controllable switch 310 can be connected to the voltage conversion module through a diode.
[0072] In some embodiments, as Figure 3 shown, the power supply control circuit 320 includes a hardware delay shutdown circuit 321 and a control shutdown circuit 322;
[0073] The hardware delay shutdown circuit 321 is used to control the first controllable switch 310 to turn off after a preset delay duration in response to a shutdown signal;
[0074] The control shutdown circuit 322 is used to control the first controllable switch 310 to turn off in response to a power-off control signal.
[0075] The hardware delay shutdown circuit 321 is used to achieve delayed power-off in response to the shutdown signal, and the control shutdown circuit 322 is used to achieve power-off in response to the power-off control signal, providing double protection. It enables the data read and write operations to be completed before the power supply stops, reducing the occurrence of data loss, solving the problem of data loss caused by directly cutting off the power supply through the switch, and moreover, it can avoid long-term power consumption.
[0076] In an exemplary embodiment, the preset delay duration can be adjusted by adjusting the parameters of the hardware delay shutdown circuit.
[0077] In an exemplary embodiment, the hardware delay shutdown circuit 321 may include an RC circuit or a delay chip, and the present application does not limit this.
[0078] In some embodiments, as Figure 4 shown, the hardware delay shutdown circuit 321 includes a first voltage dividing circuit 3211, a second voltage dividing circuit 3212, a first switch circuit 3213 and a first energy storage circuit 3214;
[0079] The first voltage dividing circuit 3211 is configured to receive the shutdown signal, divide the voltage of the shutdown signal, and output a first divided voltage signal to the first energy storage circuit 3214 and the first switch circuit 3213; wherein, the first divided voltage signal is used to charge the first energy storage circuit 3214, and the voltage of the first divided voltage signal increases during the charging process of the first energy storage circuit 3214;
[0080] The second voltage dividing circuit 3212 is configured to divide the voltage of the first power supply 500 and output a second divided voltage signal to the first switch circuit 3213;
[0081] The first switch circuit 3213 is configured to receive the first divided voltage signal and the second divided voltage signal. After the preset delay duration, when the difference between the voltage of the first divided voltage signal and the voltage of the second divided voltage signal is equal to the preset value, the first switch circuit 3213 conducts, controlling the first controllable switch 310 to disconnect.
[0082] The first energy storage circuit 3214 is charged by the first divided voltage signal, and the voltage of the first divided voltage signal increases during the charging process of the first energy storage circuit 3214. When the difference between the voltage of the first divided voltage signal and the voltage of the second divided voltage signal is equal to the preset value, the first switch circuit 3213 conducts, controlling the first controllable switch 310 to disconnect. Further, the first power supply 500 stops supplying power to the control module 400. From the moment of receiving the shutdown signal to the moment when the difference between the voltage of the first divided voltage signal and the voltage of the second divided voltage signal is equal to the preset value, the preset delay duration has passed, achieving delayed power-off in response to the shutdown signal.
[0083] In an exemplary embodiment, as Figure 5As shown, it is a schematic structural diagram of a power management system. In Figure 5 , the switch 100 is a toggle switch S1, VBAT+ is the voltage of the first power supply 500, and VBAT+ also represents the voltage output terminal of the first power supply 500 in Figure 5 . VCC_IN is the power input terminal of the voltage conversion module. When the toggle switch S1 is toggled to the 1 / 2 position, the switch 100 is disconnected, and a turn-off signal with the same potential as VBAT+ will be generated. Here, the turn-off signal is the second turn-off signal output by the switch state detection module to the power control module. The first voltage division circuit 3211 includes a resistor R2 and a resistor R5. The first end of the toggle switch S1 is connected to the first end of the resistor R2, the second end of the resistor R2 is connected to the first end of the resistor R5, the second end of the resistor R5 is grounded, and the second end of the toggle switch S1 is connected to the first power supply 500. The first energy storage circuit 3214 includes a capacitor C5. The second end of the resistor R2 is connected to the first end of the capacitor C5, and the second end of the capacitor C5 is grounded. The second voltage division circuit 3212 includes a resistor R4 and a resistor R7. The first end of the resistor R4 is connected to the first power supply 500, the second end of the resistor R4 is connected to the first end of the resistor R7, and the second end of the resistor R7 is grounded. The first controllable switch 310 is Q5, which is a PMOS. The first switch circuit 3213 includes a triode Q1, a triode Q2, and a resistor R3. The first end of the resistor R2 is connected to the emitter of the triode Q1, the collector of the triode Q1 is connected to the gate of the first controllable switch Q5, the base of the triode Q1 is connected to the first end of the resistor R3, the second end of the resistor R3 is connected to the collector of the triode Q2, the emitter of the triode Q2 is connected to the first end of the resistor R7, and the base of the triode Q2 is connected to the second end of the resistor R2. Q1 is a PNP-type triode, and Q2 is an NPN-type triode. When the toggle switch S1 is toggled to the 1 / 2 position, the switch 100 is disconnected, and a turn-off signal with the same potential as VBAT+ will be generated. The resistor R2 and the resistor R5 divide the voltage of the turn-off signal and then charge the capacitor C5. After a preset delay duration, when the voltage of the capacitor C5 rises to the voltage value of the voltage division of the resistor R4 and the resistor R7 (the voltage of the second voltage division signal) plus 0.7V (preset value), the triode Q2 will conduct, and then the triode Q1 will conduct. The turn-off signal acts on the gate of the first controllable switch Q5 through the triode Q1, so that the first controllable switch Q5 is turned off, realizing hardware delayed shutdown.
[0084] In an exemplary embodiment, Figure 5 , the pins 1, 2, and 3 of the first controllable switch Q5 are the source S of the first controllable switch Q5, the pins 5, 6, 7, and 8 are the drain D of the first controllable switch Q5, and the pin 4 is the gate G of the first controllable switch Q5.
[0085] In an exemplary embodiment, Figure 5In it, VBAT+ is grounded through capacitor C3, and VCC_IN is grounded through capacitor C2. A resistor R1 and a capacitor C1 are connected in parallel between the source S and the gate G of the first controllable switch Q5 for filtering.
[0086] In some embodiments, such as Figure 6 shown, the control shutdown circuit 322 includes a second switch circuit 3221 and a second controllable switch 3222;
[0087] The second switch circuit 3221 is configured to control the second controllable switch 3222 to disconnect in response to a power-off control signal output by the control module 400;
[0088] The second controllable switch 3222 is configured to control the first controllable switch 310 to disconnect when it disconnects.
[0089] The second switch circuit 3221 controls the second controllable switch 3222 to disconnect in response to a power-off control signal output by the control module 400. When the second controllable switch 3222 disconnects, it controls the first controllable switch 310 to disconnect. Further, the first power supply 500 stops supplying power to the control module 400, achieving power-off in response to the power-off control signal.
[0090] In an exemplary embodiment, the second controllable switch 3222 can be an N-channel MOS, that is, NMOS. The second controllable switch 3222 can also be other controllable switches, for example, IGBT, etc. The present application does not limit this.
[0091] In an exemplary embodiment, in Figure 5 POWER_OFF is the power-off control terminal of the control module 400 for outputting a power-off control signal, and the power-off control signal is a high level. The second switch circuit includes a resistor R13, a resistor R15, and a triode Q4. The triode Q4 is an NPN-type triode. POWER_OFF is connected to the first end of the resistor R13. The second end of the resistor R13 is connected to the first end of the resistor R15. The second end of the resistor R15 is grounded. The second end of the resistor R13 is connected to the base of the triode Q4. The emitter of the triode Q4 is grounded. The second controllable switch 3222 is Q3, which is NMOS. The collector of the triode Q4 is connected to the gate of the second controllable switch Q3. The source of the second controllable switch Q3 is grounded. The drain of the second controllable switch Q3 is connected to the gate G of the first controllable switch Q5 through a resistor R6. POWER_OFF is the power-off control terminal of the control module 400 for outputting a power-off control signal, and the power-off control signal is a high level. The triode Q4 conducts, the collector of the triode Q4 is at a low level, the gate of the second controllable switch Q3 is at a low level, the second controllable switch Q3 turns off, the gate of the first controllable switch Q5 is at a high level, the first controllable switch Q5 turns off, and further, the first power supply 500 stops supplying power to the control module 400.
[0092] In an exemplary embodiment, Figure 5 A resistor R14 and a capacitor C8 are connected in parallel between the source and the gate of the second controllable switch Q3 for filtering.
[0093] In some embodiments, such as Figure 7 As shown, the switch state detection module 200 includes a third voltage dividing circuit 210 and a second energy storage circuit 220;
[0094] The third voltage dividing circuit 210 is configured to receive the on signal output when the switch 100 is closed, divide the voltage of the on signal, and output a third divided voltage signal to the second energy storage circuit 220; wherein, the third divided voltage signal is used to charge the second energy storage circuit 220; when it is detected that the switch 100 is opened, the voltage of the third divided voltage signal is reduced;
[0095] The second energy storage circuit 220 is configured to charge the third voltage dividing circuit 210 when it is detected that the voltage of the third divided voltage signal is reduced, and output an off signal to the control module 400 and the power supply control module 300.
[0096] When the switch 100 is closed, the voltage of the on signal output is divided and used to charge the second energy storage circuit 220. When the switch 100 is opened, the voltage of the third divided voltage signal is reduced. The second energy storage circuit 220 charges the third voltage dividing circuit 210 and outputs an off signal to the control module 400. The off signal instructs the control module 400 to end the data reading and writing operation, realizing that when it is detected that the switch is opened, the switch state detection module outputs an off signal to instruct the control module to end the data reading and writing operation, reducing the occurrence of data loss, and solving the problem of data loss caused by directly cutting off the power supply by the switch to shut down. Moreover, the first power supply does not immediately stop supplying power to the control module when the switch is opened. Instead, the power supply control module responds to the off signal and disconnects after a preset delay duration, so that the first power supply stops supplying power to the control module, realizing delayed power-off. Within the preset delay duration, the control module can end the data reading and writing operation, realizing that the data reading and writing operation is completed before the power supply stops supplying power, reducing the occurrence of data loss, and solving the problem of data loss caused by directly cutting off the power supply by the switch to shut down.
[0097] In an exemplary embodiment, in Figure 5When the toggle switch S1 is toggled to the 2 / 3 position, switch 100 closes. Toggling the third terminal of toggle switch S1, which is also the SYS_BAT terminal, generates an on signal. The on signal is a high level, and the voltage of the on signal is the voltage VBAT+ of the first power supply 500. The third voltage-dividing circuit 210 includes resistor R9, resistor R11, and resistor R12. The second energy storage circuit 220 includes capacitor C7. The third terminal of toggle switch S1 is connected to the first terminal of resistor R9. The second terminal of resistor R9 is connected to the first terminal of resistor R12. The second terminal of resistor R12 is grounded. The second terminal of resistor R9 is connected to the first terminal of resistor R11. The second terminal of resistor R11 is connected to the first terminal of capacitor C7. The second terminal of capacitor C7 is grounded. SWITCH_STATE is the switch state detection terminal of the control module 400. When the toggle switch S1 is toggled to the 2 / 3 position, switch 100 closes, and the voltage VBAT+ of the first power supply 500 is divided by the third voltage-dividing circuit 210 and then charges capacitor C7. When the toggle switch S1 is toggled to the 1 / 2 position, switch 100 opens, the voltage at the SWITCH_STATE terminal becomes low, and capacitor C7 charges the third voltage-dividing circuit 210 and outputs an off signal to the control module 400. Here, the off signal is the first off signal output from the switch state detection module to the control module. Figure 5 Among them, the off signal includes a first off signal and a second off signal. The switch state detection module outputs the first off signal to the control module and outputs the second off signal to the power supply control module. The off signal having the same potential as VBAT+ generated when switch 100 opens is the second off signal output from the switch state detection module to the power supply control module. The off signal output to the SWITCH_STATE terminal is the first off signal output from the switch state detection module to the control module. As needed, it can also be that the off signal is one signal, and the switch state detection module inputs this one off signal to the control module and the power supply control module. This off signal can be the off signal having the same potential as VBAT+ generated when switch 100 opens, or it can be the off signal output to the SWITCH_STATE terminal. This application does not limit this.
[0098] In an exemplary embodiment, in Figure 5 Among them, the first terminal of capacitor C7 is connected to the anode of diode D2. The cathode of diode D2 is connected to VCC_3V3. VCC_3V3 is a voltage output terminal of the voltage conversion module, and the output voltage is 3.3V.
[0099] In some embodiments, such as Figure 8 As shown, the power supply control circuit 320 includes a hardware delay shutdown circuit 321, a control shutdown circuit 322, and a power supply maintenance power supply circuit 323;
[0100] The hardware delay shutdown circuit 321 is used to control the disconnection of the first controllable switch 310 after a preset delay duration in response to the off signal;
[0101] The control shutdown circuit 322 is configured to control the disconnection of the first controllable switch 310 in response to a power-off control signal;
[0102] The power supply maintenance circuit 323 is configured to control the closing of the first controllable switch 310 in response to an on signal output when the switch 100 is closed, so that the first power supply 500 supplies power to the control module 400.
[0103] The power supply maintenance circuit 323 controls the closing of the first controllable switch 310 in response to an on signal output when the switch 100 is closed, so as to realize that the first power supply 500 supplies power to the control module 400.
[0104] In an exemplary embodiment, the first controllable switch 310 is a P-channel MOS, that is, a PMOS. The source of the first controllable switch 310 is connected to the first power supply 500, the drain of the first controllable switch 310 is connected to the control module 400, and the power control circuit 320 is connected to the gate of the first controllable switch 310. The power supply maintenance circuit 323 controls the closing of the first controllable switch 310, which may be that the power supply maintenance circuit 323 outputs a low-level signal to act on the gate of the first controllable switch 310 to realize the control of the closing of the first controllable switch 310.
[0105] In an exemplary embodiment, the power supply maintenance circuit 323 is further configured to control the closing of the first controllable switch 310 in response to a power supply maintenance enable signal when the first controllable switch 310 is closed, so that the first power supply 500 maintains power supply to the control module 400. Only when the first controllable switch 310 is closed for the first time, it is controlled to close in response to the on signal output when the switch 100 is closed. Subsequently, it is controlled to close in response to the power supply maintenance enable signal to realize that the first power supply 500 continuously supplies power to the control module 400.
[0106] In an exemplary embodiment, the power supply maintenance enable signal may be generated by the control module 400 after the first power supply 500 supplies power to the control module 400, or may be generated by the voltage conversion module after the first power supply 500 supplies power to the control module 400 through the voltage conversion module. The present application does not limit this.
[0107] In some embodiments, as Figure 9 shown, the power supply maintenance circuit 323 includes an on signal detection circuit 3231, a power supply maintenance enable circuit 3232, and a second controllable switch 3222;
[0108] The on signal detection circuit 3231 is configured to control the closing of the second controllable switch 3222 in response to an on signal output when the switch 100 is closed;
[0109] The second controllable switch 3222 is configured to control the closing of the first controllable switch 310 when closed;
[0110] A power supply maintenance enable circuit 3232 is configured to control the closing of a second controllable switch 3222 in response to a power supply maintenance enable signal when a first controllable switch 310 is closed.
[0111] An on - signal detection circuit 3231 controls the closing of the second controllable switch 3222 in response to an on - signal output when a switch 100 is closed. When the second controllable switch 3222 is closed, it controls the first controllable switch 310 to close. The power supply maintenance enable circuit 3232 controls the closing of the second controllable switch 3222 in response to a power supply maintenance enable signal when the first controllable switch 310 is closed. Only when the first controllable switch 310 is closed for the first time, it controls the second controllable switch 3222 to close in response to the on - signal output when the switch 100 is closed, and then controls the first controllable switch 310 to close. Subsequently, when the first controllable switch 310 is closed, it is in response to the power supply maintenance enable signal to control the second controllable switch 3222 to close, and then controls the first controllable switch 310 to close, so as to achieve continuous power supply from a first power supply 500 to a control module 400.
[0112] In an exemplary embodiment, Figure 9 the second controllable switch 3222 in the power supply maintenance power circuit 323, and Figure 6 the second controllable switch 3222 in the control shutdown circuit 322 are the same. Figure 9 the power supply maintenance power circuit 323 and Figure 6 the control shutdown circuit 322 can share the same second controllable switch 3222.
[0113] In an exemplary embodiment, in Figure 5When the toggle switch S1 is toggled to the 2 / 3 position, switch 100 closes. Toggling the third terminal of toggle switch S1, which is also the SYS_BAT terminal, generates an on signal. The on signal is at a high level, and the voltage of the on signal is the voltage VBAT+ of the first power supply 500. The on signal detection circuit 3231 includes resistor R10 and capacitor C6. The second controllable switch 3222 is Q3, which is an NMOS. The third terminal of toggle switch S1 is connected to the first terminal of resistor R10. The second terminal of resistor R10 is connected to the first terminal of capacitor C6. The second terminal of capacitor C6 is connected to the gate of the second controllable switch Q3. The source of the second controllable switch Q3 is grounded. The drain of the second controllable switch Q3 is connected to the gate G of the first controllable switch Q5 through resistor R6. The power supply maintenance enable circuit 3232 includes resistor R8 and diode D1. VCC_5V is a voltage output terminal of the voltage conversion module, and the output voltage is 5V, which is used to output a power supply maintenance enable signal. When the toggle switch S1 is toggled to the 2 / 3 position, switch 100 closes. Toggling the third terminal of toggle switch S1, which is also the SYS_BAT terminal, generates an on signal. The on signal is at a high level, and the voltage of the on signal is the voltage VBAT+ of the first power supply 500. Acting on resistor R10 and capacitor C6, a high level is output to the gate of the second controllable switch Q3, and the second controllable switch Q3 closes. The voltage VBAT+ of the first power supply 500 is divided by resistor R1 and resistor R6 with respect to the ground. The gate of the first controllable switch Q5 is at a low level. When the voltage between the gate and the source of the first controllable switch Q5 exceeds the threshold, the first controllable switch Q5 closes. Then, the first power supply 500 briefly powers the control module 400 through the voltage conversion module. Subsequently, VCC_5V outputs a power supply maintenance enable signal to maintain the closure of the second controllable switch Q3 and the first controllable switch Q5, achieving continuous power supply.
[0114] In some embodiments, such as Figure 10 As shown, the power management system includes a switch 100, a switch state detection module 200, a power control module 300, and a control module 400;
[0115] The switch state detection module 200 is configured to output an off signal to the control module 400 and the power control module 300 when detecting that the switch 100 is open. Among them, the off signal is used to instruct the control module 400 to end the data read / write operation;
[0116] The power control module 300 is configured to respond to the off signal and open after a preset delay duration, so that the first power supply 500 stops supplying power to the control module 400, or respond to the power-off control signal output by the control module 400 and open, so that the first power supply 500 stops supplying power to the control module 400;
[0117] The control module 400 includes a micro control unit 410 and a central processing unit 420;
[0118] The microcontroller unit 410 is configured to send an end data read / write instruction to the central processing unit 420 after receiving the off signal output by the switch status detection module 200, receive the shutdown instruction sent by the central processing unit 420 after completing the data read / write operation, and output a power-off control signal to the power control module 300 after receiving the shutdown instruction.
[0119] After the microcontroller unit 410 receives the off signal output by the switch status detection module 200, it sends an end data read / write instruction to the central processing unit 420, receives the shutdown instruction sent by the central processing unit 420 after completing the data read / write operation, and outputs a power-off control signal to the power control module 300, ensuring that the central processing unit 420 has completed the data read / write operation, achieving the completion of the data read / write operation before the power supply stops, reducing the occurrence of data loss, and solving the problem of data loss caused by directly cutting off the power supply through the switch.
[0120] In an exemplary embodiment, the microcontroller unit refers to an MCU (Microcontroller Unit), and the central processing unit refers to a CPU (Central Processing Unit).
[0121] In some embodiments, the switch 100 is configured to connect the first power supply 500 and the motor when closed, so that the first power supply 500 supplies power to the motor.
[0122] When the switch is closed, it connects the first power supply 500 and the motor, enabling the first power supply 500 to supply power to the motor in the high-voltage part, which can reduce the current carried by the switch and avoid damage to the switch due to overload.
[0123] In some embodiments, the power management system further includes a charging management circuit; the charging management circuit is configured to control the second power supply to supply power to the control module 400.
[0124] The second power supply can be a charging power supply. When the power of the first power supply is low, the second power supply can supply power to the control module 400.
[0125] In an exemplary embodiment, the second power supply and the voltage conversion module can be connected through a diode.
[0126] In some embodiments, the power management system further includes a clock power conversion circuit;
[0127] The input end of the clock power conversion circuit is connected to the first power supply 500, and the output end of the clock power conversion circuit is connected to the clock power input end of the control module 400.
[0128] In an exemplary embodiment, the clock power conversion circuit may be an LDO (Low Dropout Regulator) power conversion circuit for a real-time clock.
[0129] It is implemented to supply power to the clock of the control module 400.
[0130] Exemplary electronic device
[0131] Correspondingly, an embodiment of the present application further provides an electronic device, including the power management system provided in any of the above embodiments of the present application.
[0132] For technical details not described in detail in this embodiment, reference may be made to the specific content of the power management system provided in the above embodiments of the present application, which will not be elaborated here.
[0133] In some embodiments, the electronic device includes a sweeping robot. The electronic device may also include other types, and the present application does not limit this.
[0134] It should be noted that each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference may be made to each other.
[0135] The modules and circuits in each embodiment of the present application can be combined, divided, and deleted according to actual needs.
[0136] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the said element.
[0137] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A power management system, characterized in that: It includes a switch, a switch status detection module and a power control module; The switch state detection module is configured to output an off signal to the control module and the power control module when detecting that the switch is disconnected, wherein the off signal is used to instruct the control module to end the data reading and writing operation; The power control module is configured to respond to the shutdown signal and disconnect after a preset delay time, so that the first power supply stops supplying power to the control module.
2. The power management system according to claim 1, wherein: The power control module is further configured to disconnect in response to a power shutoff control signal output by the control module, so that the first power supply stops supplying power to the control module.
3. The power management system according to claim 2, wherein: The power control module includes a first controllable switch and a power control circuit; The first controllable switch is connected between the first power supply and the control module; The power control circuit is connected to the control end of the first controllable switch, and is used to control the first controllable switch to be disconnected after a preset delay time in response to the shutdown signal, or to control the first controllable switch to be disconnected in response to the power shutdown control signal.
4. The power management system according to claim 3, wherein: The power control circuit includes a hardware delay shutdown circuit and a control shutdown circuit; The hardware delayed shutdown circuit is configured to control the first controllable switch to be turned off after a preset delay time in response to the shutdown signal; The shutdown control circuit is used to control the first controllable switch to be disconnected in response to the power shutdown control signal.
5. The power management system according to claim 4, characterized in that: The hardware delayed shutdown circuit includes a first voltage divider circuit, a second voltage divider circuit, a first switch circuit and a first energy storage circuit; The first voltage divider circuit is configured to receive the off signal, divide the voltage of the off signal, and output a first voltage divided signal to the first energy tank circuit and the first switch circuit; wherein the first voltage divided signal is used to charge the first energy tank circuit, and the voltage of the first voltage divided signal increases during the charging process of the first energy tank circuit; The second voltage divider circuit is configured to divide the voltage of the first power supply and output a second voltage divided signal to the first switch circuit; The first switching circuit is used to receive the first voltage-divided signal and the second voltage-divided signal. After the preset delay time, the difference between the voltage of the first voltage-divided signal and the voltage of the second voltage-divided signal is equal to a preset value, the first switching circuit is turned on, and the first controllable switch is controlled to be disconnected.
6. The power management system according to claim 4, wherein: The shutdown control circuit includes a second switch circuit and a second controllable switch; The second switch circuit is configured to control the second controllable switch to be disconnected in response to a power off control signal output by the control module; The second controllable switch is used to control the first controllable switch to be disconnected when being disconnected.
7. The power management system according to claim 1, wherein: The switch state detection module includes a third voltage divider circuit and a second energy storage circuit; The third voltage-dividing circuit is configured to receive an on signal output when the switch is closed, divide the voltage of the on signal, and output a third voltage-dividing signal to the second energy tank circuit; wherein the third voltage-dividing signal is used to charge the second energy tank circuit; and reduce the voltage of the third voltage-dividing signal when the switch is detected to be open; The second energy storage circuit is used to charge the third voltage-dividing circuit and output the off signal to the control module and the power control module when detecting that the voltage of the third voltage-dividing signal decreases.
8. The power management system according to claim 4, wherein: The power control circuit also includes a power supply circuit for maintaining power supply; The power supply maintaining circuit is used to control the first controllable switch to be closed in response to the on signal output when the switch is closed, so that the first power supply supplies power to the control module.
9. The power management system according to claim 8, characterized in that: The power maintenance power supply circuit includes an open signal detection circuit, a power maintenance enabling circuit and a second controllable switch; The open signal detection circuit is configured to control the second controllable switch to close in response to the open signal output when the switch is closed; The second controllable switch is used to control the first controllable switch to be closed when closed; The power maintenance enabling circuit is configured to control the second controllable switch to be closed in response to a power maintenance enabling signal when the first controllable switch is closed.
10. The power management system according to claim 2, wherein: The power management system further includes the control module; The control module includes a micro control unit and a central processing unit; The microcontrol unit is used to send an end data read and write instruction to the central processing unit after receiving the off signal output by the switch state detection module, receive a shutdown instruction sent by the central processing unit after completing the data read and write operation, and output the power shutdown control signal to the power control module after receiving the shutdown instruction.
11. The power management system according to claim 1, wherein: The switch is used to connect the first power source and the motor when closed, so that the first power source supplies power to the motor.
12. The power management system according to claim 1, wherein: The power management system further includes a charging management circuit; The charging management circuit is used to control the second power supply to supply power to the control module.
13. The power management system according to claim 1, wherein: The power management system further includes a clock power conversion circuit; The input end of the clock power conversion circuit is connected to the first power supply, and the output end of the clock power conversion circuit is connected to the clock power input end of the control module.
14. An electronic device, characterized in that: The method comprises the power management system according to any one of claims 1 to 13.
Citation Information
Cited By
Heat dissipation control system for artificial intelligence heterogeneous reasoning computing power cluster server
CN121326125A