Power supply system and power supply method

By introducing an energy storage module and a core control module into the power supply system, comparing the energy storage power supply time with the core operating time, determining and outputting the target task voltage, the problem of the operating time of the power supply system during unexpected power outages is solved, and the timely execution of critical tasks and data protection are realized.

CN120879906APending Publication Date: 2025-10-31SUNGROW ICARBON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511030472.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-24
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

Existing power supply systems struggle to extend their effective operating time without increasing hardware costs in the event of an unexpected power outage, leading to the inability to execute critical tasks in a timely manner and potentially resulting in data loss.

Method used

By introducing an energy storage module and a core control module into the power supply system, the core control module compares the energy storage power supply time with the core working time to determine the target task to be executed, and outputs the target voltage corresponding to the target task when the power supply fails, ensuring that only the necessary voltage is output to extend the running time.

Benefits of technology

Without increasing hardware costs, the effective operating time of the power supply system is extended, ensuring the timely execution of critical tasks and preventing data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120879906A_ABST
    Figure CN120879906A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of power supply, and discloses a power supply system and a power supply method. The energy storage power supply time is compared with the core working time through the core control module, whether all tasks in the power supply system can be executed or not can be judged, the target task needing to be executed is determined according to the comparison result, and then the target task is executed through the energy storage module under the condition that the power failure of the power supply source is detected. And outputting the target voltage corresponding to the target task, so that only the target voltage corresponding to the target task can be output under the condition that the power supply is accidentally powered off, and the voltage corresponding to other tasks does not need to be output, thereby prolonging the effective operation duration of the power supply system while not increasing the hardware cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power supply technology, and in particular to a power supply system and power supply method. Background Technology

[0002] A stable and reliable power supply is crucial for the robust operation of a power supply system. When the power grid suddenly fails or other power sources malfunction or are damaged, subsequent circuits may experience abnormal power outages. This can prevent critical tasks from being executed in time, leading to data loss. Currently, to preserve critical data and maintain system status during unexpected power outages, traditional methods involve increasing the capacity of energy storage capacitors to extend power supply duration. However, this increases hardware cost and size. Therefore, extending the effective operating time of the power supply system without increasing hardware costs during unexpected power outages has become a pressing issue. Summary of the Invention

[0003] The main purpose of this application is to provide a power supply system and power supply method, which aims to solve the technical problem of how to extend the effective operating time of the power supply system without increasing hardware costs.

[0004] To achieve the above objectives, this application provides a power supply system, which includes: an energy storage module and a core control module; the power supply, the energy storage module, and the core control module are connected in sequence.

[0005] The core control module is used to compare the energy storage power supply time of the energy storage module with the core working time, and determine the target task to be executed based on the comparison result. The core working time is the time required to complete the first type of task in the power supply system under the condition of minimum energy consumption. The first type of task is the task that must be executed when the power supply is detected to be out of power.

[0006] The energy storage module is used to output the target voltage corresponding to the target task when the power supply is detected to be out of power.

[0007] Optionally, the energy storage module includes a charging module and a power supply module; the power supply, the charging module, the power supply module and the core control module are connected in sequence, and the power supply is also connected to the power supply module;

[0008] The core control module is also used to compare the energy storage and power supply time of the charging module with the core working time, and determine the target task to be executed based on the comparison result.

[0009] The power supply module is used to convert the output voltage of the charging module and output the target voltage corresponding to the target task when the power supply is detected to be out of power.

[0010] Optionally, the power supply module includes: a power failure detection unit and a backup power supply unit;

[0011] The power failure detection unit is connected to the power supply and the backup power supply unit respectively. The backup power supply unit is also connected to the charging module and the core control module. The charging module is also connected to the core control module.

[0012] The power failure detection unit is used to send a first enable signal to the backup power supply unit when the power supply power failure is detected.

[0013] The backup power supply unit is used to convert the output voltage of the charging module and output the target voltage corresponding to the target task when the first enable signal is valid.

[0014] Optionally, the backup power supply unit includes multiple voltage converters, with the main enable terminal of each voltage converter connected to the power failure detection unit and the secondary enable terminal connected to the core control module.

