Sampling current calibration method and device of power supply, electronic equipment and storage medium

By calculating the linear relationship between the average current value and the theoretical value, determining the current correction coefficient to calibrate the current value, solving the problem of current sampling deviation in the voltage calibration method, improving the accuracy and stability of power supply monitoring, and achieving intelligent fault handling and user experience improvement.

CN120334829APending Publication Date: 2025-07-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510495002.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

The traditional voltage calibration method has deviations in the current sampling process, resulting in a decrease in the accuracy of power supply control.

Method used

By collecting the current current value of the power supply, obtain the current sampling value at multiple load points, calculate the linear relationship between the current average value and the preset current theoretical value, determine the current correction coefficient, and use this coefficient to correct the current value to obtain the calibrated current sampling value.

Benefits of technology

It improves the accuracy of power supply monitoring, enhances the stability and safety of current sampling, realizes intelligent fault warning and processing, and improves user experience and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120334829A_ABST
    Figure CN120334829A_ABST
Patent Text Reader

Abstract

The invention discloses a sampling current calibration method and device of a power supply, electronic equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps: collecting a current current value of the power supply; if the current value meets a preset calibration condition, obtaining a plurality of current sampling values under each load point in the power supply, obtaining a current average value based on the plurality of current sampling values, and comparing the current average value with a preset current theoretical value to obtain a linear relation between the current average value and the preset current theoretical value; and determining a current correction coefficient based on the linear relationship, and correcting the current value by using the current correction coefficient to obtain a calibrated current sampling value. The technical problem that the sampling current value of a traditional voltage calibration method has deviation and the accuracy of power supply control is reduced is solved, and the technical effect of improving the accuracy of power supply monitoring is achieved by correcting the sampling current value of the power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for calibrating a sampling current of a power supply. Background Art

[0002] Digital power, as a major innovation in the field of power technology, has taken a leading role in high-end application fields such as new energy vehicles, data center servers, and industrial automation with its advantages of high efficiency, high integration, and intelligence. Digital power has high requirements for sampling accuracy and real-time performance in the key link of current sampling. Current sampling is the basis of the digital power closed-loop control system, which is directly related to the accurate measurement and feedback of the power output current, and thus affects the stability and response speed of the entire power system.

[0003] In practical applications, the current sampling process faces many challenges. Due to the errors of components such as sampling resistors and amplifiers, there is a significant deviation between the current value actually measured in the current sampling process and the theoretical value. This deviation is further transmitted to the subsequent analog-to-digital conversion (ADC) process, causing the ADC sampling value to deviate from the actual current value, resulting in a decrease in the accuracy of power supply control and management.

[0004] Therefore, how to effectively reduce current sampling errors and improve sampling accuracy and stability in digital power supply design has become a key issue that needs to be urgently solved in the current power supply technology field. Summary of the invention

[0005] The present application provides a sampling current calibration method, device, electronic device and storage medium for a power supply, so as to at least solve the technical problem that the sampling current value of the traditional voltage calibration method has deviation, thereby reducing the accuracy of power supply control.

[0006] The present application provides a sampling current calibration method for a power supply, the method comprising: collecting a current value of the power supply; if the current current value meets a preset calibration condition, obtaining multiple current sampling values at each load point in the power supply, and obtaining a current average value based on the multiple current sampling values, and comparing the current average value with a preset current theoretical value to obtain a linear relationship between the current average value and the preset current theoretical value; determining a current correction coefficient based on the linear relationship, and using the current correction coefficient to correct the current value to obtain a calibrated current sampling value.

[0007] The present application also provides a sampling current calibration device for a power supply, including: an acquisition module, configured to acquire the current value of the power supply; a comparison module, configured to, if the current value meets a preset calibration condition, obtain a plurality of current sampling values at each load point in the power supply, obtain an average current value based on the plurality of current sampling values, and compare the average current value with a preset theoretical current value to obtain a linear relationship between the average current value and the preset theoretical current value; and a calibration module, configured to determine a current correction coefficient based on the linear relationship and use the current correction coefficient to correct the current value to obtain a calibrated current sampling value.

[0008] The present application also provides an electronic device, including: a memory, configured to store a computer program; and a processor, configured to implement the steps of any of the above sampling current calibration methods for a power supply when executing the computer program.

