Calibration system, calibration method, equipment and medium for baseboard power consumption monitoring
By designing a substrate power consumption monitoring and calibration system in the server, using automatically controlled load switches and calibration switches, directly detecting the voltage value and calculating the actual value of the power consumption resistance, the problem of the standard error of the precision resistance is solved, and the monitoring accuracy is improved. Simplifies the testing process and reduces the risk of equipment damage.
Patent Information
- Application Number
- CN202411331692.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-24
AI Technical Summary
The accuracy of power consumption monitoring in existing servers is affected by the standard error of precision resistance, and the test calibration process is cumbersome and easy to damage, increasing the probability of equipment damage.
A calibration system for power consumption monitoring of substrates is designed, including power consumption circuits and calibration circuits. Through automatic control of load switches and calibration switches, voltage values are detected directly on the substrate, the actual value of power consumption resistance is calculated, and the monitoring accuracy is improved. Simplify the testing process and reduce manpower investment.
Improves the accuracy of substrate power consumption monitoring, simplifies the calibration process, reduces the risk of equipment damage, reduces the testing tools and welding steps, and is simple in structure and inexpensive.
Smart Images

Figure CN118860801B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a calibration system, calibration method, equipment and medium for monitoring power consumption of a substrate. Background Art
[0002] In the server field, power consumption monitoring and energy saving are major issues that need to be addressed. Currently, a common way to monitor power consumption in servers is to monitor power consumption through the BMC (Baseboard Management Controller), that is, to monitor power consumption through the BMC with precision resistors and processor modules.
[0003] Since precision resistors have standard errors, they will affect the accuracy of power consumption monitoring. In order to improve the accuracy of power consumption monitoring, precision resistors will be calibrated through a testing process during the equipment production process or before leaving the factory. In the above testing process, it is necessary to test and calibrate the accuracy of the precision resistors themselves and the power consumption monitoring through the cooperation of test fixtures and test software. However, due to the low adaptability of the test fixture and the fact that the voltage required by the test fixture is not consistent with the on-board voltage, it is even necessary to manually weld the load line during the test process. This makes the test calibration process cumbersome and increases the probability of equipment damage. Summary of the invention
[0004] In view of this, the present invention provides a calibration system, calibration method, equipment and medium for monitoring power consumption of a substrate, so as to solve the problem that the current calibration and detection operation process of power monitoring is relatively complicated and increases the probability of equipment damage.
[0005] In a first aspect, the present invention provides a calibration system for monitoring power consumption of a substrate, including a power consumption circuit and a calibration circuit. The power consumption circuit includes a power supply module, a first voltage detection unit, a power consumption resistor, a second voltage detection unit, and a load switch connected in sequence, and the first voltage detection unit and the second voltage detection unit are used to detect the voltage value before and after passing through the power consumption resistor. The calibration circuit includes a first calibration resistor and a first calibration switch, one end of the first calibration switch is connected in series with the first calibration resistor, and the other end of the first calibration switch is connected in parallel between the power consumption resistor and the load switch.
[0006] Beneficial effect: In the power consumption circuit, by installing a load switch in series downstream of the power consumption resistor, the power supply module can selectively turn on load components such as fans, central processing units, hard disks, memory or graphics processors through the power consumption resistor, and can also disconnect the power supply module from the above-mentioned load components through the power consumption resistor.
[0007] Based on this, a calibration circuit including a first calibration resistor and a first calibration switch is provided so that the first calibration resistor is connected in parallel to the downstream interface end of the power consumption resistor via the first calibration switch. In this way, by controlling the load switch and the first calibration switch, the power supply module selects to turn on the load component or the first calibration resistor via the power consumption resistor.
[0008] When the load switch is in the off state and the first calibration switch is in the on state, the power supply module transmits power to the first calibration resistor through the power consumption resistor to put the power supply module in a load state. At this time, the first voltage value and the second voltage value before and after flowing through the power consumption resistor can be detected by the first voltage detection unit and the second voltage detection, and the preset calibration resistance value of the first calibration resistor is a known parameter. Since the current flowing through the power consumption resistor and the first calibration resistor is equal, the actual resistance value of the power consumption resistor can be calculated, or the calculation and verification of the resistance value of the power consumption resistor meets the design standard, that is, the preset power consumption resistance value of the power consumption resistor meets the preset error value.
[0009] When the calibration system for the above-mentioned substrate power consumption monitoring is applied to the onboard circuit in computer equipment such as servers, the above-mentioned power consumption circuit only needs to add a load switch between the original power consumption resistor and the load element for switching, and then set a calibration circuit in parallel with the load switch, that is, a first calibration resistor and a first calibration switch, to complete the improvement of the onboard circuit. The structure is simple, easy to improve and will not significantly increase the cost. In addition, the first voltage value and the second voltage value of the first voltage detection unit and the second voltage detection can be directly read by switching the calibration circuit, and combined with the known preset calibration resistance value of the first calibration resistor, the preset power consumption resistance value of the power consumption resistor can be calculated and verified, which is conducive to improving the power consumption monitoring accuracy of the substrate power monitoring.
[0010] Compared with the testing method of the related schemes using test fixtures, test software and manual welding of load lines, the above scheme of the present invention directly integrates the above calibration system on the substrate, which has a simple structure, is easy to improve and does not significantly increase the cost. In addition, the calibration system of the present invention does not require additional test tools and welding processes during the test and calibration process, that is, it does not require familiarity with identifying test tools and practicing welding processes. It greatly reduces the operation process to reduce manpower investment and fundamentally avoids the risk of bad boards during the test and calibration process.
[0011] In an optional embodiment, the calibration system also includes a control circuit, and the control circuit includes a switching module and a main control module. The switching module is connected to the load switch and the first calibration switch, and is used to control the calibration circuit or the load switch to be in an on state. The main control module is connected to the first voltage detection unit and the second voltage detection unit. When the switching module controls the calibration circuit to be in an on state, the main control module collects the first voltage value before passing through the power consumption resistor through the first voltage detection unit, and the main control module collects the second voltage value after passing through the power consumption resistor through the second voltage detection unit. The main control module calculates whether the preset power consumption resistance of the power consumption resistor meets the design requirements based on the first voltage value, the second voltage value and the preset calibration resistance of the calibration circuit.
[0012] Beneficial effect: The switching module of the control circuit can realize automatic control and switching of the first calibration switch and the load switch. Correspondingly, the main control module of the control circuit can collect the first voltage value and the second voltage value when the switching module controls the calibration circuit to be in the on state, and calculate and verify whether the preset power consumption resistance of the power consumption resistor meets the design requirements through the first voltage value, the second voltage value and the known preset calibration resistance value. In this process, since the preset calibration resistance value of the first calibration resistor and the load voltage (i.e., the second voltage value) are known, it is convenient to calculate the actual power consumption value and verify whether the actual power consumption value meets the design error of the theoretical power consumption value.
[0013] In an optional implementation, the main control module calculates the power consumption current flowing through the power consumption resistor:
[0014] I n0 =(U n1 -U n2 ) / R0.
[0015] The main control module calculates the actual power consumption of the calibration circuit:
[0016] P n1 =I n0 ×U n2 .
[0017] The main control module calculates the theoretical power consumption of the calibration circuit:
[0018] P n2 =U n2 ×U n2 / R n .
[0019] The main control module calculates the difference between the actual power consumption value and the theoretical power consumption value of the calibration circuit, and determines whether the difference is within the preset error value range to verify whether the preset power consumption resistance value meets the design requirements:
[0020] Preset error value X≥(P n1 -Pn2 ) / P n1 ;
[0021] Among them, R0 is the preset power consumption resistance of the power consumption resistor, R n is the preset calibration resistance value of the calibration resistor when the calibration circuit is in the on state, U n1 is the first voltage value when the corresponding calibration resistor of the calibration circuit is in the on state, U n2 is the second voltage value when the corresponding calibration resistor of the calibration circuit is in the on state, I n0 It is the power consumption current value when the corresponding calibration resistor of the calibration circuit is in the on state.
[0022] Beneficial effect: Through the calculation method of the main control module, the accuracy of power consumption monitoring and the accuracy of the preset power consumption resistance value can be calculated and verified at the same time, which is more convenient.
[0023] In an optional implementation, when the error between the actual power consumption value and the theoretical power consumption value of the calibration circuit is greater than the preset error value, the value of the preset power consumption resistance is adjusted. The main control module re-collects the first voltage value and the second voltage value and calculates whether the adjusted preset power consumption resistance meets the design requirements.
[0024] In an optional implementation, when the actual power consumption value is less than the corresponding theoretical power consumption value, the value of the preset power consumption resistance value is adjusted to decrease. When the actual power consumption value is greater than the corresponding theoretical power consumption value, the value of the preset power consumption resistance value is adjusted to increase.
[0025] In an optional embodiment, the calibration circuit further includes a second calibration resistor and a second calibration switch. The resistance of the second calibration resistor is less than the resistance of the first calibration resistor. One end of the second calibration switch is connected in series with the second calibration resistor, and the other end of the second calibration switch is connected in parallel between the power consumption resistor and the load switch.
[0026] In an optional embodiment, the calibration circuit further includes a third calibration resistor and a third calibration switch. The resistance of the third calibration resistor is less than the resistance of the second calibration resistor. One end of the third calibration switch is connected in series with the third calibration resistor, and the other end of the third calibration switch is connected in parallel between the power consumption resistor and the load switch.
[0027] Beneficial effect: Take the example that the first calibration resistor and the first calibration switch are one calibration unit, the second calibration resistor and the second calibration switch are one calibration unit, and the third calibration resistor and the third calibration switch are one calibration unit. By setting three calibration units in parallel in the calibration circuit, in the process of testing to turn on the calibration circuit, the three calibration units are connected to the power supply module in turn for load, and the first voltage value and the second voltage value corresponding to the three calibration units are read respectively. In this way, combined with the different load resistance values in the three calibration units (i.e., the preset calibration resistance values of the calibration resistors), it is convenient to detect the accuracy of the power consumption monitoring of the calibration power consumption resistors under different load conditions, which is conducive to improving the accuracy of the preset power consumption resistance value and the power consumption monitoring calibration detection.
[0028] In an optional implementation, when the calibration system includes a control circuit, and the control circuit includes a switching module and a main control module:
[0029] The main control module is connected to the switching module, and the switching module is connected to the load switch, the first calibration switch, the second calibration switch and the third calibration switch in sequence. The main control module has a load state and a calibration state.
[0030] When the main control module is in a load state, the switching module controls the load switch to be turned on.
[0031] When the main control module is in the calibration state, the switching module controls the first calibration switch, the second calibration switch and the third calibration switch to be turned on in sequence for a preset time length, so that the main control module collects three groups of first voltage values and second voltage values corresponding to the first calibration resistor, the second calibration resistor and the third calibration resistor.
[0032] Beneficial effects: By configuring the load state and calibration state of the main control module and combining the switching module, the main control module can control the three calibration units of the calibration circuit to be turned on and powered on in sequence, and automatically collect the corresponding three sets of first voltage values and second voltage values for subsequent calculation and calibration of the accuracy of the preset power consumption resistance and power consumption monitoring. That is, through automated configuration, the operation steps in the detection and calibration process are greatly reduced, which is conducive to improving the detection and calibration speed and reducing manpower loss.
[0033] In an optional embodiment, the switching module includes a first switching unit and a second switching unit. The first switching unit is connected to the load switch, and when the main control module is in a load state, the first switching unit controls the load switch to be turned on. The second switching unit is connected to the first calibration switch, the second calibration switch, and the third calibration switch. When the main control module is in a calibration state, the main control module controls the first calibration switch, the second calibration switch, and the third calibration switch to be turned on in sequence for a preset time length through the second switching unit.
[0034] Beneficial effect: By separating the first switching unit and the second switching unit at the physical level or the functional level in the switching module, the first switching unit controls the on-off of the load device of the power consumption circuit, and the second switching unit controls the on-off of the calibration circuit, thereby avoiding mutual interference between the two and improving the stability of the calibration system operation.
[0035] In an optional embodiment, there are multiple power consumption circuits. The power consumption circuit also includes a switch, and in one power consumption circuit, a first end of a switch is connected in parallel between the power consumption resistor and the load switch. In multiple power consumption circuits, the second ends of multiple switches are connected in parallel and connected to a calibration circuit.
[0036] Beneficial effects: For example, the switch can be connected to the second switch unit so that the switch can be controlled to be in an on state or an off state by the second switch unit. Alternatively, the on state or the off state of the switch can also be controlled by manual operation.
[0037] In this way, through the configuration of the switching switch, multiple power consumption circuits can select one of the switching switches to conduct the calibration circuit, so as to detect and calibrate the power consumption resistance and the accuracy of power consumption monitoring. That is, multiple power consumption circuits only need one calibration circuit under the configuration of multiple switching switches to meet the detection and calibration of the power consumption resistance and the accuracy of power consumption monitoring, which is conducive to simplifying the structure and reducing costs.
[0038] In an optional embodiment, the calibration system further includes a display module and an input module. The display module is connected to the main control module for communication, and is at least used to display calibration parameters and an operation terminal. The calibration parameters at least include a preset power consumption resistance value, a preset calibration resistance value, a theoretical power consumption value, an actual power consumption value, a preset error value, and an actual error value. The operation terminal is at least used to switch the module. The input module is connected to the main control module for communication, and is used to adjust some calibration parameters and control the operation terminal.
[0039] Beneficial effect: Through the setting of the display module and the input module, the user can receive the relevant results and parameters of the calibration system through the display module, and can also control the calibration system and adjust the corresponding parameters through the input module, so as to improve the convenience and accuracy of detection and calibration.
[0040] In an optional implementation, the sum of the resistance value of the first calibration resistor and the resistance value of the power consumption resistor is the resistance value when the power supply module outputs the rated power. The sum of the resistance value of the second calibration resistor and the resistance value of the power consumption resistor is the resistance value when the power supply module outputs 50% of the rated power. The sum of the resistance value of the third calibration resistor and the resistance value of the power consumption resistor is the resistance value when the power supply module outputs 20% of the rated power.
[0041] Beneficial effect: By setting the three calibration units to be at 100%, 50% and 20% load power consumption respectively, while facilitating providing the detection and calibration accuracy of the preset power consumption resistance and power consumption monitoring, it can further simulate the power consumption detection situation when the power consumption circuit is in the high power consumption, medium power consumption and low power consumption ranges, so that the detection and calibration process of the preset power consumption resistance and power consumption monitoring is in line with the actual application scenario, which is conducive to further improving the detection and calibration accuracy of the two.
[0042] In a second aspect, the present invention provides a calibration method for substrate power consumption monitoring, which is applicable to the calibration system for substrate power consumption monitoring in the first aspect, and the calibration method comprises the following steps:
[0043] Control the load switch to be in the off state.
[0044] Control the power supply module to turn on the power.
[0045] The first calibration switch is controlled to be turned on for a preset time and then turned off, and the first voltage value of the first voltage detection unit and the second voltage value of the second voltage detection unit are collected within the preset time.
[0046] A preset calibration resistance value of the first calibration resistor and a preset power consumption resistance value of the power consumption resistor are set.
[0047] Whether the preset power consumption resistance value meets the design requirements is calculated according to the first voltage value, the second voltage value, and the preset calibration resistance value.
[0048] If yes, the test ends.
[0049] Otherwise, adjust the value of the preset power consumption resistance and recalculate whether the preset power consumption resistance meets the design requirements.
[0050] In a third aspect, the present invention provides a computer device, comprising a memory and a processor. The memory stores computer instructions, the memory and the processor are in communication connection with each other, and the processor executes the calibration method in the second aspect by executing the computer instructions.
[0051] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the calibration method of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 A flow chart of a load monitoring calibration scheme for a substrate in a related scheme;
[0054] Figure 2 A schematic diagram of the structure of a first substrate power consumption monitoring calibration system provided by an embodiment of the present invention;
[0055] Figure 3 A schematic diagram of the structure of a second substrate power consumption monitoring calibration system provided by an embodiment of the present invention;
[0056] Figure 4 A schematic diagram of the structure of a third substrate power consumption monitoring calibration system provided by an embodiment of the present invention;
[0057] Figure 5 A schematic diagram of a graphical interface provided by an embodiment of the present invention;
[0058] Figure 6 The calibration system for monitoring power consumption of a substrate provided by an embodiment of the present invention includes a schematic diagram of the structure of a display module;
[0059] Figure 7 A flow chart of a calibration method for substrate power consumption monitoring provided by an embodiment of the present invention;
[0060] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Description of the drawings:
[0062] 100. Calibration system;
[0063] 10. Power consumption circuit; 11. Power supply module; 12. First voltage detection unit; 13. Power consumption resistor; 14. Second voltage detection unit; 15. Load switch; 16. Load element; 17. Switch;
[0064] 20. calibration circuit; 21. first calibration resistor; 22. first calibration switch; 23. second calibration resistor; 24. second calibration switch; 25. third calibration resistor; 26. third calibration switch;
[0065] 30. Control circuit; 31. Switching module; 311. First switching unit; 312. Second switching unit; 32. Main control module;
[0066] 41. Display module; 42. Input module;
[0067] 200, computer device; 210, processor; 220, memory; 230, communication interface. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0069] In the server field, power consumption monitoring and energy saving are major issues that need to be addressed. Currently, a common way to monitor power consumption in servers is to monitor power consumption through the BMC (Baseboard Management Controller), that is, to monitor power consumption through the BMC with precision resistors and processor modules.
[0070] Since precision resistors have standard errors, they will affect the accuracy of power consumption monitoring. In order to improve the accuracy of power consumption monitoring, precision resistors will be calibrated through a testing process during the equipment production process or before leaving the factory. In the above testing process, it is necessary to test and calibrate the accuracy of the precision resistors themselves and the power consumption monitoring through the cooperation of test fixtures and test software. However, due to the low adaptability of the test fixture and the fact that the voltage required by the test fixture is not consistent with the on-board voltage, it is even necessary to manually weld the load line during the test process. This makes the test calibration process cumbersome and increases the probability of equipment damage.
[0071] For example, in the process of calibrating the precision resistor detection, it is necessary to first test the single board to ensure that the error of the precision resistor is within the allowable range, and then perform the power consumption monitoring test of the baseboard management controller.
[0072] like Figure 1 As shown, before testing the single board, you need to manually solder the load wire to successfully connect the fixture and the test software. Afterwards, you can perform a pull-load test on the single board to verify whether the resistance of the precision resistor is within the allowable error range (i.e., whether it meets the spec). If so, proceed to the next step. Otherwise, replace the precision resistor or the baseboard management controller and repeat the pull-load test until the resistance of the precision resistor is within the allowable error range, i.e., the single board test is passed.
[0073] Continue to refer to Figure 1 After the single board test passes, manually solder the load wire in the whole machine environment. During the operation of the whole machine, read the power consumption through the baseboard management controller to determine whether the monitoring power consumption of the baseboard management controller meets the preset requirements (i.e., whether it meets the spec). If so, the test is completed. Otherwise, check the relevant parameters and formulas of the baseboard management controller and adjust them, and then read the load power consumption through the baseboard management controller again until the preset requirements are met.
[0074] Among them, in the above test scheme, the test calibration process is cumbersome and will increase the probability of equipment damage. The specific manifestations are:
[0075] First, in the above test process, a single board test is required to ensure the selection of hardware circuits and materials. Then the BMC power consumption monitoring test is performed on the whole machine. Two manual load line welding operations are required. Two load pulling and reading operations are required.
[0076] Secondly, when testing a single board, different monitoring modules need to be used due to different power. Each monitoring module needs to be equipped with different test fixtures and test software. This brings the following problems:
[0077] 1. The CLK (clock signal) and Data (data) voltages of the BMC connection monitoring module are both 3.3V, but some connection voltages require 5.0V. Since the required voltages are not uniform, the 3.3V voltage on the board needs to be disconnected during testing, and the 5V voltage on the fixture is used for power supply testing. The operation is cumbersome, and testers who are not familiar with the fixture may need to troubleshoot for a long time before solving the problem.
[0078] 2. Problems such as unrecognizable processors, damaged test fixtures, and inability to install test software are often encountered, which is time-consuming and labor-intensive.
[0079] 3. After the selection of substitute materials is completed, because precision resistors of different manufacturers and models have errors, verification is required, and the above operations on single boards and complete machines need to be repeated. In the process of using main materials and substitute materials, the single board needs to be tested twice, and the complete machine is also tested twice, which is time-consuming and labor-intensive and has limitations on the selection of substitute materials.
[0080] 4. The current test solution cannot monitor the BMC current when the load-end board is not in place, so the test needs to be performed in the whole machine environment. The load wire needs to be manually welded, which is troublesome to operate in the whole machine environment, increases the probability of material damage, and consumes time and manpower.
[0081] 5. Under the current whole machine, the BMC current accuracy test has a certain dynamic load on the back-end load, and the test is not accurate.
[0082] Combine the following Figures 2 to 8 The present application describes a calibration system, calibration method, device and medium for monitoring power consumption of a substrate, so as to solve the problem that the current calibration and detection process of power monitoring is relatively cumbersome and increases the probability of equipment damage.
[0083] In a first aspect, the present invention provides a calibration system for monitoring power consumption of a substrate (hereinafter referred to as the calibration system), such as Figure 2As shown, the calibration system 100 includes a power consumption circuit 10 and a calibration circuit 20. The power consumption circuit 10 includes a power supply module 11, a first voltage detection unit 12, a power consumption resistor 13, a second voltage detection unit 14 and a load switch 15 connected in sequence, and the first voltage detection unit 12 and the second voltage detection unit 14 are used to detect the voltage value before and after passing through the power consumption resistor 13. The calibration circuit 20 includes a first calibration resistor 21 and a first calibration switch 22, one end of the first calibration switch 22 is connected in series with the first calibration resistor 21, and the other end of the first calibration switch 22 is connected in parallel between the power consumption resistor 13 and the load switch 15.
[0084] In the calibration system for monitoring the power consumption of the substrate of the present invention, in the power consumption circuit 10, a load switch 15 is installed in series downstream of the power consumption resistor 13, so that the power supply module 11 can selectively turn on load components such as a fan, a central processing unit, a hard disk, a memory or a graphics processor through the power consumption resistor 13, and can also disconnect the power supply module 11 from the above-mentioned load components through the power consumption resistor 13.
[0085] Based on this, a calibration circuit 20 including a first calibration resistor 21 and a first calibration switch 22 is provided, so that the first calibration resistor 21 is connected in parallel to the downstream interface end of the power consumption resistor 13 via the first calibration switch 22. In this way, by controlling the load switch 15 and the first calibration switch 22, the power supply module 11 selects to turn on the load component or the first calibration resistor 21 via the power consumption resistor 13.
[0086] When the load switch 15 is in the off state and the first calibration switch 22 is in the on state, the power supply module 11 transmits power to the first calibration resistor 21 through the power consumption resistor 13, so that the power supply module 11 is in the load state. At this time, the first voltage value and the second voltage value before and after flowing through the power consumption resistor 13 can be detected by the first voltage detection unit 12 and the second voltage detection unit 14, and the preset calibration resistance value of the first calibration resistor 21 is a known parameter. Since the current flowing through the power consumption resistor 13 and the first calibration resistor 21 is equal, the actual resistance value of the power consumption resistor 13 can be calculated, or the calculation and verification of the resistance value of the power consumption resistor 13 meets the design standard, that is, the verification of whether the preset power consumption resistance value of the power consumption resistor 13 meets the preset error value.
[0087] When the calibration system for monitoring the power consumption of the substrate is applied to the onboard circuit in computer equipment such as servers, the power consumption circuit 10 only needs to add a load switch 15 for switching between the original power consumption resistor 13 and the load element, and then set the calibration circuit 20 in parallel with the load switch 15, that is, the first calibration resistor 21 and the first calibration switch 22, to complete the improvement of the onboard circuit. The structure is simple, easy to improve and will not significantly increase the cost. In addition, the first voltage value and the second voltage value of the first voltage detection unit 12 and the second voltage detection unit 14 can be directly read by switching the calibration circuit 20, and combined with the known preset calibration resistance of the first calibration resistor 21, the preset power consumption resistance of the power consumption resistor 13 can be calculated and verified, which is conducive to improving the accuracy of substrate power consumption monitoring.
[0088] Compared with the testing method of the related schemes using test fixtures, test software and manual welding of load lines, the above scheme of the present invention directly integrates the above calibration system on the substrate, which has a simple structure, is easy to improve and does not significantly increase the cost. In addition, the calibration system of the present invention does not require additional test tools and welding processes during the test and calibration process, that is, it does not require familiarity with identifying test tools and practicing welding processes. It greatly reduces the operation process to reduce manpower investment and fundamentally avoids the risk of bad boards during the test and calibration process.
[0089] It should be noted that if Figure 1 As shown, the power consumption circuit 10 further includes a load 16, which may be a fan, a central processing unit, a hard disk, a memory, a decorative lamp, or a graphics processor. One end of the load switch 15 is connected to the power consumption resistor 13, and the other end of the load switch 15 is connected to one or more loads 16.
[0090] In the above embodiment, the load switch 15 and the first calibration switch 22 may be manual switches, that is, the on state and the off state of the switches may be switched manually by pressing, toggling, dialing or jumper switching.
[0091] Alternatively, the load switch 15 and the first calibration switch 22 may also be electrically controlled switches, that is, the on state and the off state of the switches are switched by signal current or signal voltage, so as to realize automatic control of the circuit.
[0092] Among them, other calibration switches in the calibration circuit 20 can be set with reference to the first calibration switch 22 .
[0093] In some embodiments, Figure 2As shown, the calibration system 100 also includes a control circuit 30, and the control circuit 30 includes a switching module 31 and a main control module 32. The switching module 31 is connected to the load switch 15 and the first calibration switch 22, and is used to control the calibration circuit 20 or the load switch 15 to be in a conductive state. The main control module 32 is connected to the first voltage detection unit 12 and the second voltage detection unit 14. When the switching module 31 controls the calibration circuit 20 to be in a conductive state, the main control module 32 collects the first voltage value before passing through the power consumption resistor 13 through the first voltage detection unit 12, and the main control module 32 collects the second voltage value after passing through the power consumption resistor 13 through the second voltage detection unit 14. The main control module 32 calculates whether the preset power consumption resistance value of the power consumption resistor 13 meets the design requirements based on the first voltage value, the second voltage value and the preset calibration resistance value of the calibration circuit.
[0094] In this way, the automatic control and switching of the first calibration switch 22 and the load switch 15 can be realized through the switching module 31 of the control circuit 30. Correspondingly, the main control module 32 of the control circuit 30 can collect the first voltage value and the second voltage value when the switching module 31 controls the calibration circuit 20 to be in the on state, and calculate and verify whether the preset power consumption resistance value of the power consumption resistor 13 meets the design requirements through the first voltage value, the second voltage value and the known preset calibration resistance value. In this process, since the preset calibration resistance value of the first calibration resistor 21 and the load voltage (i.e., the second voltage value) are known, it is convenient to calculate the actual power consumption value and verify whether the actual power consumption value meets the design error of the theoretical power consumption value.
[0095] Exemplarily, the first voltage detection unit 12 and the second voltage detection unit 14 are high-precision detection elements, and both can be split structures or integrated structures. For example, an ultra-precision digital power monitor of model INA237 is provided in the power consumption circuit 10, and the two voltage pins of the power monitor can be directly or indirectly connected to the upper and lower ends of the power consumption resistor 13 through other components to accurately detect the DC voltage value before and after flowing through the power consumption resistor 13, that is, the first voltage value and the second voltage value.
[0096] Correspondingly, the main control module 32 can be a baseboard management controller or other processor elements on the server mainboard, which is convenient for controlling the on and off states of the load switch 15 and the calibration switch through a preset program, and collecting the corresponding first voltage value and the second voltage value when the corresponding calibration switch is in the on state, and then calculating and verifying whether the preset power consumption resistance meets the requirements, and verifying whether the accuracy of the preset power consumption monitoring calculation formula meets the design requirements.
[0097] In some implementations, according to a preset program, the main control module 32 calculates the power consumption current flowing through the power consumption resistor 13:
[0098] I n0=(U n1 -U n2 ) / R0; it can also be I n0 =U n1 / (R0+R n ).
[0099] The main control module 32 calculates the actual power consumption value of the calibration circuit 20:
[0100] P n1 =I n0 ×U n2 ; can also be P n1 =I n0 ×I n0 ×R n .
[0101] The main control module 32 calculates the theoretical power consumption value of the calibration circuit 20:
[0102] P n2 =U n2 ×U n2 / R n .
[0103] The main control module 32 calculates the difference between the actual power consumption value and the theoretical power consumption value of the calibration circuit 20, and determines whether the difference is within the range of the preset error value to verify whether the preset power consumption resistance meets the design requirements:
[0104] Preset error value X≥(P n1 -P n2 ) / P n1 .
[0105] Wherein, R0 is the preset power consumption resistance value of the power consumption resistor 13, R n is the preset calibration resistance value of the calibration resistor when the calibration circuit 20 is in the on state, U n1 is the first voltage value when the corresponding calibration resistor of the calibration circuit 20 is in the on state, U n2 is the second voltage value when the corresponding calibration resistor of the calibration circuit 20 is in the on state, I n0 is the power consumption current value when the corresponding calibration resistor of the calibration circuit 20 is in the on state.
[0106] That is, through the calculation method of the main control module 32, the accuracy of power consumption monitoring and the accuracy of the preset power consumption resistance value can be calculated and verified at the same time, which is more convenient.
[0107] After the above solution is introduced into the power consumption circuit 10 , the actual power consumption value calculated by the main control module 32 is the real-time power consumption value of the load 16 .
[0108] In some embodiments, when calculating the power consumption value of the power consumption circuit 10, the power consumption of the power consumption resistor 13 and the load 16 can also be simultaneously calculated into the real-time power consumption value. At this time, the calculation of the actual power consumption value can be the power consumption current value I flowing through the power consumption resistor 13 n0 The corresponding theoretical power consumption value is calculated as the ratio of the square of the first voltage value to the sum of the preset power consumption resistance value and the corresponding preset calibration resistance value. The preset power consumption resistance value and power consumption monitoring calculation verification can also be performed.
[0109] In some embodiments, Figure 3 As shown, the calibration circuit 20 also includes a second calibration resistor 23 and a second calibration switch 24. The resistance of the second calibration resistor 23 is less than the resistance of the first calibration resistor 21. One end of the second calibration switch 24 is connected in series with the second calibration resistor 23, and the other end of the second calibration switch 24 is connected in parallel between the power consumption resistor 13 and the load switch 15.
[0110] Or, continue to refer to Figure 3 The calibration circuit 20 further includes a third calibration resistor 25 and a third calibration switch 26. The resistance of the third calibration resistor 25 is less than the resistance of the second calibration resistor 23. One end of the third calibration switch 26 is connected in series with the third calibration resistor 25, and the other end of the third calibration switch 26 is connected in parallel between the power consumption resistor 13 and the load switch 15.
[0111] Take the example that the first calibration resistor 21 and the first calibration switch 22 are one calibration unit, the second calibration resistor 23 and the second calibration switch 24 are one calibration unit, and the third calibration resistor 25 and the third calibration switch 26 are one calibration unit. By setting three calibration units in parallel in the calibration circuit 20, in the process of testing to turn on the calibration circuit 20, the three calibration units are connected to the power supply module 11 in turn for load, and the first voltage value and the second voltage value corresponding to the three calibration units are read respectively. In this way, combined with the different load resistance values in the three calibration units (i.e., the preset calibration resistance values of the calibration resistors), it is convenient to detect the accuracy of the power consumption monitoring of the calibration power consumption resistor 13 under different load conditions, which is conducive to improving the accuracy of the preset power consumption resistance value and the power consumption monitoring calibration detection.
[0112] It should be noted that since the resistance values of the first calibration resistor 21, the second calibration resistor 23 and the third calibration resistor 25 decrease successively, the voltage provided by the power supply module 11 in the power consumption circuit 10 is basically in a stable state, that is, the load power at the corresponding three calibration units decreases successively.
[0113] Exemplarily, the sum of the resistance value of the first calibration resistor 21 and the resistance value of the power consumption resistor 13 is set to be the resistance value when the power supply module 11 outputs the rated power. The sum of the resistance value of the second calibration resistor 23 and the resistance value of the power consumption resistor 13 is the resistance value when the power supply module 11 outputs 50% of the rated power. The sum of the resistance value of the third calibration resistor 25 and the resistance value of the power consumption resistor 13 is the resistance value when the power supply module 11 outputs 20% of the rated power. In this way, by setting the three-way calibration unit to be at 100%, 50% and 20% load power consumption respectively, while facilitating the provision of the detection and calibration accuracy of the preset power consumption resistance and power consumption monitoring, it is possible to further simulate the power consumption detection of the power consumption circuit 10 when it is in the high power consumption, medium power consumption and low power consumption ranges, so that the detection and calibration process of the preset power consumption resistance and power consumption monitoring fits the actual application scenario, which is conducive to further improving the detection and calibration accuracy of the two.
[0114] Based on this, when the calibration system 100 includes a control circuit 30, and the control circuit 30 includes a switching module 31 and a main control module 32. The main control module 32 is connected to the switching module 31, and the switching module 31 is sequentially connected to the load switch 15, the first calibration switch 22, the second calibration switch 24, and the third calibration switch 26. The main control module 32 has a load state and a calibration state.
[0115] When the main control module 32 is in a load state, the switching module 31 controls the load switch 15 to be turned on. At this time, the switching module 31 controls the calibration circuit 20 and the power supply module 11 to be in an open circuit state.
[0116] When the main control module 32 is in the calibration state, the switching module 31 controls the first calibration switch 22, the second calibration switch 24 and the third calibration switch 26 to be turned on in sequence for a preset time length, so that the main control module 32 collects three sets of first voltage values and second voltage values corresponding to the first calibration resistor 21, the second calibration resistor 23 and the third calibration resistor 25. At this time, the switching module 31 controls the load 16 to be disconnected from the power supply module 11 via the load switch 15.
[0117] In this way, by configuring the load state and calibration state of the main control module 32, combined with the switching module 31, the main control module 32 can control the three calibration units of the calibration circuit 20 to be turned on and powered on in sequence, and automatically collect the corresponding three sets of first voltage values and second voltage values for subsequent calculation and calibration of the accuracy of the preset power consumption resistance and power consumption monitoring. That is, through automatic configuration, the operation steps in the detection and calibration process are greatly reduced, which is conducive to improving the detection and calibration speed and reducing manpower loss.
[0118] It should be noted that the switching module 31 and the main control module 32 may both be functional modules of the BMC, or they may be independent components, which is not limited to this.
[0119] In addition, when the calibration circuit 20 and the load 16 can be switched manually, the first calibration switch 22, the second calibration switch 24 and the third calibration switch 26 can also be switched in sequence by toggling, pressing or plugging.
[0120] In some embodiments, Figure 3 As shown, the switching module 31 includes a first switching unit 311 and a second switching unit 312. The first switching unit 311 is connected to the load switch 15. When the main control module 32 is in the load state, the first switching unit 311 controls the load switch 15 to be turned on, and the calibration circuit 20 is in the open circuit state. The second switching unit 312 is connected to the first calibration switch 22, the second calibration switch 24, and the third calibration switch 26. When the main control module 32 is in the calibration state, the second switching unit 312 controls the first calibration switch 22, the second calibration switch 24, and the third calibration switch 26 to be turned on in sequence for a preset time length.
[0121] In this way, by separating the first switching unit 311 and the second switching unit 312 at the physical level or the functional level in the switching module 31, the first switching unit 311 controls the on-off of the load component 16 of the power consumption circuit 10, and the second switching unit 312 controls the on-off of the calibration circuit 20, thereby avoiding mutual interference between the two and improving the stability of the calibration system operation.
[0122] For example, the DC voltage output by the power supply module 11 is 12V, and the rated load of a power consumption circuit 10 is 960W. At this time, the first preset calibration resistance R1 of the first calibration resistor 21 is 12×12 / 960=0.15Ω=150mΩ. The second preset calibration resistance R2 of the corresponding second calibration resistor 23 is 12×12 / (960×50%)=300mΩ, that is, n is 2 at this time. And the third preset calibration resistance R2 of the third calibration resistor 25 is 12×12 / (960×20%)=750mΩ, that is, n is 3 at this time.
[0123] Correspondingly, the preset power consumption resistance of the power consumption resistor 13 is usually R0=2mΩ. That is, at this time, the ratio of the preset calibration resistance (including the first preset calibration resistance, the second preset calibration resistance and the third preset calibration resistance) to the preset power consumption resistance is at least 75 times. Since the accuracy of power detection is generally within ±2%-3%, but the ratio of the above preset calibration resistance to the preset power consumption resistance is 75 times, 150 times and 375 times respectively, that is, the error caused by the preset power consumption resistance compared to the preset calibration resistance is within the range of ±2%-3%.
[0124] Alternatively, the ratio of the preset calibration resistance value of the first calibration resistor 21 to the preset power consumption resistance value may be set to be greater than or equal to 50 times, so as to calculate and correct the preset power consumption resistance value.
[0125] Based on this, refer to Figure 5 , Figure 5 A graphical interface diagram provided in an embodiment of the present invention is used to control and display the preset power consumption resistance value and the power consumption monitoring parameters used for detection and calibration. Figure 4 In the figure, the P resistance values represent the preset calibration resistance values of the third calibration resistor 25, the second calibration resistor 23 and the first calibration resistor 21 from top to bottom, and the preset calibration resistance values are 750mΩ, 300mΩ and 150mΩ from top to bottom, and the DC voltage output by the power supply module 11 is 12V. As the preset power consumption resistance value of about 2mΩ can be ignored compared with the preset calibration resistance value, the theoretical power consumption of the corresponding calibration unit P is 192W, 475W and 960W from top to bottom.
[0126] Continue to refer to Figure 5 , the maximum error range is below the theoretical power consumption of 960W, with a value of ±3%. Taking the preset power consumption resistance R0=2mΩ as an example, the initial value of the recommended value of R0 is 2mΩ. Based on this, after manually filling in the three P resistance values, the first switching unit 311 is switched to the second switching unit 312 at the switching module selection through the touch terminal or control key (or control knob) of the graphical interface. After the system automatically executes the detection and calculation program, the output P theoretical power consumption is 192W, 475W and 960W from top to bottom, and the P actual power consumption is 188W, 475W and 953W from top to bottom, and the corresponding errors are -2.08%, -1.04% and -0.7% from top to bottom. That is, the error between the actual power consumption value and the corresponding theoretical power consumption value is within the range of ±3%, which means that the initial recommended value of R0 (that is, the preset power consumption resistance) 2mΩ is in line with the design standard.
[0127] In addition, if the actual error between the actual power consumption value of the calibration circuit 20 and the theoretical power consumption value is greater than the preset error value. Figure 5 The absolute value of one or more errors in the graphical interface shown is greater than 3%. At this time, the value of the preset power consumption resistance R0 should be adjusted, such as Figure 5 Fill in the modified value at the modification R0 in the graphical interface shown, click the write button to confirm the written R0 modified value, and then click the read button to make the main control module 32 re-collect the first voltage value and the second voltage value, and calculate whether the adjusted preset power consumption resistance meets the design requirements.
[0128] After clicking the read button, the second switch unit 312 controls the first calibration switch 22, the second calibration switch 24 and the third calibration switch 26 to be turned on in sequence for a preset time, so that the main control module 32 can re-read the three sets of first voltage values and second voltage values. Figure 5In the graphical interface, the three sets of data of P actual power consumption and the three sets of data of error are updated in sequence until the actual error between the actual power consumption value and the corresponding theoretical power consumption value is within the preset error range of ±3%, which means that the preset power consumption resistance value and power consumption detection meet the design standards.
[0129] For example, when the actual power consumption value is less than the corresponding theoretical power consumption value, it means that the preset power consumption resistance value is too large, and it is necessary to adjust and reduce the preset power consumption resistance value to improve the accuracy of power consumption monitoring. Correspondingly, when the actual power consumption value is greater than the corresponding theoretical power consumption value, it means that the preset power consumption resistance value is too small, and it is necessary to adjust and increase the preset power consumption resistance value to improve the accuracy of power consumption monitoring.
[0130] It should be noted that in electronic products such as servers or computers, there are multiple power consumption circuits 10 , in order to facilitate testing and calibrating the power consumption resistors 13 and power consumption monitoring in the multiple power consumption circuits 10 in sequence.
[0131] like Figure 4 As shown, there are multiple power consumption circuits 10. The power consumption circuit 10 also includes a switch 17. In one power consumption circuit 10, a first end of a switch 17 is connected in parallel between the power consumption resistor 13 and the load switch 15. In multiple power consumption circuits 10, second ends of multiple switches 17 are connected in parallel and connected to a calibration circuit 20.
[0132] like Figure 4 As shown, the switch 17 can be connected to the second switching unit 312, so that the switch 17 can be controlled to be in an on state or an off state by the second switching unit 312. Alternatively, the on state or the off state of the switch 17 can also be controlled by manual operation.
[0133] In this way, by configuring the switch 17, multiple power consumption circuits 10 can select one of the calibration circuits 20 to be turned on through the switch 17, so as to detect and calibrate the power consumption resistance and the accuracy of power consumption monitoring. That is, multiple power consumption circuits 10 only need one calibration circuit to meet the detection and calibration of the power consumption resistance and the accuracy of power consumption monitoring under the configuration of multiple switch 17, which is conducive to simplifying the structure and reducing costs.
[0134] Alternatively, multiple power consumption circuits 10 and multiple calibration circuits 20 may be configured in a one-to-one correspondence, that is, there is no need to additionally set up a switching switch 17, which is beneficial to improving the stability of the circuit layout on the substrate.
[0135] Correspondingly, in Figure 5In the graphical interface shown, for different power consumption circuits 10, the corresponding thread address can be selected through the Adress box and the Scan button can be clicked to confirm. Then, the corresponding power consumption circuit 10 can be detected and calibrated by adjusting the P resistance value and modifying the R0 preset power consumption resistance value, which is very convenient.
[0136] In some embodiments, Figure 6 As shown, the calibration system 100 also includes a display module 41 and an input module 42. The display module 41 is connected to the main control module 32 for communication, and the display module 41 is at least used to display the calibration parameters and the operation end. The calibration parameters at least include a preset power consumption resistance value, a preset calibration resistance value, a theoretical power consumption value, an actual power consumption value, a preset error value, and an actual error value. The operation end is at least used to control the switching module 31, and the input module 42 is connected to the main control module 32 for communication, and is used to adjust some calibration parameters and control the operation end.
[0137] That is, by setting the display module 41 and the input module 42, the user can receive the relevant results and parameters of the calibration system 100 through the display module 41, and can also control the calibration system and adjust the corresponding parameters through the input module 42 to improve the convenience and accuracy of the detection and calibration.
[0138] Exemplarily, the display module 41 and the input module 42 can be an integrated touch screen. Through the communication connection with the main control module 32, the touch screen can display the test process and related parameters, and can also adjust and control the detection and calibration process (and parameters) through the touch screen, which is more convenient.
[0139] Alternatively, the input module 42 may also include a mouse or keyboard structure, which can also be used to input commands and parameters. Correspondingly, the display module 41 may also be a common liquid crystal display or LED (Light-Emitting Diode) display, which is not limited.
[0140] The calibration system 100 provided by the present invention has the following advantages:
[0141] 1. The calibration circuit 20 only needs to be powered by the power supply module 11 of the power consumption circuit 10, so it is convenient to directly use the onboard power supply for power supply without replacing the power supply of other voltages, and no additional fixture is required for auxiliary detection, which greatly reduces the tediousness and structural complexity of the test process and facilitates the rapid development of the test process.
[0142] 2. The calibration circuit 20 and the power consumption circuit 10 are integrated in the onboard electronic circuit, so there will be no situation where the recognition fails due to connection errors, and it can also avoid external equipment or software damage interfering with the detection process, which is more convenient.
[0143] 3. After inputting the corresponding parameter instructions, the test results can be directly output through the automatic operation of the program, so that the user can make judgments and adjustments. Even when the preset power consumption resistance value does not meet the design requirements, the main control module 32 can also output the preset power consumption resistance value (i.e., the recommended value of R0) in a suitable range according to the preset formula.
[0144] 4. Through the setting of the calibration circuit 20, the detection and calibration can be directly powered on without the assistance of additional load components and without the additional operation steps of welding load lines. The detection and calibration process is relatively simple.
[0145] 5. By setting up multiple groups of calibration units, and placing the multiple groups of calibration units in different load ranges, the errors caused by different dynamic loads during the detection and calibration process can be reduced, thereby further improving the accuracy of the detection and calibration results.
[0146] In a second aspect, the present invention further provides a calibration method for monitoring substrate power consumption, which is applicable to the calibration system for monitoring substrate power consumption in the first aspect, such as Figure 7 As shown, the calibration method includes the following steps:
[0147] Step S110, controlling the load switch to be in an off state.
[0148] Step S120, controlling the power supply module to turn on the power.
[0149] Step S130, controlling the first calibration switch to be turned on for a preset time and then turned off, and collecting the first voltage value of the first voltage detection unit and the second voltage value of the second voltage detection unit within the preset time.
[0150] When the calibration circuit also includes a second calibration switch and a third calibration switch, the first calibration switch, the second calibration switch and the third calibration switch are controlled to be turned on in sequence for a preset time length, and the main control module collects a corresponding set of first voltage values and second voltage values within the corresponding preset time length.
[0151] Step S140, setting a preset calibration resistance value of the first calibration resistor and a preset power consumption resistance value of the power consumption resistor.
[0152] When the calibration circuit further includes a second calibration resistor and a third calibration resistor, the preset calibration resistance values of the first calibration resistor, the second calibration resistor and the third calibration resistor are set accordingly.
[0153] Step S150, calculating whether the preset power consumption resistance value meets the design requirement according to the first voltage value, the second voltage value, and the preset calibration resistance value.
[0154] If yes, the test ends.
[0155] That is, the difference between the actual power consumption value and the preset power consumption value is within the preset error value, that is, the preset power consumption resistance value and the accuracy of power consumption monitoring meet the design standards, and the test process is ended.
[0156] Otherwise, adjust the value of the preset power consumption resistance and recalculate whether the preset power consumption resistance meets the design requirements.
[0157] In this process, the main control module may re-collect the corresponding first voltage value and the second voltage value, or the main control module may directly calculate the corresponding actual power consumption value and the actual error value, which is not limited.
[0158] In the embodiment of the present invention, since the calibration method in the second aspect is a method step corresponding to the calibration system for substrate power consumption monitoring in the first aspect, the calibration method has all the beneficial effects of the above-mentioned calibration system, which will not be repeated here.
[0159] In a third aspect, an embodiment of the present invention further provides a computer device having the above Figures 2 to 4 Calibration system shown.
[0160] See also Figure 8 , Figure 8 Schematic diagram of a computer device provided by an optional embodiment of the present invention. Figure 8 As shown, the computer device 200 includes one or more processors 210, a memory 220, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface).
[0161] In some optional embodiments, if desired, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 210 is taken as an example.
[0162] The processor 210 may be a central processing unit, a network processor or a combination thereof. The processor 210 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0163] The memory 220 stores instructions executable by at least one processor 210, so that at least one processor 210 executes the method shown in the above embodiment.
[0164] The memory 220 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 220 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some optional embodiments, the memory 220 may optionally include a memory remotely arranged relative to the processor 210, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0165] The memory 220 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 220 may also include a combination of the above types of memory.
[0166] like Figure 8 As shown, the computer device further includes a communication interface 230 for the computer device to communicate with other devices or a communication network.
[0167] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the method according to the embodiment of the present invention described above can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or is implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc. Further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0168] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A calibration system for monitoring power consumption of a substrate, characterized in that: The calibration system comprises a power consumption circuit (10) and a calibration circuit (20); The power consumption circuit (10) comprises a power supply module (11), a first voltage detection unit (12), a power consumption resistor (13), a second voltage detection unit (14) and a load switch (15) which are connected in sequence, wherein the first voltage detection unit (12) and the second voltage detection unit (14) are used to detect voltage values before and after flowing through the power consumption resistor (13); The calibration circuit (20) comprises: a first calibration resistor (21), a first calibration switch (22), a second calibration resistor (23), a second calibration switch (24), a third calibration resistor (25) and a third calibration switch (26); the resistance value of the third calibration resistor (25) is smaller than the resistance value of the second calibration resistor (23) and smaller than the resistance value of the first calibration resistor (21); One end of the first calibration switch (22) is connected in series with the first calibration resistor (21), and the other end of the first calibration switch (22) is connected in parallel between the power consumption resistor (13) and the load switch (15); one end of the second calibration switch (24) is connected in series with the second calibration resistor (23), and the other end is connected in parallel between the power consumption resistor (13) and the load switch (15); one end of the third calibration switch (26) is connected in series with the third calibration resistor (25), and the other end is connected in parallel between the power consumption resistor (13) and the load switch (15); In a case where the calibration system comprises a control circuit (30), the control circuit (30) comprises a switching module (31) and a main control module (32); The main control module (32) is connected to the switching module (31), and the switching module (31) is sequentially connected to the load switch (15), the first calibration switch (22), the second calibration switch (24), and the third calibration switch (26); The main control module (32) has a load state and a calibration state; When the main control module (32) is in a load state, the switching module (31) controls the load switch (15) to be turned on; When the main control module (32) is in a calibration state, the switching module (31) controls the first calibration switch (22), the second calibration switch (24), and the third calibration switch (26) to be turned on in sequence for a preset time length, so that the main control module (32) collects three groups of first voltage values and second voltage values corresponding to the first calibration resistor (21), the second calibration resistor (23), and the third calibration resistor (25).
2. The calibration system for substrate power consumption monitoring according to claim 1, characterized in that: The calibration system further comprises a control circuit (30), wherein the control circuit (30) comprises: a switching module (31), the switching module (31) being connected to the load switch (15) and the first calibration switch (22), and being used to control the calibration circuit (20) or the load switch (15) to be in an on state; and a main control module (32), the main control module (32) being connected to the first voltage detection unit (12) and the second voltage detection unit (14); When the switching module (31) controls the calibration circuit (20) to be in an on state, the main control module (32) collects a first voltage value before the voltage passes through the power consumption resistor (13) through the first voltage detection unit (12), and the main control module (32) collects a second voltage value after the voltage passes through the power consumption resistor (13) through the second voltage detection unit (14); The main control module (32) calculates whether the preset power consumption resistance value of the power consumption resistor (13) meets the design requirements based on the first voltage value, the second voltage value and the preset calibration resistance value of the calibration circuit (20).
3. The calibration system for substrate power consumption monitoring according to claim 2, characterized in that: The main control module (32) calculates the power consumption current flowing through the power consumption resistor (13): AND n0 =(U n1 -IN n2 ) / R0; The main control module (32) calculates the actual power consumption value of the calibration circuit (20): P n1 =I n0 ×U n2 ; The main control module (32) calculates the theoretical power consumption value of the calibration circuit (20): P n2 =U n2 ×U n2 / R n ; The main control module (32) calculates the difference between the actual power consumption value and the theoretical power consumption value of the calibration circuit (20), and determines whether the difference is within a preset error value range, so as to verify whether the preset power consumption resistance value meets the design requirements: Preset error value X≥(P n1 -P n2 ) / P n1 ; Wherein, R0 is the preset power consumption resistance value of the power consumption resistor (13), R n is the preset calibration resistance value of the calibration resistor when the calibration circuit (20) is in the on state, U n1 is the first voltage value when the corresponding calibration resistor of the calibration circuit (20) is in a conducting state, U n2 is the second voltage value when the corresponding calibration resistor of the calibration circuit (20) is in the on state, I n0 is the power consumption current value when the corresponding calibration resistor of the calibration circuit (20) is in the on state.
4. The calibration system for substrate power consumption monitoring according to claim 3, characterized in that: When the error between the actual power consumption value and the theoretical power consumption value of the calibration circuit (20) is greater than a preset error value, adjusting the value of the preset power consumption resistance value; The main control module (32) re-collects the first voltage value and the second voltage value and calculates whether the adjusted preset power consumption resistance value meets the design requirements.
5. The calibration system for substrate power consumption monitoring according to claim 4, characterized in that: When the actual power consumption value is less than the corresponding theoretical power consumption value, adjusting and reducing the value of the preset power consumption resistance; When the actual power consumption value is greater than the corresponding theoretical power consumption value, the value of the preset power consumption resistance is adjusted and increased.
6. The calibration system for substrate power consumption monitoring according to claim 1, characterized in that: The switching module (31) comprises: A first switching unit (311), the first switching unit (311) being connected to the load switch (15), and when the main control module (32) is in the load state, the first switching unit (311) controls the load switch (15) to be turned on; and a second switching unit (312), wherein the second switching unit (312) is connected to the first calibration switch (22), the second calibration switch (24), and the third calibration switch (26); when the main control module (32) is in the calibration state, the main control module (32) controls the first calibration switch (22), the second calibration switch (24), and the third calibration switch (26) to be turned on in sequence for a preset time period via the second switching unit (312).
7. The calibration system for monitoring power consumption of a substrate according to any one of claims 1 to 5, characterized in that: The number of the power consumption circuits (10) is multiple; The power consumption circuit (10) further comprises a switching switch (17). In one of the power consumption circuits (10), a first end of the switching switch (17) is connected in parallel between the power consumption resistor (13) and the load switch (15); in a plurality of the power consumption circuits (10), second ends of a plurality of the switching switches (17) are arranged in parallel and connected to a calibration circuit (20).
8. The calibration system for monitoring power consumption of a substrate according to any one of claims 3 to 5, characterized in that: The calibration system further comprises: A display module (41), the display module (41) being communicatively connected to the main control module (32), and being at least used for displaying calibration parameters and an operation terminal; the calibration parameters at least including the preset power consumption resistance value, the preset calibration resistance value, the theoretical power consumption value, the actual power consumption value, the preset error value, and the actual error value; the operation terminal is at least used for controlling the switching module (31); and an input module (42), wherein the input module (42) is communicatively connected to the main control module (32) and is used to adjust part of the calibration parameters and control the operating end.
9. The calibration system for substrate power consumption monitoring according to claim 1, characterized in that: The sum of the resistance value of the first calibration resistor (21) and the resistance value of the power consumption resistor (13) is the resistance value when the power supply module (11) outputs rated power; The sum of the resistance value of the second calibration resistor (23) and the resistance value of the power consumption resistor (13) is the resistance value when the power supply module (11) outputs 50% of the rated power; The sum of the resistance value of the third calibration resistor (25) and the resistance value of the power consumption resistor (13) is the resistance value when the power supply module (11) outputs 20% of the rated power.
10. A calibration method for monitoring power consumption of a substrate, characterized in that: A calibration system for monitoring substrate power consumption applicable to any one of claims 1 to 9, wherein the calibration method comprises: Controlling the load switch to be in an off state; Controlling the power supply module to turn on power; Controlling the first calibration switch to be turned on for a preset time and then turned off, and collecting a first voltage value of the first voltage detection unit and a second voltage value of the second voltage detection unit within the preset time; Setting a preset calibration resistance value of the first calibration resistor and a preset power consumption resistance value of the power consumption resistor; Calculate whether the preset power consumption resistance value meets the design requirements according to the first voltage value, the second voltage value, and the preset calibration resistance value; If yes, the test ends; Otherwise, the value of the preset power consumption resistance is adjusted, and whether the preset power consumption resistance meets the design requirements is recalculated.