[0015] The core control module is also used to send a second enable signal to the secondary enable terminal of the voltage converter according to the target voltage corresponding to the target task.

[0016] The voltage converter is used to convert the output voltage of the charging module and output the target voltage corresponding to the target task when the first enable signal received by the main enable terminal is valid and the second enable signal received by the secondary enable terminal is valid.

[0017] Optionally, the core control module is also used to determine the total energy of the charging module;

[0018] The core control module is also used to acquire the load operating current and load operating voltage provided to each load when performing the target task.

[0019] The core control module is also used to determine the energy storage power supply time of the charging module based on the total energy, the load operating current, and the load operating voltage.

[0020] Optionally, the core control module is further configured to acquire the capacitor capacity and initial voltage corresponding to the charging module.

[0021] The core control module is also used to obtain the minimum operating voltage of the backup power supply unit;

[0022] The core control module is also used to calculate the total energy of the charging module based on the capacitor capacity, the initial voltage, and the minimum operating voltage.

[0023] Optionally, the core control module is further configured to, when the comparison result indicates that the energy storage power supply time is greater than the core working time, designate the first type of task as the target task to be executed.

[0024] The core control module is further configured to shut down the second type of task and the third type of task when the comparison result is that the energy storage power supply time is less than or equal to the core working time. The second type of task is the task selected to be executed when the power supply is detected to be out of power, and the third type of task is the task prohibited from being executed when the power supply is detected to be out of power.

[0025] The core control module is also used to return to the step of determining the energy storage power supply time of the charging module and obtain a new comparison result;

[0026] The core control module is also used to determine the target task to be executed based on the new comparison result.

[0027] Optionally, the core control module is further configured to, when the new comparison result indicates that the new energy storage power supply time is greater than the core working time, designate the first type of task as the target task to be executed.

[0028] The core control module is also used to output a capacitor capacity adjustment command when the new comparison result indicates that the new energy storage power supply time is less than or equal to the core operating time.

[0029] Optionally, the core control module is further configured to determine the core operating frequency corresponding to the core operating time, and adjust the operating frequency to the core operating frequency;

[0030] The core control module is also used to compare the energy storage power supply time of the energy storage module with the core operating time after the operating frequency is adjusted to the core operating frequency, and determine the target task to be executed based on the comparison result.

[0031] Furthermore, to achieve the above objectives, this application also provides a power supply method, which is applied to the power supply system described above, and the power supply method includes:

[0032] The core control module compares the energy storage power supply time of the energy storage module with the core working time, and determines the target task to be executed based on the comparison result. The core working time is the time required to complete the first type of task in the power supply system under the condition of minimum energy consumption. The first type of task is the task that must be executed when the power supply is detected to be out of power.

[0033] When the energy storage module detects a power outage, it outputs the target voltage corresponding to the target task.

[0034] In this application, the power supply system includes an energy storage module and a core control module; the power supply, energy storage module, and core control module are connected sequentially. This application uses the core control module to compare the energy storage power supply time of the energy storage module with the core operating time, and determines the target task to be executed based on the comparison result. The core operating time is the time required to complete the first type of task in the power supply system with minimal energy consumption. The first type of task is the task that must be executed when a power supply failure is detected. Then, the energy storage module outputs the target voltage corresponding to the target task when a power supply failure is detected. This application first compares the energy storage power supply time with the core operating time through the core control module to determine whether all tasks in the power supply system can be completed, and determines the target task to be executed based on the comparison result. Then, the energy storage module outputs the target voltage corresponding to the target task when a power supply failure is detected. This allows the system to output only the target voltage corresponding to the target task in the event of an unexpected power outage, without needing to output voltages corresponding to other tasks, thereby extending the effective operating time of the power supply system without increasing hardware costs. Attached Figure Description