[0009] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above sampling current calibration methods for a power supply.

[0010] Through the present application, the current value of the power supply is acquired; if the current value meets the preset calibration condition, a plurality of current sampling values at each load point in the power supply are obtained, an average current value is obtained based on the plurality of current sampling values, the average current value is compared with the preset theoretical current value, and a linear relationship between the average current value and the preset theoretical current value is obtained; a current correction coefficient is determined based on the linear relationship, and the current value is corrected using the current correction coefficient to obtain a calibrated current sampling value. Therefore, the technical problem that the traditional voltage calibration method has a deviation in the sampled current value, reducing the accuracy of power supply control, is solved, and the technical effect of improving the accuracy of power supply monitoring is achieved by correcting the power supply sampled current value. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] 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 described below 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.

[0012] Figure 1 It is a schematic flowchart of a sampling current calibration method for a power supply provided by an embodiment of the present application;

[0013] Figure 2 It is a schematic diagram of a current detection circuit according to an embodiment of the present application;

[0014] Figure 3Schematic diagram of the current calibration curve according to an embodiment of the present application;

[0015] Figure 4 Schematic flow chart of the PSU sampled current calibration method based on BMC according to an embodiment of the present application;

[0016] Figure 5 Schematic diagram of a sampled current calibration device for a power supply provided by an embodiment of the present application;

[0017] Figure 6 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Detailed implementation manners

[0018] Next, the technical solutions in the embodiments of the present application will be clearly and completely described 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. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0019] 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 a non-exclusive inclusion, such that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or 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.

[0020] In a power supply system, current sampling is a key link for monitoring the power supply output status and achieving precise control and protection. However, due to the accuracy errors of components such as sampling resistors and amplifiers, the actual current sampling value often deviates from the theoretical value. After being converted by an analog-to-digital converter (ADC), this deviation will further affect the power management chip's judgment of the power supply status, thereby reducing the accuracy of power supply control and management.

[0021] Therefore, to solve this problem, it is necessary to develop a more efficient and reliable current calibration scheme to calibrate the current sampling value, thereby improving the accuracy of power supply monitoring.

[0022] Specifically, an embodiment of the present application provides a sampled current calibration method for a power supply, as Figure 1 shown.

[0023] In step S101, the current value of the power supply is collected.

[0024] The current sampling inside the server power supply is to monitor and control the working state of the power supply, ensure its stable operation, and provide key information for the protection circuit. The current sampling process includes sampling resistor sampling, signal processing, analog-to-digital conversion, data processing and analysis, and feedback control.

[0025] The current detection resistor is generally a resistor with a very small resistance value (in the milliohm range). The resistor is connected in series in the main current path of the power supply. According to Ohm's law U = IR, when current passes through this resistor, a voltage drop proportional to the current will be generated across the resistor. The signal obtained from the current detection element is usually very weak and may be mixed with noise. Therefore, signal processing, including operations such as amplification and filtering, is required. The detected voltage signal is amplified by an operational amplifier to make it reach an amplitude suitable for subsequent circuit processing.

[0026] The processed analog signal is converted into a digital signal by an analog-to-digital converter (ADC). The digital signal is transmitted to the power management chip or microcontroller. Inside the chip, the sampled data is processed and analyzed. Based on the sampled current value, the power management chip can adjust the output voltage or other parameters of the power supply to maintain the stable operation of the power supply.

[0027] In the embodiment of this application, the current detection circuit is as Figure 2 shown. The current detection circuit is a circuit within 100A. V+ is the positive input terminal, and V- is the negative input terminal. R1 is the load. When the current flowing through R1 is 10A, if the resistance value of R2 is 33mΩ, then the voltage of R2 is 0.33V. According to the operation principle of the operational amplifier, it can be calculated that the voltage at point A is 2.97V. Theoretically speaking, each current value (0 - 100A) flowing through R1 will correspond to an output voltage value (0 - 3.3V) at point A.

[0028] In actual monitoring, such a perfect situation as in theory does not occur. Due to the accuracy error of the sampling resistor and the errors of devices such as amplifiers, there will be a certain deviation in the sampling data at point A. The sampling data will not be the theoretical value. Therefore, it is necessary to calibrate the current value collected at point A.

