Power supply system and method, electronic equipment and readable storage medium
By adding backup detection modules and control modules to the power supply system, the leakage parameters of backup power modules are detected in real time, and the problems of detection lag and damage of backup power modules are solved, achieving reliability and timeliness of leakage detection.
Patent Information
- Application Number
- CN202510838901.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-07-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.
The backup power detection module and control module are added to the power supply system to detect the leakage parameters of the backup power module in real time, evaluate its abnormal state, and conduct timely evaluation of the leakage status of the backup power module through the backup power detection module.
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 CN120353330A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technologies, and in particular, to a power supply system, a power supply method, an electronic device, and a computer-readable storage medium. Background Art
[0002] In electronic devices such as servers, SSDs (Solid State Disk or Solid State Drive, solid-state drives), and switches, there is a risk of abnormal power loss in the device power supply. To ensure data reliability, backup power modules such as backup capacitors are usually added to the electronic device as backup power supplies.
[0003] At the same time, the power reliability of the backup power supply also needs to be verified. For this purpose, the backup power module can be discharged to a set low voltage value and then charged to a set high voltage value, and the charging and discharging time is used to evaluate whether the backup power module is abnormal. However, large-scale charging and discharging is likely to cause irreversible damage to the backup power module. For this reason, the detection period is usually set to at least one month, which easily leads to the lag of the leakage abnormality detection determination and there is a risk of not reliably detecting the leakage abnormality within the detection period. Summary of the Invention
[0004] This 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 that the leakage detection in related technologies damages the backup power module and has hysteresis.
[0005] This 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 works normally, and perform leakage compensation on the backup power module; when the device power supply works abnormally, the backup power module outputs power supply electrical energy as backup electrical energy 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 the current leakage parameters when the backup power module is installed 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 the leakage parameters to evaluate whether the leakage state of the backup power module is in an abnormal state.
[0006] This application also provides a power supply method, which includes: obtaining the input electrical energy of the device power supply and using it as the operating power supply of the electronic device; detecting whether the device power supply works normally; in response to the abnormal operation of the device power supply, scheduling the power supply system as described in the above embodiment to switch to the backup power supply state, and controlling it to output backup electrical energy as the operating power supply of 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 embodiments, a memory, and a processor; the power supply system is provided in the device body; the memory is used for storing computer programs; the processor is used for implementing the steps of the foregoing power supply method when executing the computer programs.
[0008] The present application also provides a computer-readable storage medium, in which a computer program is stored, and wherein the computer program implements the steps of the above power supply method when executed by a processor.
[0009] Through the present application, since a backup power detection module and a control module for detecting and evaluating the leakage state of the backup power module are added, the current leakage parameters of the backup power module are detected by the backup power detection module, and the control module timely evaluates whether the leakage state of the backup power module is in an abnormal state. Therefore, the technical problem that leakage detection damages the backup power module and has hysteresis can be solved, and the technical effect of being able to reduce the damage of leakage detection to the backup power module while taking into account improving the timeliness of discovering leakage abnormalities, so as to improve the reliability of leakage detection can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0011] Figure 1 It is a schematic structural diagram of an embodiment of the electronic device of the present application; Figure 2 It is a schematic structural diagram of an embodiment of the power supply system of the present application; Figure 3 It is a schematic structural diagram of another embodiment of the electronic device of the present application; Figure 4 It is a schematic structural diagram of another embodiment of the power supply system of the present application; Figure 5 It is a schematic flow diagram of an embodiment of the power supply method of the present application; Figure 6 It is a schematic diagram of the electrical parameter waveform of an embodiment of the second compensation mode of the present application; Figure 7 It is a schematic flow diagram of another embodiment of the power supply method of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0012] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0013] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0014] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0015] Combined 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 will be described herein.
[0016] Embodiments of the present application provide an electronic device. The power supply device will be described in detail below in combination with the power supply principle of the electronic device.
[0017] Please refer to Figure 1 , Figure 1 which is a schematic structural diagram of an embodiment of the electronic device of the present application.
[0018] In one embodiment, the electronic device may include a device body 10, a power supply system 20, a memory, and a processor.
[0019] The device body 10, as a collection of basic components for implementing the functions of the electronic device, may include, for example, a device power supply, a housing, a CPU (Central Processing Unit), a heat dissipation device, a GPU (Graphics Processing Unit) module, and storage modules such as RAID (Redundant Arrays of Independent Disks).
[0020] Among them, the device power supply is used to supply power to the server to maintain its operation. For example, the device power supply may include a PSU (Power Supply Unit), etc., which is connected to an external power supply to convert the standard alternating current provided by the external power supply into the low-voltage and stable direct current required during the operation of the server, and transmit the converted direct current to components such as the device body 10, such as the baseboard management controller, for use. And / or, the device power supply may include a rechargeable battery, which can supply power to the device body 10 through the rechargeable battery to assist in powering the server, ensure the stability and risk resistance of the server power supply, and thus contribute to improving the operation reliability of the server.
[0021] The housing serves as the basic carrier of the server and plays a role in carrying and protecting each component of the server. The CPU is the operation and control core of the computer system and is the final execution unit for information processing and program operation. When components of the server, such as the CPU module and GPU module, are running, heat is usually generated, and the heat dissipation device is used to dissipate heat inside the electronic device. In the GPU module, the GPU is also known as the display core, display chip, or video processor. As the name implies, the GPU is a coprocessor used to handle image and graphics operation tasks.
[0022] The power supply system 20 is provided in the device body 10. As the name implies, the power supply system 20 also has the function of supplying power to the electronic device. Therefore, in this embodiment, the power supply system 20 can actually be used as the backup power supply of the electronic device. When there is a risk that the device power supply of the electronic device is abnormal and affects the operation reliability of the electronic device due to power supply, the power supply system 20 can undertake the work of supplying power to the electronic device to ensure that the electronic device can continue to work relatively stably without power interruption.
[0023] The memory is used to store computer programs.
[0024] The processor is used to implement the steps of the power supply method when executing the computer program. Among them, the power supply method will be elaborated in detail later and will not be elaborated here for the time being.
[0025] As exemplified in the previous text, the electronic device can be a server, SSD, switch, etc.
[0026] 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.
[0027] Generally speaking, a server has functions such as responding to requests, resource allocation, and service guarantee. For example, a server can receive and process service requirements from clients (such as personal computers, mobile phones, etc.); a server can manage hardware such as CPUs and memories, as well as software resources such as operating systems and databases, to ensure the stable operation of services; a server can also ensure its reliability through redundant designs such as RAID storage and high-performance components.
[0028] An SSD, also known as a solid-state drive, is a hard disk made of an array of solid-state electronic storage chips. Solid-state drives can be classified into different types according to the flash memory type and interface standard they use, such as SLC (single-level cell), MLC (multi-level cell), TLC (triple-level cell), QLC (quadruple-level cell), etc.
[0029] Among them, SLC is the fastest and has the longest lifespan among the aforementioned types of SSDs. The speed and lifespan of MLC are between those of SLC and TLC. The speed and lifespan of TLC are slightly worse than those of MLC. And QLC has the highest storage density among the aforementioned types of SSDs, but relatively speaking, 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, as the system disk and storage device, a personal computer can provide fast system startup and application program loading. Servers can perform high-speed data storage and processing, improving the overall system performance. Mobile devices such as smartphones, tablets, laptops, and smartwatches can provide faster read and write speeds and longer battery life.
[0030] A switch is a network device used for forwarding electrical (optical) signals, and it can provide an exclusive electrical signal path for any two network nodes connected to the switch. Common types of switches include Ethernet switches, telephone voice switches, fiber optic switches, etc.
[0031] The working principle of a switch is to achieve high-speed data exchange of devices within a local area network through the MAC (Media Access Control Address) address table. When a terminal device successfully connects to a switch port, the switch will associate the MAC address of the device with the port to form a MAC table. During subsequent data transmission, the switch sends the data packet from the corresponding port according to the MAC address information in the packet, thus achieving high-speed data exchange. Switches can be widely used in internal communication within a local area network, port expansion, VLAN (Virtual Local Area Network) configuration, QoS (Quality of Service) support, etc. Among them, internal communication within a local area network means that the switch is mainly used for high-speed communication within a local area network, achieving fast data exchange between devices through the MAC address table, and supporting scenarios such as high-definition video conferencing and large file transfer. Port expansion means that a switch usually provides multiple ports, and a network cable can be divided into multiple ones to achieve port expansion, which is suitable for scenarios that require multiple network interfaces, such as university dormitories and offices. VLAN configuration means that devices within a local area network can be divided into different virtual networks according to functional or security requirements, improving the flexibility and security of network management. QoS support means that some types of switches support the QoS function, which can perform priority scheduling on different types of data traffic to ensure the performance of critical applications.
[0032] An embodiment of the present application provides a power supply system 20. The working principle of the power supply system 20 will be elaborated in detail below in combination with the composition architecture of the power supply system 20 and the interaction process between the components.
[0033] As elaborated in the previous text, the power supply system 20 can serve as a backup power supply for electronic devices. However, due to the influence of dielectric materials, leakage current will inevitably be generated. Taking the capacitor as an example during the energy storage period in the power supply system 20, during the normal operation of the electronic device, the backup power supply circuit can charge the backup capacitor to store energy. When the device power supply of the electronic device loses power, the backup capacitor, as a backup power supply, can output the stored electrical energy through the backup power supply circuit to provide electrical energy for data protection of the electronic device.
[0034] Dielectric materials are usually filled between the two poles of a capacitor. Due to factors such as the inherent properties and processing defects of dielectric materials, it is difficult to achieve complete insulation. Therefore, when there is a voltage difference between the two poles of the capacitor, leakage current will inevitably be generated, and the same is true for the backup capacitor in electronic devices such as SSDs. Therefore, when the SSD is operating in a non-backup power state and the backup capacitor is normally connected to the backup power system, the backup power supply circuit can compensate the electrical energy leaked by the backup capacitor in real time, that is, the backup power supply circuit can have a corresponding compensation current on the charging channel of the backup capacitor.
[0035] However, when there are defect problems in the backup power capacitor caused by abnormal welding, capacitor defects, etc., the state of its compensation current will inevitably change. For example, when the backup power capacitor is physically disconnected from the backup power supply circuit due to welding problems, it is difficult to obtain the compensation current. Or, when an aluminum electrolytic capacitor is used as the backup power capacitor, if there is an abnormal reduction in its electrolyte, it usually causes the compensation current to be abnormally large; or the failure of the aluminum oxide insulating layer material in the aluminum electrolytic capacitor causes the compensation current to be abnormally large.
[0036] Traditional backup power leakage detection methods are difficult to immediately detect the above possible abnormal situations. Therefore, the power supply system 20 provided in this embodiment can detect the compensation current in a timely manner or even in real time, so as to confirm in a timely manner whether the backup power supply is abnormally leaking, thereby improving the efficiency of responding to abnormal leakage, and timely performing corresponding protection and other processing on the data in the electronic device to ensure the reliability of data storage.
[0037] Please refer to Figure 2 , Figure 2 which is a schematic structural diagram of an embodiment of the power supply system of this application.
[0038] 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.
[0039] The backup power module 21 can be provided in the electronic device.
[0040] The backup power module 21 can store electrical energy to serve as the actual power output terminal of the backup power supply. That is to say, when the device power supply of the electronic device works normally, the backup power module 21 can obtain the input electrical energy provided by the device power supply for electrical energy storage and leakage compensation. When the device power supply works abnormally, the backup power module 21 can output the supplied electrical energy as the backup electrical energy to maintain the operation of the electronic device. In other words, when the device power supply of the electronic device works normally, the device power supply charges the backup power module 21 and the electronic device, and performs leakage compensation on the backup power module 21; when the device power supply works abnormally, the backup power module 21 outputs the supplied electrical energy as the backup electrical energy to maintain the operation of the electronic device.
[0041] The backup power detection module 22 can be connected to the backup power module 21.
[0042] The backup power detection module 22 has a detection function. In this embodiment, the backup power detection module 22 can be used to detect the leakage of the backup power module 21 that is about to switch to the standby power state to obtain the current leakage parameters. Among them, being about to switch to the power state means 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 provided in an electronic device that takes the power input from the device power supply as the operating power, and the backup power module 21 is not currently in the standby power state, that is, the state of not outputting backup power to the electronic device. That is to say, when the backup power module 21 is provided in the electronic device and the device power supply compensates for the leakage of the backup power module 21, the backup power detection module 22 can detect the leakage of the backup power module 21 to obtain the current leakage parameters, so as to be able to evaluate whether the backup power module 21 has abnormal leakage using the leakage parameters. Thus, in this embodiment, effective leakage compensation can be performed on the backup power module 21, so that even when the device power supply is abnormal, the backup power module 21 can store relatively sufficient electric energy to maintain the operation of the electronic device.
[0043] The control module 23 can be connected to the backup power module 21 and the backup power detection module 22.
[0044] Thus, the control module 23 can obtain the leakage parameters to evaluate whether the leakage state of the backup power module 21 is in an abnormal state.
[0045] It can be seen that in this embodiment, due to the addition of the backup power detection module 22 and the control module 23 for detecting and evaluating the leakage state of the backup power module 21, the current leakage parameters of the backup power module 21 are detected by the backup power detection module 22, and the control module 23 timely evaluates whether the leakage state of the backup power module 21 is in an abnormal state. Therefore, the technical effect of being able to reduce the damage to the backup power module 21 caused by leakage detection while taking into account improving the timeliness of discovering leakage abnormalities, so as to improve the reliability of leakage detection can be achieved.
[0046] Please refer to Figures 3 to 5 , Figure 3 , which is a schematic structural diagram of another embodiment of the electronic device of the present application, Figure 4 , which is a schematic structural diagram of another embodiment of the power supply system of the present application, Figure 5 , which is a schematic flowchart of an embodiment of the power supply method of the present application.
[0047] In one embodiment, the backup power detection module 22 can include a sampling resistor and an inductance measurement unit.
[0048] The sampling resistor is provided in the backup power supply circuit of the backup power module 21.
[0049] The inductance measurement unit can be respectively connected to the sampling resistor and the control module 23.
[0050] The inductive sensing unit can sense the current electrical parameters of the sampling resistor as the leakage parameters and transmit the current electrical parameters to the control module 23. That is to say, the inductive sensing unit can sense the current electrical parameters of the sampling resistor and transmit the sensed current electrical parameters as the leakage parameters to the control module 23, so that the control module 23 can analyze the current electrical parameters sensed by the inductive sensing unit and evaluate the electrical energy to be compensated that matches the current electrical parameters.
[0051] That is to say, the control module 23 can evaluate the offset electrical parameters that match the current electrical parameters to analyze the electrical energy to be compensated that matches the offset electrical parameters, and make the standby power module 21 obtain the compensation electrical energy that matches the electrical energy to be compensated for leakage compensation.
[0052] Furthermore, the sampling resistor can include a first end and a second end.
[0053] The first end is used to connect to the device controller of the electronic device, and the second end is connected to the standby power module 21. The compensation electrical energy is output by the device controller and input to the standby power module 21 through the first end and the second end in sequence.
[0054] The current electrical parameters include the electric potentials of both the first end and the second end, so that the control module 23 can evaluate the offset electrical parameters that match the potential difference between the first end and the second end. In this way, in this embodiment, the evaluation structure of the offset electrical parameters can be simplified, and the result reliability and evaluation efficiency of the offset electrical parameters can also be improved. Thus, it is beneficial to improve the consistency between the compensation electrical energy and the actual leakage state of the standby power module 21, which is conducive to ensuring effective leakage compensation for the standby power module 21, reducing the risk of insufficient power of the standby power module 21, and further improving the reliability of the power supply system.
[0055] For example, when the leakage compensation of the standby power module 21 is to compensate for the leakage current, the leakage current flowing through the sampling resistor can be calculated according to the potential difference between the first end and the second end of the sampling resistor and the resistance value of the sampling resistor, and this leakage current can be regarded as the offset electrical parameter. Thus, the compensation electrical energy provided to the standby power module 21 can be a compensation current that matches the leakage current.
[0056] Optionally, the sampling resistor can include a precision resistor. The inductive sensing unit can include a voltage sensor. In this way, the voltage sensor can perform voltage sampling on the precision resistor for evaluating the offset electrical parameters.
[0057] Generally speaking, taking an electronic device as an example of an SSD, when the SSD is in a non-backup power state and operating normally, on the one hand, the external power input transmits electrical energy to the internal power supply system 20 of the SSD 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 charge and discharge 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 feedback it to the control module 23. The control module 23 can calculate the compensation current value according to the corresponding formula. The control module 23 manages the state of the subsequent backup power module 21 based on the compensation current value.
[0058] Optionally, the control module 23 can be arranged in the device controller as exemplified in Figure 3 or the control module 23 and the device controller can be two relatively independent modules, which is not limited here.
[0059] Optionally, the control module 23, the backup power supply circuit, and the inductance measurement unit can communicate 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.
[0060] Please refer to Figure 4 and Figure 5 . In an embodiment, the control module 23 can include a control unit and a storage unit.
[0061] The storage unit is used to store preset compensation data.
[0062] The control unit is used to evaluate the compensation electrical energy matching the leakage parameter, compare the electrical energy data of the compensation electrical energy with the preset compensation data, and in response to the matching of the electrical energy data of the compensation electrical energy and the preset compensation data, it can be determined that the leakage state of the backup power module 21 is normal.
[0063] Furthermore, the preset compensation data includes at least one preset compensation curve of the preset compensation electrical energy within a leakage cycle. Among them, the leakage cycle includes the leakage stage of the backup power module 21 and the charging stage of discharging in the compensation leakage state.
[0064] The control unit is used to draw the real compensation curve of the compensation electrical energy within the continuous time period matching at least one leakage cycle as the electrical energy data. Compare the real compensation curve with the preset compensation curve to obtain the curve deviation degree, and judge whether the leakage state of the backup power module 21 is in an abnormal state based on the curve deviation degree.
[0065] That is to say, before the ex-factory test of the electronic device, the leakage test of the backup power module 21 can be carried out, which can ensure the normal function of the power supply system 20 of the ex-factory electronic device. At the same time, at least one leakage cycle can be used as the 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 curve fitting processing can be performed to form a preset compensation curve as the preset compensation data. The preset compensation data obtained in the test stage is pre-set as the initial condition for the leakage abnormality detection of the backup power module 21 in the storage unit of the control module 23, so as to improve the efficiency of leakage abnormality evaluation, reduce the evaluation burden of the power supply system 20 for leakage abnormality evaluation, and thus contribute to improving the reliability of the power supply system 20.
[0066] Optionally, the control module 23 is further configured to control the leakage compensation to the backup power module 21 through the first compensation mode or the second compensation mode.
[0067] Among them, the first compensation mode includes that when the actual voltage of the backup power module 21 is lower than the rated voltage, the backup power module 21 is controlled to start the backup power charging operation to obtain compensation electric energy for leakage compensation.
[0068] The second compensation mode includes that when the actual voltage of the backup power module 21 is lower than the preset voltage threshold, the backup power module 21 is controlled to start the backup power charging operation until the actual voltage matches the rated voltage. Among them, the preset voltage threshold is lower than the rated voltage.
[0069] Among them, the control module 23 can pre-configure the first compensation mode; or, the control module 23 can pre-configure the second compensation mode; or, the control module 23 can pre-configure the first compensation mode and the second compensation mode, so as to selectively work in the first compensation mode or the second compensation mode, so as to be able to provide higher reliability and instantaneity compensation electric energy in the first compensation mode, which is beneficial to improving the backup power module 21 to maintain a high-performance state; it can also provide relatively reliable compensation electric energy in the second mode, while reducing energy consumption without affecting or not significantly affecting the working stability of the electronic device.
[0070] As Figure 6 shown in the example Figure 6 is the schematic diagram of the electrical parameter waveform of an embodiment of the second compensation mode of this application. The rated voltage is the Figure 6 backup power voltage set value shown in the example Figure 6 the charging set threshold shown in the example
[0071] When the current actual voltage of the backup power module 21 is initially lower than the set value of the backup power voltage, no compensation current may be provided to it. When the actual voltage drops to the charging set threshold, the backup power charging operation of the backup power module 21 is controlled to start, and a compensation current is input to the backup power module 21 to increase the actual voltage. Moreover, when the actual voltage increases to the set value of the backup power voltage (as exemplified in Figure 6 shown by the example) or higher, the backup charging operation may be paused, that is, the input of the compensation current to the backup power module 21 is paused.
[0072] Furthermore, in this embodiment, the current working state of the electronic device may also be obtained to adaptively switch between the first compensation mode and the second compensation mode to a suitable compensation mode, so as to be able to balance power consumption reduction and ensure the working reliability of the electronic device, thereby further optimizing the reliability of the power supply system 20.
[0073] Specifically, the control module 23 may obtain the current operation data of the electronic device to evaluate the stability demand factor that represents the degree of demand for power supply stability of the current operation data; among them, the stability demand factor is in a direct proportional relationship with the degree of demand for power supply stability. That is to say, when the electronic device has a high degree of demand for power supply stability, the stability demand factor is high; when the electronic device has a low degree of demand for power supply stability, the stability demand factor is low.
[0074] 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 degree of demand for power supply stability, and the control module 23 can control the leakage compensation to be performed in the first compensation mode to ensure the reliable operation of the electronic device.
[0075] 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 degree of demand for power supply stability, and a certain degree of micro-amplitude power supply instability can be allowed. Therefore, the control module 23 can control the leakage compensation to be performed in the second compensation mode to be able to reduce the power consumption of the electronic device to a certain extent.
[0076] Optionally, the current operation data may include the current parameters of the preset indicators representing the working state of the electronic device; and / or, the current operation data may include the current working content of the electronic device, such as services, calculations, data processing, etc.
[0077] The stable demand factor can be calculated through a function expression of the current operating data and the stable demand factor constructed in advance; or it can be evaluated through a pre-trained prediction model, which is conducive to improving the matching between the stable demand factor and the current operating data, so as to improve the selection reliability of the first compensation mode and the second compensation mode, and further improve the reliability of the power supply system 20. A mapping relationship between the operating data and the stable demand factor can also be constructed in advance, so as to obtain the stable demand factor matching the current operating data, thereby reducing the computing power burden of the power supply system 20, ensuring that the power supply system 20 can perform reliable backup power supply and leakage compensation of the backup power module 21, and further improving the reliability of the power supply system 20.
[0078] Please continue to refer to Figure 4 and Figure 5 . In one embodiment, the control module 23 can also perform leakage review. In this embodiment, considering that as the usage time of the backup power module 21 extends, its material aging, dielectric loss, etc. may cause the performance attenuation of the backup power module 21, and there may be a slight change in the compensation current curve. Therefore, when it is determined by the foregoing method that the possible leakage state of the backup power module 21 is an abnormal state, the backup power module 21 is subjected to leakage compliance to review and confirm whether the current abnormal state is the normal aging condition of the backup power module 21 or the backup power module 21 itself has an abnormal condition. And when it is determined that there is no abnormality in the review and detection of the backup power module 21, the preset compensation current curve can be corrected in a timely manner 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.
[0079] 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 completion of the discharge of the backup power module 21, it controls the backup power module 21 to charge from the first power state to the second power state, and measures the charging duration for charging to the second power state.
[0080] Evaluate whether the charging duration is within a preset duration interval. In response to being within the preset duration interval, it is determined that the review of the backup power module 21 is in a normal state, and the leakage state evaluation condition is updated. In response to not being within the preset duration interval, it is determined that the review of the backup power module 21 is in an abnormal state, and the electronic device is controlled to enter the read-only mode.
[0081] Taking the backup power module 21 as an example of a backup capacitor, generally speaking, the detection of the capacitor state can include charging the backup capacitor through the backup power supply circuit and the capacitor charge and discharge circuit, and can also generate a compensation current to compensate for the leakage of the backup capacitor. The compensation current generates a voltage drop after flowing through a precision resistor. 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.
[0082] The compensation current obtained by the capacitor state 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 state of the backup capacitor is abnormal at this time, and corresponding abnormal prompt information can be reported in the electronic device log.
[0083] Further, it can enter the backup power review and detection stage. The backup capacitor review and detection can be that the control module 23 sends a review and inspection command to the backup power supply circuit. The control module 23 can perform the discharge and charge actions on the capacitor and judge the capacitor state according to the charge and discharge duration. If the review and detection passes at this time, the preset compensation curve stored in the storage unit can be corrected according to the current leakage state. If the detection fails, data backup processing is performed on the data in the electronic device.
[0084] The data backup processing can include, when it is confirmed through the backup power review and detection that there is an abnormality in the capacitor, saving the electronic device data scene, 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.
[0085] 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 state management of the backup power module, including the fitting and drawing of the current compensation curve, the detection of the leakage state of the backup power module, the reporting of abnormal prompt information, the leakage review and detection, data processing, etc. In this way, during the normal operation of the electronic device, by monitoring the leakage current of the backup power module, it is possible to achieve or approach real-time detection of the backup power state including the leakage state of the backup power module, which can help improve the reliability of the power supply system and reduce the risk of introducing other backup power problems.
[0086] The embodiments of the present application also provide a power supply method at the electronic device level. The power supply method will be described in detail below in combination with the execution process of the power supply method.
[0087] Please refer to Figure 7 , Figure 7 which is a schematic flowchart of another embodiment of the power supply method of the present application.
[0088] S101: Obtain the input electric energy of the device power supply and use it as the operating power supply of the electronic device.
[0089] In this embodiment, the electronic device may include a device controller. The device controller is used to implement the power supply method of this embodiment.
[0090] When the device power supply of the electronic device is working properly, the device power supply can transmit electric energy to the inside of the electronic device, that is, the input electric energy of the device power supply, to use it as the operating power supply of the electronic device.
[0091] S102: Detect whether the device power supply is working properly.
[0092] In this embodiment, considering the risk of abnormality of the device power supply and that the reliable operation of the electronic device is easily affected when the device power supply is abnormal, it is possible to detect whether the device power supply is working properly.
[0093] When the device power supply is working properly, additional processing can be performed as needed, that is, control to use the input electric energy of the device power supply as the operating power supply of the electronic device.
[0094] S103: In response to the abnormal operation of the device power supply, schedule the power supply system to switch to the standby power supply state and control its output standby electric energy as the operating power supply of the electronic device.
[0095] In this embodiment, when it is determined that the device power supply is operating abnormally, the power supply device may interrupt the input electric energy to the electronic device, or the input electric energy transmitted to the electronic device. However, at this time, it can be considered that there is a risk of unreliable operation in continuously and independently using the input electric energy of the device power supply as the operating power supply. Therefore, schedule the power supply system to switch to the standby power supply state, so that the standby power supply module in the power supply system outputs standby electric energy, and control to use the standby electric energy as the operating power supply.
[0096] Furthermore, it is also possible to synchronously use both the input electric energy of the device power supply and the standby electric energy of the power supply system as the operating power supply, and there is no strict limitation here.
[0097] Through the description of the above embodiments, those skilled in the art can clearly understand that the power supply method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, or can be implemented by a combination of software and hardware.
[0098] For the description of the features in the corresponding embodiment of the power supply method, reference can also be made to the relevant description of the corresponding embodiment of the power supply system, and details are not described herein one by one.
[0099] The embodiment of the present application also provides a computer-readable storage medium.
[0100] A computer-readable storage medium may store a computer program. Wherein, the computer program is configured to implement the steps in any of the above-mentioned power supply method embodiments when executed by a processor.
[0101] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical discs that can store computer programs.
[0102] An embodiment of the present application also provides a computer program product.
[0103] The computer program product may include a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-mentioned power supply method embodiments.
[0104] An embodiment of the present application also provides another computer program product.
[0105] The computer program product may include a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-mentioned power supply method embodiments.
[0106] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0107] The above has introduced in detail 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 in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the present application.
Claims
1. A power supply system, characterized in that, The power supply system includes: A backup power module, which is used to charge the backup power module and the electronic device and perform leakage compensation on the backup power module when the device power supply of the electronic device works normally; when the device power supply works abnormally, the backup power module outputs power supply electrical energy as backup electrical energy to maintain the operation of the electronic device. A backup power detection module, connected to the backup power module, which is used to perform leakage detection on the backup power module to obtain the current leakage parameters when the backup power module is provided in the electronic device and the device power supply performs leakage compensation on it. A control module, connected to the backup power module and the backup power detection module, which is used to obtain the leakage parameters to evaluate whether the leakage state of the backup power module is in an abnormal state.
2. The power supply system according to claim 1, characterized in that The backup power detection module includes a sampling resistor and an inductance detection unit. The sampling resistor is provided in the backup power supply circuit of the backup power module. The inductance detection unit is connected to the sampling resistor and the control module, and is used to sense the current electrical parameters of the sampling resistor as the leakage parameters and transmit the current electrical parameters to the control module. The control module is used to evaluate the offset electrical parameters matching the current electrical parameters, analyze the compensation electrical energy matching the offset electrical parameters, and enable the backup power module to obtain the compensation electrical energy matching the compensation electrical energy for leakage compensation.
3. The power supply system according to claim 2, wherein 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 electrical energy is output by the device controller and input into the backup power module through the first end and the second end in sequence. The current electrical parameters include the electric potentials of both the first end and the second end, so that the control module evaluates the offset electrical parameters matching the potential difference between the first end and the second end.
4. The power supply system according to claim 1, characterized in that 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 electrical energy matching the leakage parameters, compare the electrical energy data of the compensation electrical energy with the preset compensation data, and determine that the leakage state of the backup power module is normal in response to their matching.
5. The power supply system according to claim 4, wherein The preset compensation data includes at least one preset compensation curve of the preset compensation electrical energy within a leakage cycle; wherein, the leakage cycle includes the leakage stage of the backup power module and the charging stage of discharging to compensate the leakage state. The control unit is used to draw the real compensation curve of the compensation electrical energy within the continuous time period matching the at least one leakage cycle as the electrical energy data; compare the real compensation curve with the preset compensation curve to obtain the curve offset degree, and judge whether the leakage state of the backup power module is in an abnormal state based on the curve offset degree.
6. The power supply system according to claim 1, wherein The control module is also used to control the leakage compensation to the backup power module through the first compensation mode or the second compensation mode. Among them, the first compensation mode includes that when the actual voltage of the backup power module is lower than the rated voltage, controlling the backup power module to start the backup power charging operation to obtain compensation electric energy for leakage compensation; The second compensation mode includes that when the actual voltage of the backup power module is lower than the preset voltage threshold, controlling the backup power module to start the backup power charging operation 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 control the backup power module to discharge to the first power state when it determines that the leakage state is in an abnormal state, and in response to the completion of the discharge of the backup power module, control the backup power module to charge from the first power state to the second power state, and time the charging duration to the second power state; Evaluate whether the charging duration is within a preset duration interval; In response to being within the preset duration interval, determine that the backup power module is in a normal state after review, and update the leakage state evaluation condition; In response to not being within the preset duration interval, determine that the backup power module is in an abnormal state after review, and control the electronic device to enter the read-only mode.
8. A power supply method, characterized in that, The power supply method includes: Obtaining the input electric energy of the device power supply and using it as the operating power supply of the electronic device; Detecting whether the device power supply is working properly; In response to the abnormal operation of the device power supply, dispatching the power supply system according to any one of claims 1 to 7 to switch to the standby power state, and controlling its output of standby electric energy as the operating power supply of the electronic device.
9. An electronic device, characterized in that, The electronic device includes: The device body; The power supply system according to any one of claims 1 to 7, provided in the device body; A memory for storing a computer program; A processor for implementing the steps of the power supply method as described in claim 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the power supply method as described in claim 8 when executed by the processor.
Citation Information
Patent Citations
Super-capacitor back-up power source system for DTU power distribution terminal
CN108565960A
Leakage protection circuit
CN118040608A
Power supply monitoring system and power supply protection circuit thereof
CN119362720A