[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is a structural block diagram of the first embodiment of the power supply system of this application;

[0038] Figure 2 This is a structural block diagram of the second embodiment of the power supply system of this application;

[0039] Figure 3This is a structural block diagram of the third embodiment of the power supply system of this application;

[0040] Figure 4 This is a schematic diagram showing the current and voltage sampling of each load in an embodiment of the power supply system of this application;

[0041] Figure 5 This is a flowchart illustrating the first embodiment of the power supply method of this application;

[0042] Figure 6 This is a schematic diagram of the overall process of one embodiment of the power supply method of this application.

[0043] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings.

[0044] The following are the reference numerals: 10, Energy Storage Module; 20, Core Control Module; 00, Power Supply; 101, Charging Module; 102, Power Supply Module; 1021, Power Failure Detection Unit; 1022, Backup Power Supply Unit. Detailed Implementation

[0045] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0046] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0047] This application provides a power supply system, referring to... Figure 1 , Figure 1 This is a structural block diagram of the first embodiment of the power supply system of this application.

[0048] The power supply system includes: an energy storage module 10 and a core control module 20; the power supply 00, the energy storage module 10 and the core control module 20 are connected in sequence;

[0049] Understandably, the power supply 00 can be the power grid, AC power, DC power, etc. The energy storage module 10 can be an RC charging circuit and a power failure detection circuit. When the voltage input from the power supply to the energy storage module 10 is normal, it can charge and store energy in the energy storage capacitor of the energy storage module 10. When the power supply 00 is de-energized, the energy storage capacitor in the energy storage module 10 discharges to the core control module 20. The selection of the energy storage capacitor in the energy storage module 10 should ensure that, when the capacitor is fully charged, the stored energy is sufficient to promptly store critical tasks within the power supply system, even when other peripheral functions and non-essential calculation functions are disabled. Critical tasks can include data such as safety status records and power failure protection for critical peripherals.

[0050] It should be understood that the energy storage module 10 can be used to detect whether the power supply 00 has lost power, and can also be used to output voltage to power the load of the target task to be performed in the event of a power supply failure.

[0051] In a specific implementation, the core control module 20 may include a central processing unit (CPU). The CPU, as the core of the power supply system's computation and control, is the final execution unit for information processing and program execution. It may also include tasks within the power supply system, such as saving critical data and storing system states.

[0052] The core control module 20 is used to compare the energy storage power supply time of the energy storage module 10 with the core working time, and determine the target task to be executed based on the comparison result. The core working time is the time required to complete the first type of task in the power supply system under the condition of minimum energy consumption. The first type of task is the task that must be executed when the power supply 00 is detected to be out of power.

[0053] Understandably, the CPU in the core control module 20 can calculate the energy storage power supply time of the energy storage module 10. The energy storage power supply time can be the power supply maintenance time that can be used to execute tasks. The data transmission and storage rates of the CPU in the core control module 20 are different at different frequencies, the time taken is different, and the energy consumption is also different. In this embodiment, it is possible to test in advance at which core operating frequency the CPU should operate at to complete the first type of task with the least energy consumption when the power supply is just lost. The first type of task is the task that must be executed when the power supply is detected to be lost, which may include tasks such as critical data transmission or system state storage. The time taken for this process is recorded as the core working time.

[0054] In the specific implementation, the core control module 20 is used to compare the energy storage power supply time with the core working time, and determine the target task to be executed based on the comparison result. If the energy storage power supply time is longer than the core working time, it indicates that the energy storage power supply time is long enough, and all tasks in the power supply system can be used as target tasks. If the energy storage power supply time is shorter than the core working time, it indicates that the energy storage power supply time may not be able to maintain the completion of all tasks, and the first type of task can be used as the target task.

[0055] The energy storage module 10 is used to output the target voltage corresponding to the target task when the power supply 00 is detected to be out of power.

[0056] It should be understood that the energy storage module 10 can output the target voltage corresponding to the target task when it detects that the power supply 00 has lost power, that is, when the output voltage of the power supply 00 is less than the preset voltage. The target voltage can be the voltage required to perform the target task.

[0057] In this embodiment, the power supply system includes an energy storage module and a core control module; the power supply, energy storage module, and core control module are connected sequentially. This embodiment uses the core control module to compare the energy storage power supply time of the energy storage module with the core operating time, and determines the target task to be executed based on the comparison result. The core operating time is the time required to complete the first type of task in the power supply system with minimal energy consumption. The first type of task is the task that must be executed when a power supply failure is detected. Then, the energy storage module outputs the target voltage corresponding to the target task when a power supply failure is detected. This embodiment first compares the energy storage power supply time with the core operating time through the core control module to determine whether all tasks in the power supply system can be completed, and determines the target task to be executed based on the comparison result. Then, the energy storage module outputs the target voltage corresponding to the target task when a power supply failure is detected. This allows the system to output only the target voltage corresponding to the target task in the event of an unexpected power outage, without needing to output voltages corresponding to other tasks, thereby extending the effective operating time of the power supply system without increasing hardware costs.