[0029] Optionally, in some embodiments, after collecting the current value of the power supply, it further includes: determining whether the deviation between the current value and the preset current theoretical value is less than a preset value; if the deviation is less than the preset value, it is determined that the current value meets the preset calibration condition; otherwise, the user is reminded to check whether the current sampling circuit inside the power supply is abnormal.

[0030] Among them, it should be noted that the theoretical value of the preset current is usually obtained by those skilled in the art based on the design specifications and test data of the power supply, and the preset value is usually determined by those skilled in the art according to the application scenario and accuracy requirements of the power supply.

[0031] Specifically, calculate the deviation between the current current value and the theoretical value of the preset current. If the deviation is less than the preset value, it is determined that the current current value meets the preset calibration condition, indicating that the power supply is working properly. If the deviation is greater than or equal to the preset value, it means that there is a large difference between the current current value of the power supply and the theoretical value of the preset current. This situation may indicate that there are some abnormalities or problems in the power supply system. For example, the current sampling circuit (such as current sensors, amplifier circuits, etc.) may malfunction, or the power supply may be aging or faulty. At this time, it is determined that the current current value does not meet the preset calibration condition, and the user needs to be reminded to check the current sampling circuit inside the power supply, such as by a certain method (such as LED indicator flashing, buzzer alarm or sending an alarm signal to the remote monitoring system) to remind the user.

[0032] After receiving the reminder, the user checks whether the current sampling circuit inside the power supply is abnormal, which may include checking whether the current sensor is working properly, whether the connection line is loose or damaged, and whether other components of the sampling circuit are faulty.

[0033] The user conducts fault troubleshooting according to the reminder, finds out the cause of the current deviation, and repairs the fault, which may include replacing the damaged current sensor, repairing the connection line or replacing the faulty circuit components.

[0034] After the repair is completed, the current acquisition and calibration judgment are performed again to verify the repair effect.

[0035] Through the above technical solutions, the stability and reliability of the power supply system can be significantly improved, the accuracy of current sampling can be enhanced, the user experience can be improved, it is convenient for fault troubleshooting and repair, and it helps to improve the performance and reliability of the entire system.

[0036] In step S102, if the current current value meets the preset calibration condition, multiple current sampling values at each load point inside the power supply are obtained, and the average current value is obtained based on the multiple current sampling values, and the average current value is compared with the theoretical value of the preset current to obtain the linear relationship between the average current value and the theoretical value of the preset current.

[0037] Specifically, in the embodiments of the present application, different working states are simulated by gradually increasing the load of the server (for example, starting different numbers of hard disks, running the CPU at full load, etc.), and the current is repeatedly measured at each load point. This can ensure that the voltage output of the server power supply remains within a reasonable range under various actual operating conditions. By adjusting the magnitude of the load current in the above manner, the current values at different load currents are obtained through the BMC. Due to the errors of the components on the hardware, there will be deviations in the actually collected current values. In the software design, three current sampling values are obtained at each load point, and the average current value is calculated. The actually sampled average current value is compared with the preset theoretical current value, so as to obtain the linear relationship between the two, y = kx + b. Through the linear relationship between the two, the relationship between the actually collected current value and the calibrated current value is obtained.

[0038] In step S103, based on the linear relationship, the current correction coefficient is determined, and the current correction coefficient is used to correct the current value at present to obtain the calibrated current sampling value.

[0039] Wherein, in some embodiments, the current correction coefficient is the slope coefficient k and the intercept coefficient b of the linear relationship.

[0040] Through the above technical solution, based on the linear relationship (y = kx + b), the current correction coefficient (the slope coefficient k and the intercept coefficient b) is determined, and the current value at present is corrected to be near the preset theoretical current value, significantly reducing the measurement error, and achieving high-precision, high-stability and high-efficiency current measurement.

[0041] Specifically, in the embodiments of the present application, through software design, the linear relationship between the average current value and the preset theoretical current value is obtained: y = kx + b, so as to obtain the slope coefficient k and the intercept coefficient b.

