Power supply system and method, electronic device, and readable storage medium
By introducing backup power detection modules and control modules into the power supply system, the leakage parameters of the backup power module are detected in real time, and the detection lag of backup power modules is solved, and the reliability and timeliness of leakage detection are realized. While protecting backup power modules, the reliability of data storage is improved.
Patent Information
- Application Number
- CN202510838901.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2045-06-23
AI Technical Summary
In the prior art, leakage detection of backup electric modules is prone to damage the module and has a hysteresis, resulting in untimely detection of leakage abnormalities, affecting data reliability.
The power backup detection module and control module are introduced in the power supply system to detect the leakage parameters of the backup power module in real time, and evaluate its status through the control module to achieve timely judgment and compensation of leakage abnormalities.
It reduces the damage to the backup electric module by leakage detection, improves the timeliness of leakage abnormality detection, and enhances the reliability of leakage detection.
Smart Images

Figure CN120353330B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a power supply system, a power supply method, an electronic device, and a computer-readable storage medium. Background Art
[0002] Electronic devices such as servers, SSDs (Solid State Drives), and switches are subject to the risk of unexpected power outages. To ensure data reliability, backup power modules, such as backup capacitors, are often added to these devices as backup power sources.
[0003] At the same time, the reliability of the backup power supply also needs to be verified. To this end, the backup power module can be discharged to a set low voltage value and then charged to a set high voltage value. The charge and discharge time can be used to assess whether the backup power module is abnormal. However, such large-scale charge and discharge can easily cause irreversible damage to the backup power module. For this reason, the detection cycle is usually set to at least one month, which can easily lead to lags in the detection of leakage anomalies and the risk of failure to reliably detect leakage anomalies within the detection cycle. Summary of the Invention
[0004] The present application provides a power supply system, a power supply method, an electronic device and a computer-readable storage medium to at least solve the problem in the related art that leakage detection damages the standby power module and has hysteresis.
[0005] The present application provides a power supply system, which includes: a backup power module, a backup power detection module and a control module; the backup power module is used to charge the backup power module and the electronic device when the device power supply of the electronic device is working normally, and to perform leakage compensation on the backup power module; when the device power supply is working abnormally, the backup power module outputs power supply energy as backup power to maintain the operation of the electronic device; the backup power detection module is connected to the backup power module, and is used to perform leakage detection on the backup power module to obtain current leakage parameters when the backup power module is provided in the electronic device and the device power supply performs leakage compensation on it; the control module is connected to the backup power module and the backup power detection module, and is used to obtain leakage parameters to evaluate whether the leakage state of the backup power module is in an abnormal state.
[0006] The present application also provides a power supply method, which includes: obtaining input power from a device power supply and using it as an operating power supply for the electronic device; detecting whether the device power supply is working normally; and in response to abnormal operation of the device power supply, scheduling the power supply system in the above embodiment to switch to a backup power supply state, and controlling it to output backup power as an operating power supply for the electronic device.
[0007] The present application also provides an electronic device, which includes: a device body, a power supply system as in the above embodiment, a memory and a processor; the power supply system is arranged in the device body; the memory is used to store computer programs; and the processor is used to implement the steps of the above power supply method when executing the computer program.
[0008] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned power supply method are implemented.
[0009] Through this application, by adding a backup power detection module and a control module for detecting and evaluating the leakage status of the backup power module, the backup power detection module detects the current leakage parameters of the backup power module, and the control module promptly evaluates whether the leakage status of the backup power module is abnormal. Therefore, the technical problem of leakage detection damaging the backup power module and having a hysteresis effect can be solved, achieving the technical effect of reducing the damage to the backup power module caused by leakage detection while improving the timeliness of leakage anomaly detection, thereby improving the reliability of leakage detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0011] Figure 1 This is a schematic structural diagram of an embodiment of an electronic device of the present application;
[0012] Figure 2 This is a schematic structural diagram of an embodiment of the power supply system of the present application;
[0013] Figure 3 This is a structural diagram of another embodiment of the electronic device of the present application;
[0014] Figure 4 This is a structural diagram of another embodiment of the power supply system of the present application;
[0015] Figure 5 This is a flow chart of an embodiment of the power supply method of the present application;
[0016] Figure 6 This is a schematic diagram of electrical parameter waveforms of an embodiment of the second compensation mode of the present application;
[0017] Figure 7 This is a flow chart of another embodiment of the power supply method of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0019] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0020] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0021] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the power supply method depends, the specific application environment architecture or specific hardware architecture is described herein.
[0022] An embodiment of the present application provides an electronic device, and a power supply device is described in detail below in conjunction with the power supply principle of the electronic device.
[0023] See also Figure 1 , Figure 1 This is a structural diagram of an embodiment of an electronic device of the present application.
[0024] In one embodiment, the electronic device may include a device body 10 , a power supply system 20 , a memory, and a processor.
[0025] The device body 10 is a collection of basic components that realize the functions of the electronic device. It may include a device power supply, a shell, a CPU (Central Processing Unit), a heat dissipation device, a GPU (Graphics Processing Unit) module, and a storage module such as a RAID (Redundant Arrays of Independent Disks).
[0026] The device power supply is used to provide power to the server to maintain server operation. For example, the device power supply may include a PSU (Power Supply Unit), which is connected to an external power source to convert the standard AC power provided by the external power source into the low-voltage, stable DC power required for server operation, and transmit the converted DC power to the device body 10, such as a baseboard management controller, for use. And / or, the device power supply may include a rechargeable battery that can power the device body 10 to assist in powering the server, ensuring the stability and risk resistance of the server power supply, thereby improving the operational reliability of the server.
[0027] The server's casing serves as the foundational carrier, supporting and protecting its components. The CPU, the computing and control core of a computer system, is the ultimate execution unit for information processing and program execution. When server components such as the CPU and GPU operate, they typically generate heat, and heat sinks are used to dissipate heat within the electronic device. The GPU in a GPU module, also known as a display core, display chip, or video processor, is a coprocessor used to process images and perform graphics operations.
[0028] The power supply system 20 is provided within the device body 10. As the name implies, the power supply system 20 also provides power to electronic devices. Therefore, in this embodiment, the power supply system 20 can effectively serve as a backup power source for the electronic devices. If an electronic device experiences a power failure, posing a risk of power supply problems affecting its operational reliability, the power supply system 20 can take over powering the electronic device, ensuring that the electronic device remains powered and operates relatively stably.
[0029] The memory is used to store computer programs.
[0030] The processor is used to implement the steps of the power supply method when executing the computer program. The power supply method will be described in detail later and will not be described here.
[0031] As explained above, the electronic device may be a server, an SSD, a switch, etc.
[0032] Among them, a server is an IT (Information Technology) device or software system that specifically provides computing power, storage resources or application services in a network environment.
[0033] Generally speaking, servers perform functions such as responding to requests, allocating resources, and ensuring services. For example, servers receive and process service requests from clients (such as personal computers and mobile phones). They manage hardware resources such as CPUs and memory, as well as software resources such as operating systems and databases, to ensure stable service operations. Servers also ensure reliability through redundant designs such as RAID storage and high-performance components.
[0034] An SSD, or solid-state drive, is a hard drive made from an array of solid-state electronic memory chips. SSDs can be categorized into different types based on the type of flash memory used and the interface standard, such as SLC (single-level cell), MLC (multi-level cell), TLC (triple-level cell), and QLC (quadruple-level cell).
[0035] Among them, SLC is relatively the fastest and has the longest lifespan among the aforementioned types of SSDs. The speed and lifespan of MLC are between SLC and TLC. The speed and lifespan of TLC are slightly worse than MLC. QLC has the highest storage density among the aforementioned types of SSDs, but its performance and lifespan are relatively poor. SSDs can be widely used in various computing devices, such as personal computers, servers, mobile devices, etc. Among them, personal computers can serve as system disks and storage devices, providing fast system startup and application loading. Servers can perform high-speed data storage and processing to improve overall system performance. Mobile devices such as smartphones, tablets, laptops, smart watches, etc. can provide faster read and write speeds and longer battery life.
[0036] A switch is a network device used to forward electrical (or optical) signals. It provides a dedicated electrical signal path between any two network nodes connected to the switch. Common switch types include Ethernet switches, voice switches, and fiber optic switches.
[0037] A switch operates by enabling high-speed data exchange between devices within a local area network (LAN) using a MAC (Media Access Control) address table. When a terminal device successfully connects to a switch port, the switch maps the device's MAC address to the port, creating a MAC table. During subsequent data transmission, the switch uses the MAC address information within the packet to route the data packet out the corresponding port, enabling high-speed data exchange. Switches are widely used for applications such as intra-LAN communication, port expansion, VLAN (Virtual Local Area Network) configuration, and QoS (Quality of Service) support. Intra-LAN communication refers to the fact that switches are primarily used for high-speed communication within a LAN, using the MAC address table to enable fast data exchange between devices, supporting scenarios such as high-definition video conferencing and large file transfers. Port expansion refers to the fact that switches typically offer multiple ports, allowing a single network cable to be split into multiple cables for port expansion. This is suitable for scenarios requiring multiple network interfaces, such as university dormitories and offices. VLAN configuration allows devices within a LAN to be divided into different virtual networks based on functional or security requirements, improving network management flexibility and security. QoS support means that some types of switches support QoS functions, which can prioritize different types of data traffic to ensure the performance of critical applications.
[0038] An embodiment of the present application provides a power supply system 20 . The working principle of the power supply system 20 is described in detail below in combination with the component architecture of the power supply system 20 and the interaction process between the component components.
[0039] As previously explained, the power supply system 20 can serve as a backup power source for electronic devices. However, due to the influence of dielectric materials, leakage current is generally inevitable. For example, when a capacitor is used to store energy within the power supply system 20, during normal operation of the electronic device, the backup power supply circuit can charge the backup capacitor to store energy. If the power supply of the electronic device fails, the backup capacitor can serve as a backup power source and output its stored energy through the backup power supply circuit to provide power for data protection of the electronic device.
[0040] A dielectric material is typically placed between the two electrodes of a capacitor. Due to inherent properties of dielectric materials and processing defects, achieving complete insulation is difficult. Therefore, when a voltage difference exists between the two electrodes of a capacitor, leakage current inevitably occurs. This is also true for the backup capacitors in electronic devices like SSDs. Therefore, when the SSD is operating in a non-backup state and the backup capacitor is properly connected to the backup power system, the backup power supply circuit can compensate for the leakage energy of the backup capacitor in real time. In other words, the backup power supply circuit can provide a corresponding compensation current to the backup capacitor charging path.
[0041] However, if the backup capacitor has defects due to welding anomalies, capacitor defects, or other issues, the state of its compensation current will inevitably change. For example, if the backup capacitor loses physical contact with the backup power supply circuit due to welding problems, it will be difficult to obtain the compensation current. Alternatively, if an aluminum electrolytic capacitor used as a backup capacitor experiences an abnormal decrease in electrolyte, the compensation current will usually be abnormally high. Alternatively, failure of the aluminum oxide insulation layer in the aluminum electrolytic capacitor can cause the compensation current to be abnormally high.
[0042] Conventional backup power leakage detection methods are unable to immediately detect the aforementioned possible abnormalities. Therefore, the power supply system 20 provided in this embodiment can promptly, or even in real time, detect the compensation current and promptly confirm whether the backup power supply is leaking abnormally, thereby improving the efficiency of responding to abnormal leakage and promptly performing corresponding protection and other processing on the data in the electronic device to ensure data storage reliability.
[0043] See also Figure 2 , Figure 2 This is a structural diagram of an embodiment of the power supply system of the present application.
[0044] In one embodiment, the power supply system 20 may include a backup power module 21 , a backup power detection module 22 , and a control module 23 .
[0045] The backup power module 21 can be provided in the electronic device.
[0046] The backup power module 21 can store electrical energy to serve as the actual power output end of the backup power supply. That is, when the device power supply of the electronic device is operating normally, the backup power module 21 can obtain the input electrical energy provided by the device power supply to store electrical energy and compensate for leakage. When the device power supply is operating abnormally, the backup power module 21 can output power supply energy as backup power to maintain the operation of the electronic device. In other words, when the device power supply of the electronic device is operating normally, the device power supply charges the backup power module 21 and the electronic device and compensates for leakage of the backup power module 21; when the device power supply is operating abnormally, the backup power module 21 outputs power supply energy as backup power to maintain the operation of the electronic device.
[0047] The backup power detection module 22 can be connected to the backup power module 21 .
[0048] The backup power detection module 22 has a detection function. In this embodiment, the backup power detection module 22 can be used to perform leakage detection on the backup power module 21 that is ready to switch to the backup power state to obtain the current leakage parameter. Among them, the ready switching to the power state indicates that the backup power module 21 is running and has been normally connected to the backup power system, that is, the backup power module 21 is arranged in an electronic device that is in a state of using the device power input power as the operating power, and the backup power module 21 is not currently in the backup power state, that is, there is no need to output backup power to the electronic device. In other words, when the backup power module 21 is arranged in the electronic device and the device power performs leakage compensation to the backup power module 21, the backup power detection module 22 can perform leakage detection on the backup power module 21 to obtain the current leakage parameter, so that the leakage parameter can be used to evaluate whether the backup power module 21 has leakage abnormalities. If so, in this embodiment, the backup power module 21 can be effectively compensated for leakage, so that even when the device power is abnormal, the backup power module 21 can store relatively sufficient power to maintain the operation of the electronic device.
[0049] The control module 23 can be connected to the backup power module 21 and the backup power detection module 22 .
[0050] If so, the control module 23 may obtain leakage parameters to evaluate whether the leakage state of the backup power module 21 is abnormal.
[0051] As can be seen, in this embodiment, by adding the backup power detection module 22 and the control module 23 for detecting and evaluating the leakage status of the backup power module 21, the backup power detection module 22 detects the current leakage parameters of the backup power module 21, and the control module 23 promptly evaluates whether the leakage status of the backup power module 21 is abnormal. Therefore, the technical effect of reducing the damage to the backup power module 21 caused by leakage detection while improving the timeliness of leakage anomaly detection and thus enhancing the reliability of leakage detection can be achieved.
[0052] Please refer to Figures 3 to 5 , Figure 3 This is a structural diagram of another embodiment of the electronic device of the present application. Figure 4 This is a structural diagram of another embodiment of the power supply system of this application. Figure 5 This is a flow chart of an embodiment of the power supply method of the present application.
[0053] In one embodiment, the backup power detection module 22 may include a sampling resistor and an electrical sensing unit.
[0054] The sampling resistor is provided in the backup power supply circuit of the backup power module 21 .
[0055] The electric sensing unit may be connected to the sampling resistor and the control module 23 respectively.
[0056] The electrical sensing unit can sense the current electrical parameter of the sampling resistor as a leakage parameter and transmit the current electrical parameter to the control module 23. In other words, the electrical sensing unit can sense the current electrical parameter of the sampling resistor and transmit the sensed current electrical parameter as a leakage parameter to the control module 23, so that the control module 23 can analyze the current electrical parameter sensed by the electrical sensing unit and evaluate the electrical energy to be compensated that matches the current electrical parameter.
[0057] That is, the control module 23 can evaluate the offset electrical parameters matching the current electrical parameters to resolve the electrical energy to be compensated matching the offset electrical parameters, and enable the backup electrical module 21 to obtain the compensation electrical energy matching the electrical energy to be compensated for leakage compensation.
[0058] Furthermore, the sampling resistor may include a first end and a second end.
[0059] The first end is connected to the device controller of the electronic device, and the second end is connected to the backup power module 21. The compensation power is output by the device controller and input into the backup power module 21 via the first end and the second end in sequence.
[0060] The current electrical parameter includes the potentials of both the first and second terminals, allowing the control module 23 to evaluate the offset electrical parameter to match the potential difference between the first and second terminals. Thus, this embodiment simplifies the evaluation structure for the offset electrical parameter and improves the reliability and efficiency of the offset electrical parameter evaluation results. This helps improve the consistency between the compensation power and the actual leakage state of the backup power module 21, thereby ensuring effective leakage compensation for the backup power module 21, reducing the risk of insufficient power in the backup power module 21, and further improving the reliability of the power supply system.
[0061] For example, when the backup power module 21 performs leakage compensation for leakage current, the leakage current flowing through the sampling resistor can be calculated based on the potential difference between the first and second terminals of the sampling resistor and the resistance value of the sampling resistor. This leakage current can be considered an offset electrical parameter. In this manner, the compensation power provided to the backup power module 21 can be a compensation current that matches the leakage current.
[0062] Optionally, the sampling resistor may include a precision resistor. The electrical sensing unit may include a voltage sensor, such as a voltage sensor that can sample the voltage of the precision resistor to evaluate the offset electrical parameter.
[0063] In layman's terms, taking the electronic device as an SSD as an example, when the SSD is in a non-backup power state and is operating normally, the external power input transmits electrical energy to the SSD internal power supply system 20 for power supply to support the normal operation of the SSD hard disk; on the other hand, it charges the backup power module 21 through the capacitor charging and discharging path, that is, the backup power supply circuit, and can also generate a compensation current to compensate for the leakage of the backup power capacitor. The compensation current generates a voltage drop after flowing through the precision resistor. The voltage sensor can collect the voltage drop across the precision resistor in real time and feed it back to the control module 23. The control module 23 can calculate the compensation current value according to the corresponding formula. The control module 23 performs subsequent status management of the backup power module 21 based on the compensation current value.
[0064] Optionally, the control module 23 may be as follows Figure 3 The example shown in the figure is provided in the device controller, or the control module 23 and the device controller can be two relatively independent modules, which is not limited here.
[0065] Optionally, the control module 23, the backup power supply circuit, and the electrical sensing unit can communicate with each other through a bus protocol such as I2C (Inter-Integrated Circuit, two-wire serial bus), that is, an I2C interface can be provided to achieve communication through the I2C interface.
[0066] Please refer to Figure 4 as well as Figure 5 In one embodiment, the control module 23 may include a control unit and a storage unit.
[0067] The storage unit is used to store preset compensation data.
[0068] The control unit is used to evaluate the compensation electric energy that matches the leakage parameters, compare the electric energy data of the compensation electric energy with the preset compensation data, and in response to the matching of the electric energy data of the compensation electric energy with the preset compensation data, determine that the leakage state of the standby power module 21 is normal.
[0069] Furthermore, the preset compensation data includes a preset compensation curve of preset compensation power in at least one leakage cycle, wherein the leakage cycle includes a leakage phase of the backup power module 21 and a charging phase of discharging to compensate for the leakage state.
[0070] The control unit is configured to plot a true compensation curve for compensated electrical energy over a continuous time period matching at least one leakage cycle, and use this curve as electrical energy data. The true compensation curve is compared with a preset compensation curve to determine the degree of curve deviation, and based on this degree of curve deviation, it is determined whether the leakage state of the backup power module 21 is abnormal.
[0071] That is, before the electronic equipment leaves the factory for testing, a leakage test can be performed on the backup power module 21 to ensure that the power supply system 20 of the factory electronic equipment functions normally. At the same time, at least one leakage cycle can be set as a set duration, and the compensation current value can be continuously recorded within the set duration. After the recording is completed, it can be directly used as the preset compensation data, or a curve fitting process can be performed to form a preset compensation curve as the preset compensation data. The preset compensation data obtained in the test phase is used as the initial condition for leakage anomaly detection of the backup power module 21 and is preset in the storage unit of the control module 23. This can improve the efficiency of leakage anomaly assessment, reduce the assessment burden of leakage anomaly assessment on the power supply system 20, and thus help improve the reliability of the power supply system 20.
[0072] Optionally, the control module 23 is further configured to control leakage compensation to be performed on the standby power module 21 through the first compensation mode or the second compensation mode.
[0073] The first compensation mode includes controlling the backup power module 21 to start a backup power charging operation when the actual voltage of the backup power module 21 is lower than the rated voltage, so as to obtain compensation power for leakage compensation.
[0074] The second compensation mode includes controlling the backup power module 21 to start backup power charging when the actual voltage of the backup power module 21 is lower than a preset voltage threshold, until the actual voltage matches the rated voltage, wherein the preset voltage threshold is lower than the rated voltage.
[0075] Among them, the control module 23 can be pre-configured with a first compensation mode; or, the control module 23 can be pre-configured with a second compensation mode; or, the control module 23 can be pre-configured with a first compensation mode and a second compensation mode, so as to selectively operate in the first compensation mode or the second compensation mode, thereby being able to provide compensation power with higher reliability and immediacy in the first compensation mode, so as to help improve the maintenance of the standby power module 21 in a high performance state; it can also provide relatively reliable compensation power in the second mode, reducing energy consumption without affecting or significantly affecting the working stability of the electronic equipment.
[0076] like Figure 6 As shown in the example, Figure 6 This is a schematic diagram of the electrical parameter waveform of an embodiment of the second compensation mode of this application. The rated voltage is Figure 6 The backup voltage setting value shown in the example, the preset voltage threshold is Figure 6 The charging setting threshold is shown as an example, and the standby power charging action is to provide a compensation current.
[0077] When the actual voltage of the backup power module 21 is initially lower than the backup power voltage setting value, no compensation current may be provided to it. When the actual voltage drops to the charging setting threshold, the backup power module 21 is controlled to start the backup power charging operation and input the compensation current to the backup power module 21 to increase the actual voltage. Moreover, when the actual voltage is increased to the backup power voltage setting value (such as Figure 6 When the value is 0.05 or higher, the standby charging action can be suspended, that is, the input of compensation current to the standby power module 21 is suspended.
[0078] Furthermore, in this embodiment, the current working status of the electronic device can also be obtained to adaptively switch between the first compensation mode and the second compensation mode to a suitable compensation mode, thereby taking into account both reducing power consumption and ensuring the working reliability of the electronic device, so as to further optimize the reliability of the power supply system 20.
[0079] Specifically, the control module 23 can obtain the current operating data of the electronic device to evaluate a stability demand factor, which represents the degree of power supply stability demand based on the current operating data. The stability demand factor is directly proportional to the degree of power supply stability demand. That is, when the electronic device has a high degree of power supply stability demand, the stability demand factor is high; when the electronic device has a low degree of power supply stability demand, the stability demand factor is low.
[0080] Therefore, when the stability demand factor is higher than the demand factor threshold, it can be considered that the current working state of the electronic device has a high demand for power supply stability. The control module 23 can control leakage compensation in the first compensation mode to ensure reliable operation of the electronic device.
[0081] When the stability demand factor is lower than the demand factor threshold, it can be considered that the current working state of the electronic device has a relatively low demand for power supply stability and can allow a certain degree of power supply instability. Therefore, the control module 23 can control the leakage compensation in the second compensation mode to reduce the power consumption of the electronic device to a certain extent.
[0082] Optionally, the current operating data may include current parameters of preset indicators that characterize the working state of the electronic device; and / or, the current operating data may include the current working content of the electronic device, such as service, calculation, data processing, etc.
[0083] The stable demand factor can be calculated using a pre-established functional expression of the current operating data and the stable demand factor; alternatively, it can be evaluated using a pre-trained prediction model, thereby facilitating improved matching between the stable demand factor and the current operating data, thereby improving the reliability of selection between the first compensation mode and the second compensation mode, and further improving the reliability of the power supply system 20. A mapping relationship between the operating data and the stable demand factor can also be pre-established to obtain a stable demand factor that matches the current operating data, thereby reducing the computing power burden of the power supply system 20, ensuring that the power supply system 20 can reliably provide backup power and compensate for leakage in the backup power module 21, thereby improving the reliability of the power supply system 20.
[0084] Please continue reading Figure 4 as well as Figure 5 . In one embodiment, the control module 23 can also perform leakage review. In this embodiment, it is taken into account that as the use time of the standby electric module 21 is prolonged, its material aging, dielectric loss, etc. may cause the performance of the standby electric module 21 to decay, and thus there may be a situation where a slight change in the compensation current curve occurs. Therefore, when it is determined that the leakage state of the standby electric module 21 is abnormal through the aforementioned method, the standby electric module 21 is subjected to leakage compliance to review and confirm whether the current abnormal state is the normal aging of the standby electric module 21 or the standby electric module 21 itself has an abnormality. And when the standby electric module 21 is reviewed and tested and determined to be normal, the preset compensation current curve can be corrected in time according to the current actual leakage situation, thereby reducing the frequency of subsequent abnormal error reports and ensuring the reliability of the power supply system 20.
[0085] Specifically, when the control module 23 determines that the leakage state is in an abnormal state, it can control the backup power module 21 to discharge to the first power state. In response to the backup power module 21 completing the discharge, it can control the backup power module 21 to charge from the first power state to the second power state, and time the charging time to the second power state.
[0086] Evaluate whether the charging duration is within a preset duration range. If it is within the preset duration range, determine that the backup power module 21 is in a normal state after review, and update the leakage status assessment condition. If it is not within the preset duration range, determine that the backup power module 21 is in an abnormal state after review, and control the electronic device to enter read-only mode.
[0087] Taking the backup power module 21 as an example, the capacitor status detection can generally include charging the backup capacitor through the backup power supply circuit and the capacitor charge and discharge path. It can also generate a compensation current to compensate for the leakage of the backup capacitor. The compensation current flows through the precision resistor and generates a voltage drop. The voltage sensor collects the voltage drop across the precision resistor in real time and feeds it back to the control module 23. The control module 23 can calculate the compensation current value according to the corresponding formula.
[0088] The compensation current obtained by the capacitor status detection is compared with the preset compensation curve stored in the storage unit of the control module 23. If the difference between the two is greater than a certain degree, it can be considered that the backup capacitor status is abnormal at this time, and the corresponding abnormal prompt information can be reported in the electronic device log.
[0089] Furthermore, the backup power review test phase can also be entered. The backup power capacitor review test can be performed by the control module 23 sending a review inspection command to the backup power supply circuit. The control module 23 can perform the discharge and charge operations on the capacitor and judge the capacitor status based on the charge and discharge time. If the test passes at this time, the preset compensation curve stored in the storage unit can be corrected according to the current leakage state. If the test fails, the data in the electronic device is subjected to data backup processing.
[0090] The data backup power processing may include, when the backup power review test confirms that there is an abnormality in the capacitor, saving the electronic device data site, forcing the electronic device to enter the read-only mode, and reporting the fault information of the backup power module 21 of the electronic device.
[0091] In summary, the power supply system can mainly include two parts. One part is the overall hardware architecture, including the backup power module, the backup power detection module, the backup power supply circuit and the control module; the other part is the status management of the backup power module, including the fitting and drawing of the current compensation curve, the leakage status detection of the backup power module, the reporting of abnormal prompt information, the leakage review detection, data processing, etc. In this way, during the normal operation of the electronic equipment, by monitoring the leakage current of the backup power module, it is possible to achieve or approach the realization of real-time detection of the backup power status of the backup power module, including the leakage status, which can help improve the reliability of the power supply system and reduce the risk of introducing other backup power problems.
[0092] The embodiments of the present application also provide a power supply method from the electronic device level. The power supply method is described in detail below in conjunction with the execution process of the power supply method.
[0093] See also Figure 7 , Figure 7 This is a flow chart of another embodiment of the power supply method of the present application.
[0094] S101: Acquire input power from a device power supply and use it as an operating power source for the electronic device.
[0095] In this embodiment, the electronic device may include a device controller, which is used to implement the power supply method of this embodiment.
[0096] When the device power supply of the electronic device operates normally, the device power supply can transmit electrical energy, ie, input electrical energy of the device power supply, to the inside of the electronic device, so as to use it as an operating power supply of the electronic device.
[0097] S102: Check whether the power supply of the device is working properly.
[0098] In this embodiment, considering the risk of abnormality in the device power supply and the fact that abnormality in the device power supply may easily affect the reliable operation of the electronic device, it is possible to detect whether the device power supply is working properly.
[0099] When the device power supply is working normally, additional processing can be performed as needed, that is, the input power energy of the device power supply is controlled to be used as the operating power supply of the electronic device.
[0100] S103: In response to the abnormal operation of the device power supply, the power supply system is scheduled to switch to the backup power state, and is controlled to output backup power as the operating power supply of the electronic equipment.
[0101] In this embodiment, when it is determined that the power supply of the device is operating abnormally, the power supply device may interrupt the input power to the electronic device, or it may transmit the input power to the electronic device. However, at this time, it can be considered that there is a risk of unreliable operation if the input power of the device power supply is continuously and independently used as the operating power supply. Therefore, the power supply system is scheduled to switch to the backup power supply state, so that the backup power module in the power supply system outputs backup power, and controls the backup power to be used as the operating power supply.
[0102] Furthermore, the input power of the device power supply and the backup power of the power supply system can also be used synchronously as the operating power supply, which is not strictly limited here.
[0103] Through the description of the above implementation methods, those skilled in the art can clearly understand that the power supply method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, or it can be implemented by a combination of software and hardware.
[0104] The description of the features in the embodiment corresponding to the power supply method can also be found in the relevant description of the embodiment corresponding to the power supply system, which will not be repeated here.
[0105] An embodiment of the present application also provides a computer-readable storage medium.
[0106] The computer readable storage medium may store a computer program, wherein the computer program is configured to implement the steps in any of the above power supply method embodiments when executed by a processor.
[0107] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0108] An embodiment of the present application also provides a computer program product.
[0109] The computer program product may include a computer program, and when the computer program is executed by a processor, the steps in any of the above power supply method embodiments are implemented.
[0110] An embodiment of the present application also provides another computer program product.
[0111] The computer program product may include a non-volatile computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the computer program implements the steps in any of the above power supply method embodiments.
[0112] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0113] The above is a detailed introduction to a power supply system, a power supply method, an electronic device, and a computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.
Claims
1. A power supply system, characterized in that: The power supply system includes: A backup power module is configured to charge the backup power module and the electronic device and perform leakage compensation for the backup power module when the device power supply of the electronic device is operating normally; and output power as backup power to maintain the operation of the electronic device when the device power supply is operating abnormally. a backup power detection module connected to the backup power module, configured to perform leakage detection on the backup power module to obtain a current leakage parameter when the backup power module is provided in the electronic device and the device power supply performs leakage compensation on the backup power module; The control module is connected to the backup power module and the backup power detection module, and is used to obtain the leakage parameter to evaluate whether the leakage state of the backup power module is abnormal.
2. The power supply system according to claim 1, characterized in that: The backup power detection module includes a sampling resistor and an electrical sensing unit; The sampling resistor is provided in the backup power supply circuit of the backup power module; The electrical sensing unit is connected to the sampling resistor and the control module, and is used to sense the current electrical parameter of the sampling resistor as the leakage parameter, and transmit the current electrical parameter to the control module; The control module is used to evaluate the offset electrical parameters matching the current electrical parameters to resolve the electrical energy to be compensated matching the offset electrical parameters, and enable the backup electrical module to obtain the compensation electrical energy matching the electrical energy to be compensated for leakage compensation.
3. The power supply system according to claim 2, characterized in that: The sampling resistor includes a first end and a second end; the first end is used to connect to the device controller of the electronic device, and the second end is connected to the backup power module; the compensation power is output by the device controller and input into the backup power module via the first end and the second end in sequence; The current electrical parameter includes the potentials of both the first terminal and the second terminal, so that the control module can evaluate an offset electrical parameter that matches the potential difference between the first terminal and the second terminal.
4. The power supply system according to claim 1, wherein: The control module includes a control unit and a storage unit; The storage unit is used to store preset compensation data; The control unit is used to evaluate the compensation electric energy that matches the leakage parameter, compare the electric energy data of the compensation electric energy with the preset compensation data, and determine that the leakage state of the standby electric module is normal in response to a match between the two.
5. The power supply system according to claim 4, characterized in that: The preset compensation data includes a preset compensation curve of preset compensation electric energy within at least one leakage cycle; wherein the leakage cycle includes a leakage phase of the backup power module and a charging phase for discharging to compensate for the leakage state; The control unit is used to draw a real compensation curve of the compensated electric energy within a continuous time period matching the at least one leakage cycle, and use it as the electric energy data; compare the real compensation curve with the preset compensation curve to obtain the degree of curve deviation, and judge whether the leakage state of the standby power module is in an abnormal state based on the degree of curve deviation.
6. The power supply system according to claim 1, characterized in that: The control module is further used to control leakage compensation to the standby power module through the first compensation mode or the second compensation mode; The first compensation mode includes controlling the backup power module to start a backup power charging action when the actual voltage of the backup power module is lower than the rated voltage, so as to obtain compensation power for leakage compensation; The second compensation mode includes controlling the backup power module to start backup power charging when the actual voltage of the backup power module is lower than a preset voltage threshold until the actual voltage matches the rated voltage; wherein the preset voltage threshold is lower than the rated voltage.
7. The power supply system according to claim 1, wherein: The control module is configured to, when it determines that the leakage state is in an abnormal state, control the standby power module to discharge to a first power state; in response to the standby power module completing discharge, control the standby power module to charge from the first power state to a second power state, and time the charging time to the second power state; Evaluate whether the charging time is within a preset time range; In response to being within the preset time interval, determining that the backup power module is in a normal state after review, and updating the leakage state assessment condition; In response to not being in the preset time interval, it is determined that the backup power module review is in an abnormal state, and the electronic device is controlled to enter a read-only mode.
8. A power supply method, characterized in that: The power supply method includes: Obtaining input power from the device power supply and using it as the operating power source for the electronic equipment; Detecting whether the power supply of the device is working properly; In response to the abnormal operation of the power supply of the device, the power supply system according to any one of claims 1 to 7 is scheduled to switch to a backup power state, and is controlled to output backup power as the operating power supply of the electronic device.
9. An electronic device, characterized in that: The electronic device comprises: Equipment body; The power supply system according to any one of claims 1 to 7, provided in the device body; memory for storing computer programs; A processor, configured to implement the steps of the power supply method as claimed in claim 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the power supply method as claimed in claim 8 when executed by a processor.
Citation Information
Patent Citations
Super-capacitor back-up power source system for DTU power distribution terminal
CN108565960A
Leakage protection circuit
CN118040608A