[0058] refer to Figure 2 , Figure 2 This is a structural block diagram of the second embodiment of the power supply system of this application.

[0059] Based on the first embodiment described above, in this embodiment, the energy storage module 10 includes a charging module 101 and a power supply module 102; the power supply 00, the charging module 101, the power supply module 102 and the core control module 20 are connected in sequence, and the power supply 00 is also connected to the power supply module 102.

[0060] Understandably, the charging module 101 includes a charging circuit and an energy storage capacitor.

[0061] The core control module 20 is also used to compare the energy storage power supply time of the charging module 101 with the core working time, and determine the target task to be executed based on the comparison result.

[0062] The power supply module 102 is used to convert the output voltage of the charging module 101 and output the target voltage corresponding to the target task when the power supply 00 is detected to be de-energized.

[0063] It should be understood that the power supply module 102 can be a power failure detection circuit and a voltage converter. The power failure detection circuit can be used to detect whether the power supply 00 is powered off. When the power supply 00 is powered off, the voltage converter performs voltage conversion on the output voltage of the charging module 101 and outputs the target voltage corresponding to the target task, so that the target task can be executed based on the target voltage.

[0064] In this embodiment, the energy storage module includes a charging module and a power supply module. The power supply, charging module, power supply module, and core control module are connected sequentially, with the power supply also connected to the power supply module. In this embodiment, the core control module compares the energy storage and power supply time of the charging module with the core operating time, and determines the target task to be executed based on the comparison result. Then, when the power supply module detects a power outage, it converts the output voltage of the charging module to output the target voltage corresponding to the target task. This embodiment can convert the output voltage of the charging module in the event of an unexpected power outage, only converting the voltage to the target voltage corresponding to the target task, without needing to output voltages corresponding to other tasks, thereby extending the effective operating time of the power supply system without increasing hardware costs.

[0065] refer to Figure 3 , Figure 3 This is a structural block diagram of the third embodiment of the power supply system of this application.

[0066] Based on the above embodiments, in this embodiment, the power supply module 102 includes: a power failure detection unit 1021 and a backup power supply unit 1022.

[0067] The power failure detection unit 1021 is connected to the power supply 00 and the backup power supply unit 1022 respectively. The backup power supply unit 1022 is also connected to the charging module 101 and the core control module 20. The charging module 101 is also connected to the core control module 20.

[0068] The power failure detection unit 1021 is used to send a first enable signal to the backup power supply unit 1022 when the power supply 00 is detected to have lost power.

[0069] It should be understood that the power failure detection unit 1021 may include a voltage comparator, which indicates that the power supply 00 has lost power when the voltage output by the power supply 00 is lower than a preset voltage, and can send a valid first enable signal to the enable terminal of the backup power supply unit 1022.

[0070] The backup power supply unit 1022 is used to perform voltage conversion on the output voltage of the charging module 101 when the first enable signal is valid, and output the target voltage corresponding to the target task.

[0071] Understandably, the backup power supply unit 1022 may include a voltage converter that, when the enable terminal receives a valid first enable signal, converts the output voltage of the charging module 101 into a target voltage corresponding to the target task, so as to supply power to the target load when performing the target task through the target voltage.

[0072] Furthermore, in this embodiment, the backup power supply unit 1022 includes multiple voltage converters, the main enable terminal of each voltage converter is connected to the power failure detection unit 1021, and the secondary enable terminal is connected to the core control module 20.

[0073] It should be understood that the backup power supply unit 1022 in this embodiment may include multiple voltage converters. Each voltage converter may include a main enable terminal and a secondary enable terminal. The main enable terminal is used to receive the enable signal of the power failure detection unit 1021, and the secondary enable terminal is used to receive the enable signal of the core control module 20.