[0042] Further, in some embodiments, based on the linear relationship, the current correction coefficient is determined, and the current correction coefficient is used to correct the current value at present to obtain the calibrated current sampling value, including: multiplying the current value at present by the slope coefficient to obtain a multiplication result; summing the multiplication result and the intercept coefficient to obtain the calibrated current sampling value.

[0043] It can be understood that the slope coefficient and the intercept coefficient are used to correct the current value at present to obtain the calibrated current sampling value, and the calibrated current sampling value is applied to subsequent power control, monitoring, protection and other tasks.

[0044] For example, when the actual load is 10A, the average value of the actually collected current is 13.84A, and the current that should be collected theoretically is 10A. By gradually increasing the load, the relationship between the actually collected average current value and the theoretical value can be obtained, that is, y = kx + b, asFigure 3 As shown, the slope coefficient k and the intercept coefficient b are obtained.

[0045] The analyzed slope value k and intercept value b are fed back to the power supply, and the BMC issues a PMBus cmd to the PSU. When current sampling is performed, the actually sampled current value is corrected according to the cmd issued by the BMC, that is, the actually sampled current value is multiplied by the slope coefficient and compensated by an intercept value to obtain the calibrated current value. After correcting the actually sampled current value to be near the preset current theoretical value and achieving current calibration, this current value is converted into a digital signal by an analog-to-digital converter ADC, and the digital signal is transmitted to the power management chip.

[0046] For example, the known conditions are:

[0047] Slope coefficient (k): 0.98; Intercept coefficient (b): 0.02; Current current value: 10.00 A;

[0048] Based on multiplying the current current value by the slope coefficient: I multiplied = I current × k = 10.00 × 0.98 = 9.80 A;

[0049] Based on summing the multiplication result and the intercept coefficient: I calibrated = I multiplied + b = 9.80 + 0.02 = 9.82 A.

[0050] The calibrated current sampling value is 9.82 A.

[0051] Through the above technical solution, the current sampling error is reduced by the correction coefficient, the accuracy of current measurement is improved, and accurate current monitoring can identify anomalies such as overload and short circuit in advance, reducing the risk of system failure.

[0052] Optionally, in some embodiments, after obtaining the calibrated current sampling value, it includes: monitoring whether the calibrated current sampling value meets a preset abnormal condition; if it is monitored that the calibrated current sampling value meets the preset abnormal condition, then a preset protection mechanism is started.

[0053] It can be understood that the current after calibration is more accurate, so that the power management chip can process and analyze according to the current value to obtain an accurate judgment. For example, analyzing and processing the sampled data and comparing it with a predetermined threshold. When it is detected that the current exceeds the safe range, the chip can perform corresponding protection mechanisms. Due to current calibration, the obtained current value is more accurate, enabling the power supply to perform overcurrent protection, short-circuit protection, etc. within a more accurate range to prevent damage to the power supply and server equipment.

[0054] Through the above technical solutions, by continuously monitoring the calibrated current value, minute anomalies (such as precursors of overload and short circuit) can be captured. After an anomaly is detected, the protection mechanism (such as cutting off the power supply or reducing the load) can be activated within milliseconds to prevent equipment damage.

[0055] Optionally, in some embodiments, it is monitored whether the calibrated current sampling value meets the preset anomaly conditions, including: determining whether the calibrated current sampling value is greater than the preset current upper limit value, or determining whether the calibrated current sampling value is less than the preset current lower limit value; if the calibrated current sampling value is greater than the preset current upper limit value, or the calibrated current sampling value is less than the preset current lower limit value, it is determined that the calibrated current sampling value meets the preset anomaly conditions.

[0056] Due to current calibration, the obtained current value is more accurate, enabling the power supply to more accurately determine within what range the calibrated current sampling value meets the preset anomaly conditions, thereby performing overcurrent protection, short-circuit protection, etc. to prevent damage to the power supply and server equipment.

[0057] Among them, the preset current upper limit value and the preset current lower limit value can be thresholds preset by the user, thresholds obtained through a limited number of experiments, or thresholds obtained through a limited number of computer simulations, and no specific limitations are made here.

[0058] It can be understood that the calibrated current sampling value is monitored in real time, and the monitored calibrated current sampling value is compared with the preset current upper limit value and current lower limit value. If the calibrated current sampling value is greater than the preset current upper limit value, or less than the preset current lower limit value, it is determined that the calibrated current sampling value meets the preset anomaly conditions.