[0074] The core control module 20 is also used to send a second enable signal to the secondary enable terminal of the voltage converter according to the target voltage corresponding to the target task.

[0075] Understandably, the CPU in the core control module 20 can send a second enable signal to the secondary enable terminal of the voltage converter according to the target voltage. Specifically, the output voltage of each voltage converter can be a fixed value, such as 3.3V, 5V, 12V, etc. If the target voltage is 3.3V, a valid second enable signal can be sent to the secondary enable terminal of the voltage converter with an output voltage of 3.3V.

[0076] The voltage converter is used to convert the output voltage of the charging module and output the target voltage corresponding to the target task when the first enable signal received by the main enable terminal is valid and the second enable signal received by the secondary enable terminal is valid.

[0077] In a specific implementation, if the first enable signal received by the main enable terminal of the voltage converter is valid, it means that the power failure detection unit 1021 has detected that the power supply 00 has failed. At the same time, if the second enable signal received by the secondary enable terminal of the voltage converter is valid, the voltage converter corresponding to the valid second enable signal can be run to output the target voltage corresponding to the target task.

[0078] In this embodiment, the power supply module includes a power failure detection unit and a backup power supply unit. When the power failure detection unit detects a power failure, it sends a first enable signal to the backup power supply unit. Then, when the first enable signal is valid, the backup power supply unit performs voltage conversion on the output voltage of the charging module to output the target voltage corresponding to the target task. In this embodiment, the backup power supply unit performs voltage conversion on the output voltage of the charging module when the first enable signal is valid, outputting the target voltage corresponding to the target task. This allows for timely and effective voltage conversion of the charging module's output voltage to obtain the target voltage corresponding to the target task even when the power supply fails.

[0079] Based on the above embodiments, a fourth embodiment of the power supply system of this application is proposed. In order to predict the energy storage power supply time of the charging module 101, in this embodiment, the core control module 20 is further configured to determine the total energy of the charging module 101; the core control module 20 is further configured to acquire the load operating current and load operating voltage provided to each load when performing the target task; the core control module 20 is further configured to determine the energy storage power supply time of the charging module 101 based on the total energy, the load operating current and the load operating voltage.

[0080] It should be understood that the total energy of the capacitor charging energy storage module 10 can be the energy available when the power supply 00 just lost power. (Refer to...) Figure 4 , Figure 4 This is a schematic diagram showing the current and voltage sampling of each load in an embodiment of the power supply system of this application, as shown below. Figure 4 As shown, each load can be the load corresponding to each target task when performing the target task, i.e., load 1, load 2...load N. The operating current and voltage of each load under normal power supply conditions of the backup power supply unit 1022 can be collected in advance. The load operating current can be measured by current sensors I1, I2...I... N The load operating voltage can be the voltage of the output voltage V1 branch, the output voltage V1 branch, ... the output voltage VN branch.

[0081] In practical implementation, the energy storage power supply time can be determined based on the total energy, load operating current, and load operating voltage. The calculation formula is: E total = (V1I1 + V2I2 + ... + VnIn)T, where T represents the energy storage and power supply time, E total V1, V2...Vn represent the total energy, V1, V2...Vn represent the load operating voltage of each load, and I1, I2...In represent the load operating current of each load.

[0082] Furthermore, in order to accurately calculate the total energy of the charging module 101, in this embodiment, the core control module 20 is also used to obtain the capacitor capacity and initial voltage corresponding to the capacitor charging energy storage module 10; the core control module 30 is also used to obtain the minimum operating voltage of the backup power supply unit 202; the core control module 30 is also used to calculate the total energy of the charging module 101 based on the capacitor capacity, the initial voltage and the minimum operating voltage.

[0083] Understandably, the initial voltage refers to the voltage of the charging module 101 when the power supply 00 has just lost power, and the minimum operating voltage refers to the minimum voltage required for the backup power supply unit 1022 to be in working state, which can be the minimum operating voltage of each component in the backup power supply unit 1022 when it is in normal working state.

[0084] In practical implementation, the total energy of the charging module 101 can be calculated based on the capacitance of the energy storage capacitor, the initial voltage, and the minimum operating voltage. The calculation formula is as follows: In the formula, E total V represents the total energy of charging module 101, C represents the capacitance of the energy storage capacitor, and V represents the total energy of the charging module 101. initial V represents the initial voltage. cutoff This indicates the minimum operating voltage.