[0059] Based on the monitored calibrated current sampling value, it is determined whether it meets the preset anomaly conditions. If the calibrated current sampling value meets any of the preset anomaly conditions, it is considered that an abnormal situation may have occurred in the power supply system.

[0060] It should be noted that the preset anomaly conditions can also be determined according to the design requirements, safety standards, and actual application scenarios of the power supply system. For example, the anomaly conditions can include excessive current fluctuations, current mutations, etc.

[0061] Through the above technical solutions, it is simultaneously monitored whether the current exceeds the upper limit (overload) or is lower than the lower limit (under-current), covering the full-range anomaly scenarios. Compared with a single threshold, the dual-threshold mechanism can distinguish normal fluctuations from abnormal events.

[0062] Optionally, in some embodiments, the preset protection mechanism is activated, including: recording the trigger time, current value, and duration of activating the preset protection mechanism.

[0063] It is understandable that when it is monitored that the calibrated current sampling value meets the preset abnormal conditions, the preset protection mechanism is immediately activated.

[0064] Recording the trigger time, current value, and duration is helpful for subsequent analysis and troubleshooting, and understanding the specific situation and duration of the abnormality.

[0065] After activating the protection mechanism, the user is reminded to perform troubleshooting and repair in a timely manner to ensure that the power supply system can resume normal operation as soon as possible, record the fault repair information, and record relevant information for subsequent equipment maintenance and management.

[0066] It should be noted that the specific content of the protection mechanism can be designed according to the actual situation of the power supply system, including but not limited to the following:

[0067] Alarm prompt: Send an alarm to the user through an LED indicator, buzzer, or other alarm devices to indicate that an abnormality has occurred in the power supply system.

[0068] Automatic power-off: Cut off the power supply of the power supply system to prevent abnormal current from causing further damage to the equipment.

[0069] Data recording: Record key information such as current sampling values and timestamps when an abnormality occurs for subsequent analysis and troubleshooting.

[0070] Fault isolation: If the power supply system includes multiple sub-modules or load points, the power supply of specific sub-modules or load points can be cut off to isolate the fault.

[0071] Remote notification: Send the abnormal information to the remote monitoring center or maintenance personnel through the network for timely response and handling.

[0072] Through the above technical solutions, the current value, trigger time, and duration at the time of protection trigger are recorded, providing a complete data chain for fault analysis. The operation and maintenance personnel can remotely obtain the fault records, quickly locate the problem, and reduce the on-site troubleshooting time.

[0073] To enable those skilled in the art to further understand the sampling current calibration method of the power supply in the embodiments of the present application, the following will be elaborated in detail with specific embodiments, as Figure 2 and 4 shown.

[0074] In step S401, the current sampling value is obtained through the baseboard management controller BMC.

[0075] In step S402, the current sampling value is collected multiple times at different load points to obtain the average current value.

[0076] In step S403, the average current value is compared with the preset theoretical current value.

[0077] In step S404, based on the linear relationship between the average current and the preset theoretical current value, the slope coefficient k and the intercept coefficient b are obtained.

[0078] In step S405, the BMC sends a PMbus cmd to feedback the current correction coefficient to the PSU.

[0079] In step S406, the power supply unit (PSU) calibrates the current according to the current correction coefficient cmd issued by the BMC.

[0080] In step S407, the calibrated current value is sent to the PSU management chip after being converted by the ADC.

[0081] In step S408, the PSU takes corresponding monitoring actions according to the calibrated current value.

[0082] In summary, based on the analysis of the above specific embodiments, the present application can achieve the following beneficial effects:

[0083] (1) Improve the safety and reliability of the power supply system:

[0084] By monitoring the calibrated current sampling value in real time and setting preset abnormal conditions (such as upper and lower current limits), the present application can start the preset protection mechanism in time when the current value exceeds the normal range, effectively preventing equipment damage or safety accidents caused by abnormal current, and significantly improving the safety and reliability of the power supply system.

[0085] (2) Enhance the accuracy and stability of current sampling:

[0086] By collecting multiple current sampling values and calculating the average value, and using the linear relationship to determine the current correction coefficient to correct the current value, the accuracy and stability of current sampling are significantly improved. This helps to more accurately monitor the operating state of the power supply system and provides reliable data support for subsequent power control, monitoring, or protection tasks.

[0087] (3) Realize intelligent fault warning and handling:

[0088] When it is monitored that the current sampling value meets the preset abnormal conditions, the preset protection mechanism is automatically started, and key information such as the trigger time, current value, and duration is recorded. This provides users with intelligent fault warning and handling functions, helping users quickly locate the root cause of the problem and take corresponding repair measures.

[0089] (4) Improve user experience and maintenance efficiency:

[0090] By timely reminding the user to check the current sampling circuit in the power supply and providing detailed fault information and repair suggestions, the maintenance workload of the user is reduced and the maintenance efficiency is improved.

[0091] According to the sampling current calibration method of the power supply proposed in the embodiment of the present application, the current value of the power supply is collected; if the current value meets the preset calibration condition, multiple current sampling values at each load point in the power supply are obtained, and the average current value is obtained based on the multiple current sampling values, and the average current value is compared with the preset theoretical current value to obtain the linear relationship between the average current value and the preset theoretical current value; the current correction coefficient is determined based on the linear relationship, and the current value is corrected by using the current correction coefficient to obtain the calibrated current sampling value. Thus, the technical problem that the sampling current value in the traditional voltage calibration method has deviation and reduces the accuracy of power supply control is solved, and the technical effect of improving the accuracy of power supply monitoring is achieved by correcting the power supply sampling current value.

[0092] The embodiment of the present application also provides a sampling current calibration device 10 for a power supply, as Figure 5 shown, including: a collection module 100, a comparison module 200, and a calibration module 300.

[0093] Among them, the collection module 100 is used to collect the current value of the power supply; the comparison module 200 is used to, if the current value meets the preset calibration condition, obtain multiple current sampling values at each load point in the power supply, obtain the average current value based on the multiple current sampling values, and compare the average current value with the preset theoretical current value to obtain the linear relationship between the average current value and the preset theoretical current value; the calibration module 300 is used to determine the current correction coefficient based on the linear relationship and correct the current value by using the current correction coefficient to obtain the calibrated current sampling value..

[0094] Optionally, in some embodiments, the current correction coefficient is the slope coefficient and the intercept coefficient of the linear relationship.

[0095] Optionally, in some embodiments, the calibration module 300 is further used to: multiply the current value by the slope coefficient to obtain a multiplication result; sum the multiplication result and the intercept coefficient to obtain the calibrated current sampling value.

[0096] Optionally, in some embodiments, the calibration module 300 is further used to: monitor whether the calibrated current sampling value meets the preset abnormal condition; if it is monitored that the calibrated current sampling value meets the preset abnormal condition, start the preset protection mechanism.

[0097] Optionally, in some embodiments, the calibration module 300 is further configured to: determine whether the calibrated current sampling value is greater than a preset current upper limit value, or determine whether the calibrated current sampling value is less than a preset current lower limit value; if the calibrated current sampling value is greater than the preset current upper limit value, or the calibrated current sampling value is less than the preset current lower limit value, then determine that the calibrated current sampling value meets the preset abnormal condition.

[0098] Optionally, in some embodiments, the calibration module 300 is further configured to: record the trigger time, current value, and duration of starting a preset protection mechanism.

[0099] Optionally, in some embodiments, after collecting the current value of the power supply, the collection module 100 is further configured to: determine whether the deviation between the current value and a preset current theoretical value is less than a preset value; if the deviation is less than the preset value, then determine that the current value meets the preset calibration condition, otherwise, prompt the user to check whether the current sampling circuit in the power supply is abnormal.

[0100] It should be noted that the descriptions of the features in the corresponding embodiments of the sampling current calibration device of the power supply can refer to the relevant descriptions of the corresponding embodiments of the sampling current calibration method of the power supply, which will not be elaborated here one by one.

[0101] An embodiment of the present application further provides an electronic device. Figure 6 The following is a schematic structural diagram of the electronic device provided by the embodiment of the present application. The electronic device may include:

[0102] A memory 601, a processor 602, and a computer program stored on the memory 601 and executable on the processor 602.