[0085] Furthermore, in order to effectively select target tasks, in this embodiment, the core control module 20 is further configured to, when the comparison result shows that the energy storage power supply time is greater than the core working time, select the first type of task as the target task to be executed; the core control module 20 is further configured to, when the comparison result shows that the energy storage power supply time is less than or equal to the core working time, shut down the second type of task and the third type of task, wherein the second type of task is the task selected for execution when the power supply is detected to be out of service, and the third type of task is the task prohibited from execution when the power supply is detected to be out of service; the core control module 20 is further configured to, return to the step of determining the energy storage power supply time of the charging module 101, and obtain a new comparison result; the core control module 32 is further configured to, based on the new comparison result, determine the target task to be executed.

[0086] Understandably, when the energy storage power supply time is longer than the core operating time, the first type of task in the power supply system can be used as the target task. This first type of task is one that must be executed immediately upon detecting a power failure (e.g., when power supply 00 has just lost power). It could include tasks such as saving critical data or storing system states. Examples include core data saving (e.g., writing to Electrically Erasable Programmable Read-Only Memory (EEPROM) / Ferroelectric Random Access Memory (FRAM), safety status recording (e.g., fault code storage), and power failure protection for critical peripherals (e.g., motor emergency stop, relay disconnection). Furthermore, if the power supply maintenance time is longer than the core operating time, indicating a sufficiently long maintenance time, the second and / or third types of tasks can also be used as target tasks. The second type of task can be one that is selectively executed upon detecting a power failure (e.g., communication interruption handling, peripheral shutdown). The third type of task can be one that is prohibited from execution upon detecting a power failure (primarily non-essential computational tasks, such as background data computation and non-real-time communication (data synchronization)).

[0087] It should be understood that when the energy storage power supply time is less than or equal to the core working time, the second and third types of tasks can be shut down, that is, the second and third types of tasks are not executed. Then, the process returns to the above steps of calculating the energy storage power supply time of the charging module 101 to obtain a new energy storage power supply time. Since the number of tasks may decrease, the energy storage power supply time may increase. The new energy storage power supply time is then compared with the core working time to obtain a new comparison result.

[0088] Furthermore, in this embodiment, the core control module 20 is also used to select the first type of task as the target task to be executed when the new comparison result is that the new energy storage power supply time is greater than the core working time; the core control module 20 is also used to output a capacitor capacity adjustment command when the new comparison result is that the new energy storage power supply time is less than or equal to the core working time.

[0089] Understandably, if the new energy storage power supply time is greater than the core working time, the first type of task can be taken as the target task; if the new energy storage power supply time is less than or equal to the core working time, a capacitor capacity adjustment command can be output, that is, the capacitor capacity of the energy storage capacitor corresponding to the charging module 101 can be adjusted, which can increase the capacitor capacity of the energy storage capacitor corresponding to the charging module 101 until the recalculated energy storage power supply time is greater than the core working time.

[0090] Furthermore, in this embodiment, the core control module 20 is also used to determine the core operating frequency corresponding to the core operating time, and adjust the operating frequency to the core operating frequency; the core control module 20 is also used to compare the energy storage power supply time of the energy storage module with the core operating time after the operating frequency is adjusted to the core operating frequency, and determine the target task to be executed based on the comparison result.

[0091] It should be understood that the CPU consumes the least energy when performing critical tasks while operating at its core operating frequency. Therefore, in this embodiment, the CPU operating frequency can be adjusted to the core operating frequency when the power supply 00 is just de-energized. Then, the target task to be executed is determined based on the comparison between the energy storage power supply time and the core operating time, thereby reducing the CPU's energy consumption.

[0092] This embodiment determines the core operating frequency corresponding to the core operating time through the core control module, and adjusts the operating frequency to the core operating frequency. After adjusting the operating frequency to the core operating frequency, the energy storage power supply time of the energy storage module is compared with the core operating time, and the target task to be executed is determined based on the comparison result. This embodiment adjusts the CPU operating frequency to the core operating frequency with the lowest energy consumption, thereby reducing the CPU's energy consumption when executing the target task.

[0093] refer to Figure 5 , Figure 5 This is a flowchart illustrating the first embodiment of the power supply method of this application.

[0094] In this embodiment, the power supply method includes:

[0095] Step S10: The core control module compares the energy storage power supply time of the energy storage module with the core working time, and determines the target task to be executed based on the comparison result. The core working time is the time required to complete the first type of task in the power supply system under the condition of minimum energy consumption. The first type of task is the task that must be executed when the power supply is detected to be out of power.

[0096] Understandably, the CPU in the core control module 20 can calculate the energy storage power supply time of the energy storage module 10. The energy storage power supply time can be the power supply maintenance time that can be used to execute tasks. The data transmission and storage rates of the CPU in the core control module 20 are different at different frequencies, the time taken is different, and the energy consumption is also different. In this embodiment, it is possible to test in advance at which core operating frequency the CPU should operate at to complete the first type of task with the least energy consumption when the power supply is just lost. The first type of task is the task that must be executed when the power supply is detected to be lost, which may include tasks such as critical data transmission or system state storage. The time taken for this process is recorded as the core working time.

[0097] In the specific implementation, the core control module 20 is used to compare the energy storage power supply time with the core working time, and determine the target task to be executed based on the comparison result. If the energy storage power supply time is longer than the core working time, it indicates that the energy storage power supply time is long enough, and all tasks in the power supply system can be used as target tasks. If the energy storage power supply time is shorter than the core working time, it indicates that the energy storage power supply time may not be able to maintain the completion of all tasks, and the first type of task can be used as the target task.

[0098] Step S20: When the energy storage module detects a power failure, it outputs the target voltage corresponding to the target task.

[0099] It should be understood that the energy storage module 10 can output the target voltage corresponding to the target task when it detects that the power supply 00 has lost power, that is, when the output voltage of the power supply 00 is less than the preset voltage. The target voltage can be the voltage required to perform the target task.

[0100] refer to Figure 6 , Figure 6 This is a schematic diagram of the overall process of an embodiment of the power supply method of this application, as shown below. Figure 5 As shown, after the power supply system is operating stably, if the power supply fails, the backup power supply unit can be activated, and the CPU frequency can be adjusted to the core control frequency. Then, the energy storage time T of the backup power supply unit is calculated. If the power supply duration T > the core working time t1, the first type of task can be executed, and the first type of task is taken as the target to be executed. If the energy storage time is sufficient, the second type of task and the third type of task can be selected to be executed. If the energy storage time T ≤ the core working time t1, the second type of task and the third type of task can be shut down, and then the energy storage time T is re-predicted. If the new energy storage time T > the core working time t1, the first type of task can be executed, and the first type of task is taken as the target task. If the new power supply duration T ≤ the core working time t1, the capacitance of the energy storage capacitor corresponding to the charging module can be adjusted.

[0101] This embodiment compares the energy storage power supply time of the energy storage module with the core operating time through the core control module, and determines the target task to be executed based on the comparison result. The core operating time is the time required to complete the first type of task in the power supply system with minimal energy consumption. The first type of task is the task that must be executed when a power failure is detected. Then, the energy storage module outputs the target voltage corresponding to the target task when a power failure is detected. This embodiment first compares the energy storage power supply time with the core operating time through the core control module to determine whether all tasks in the power supply system can be completed, and determines the target task to be executed based on the comparison result. Then, the energy storage module outputs the target voltage corresponding to the target task when a power failure is detected. This allows the system to output only the target voltage corresponding to the target task in the event of an unexpected power outage, without needing to output voltages corresponding to other tasks, thereby extending the effective operating time of the power supply system without increasing hardware costs.

[0102] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. All equivalent structural transformations made under the technical concept of this application and using the content of this application specification and drawings, or direct / indirect applications in other related technical fields, are included in the scope of protection of this application.

Claims

1. A power supply system, characterized in that, The power supply system includes an energy storage module and a core control module; the power supply, the energy storage module, and the core control module are connected in sequence. The core control module is used to compare the energy storage power supply time of the energy storage module with the core working time, and determine the target task to be executed based on the comparison result. The core working time is the time required to complete the first type of task in the power supply system under the condition of minimum energy consumption. The first type of task is the task that must be executed when the power supply is detected to be out of power. The energy storage module is used to output the target voltage corresponding to the target task when the power supply is detected to be out of power.

2. The power supply system as described in claim 1, characterized in that, The energy storage module includes a charging module and a power supply module; the power supply, the charging module, the power supply module, and the core control module are connected in sequence, and the power supply is also connected to the power supply module; The core control module is also used to compare the energy storage and power supply time of the charging module with the core working time, and determine the target task to be executed based on the comparison result. The power supply module is used to convert the output voltage of the charging module and output the target voltage corresponding to the target task when the power supply is detected to be out of power.

3. The power supply system as described in claim 2, characterized in that, The power supply module includes: a power failure detection unit and a backup power supply unit; The power failure detection unit is connected to the power supply and the backup power supply unit respectively. The backup power supply unit is also connected to the charging module and the core control module. The charging module is also connected to the core control module. The power failure detection unit is used to send a first enable signal to the backup power supply unit when the power supply power failure is detected. The backup power supply unit is used to convert the output voltage of the charging module and output the target voltage corresponding to the target task when the first enable signal is valid.

4. The power supply system as described in claim 3, characterized in that, The backup power supply unit includes multiple voltage converters. The main enable terminal of each voltage converter is connected to the power failure detection unit, and the secondary enable terminal is connected to the core control module. The core control module is also used to send a second enable signal to the secondary enable terminal of the voltage converter according to the target voltage corresponding to the target task. The voltage converter is used to convert the output voltage of the charging module and output the target voltage corresponding to the target task when the first enable signal received by the main enable terminal is valid and the second enable signal received by the secondary enable terminal is valid.

5. The power supply system as described in claim 4, characterized in that, The core control module is also used to determine the total energy of the charging module; The core control module is also used to acquire the load operating current and load operating voltage provided to each load when performing the target task. The core control module is also used to determine the energy storage power supply time of the charging module based on the total energy, the load operating current, and the load operating voltage.

6. The power supply system as described in claim 5, characterized in that, The core control module is also used to obtain the capacitor capacity and initial voltage corresponding to the charging module; The core control module is also used to obtain the minimum operating voltage of the backup power supply unit; The core control module is also used to calculate the total energy of the charging module based on the capacitor capacity, the initial voltage, and the minimum operating voltage.

7. The power supply system as described in claim 5, characterized in that, The core control module is also used to select the first type of task as the target task to be executed when the comparison result shows that the energy storage power supply time is greater than the core working time. The core control module is further configured to shut down the second type of task and the third type of task when the comparison result is that the energy storage power supply time is less than or equal to the core working time. The second type of task is the task selected to be executed when the power supply is detected to be out of power, and the third type of task is the task prohibited from being executed when the power supply is detected to be out of power. The core control module is also used to return to the step of determining the energy storage power supply time of the charging module and obtain a new comparison result; The core control module is also used to determine the target task to be executed based on the new comparison result.

8. The power supply system as described in claim 7, characterized in that, The core control module is also used to, when the new comparison result is that the new energy storage power supply time is greater than the core working time, take the first type of task as the target task to be executed. The core control module is also used to output a capacitor capacity adjustment command when the new comparison result indicates that the new energy storage power supply time is less than or equal to the core operating time.

9. The power supply system as described in any one of claims 1 to 8, characterized in that, The core control module is also used to determine the core operating frequency corresponding to the core operating time, and adjust the operating frequency to the core operating frequency. The core control module is also used to compare the energy storage power supply time of the energy storage module with the core operating time after the operating frequency is adjusted to the core operating frequency, and determine the target task to be executed based on the comparison result.

10. A power supply method, applied to the power supply system according to any one of claims 1 to 9, characterized in that, The power supply method includes: The core control module compares the energy storage power supply time of the energy storage module with the core working time, and determines the target task to be executed based on the comparison result. The core working time is the time required to complete the first type of task in the power supply system under the condition of minimum energy consumption. The first type of task is the task that must be executed when the power supply is detected to be out of power. When the energy storage module detects a power outage, it outputs the target voltage corresponding to the target task.