[0103] When the processor 602 executes the program, it implements the sampling current calibration method of the power supply provided in the above embodiments.

[0104] Further, the electronic device further includes:

[0105] A communication interface 603 for communication between the memory 601 and the processor 602.

[0106] The memory 601 is used to store a computer program executable on the processor 602.

[0107] The memory 601 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0108] If the memory 601, the processor 602, and the communication interface 603 are implemented independently, the communication interface 603, the memory 601, and the processor 602 can be interconnected through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 only a thick line is used in Figure 6 , but it does not mean that there is only one bus or one type of bus.

[0109] Optionally, in specific implementation, if the memory 601, the processor 602, and the communication interface 603 are integrated on a chip, the memory 601, the processor 602, and the communication interface 603 can communicate with each other through an internal interface.

[0110] The processor 602 may be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0111] The embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored. The computer program is set to execute the steps in any of the embodiments of the sampling current calibration method of the above power supply when running.

[0112] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media 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 disc that can store a computer program.

[0113] Those skilled in the art may 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 both. To clearly illustrate the interchangeability of hardware and software, the components 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 this application.

[0114] The above has introduced in detail a sampling current calibration method for a power supply provided by this application. Specific examples have been used herein to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art of this technology, without departing from the principle of this application, several improvements and modifications can still be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A sampling current calibration method for a power supply, characterized in that, It includes the following steps: Collect the current current value of the power supply; If the current current value meets the preset calibration condition, obtain multiple current sampling values at each load point in the power supply, obtain the average current value based on the multiple current sampling values, and compare the average current value with the preset theoretical current value to obtain the linear relationship between the average current value and the preset theoretical current value; Determine the current correction coefficient based on the linear relationship, and use the current correction coefficient to correct the current current value to obtain the calibrated current sampling value.

2. The method according to claim 1, wherein The current correction coefficient is the slope coefficient and intercept coefficient of the linear relationship.

3. The method according to claim 2, wherein The determining the current correction coefficient based on the linear relationship and using the current correction coefficient to correct the current current value to obtain the calibrated current sampling value includes: Multiply the current current value by the slope coefficient to obtain a multiplication result; Sum the multiplication result and the intercept coefficient to obtain the calibrated current sampling value.

4. The method according to claim 1, wherein After obtaining the calibrated current sampling value, it includes: Monitor whether the calibrated current sampling value meets the preset abnormal condition; If it is monitored that the calibrated current sampling value meets the preset abnormal condition, start the preset protection mechanism.

5. The method according to claim 4, wherein The monitoring whether the calibrated current sampling value meets the preset abnormal condition includes: Judge whether the calibrated current sampling value is greater than the preset current upper limit value, or judge whether the calibrated current sampling value is less than the preset current lower limit value; If the calibrated current sampling value is greater than the preset current upper limit value, or the calibrated current sampling value is less than the preset current lower limit value, it is determined that the calibrated current sampling value meets the preset abnormal condition.

6. The method according to claim 4, wherein The starting the preset protection mechanism includes: Record the trigger time, current value and duration of starting the preset protection mechanism.

7. The method according to claim 1, wherein After collecting the current current value of the power supply, it further includes: Judge whether the deviation between the current current value and the preset theoretical current value is less than the preset value; If the deviation is less than the preset value, it is determined that the current current value meets the preset calibration condition, otherwise, remind the user to check whether the current sampling circuit in the power supply is abnormal.

8. A sampling current calibration device for a power supply, characterized in that, It includes: A collection module for collecting the current current value of the power supply; A comparison module for, if the current current value meets the preset calibration condition, obtaining multiple current sampling values at each load point in the power supply, obtaining the average current value based on the multiple current sampling values, and comparing the average current value with the preset theoretical current value to obtain the linear relationship between the average current value and the preset theoretical current value; A calibration module for determining the current correction coefficient based on the linear relationship and using the current correction coefficient to correct the current current value to obtain the calibrated current sampling value.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor executes the program to implement the sampling current calibration method of the power supply as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by a processor to implement the sampling current calibration method of the power supply according to any one of claims 1-7.

Citation Information

Cited By

  • Dynamic on-resistance test platform and method

    CN121027620A

  • Dynamic On-Resistance Test Platform and Method

    CN121027620B