A circuit and method for testing system power
By designing a combination circuit of multiple power supply branches, adders and controllers in the AI server, high-precision detection of system power is achieved, which solves the problem of dynamic changes in multiple power supplies in traditional detection methods and improves the reliability and real-time performance of system energy efficiency management.
Patent Information
- Application Number
- CN202510953391.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-10
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-07-10
AI Technical Summary
Traditional detection methods cannot take into account the dynamic changes of multiple power supplies and are unable to meet the needs of high-precision power consumption management, especially in AI servers where the system power supply pressure is relatively high.
A circuit for testing system power is designed. By combining multiple power supply branches, an adder, and a controller, unified detection and aggregation of current information from each power supply branch are achieved. The system current and voltage are calculated using the voltage divider at the adder output and the controller to ensure that the current gain of each branch is consistent, thereby achieving accurate calculation of system power.
It achieves high-precision, full-coverage monitoring of the complex power supply structure of AI servers, improves the reliability and real-time performance of system energy efficiency management and response control, and reduces power measurement errors.
Smart Images

Figure CN120446580B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of server system power detection, and in particular to a circuit and method for testing system power. Background Art
[0002] With the surge in demand for computing power from AI servers, AI servers consume more power and have more complex systems than traditional servers. In particular, high-power components such as GPUs inside AI servers increase the pressure on system power supply.
[0003] Currently, to ensure the stability of the AI server system, it is necessary to monitor the system power of the AI server in real time and ensure that the power required by the platform can be quickly adjusted when the total system power exceeds the preset system power consumption to better cope with power spikes.
[0004] Traditional detection methods often rely on single-point measurement, which cannot take into account the dynamic changes of multiple power supplies and is difficult to meet the needs of high-precision power consumption management. Summary of the Invention
[0005] In view of this, the present application provides a circuit and method for testing system power, so as to accurately detect the system power of a server with multiple power supplies.
[0006] Specifically, this application is implemented through the following technical solutions:
[0007] In a first aspect, the present application provides a circuit for testing system power, the circuit being applied to a server. The circuit comprises multiple power supply branches, an adder, and a controller. Each power supply branch is composed of a power module, an electronic fuse, and a corresponding functional module connected in series, and each power supply branch shares the same power module.
[0008] The current detection pin of the electronic fuse on each power supply branch is grounded through a grounding resistor and connected to the input end of the adder through an isolation resistor; the branch formed by the electronic fuse, the grounding resistor and the isolation resistor on each power supply branch is a current detection branch for collecting current information of the power supply branch;
[0009] The output end of the adder is connected to the system current detection end of the controller, and is used to summarize the divided voltages generated by each current detection branch at the input and output of the adder, and output a voltage signal corresponding to the system current based on the sum of the divided voltages generated by all current detection branches at the input and output of the adder to the controller;
[0010] The output end of the power module is also connected to the system voltage detection end of the controller;
[0011] The controller is configured to calculate the system current based on the voltage signal and a preset target gain for voltage-to-current conversion, determine the system power based on the system current and the system voltage detected by the system voltage detection terminal, and convert the determined system power into a digital signal for transmission to the processor;
[0012] Among them, the current gain of each current detection branch is configured to be equal to the target gain, so that the system current calculated by the controller is equal to the sum of the input currents of all current detection branches; the current gain of each current detection branch is used to characterize the proportional relationship between the divided voltage generated by the current detection branch at the output end of the adder and the input current of the current detection branch; the current gain of each current detection branch is determined by the resistance value of the isolation resistor in each current detection branch, and by configuring the resistance value of the isolation resistor in each current detection branch, the current gain of all current detection branches is equal to the target gain.
[0013] A second aspect of the present application provides a method for testing system power, the method comprising:
[0014] Collect the system voltage at the output end of the power module;
[0015] For each power supply branch, obtain a current signal at a current detection pin of an electronic fuse in the power supply branch, and convert the current signal into a voltage signal to obtain a voltage signal generated by each current detection branch;
[0016] The voltage signals of each current detection branch are superimposed to obtain the voltage signal corresponding to the system current;
[0017] Calculate the system current based on the voltage signal corresponding to the system current and a preset target gain for voltage-to-current conversion;
[0018] The system power is calculated according to the system current and the system voltage.
[0019] A third aspect of the present application further provides a method for testing system power, which is applied to a controller in the circuit according to any one of the first aspects of the present application; the method comprises:
[0020] Calculate the system current based on the voltage signal detected by the system current detection terminal and the preset target gain of the voltage-to-current conversion;
[0021] determining the system power according to the system voltage detected by the system voltage detection terminal and the system current;
[0022] The determined system power is converted into a digital signal, and the digital signal is transmitted to a processor.
[0023] The circuit for testing system power provided in this embodiment uniformly configures the current detection gains of multiple power supply branches so that the voltage divider generated by each current detection branch at the adder output is proportional to its corresponding current, thereby achieving linear superposition of system currents. Based on the aggregated voltage signal and the system voltage, the controller can accurately calculate the system power of the entire platform in real time. This technical solution effectively solves the power measurement error problem caused by inconsistent gains in traditional multi-channel EFUSE detection, achieves high-precision, full-coverage monitoring of platform power consumption under complex server power supply structures, and significantly improves the reliability and real-time performance of system energy efficiency management and response control. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A circuit diagram of a first embodiment of a circuit for testing system power provided by the present application;
[0025] Figure 2 This is a schematic diagram of a current model corresponding to a circuit for testing system power according to an exemplary embodiment of the present application;
[0026] Figure 3 This is a flow chart of Example 1 of the method for testing system power provided by this application;
[0027] Figure 4 This is a flowchart of Example 2 of the method for testing system power provided in this application. DETAILED DESCRIPTION
[0028] Exemplary embodiments are described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different drawings represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with this application.
[0029] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "the," and "the" used in this application are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0030] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0031] Specific embodiments are given below to introduce the technical solutions of the present application in detail.
[0032] Figure 1 This is a circuit diagram of the first embodiment of the circuit for testing system power provided by this application. Figure 1 The circuit for testing system power provided in this embodiment is applied to a server. The circuit includes multiple power supply branches, an adder, and a controller. Each power supply branch is composed of a power supply module, an electronic fuse, and a corresponding functional module connected in series. Each power supply branch shares the same power supply module.
[0033] The current detection pin of the electronic fuse on each power supply branch is grounded through a grounding resistor and connected to the input end of the adder through an isolation resistor; the branch formed by the electronic fuse, the grounding resistor and the isolation resistor on each power supply branch is a current detection branch for collecting current information of the power supply branch;
[0034] The output end of the adder is connected to the system current detection end of the controller, and is used to summarize the divided voltages generated by each current detection branch at the output end of the adder, and transmit the sum of the divided voltages generated by all current detection branches at the output end of the adder as a voltage signal corresponding to the system current to the controller;
[0035] The output end of the power module is also connected to the system voltage detection end of the controller;
[0036] The controller is configured to calculate the system current based on the voltage signal detected by the system current detection terminal and a preset target gain for voltage-to-current conversion, determine the system power based on the system current and the system voltage detected by the system voltage detection terminal, and convert the determined system power into a digital signal for transmission to the processor;
[0037] Among them, the current gain of each current detection branch is configured to be equal to the target gain, so that the system current calculated by the controller is equal to the sum of the input currents of all current detection branches; the current gain of each current detection branch is used to characterize the proportional relationship between the divided voltage generated by the current detection branch at the output end of the adder and the input current of the current detection branch; the current gain of each current detection branch is determined by the resistance value of the isolation resistor in each current detection branch, and by configuring the resistance value of the isolation resistor in each current detection branch, the current gain of all current detection branches is equal to the target gain.
[0038] It should be noted that the circuit for testing system power provided in this application can be applied to high-power AI servers. High-power AI servers usually contain multiple functional modules (for example, functional modules may include a graphics processing unit board (GPU Board), a fan control board (Fan Control Board, Fan Board), a non-volatile memory express board (NVMe Board), and a motherboard, etc.). For each functional module, a corresponding power supply branch is configured. The sum of the power consumed by the back-end load on each power supply branch is the system power of the AI server.
[0039] For details, please refer to Figure 1 ,by Figure 1 Take the circuit for testing system power in as an example. The circuit contains n power supply branches, an adder, and a controller. Each power supply branch has a similar structure, consisting of a power supply unit (PSU), an electronic fuse (E-Fuse), and a corresponding functional module connected in series, and the n power supply branches share the same power supply unit.
[0040] Please continue to refer to Figure 1 , for example, in Figure 1 In the example shown in , in descending order, the first power branch includes the electronic fuse EFUSE_1, and the functional module corresponding to this power branch is the GPU Board; the second power branch includes the electronic fuse EFUSE_2, and the functional module corresponding to this power branch is the NVMe Board; the third power branch includes the electronic fuse EFUSE_3, and the functional module corresponding to this power branch is the Fan Board; ...; the nth power branch includes the electronic fuse EFUSE_n, and the functional module corresponding to this power branch is the Mother Board.
[0041] It should be noted that the functional modules in each power supply branch are set according to actual needs and are not limited in this application.
[0042] For further information, please refer to Figure 1 , the current detection pin (i.e. IMON pin) of the electronic fuse on each power supply branch is grounded through a grounding resistor (see Figure 1 , Figure 1 In addition, the current detection pin of the electronic fuse on each power supply branch is also connected through an isolation resistor ( Figure 1 R1, R2, R3, ..., Rn in the figure are isolation resistors) are connected to the input of the adder. The branch composed of the electronic fuse, grounding resistor and isolation resistor on each power supply branch is the current detection branch for collecting the current information of the power supply branch. For example, please refer to Figure 1 EFUSE_1, Rimon_1, and R1 constitute a current detection branch for collecting current information of the first power supply branch.
[0043] For further information, please refer to Figure 1 The output end of the adder is connected to the system current detection end of the controller, and is used to summarize the divided voltages generated by each current detection branch at the input and output of the adder, and output the voltage signal corresponding to the system current based on the sum of the divided voltages generated by all current detection branches at the input and output of the adder to the controller.
[0044] Optional, please continue to refer to Figure 1 In one possible implementation, the adder includes an operational amplifier, an input resistor Ra, and a feedback resistor Rf; wherein the non-inverting input terminal of the operational amplifier constitutes the input terminal of the adder and is connected to the isolation resistor of each current detection branch;
[0045] The inverting input terminal of the operational amplifier is grounded through the input resistor Ra;
[0046] The output end of the operational amplifier is connected to the inverting input end through the feedback resistor Rf, and the output end of the operational amplifier constitutes the output end of the adder.
[0047] It should be noted that the Imon pin of each EFUSE is grounded through a grounding resistor. When current flows through the EFUSE, the Imon pin will receive a pin current. This pin current and the grounding resistor work together to generate a reference voltage at the Imon pin. The pin current is proportional to the current input to the EFUSE, and this ratio is defined as the current gain of the EFUSE. For example, please continue to refer to Figure 1 , Figure 1 The current gain of the electronic fuse EFUSE_1 in the first power supply branch shown in FIG is , the current gain of the electronic fuse EFUSE_2 in the second power supply branch is , ..., the current gain of the electronic fuse EFUSE_n in the nth power supply branch is .
[0048] Specifically, for the i-th current detection branch, the pin voltage at its current detection pin is:
[0049] ; (1)
[0050] in, For the The pin voltage at the current detection pin of the current detection branch, Take 1 to N; For the The overcurrent of EFUSE in the current detection branch; For the The resistance value of the grounding resistor in the current detection branch; For the The current gain of the EFUSE.
[0051] Furthermore, according to the characteristics of virtual short and virtual disconnect of the operational amplifier, the voltage at the inverting input terminal of the operational amplifier is recorded as V+, the voltage at the inverting input terminal is recorded as V-, and the voltage at the output terminal is recorded as Vo, V - = V + = Ra / (Ra+Rf) *Vo.
[0052] Furthermore, taking the simultaneous input of three power supply branches as an example, the superposition principle is used to calculate the voltage division generated at the non-inverting input terminal of the operational amplifier when each power supply branch acts alone. For example, when When acting alone, since the current flowing through the operational amplifier is 0, the voltage divider generated at the adder input can be equivalent to:
[0053] ; (2)
[0054] in, for The voltage divider produced at the non-inverting input of the transport amplifier when acting alone; is the pin voltage at the current detection pin of the first current detection branch; is the equivalent resistance of resistors R2 and R3 connected in parallel.
[0055] Furthermore, according to the equivalent resistance calculation formula, formula (2) can be transformed to obtain the following formula (3):
[0056] ; (3)
[0057] Then multiply the numerator and denominator of the above formula (3) by R1 to obtain the following formula (4):
[0058] (4)
[0059] Furthermore, according to the calculation formula of equivalent resistance, (R1*R2*R3) / (R1*R2+R1*R3+R2*R3) is the equivalent resistance of the resistors R1, R2, and R3 connected in parallel. Therefore, the above formula (4) is simplified to obtain the following formula (5):
[0060] ; (5)
[0061] in, is the equivalent resistance of resistors R1, R2, and R3 connected in parallel.
[0062] Similarly, when or When acting alone, the voltage divider generated at the non-inverting input of the operational amplifier can be obtained. and :
[0063] ; (6)
[0064] ; (7)
[0065] in, for The voltage divider produced at the non-inverting input of the operational amplifier when acting alone; is the pin voltage at the current detection pin of the second current detection branch; for The voltage divider produced at the non-inverting input of the operational amplifier when acting alone; is the pin voltage at the current detection pin of the third current detection branch.
[0066] In summary, the voltage division generated at the adder input when each power supply branch acts alone is summed using the superposition theorem. The sum of the voltage divisions generated at the operational amplifier input when the three power supply branches act simultaneously is obtained as follows:
[0067] ; (8)
[0068] in, The total voltage generated at the non-inverting input of the operational amplifier when the three power supply branches act simultaneously; is the resistor ,resistance and resistors Equivalent resistance after parallel connection.
[0069] Furthermore, according to the above derivation process, when n power supply branches act simultaneously, the sum of the divided voltages generated at the non-inverting input of the operational amplifier can be obtained by using the superposition principle:
[0070] ; (9)
[0071] in, The total voltage generated at the non-inverting input of the adder when n power supply branches are input simultaneously; is the resistor 、 ,……and Equivalent resistance after parallel connection.
[0072] Furthermore, according to the virtual short characteristics of the operational amplifier, the following formula (10) can be obtained:
[0073] ; (10)
[0074] in, It is the sum of the divided voltages generated at the non-inverting input of the operational amplifier when n power supply branches act simultaneously; is the voltage at the inverting input of the operational amplifier; is the input resistance; Rf is the feedback resistance; is the voltage at the output of the operational amplifier, that is, the voltage value of the voltage signal detected by the current detection terminal of the controller system.
[0075] Further, let , and combined with formula (9) to transform formula (10), we get the following formula (11):
[0076] ; (11)
[0077] Furthermore, referring to the above formula (1), by substituting formula (1) into formula (11), it can be seen that the voltage value of the voltage signal satisfies the following relationship:
[0078] ; (12)
[0079] Furthermore, the controller is used to calculate the system current based on the voltage signal and a preset target gain for voltage-to-current conversion, and determine the system power based on the system current and the system voltage detected by the system voltage detection end, and then convert the determined system power into a digital signal and transmit it to the processor.
[0080] Specifically, after the system current detection terminal of the controller detects the voltage signal, it can convert the detected voltage signal into a current signal according to a preset target gain, and the current signal is the system current. In specific implementation, the system current can be calculated according to the following formula:
[0081] ; (13)
[0082] in, is the voltage value of the voltage signal; is the system current value; The target gain.
[0083] Furthermore, by combining formula (12) and formula (13), we can obtain the following formula (14):
[0084] ; (14)
[0085] Referring to the above formula (14), in this application, in order to make the system current equal to the sum of the input currents of each current detection branch, we can make ; ;……; , and then make .
[0086] Specifically, Gi is recorded as the current gain of the i-th current detection branch, that is, the current gain of each current detection branch is configured to be equal to the target gain.
[0087] Figure 2 This is a schematic diagram of a current model corresponding to a circuit for testing system power according to an exemplary embodiment of the present application. Figure 2 , when the current gain of each current detection branch is equal to the target gain of the controller, the sum of the input currents of each current detection branch can be equal to the system current, achieving accurate system current detection.
[0088] Combined with the above description, it can be seen that through the above settings, no matter which module's input current changes, the controller can accurately detect it in real time and realize system power consumption monitoring of the entire platform.
[0089] Furthermore, the resistance value of the isolation resistor in each current detection branch can be configured so that , in specific implementation, the resistance value of the isolation circuit in each current detection branch is determined according to the following formula;
[0090] ; (15)
[0091] in, For the The current gain of the current detection branch;
[0092] is the target gain;
[0093] For the The resistance value of the isolation resistor of the current detection branch;
[0094] is the resistor 、 ,……and Equivalent resistance after parallel connection;
[0095] is the input resistance and feedback resistor Equivalent resistance after parallel connection;
[0096] For the The resistance value of the grounding resistor in the current detection branch;
[0097] For the The current gain of the electronic fuse in the current sensing branch.
[0098] Furthermore, in a possible implementation, the resistance value of the grounding resistor in each current detection branch may be determined according to the following formula:
[0099] ; (16)
[0100] in, For the The grounding resistance in the current detection branch, Take 1 to N; The overcurrent of the electronic fuse in the current detection branch; is the reference current of the electronic fuse; is the reference resistance of the electronic fuse.
[0101] It should be noted that the reference current and reference resistance of the electronic fuse can be obtained by looking up the table. The reference voltage of the electronic fuse is determined by the reference current and reference resistance according to Ohm's law. When the voltage signal value at the Imon pin is greater than the reference voltage value, the overcurrent protection of the electronic fuse can be triggered. The overcurrent current of the electronic fuse can be calculated according to the following formula: :
[0102] ; (17)
[0103] in, The overcurrent of the electronic fuse in the current detection branch; For the The grounding resistance in the current detection branch, Take 1 to N; For the The current gain of an electronic fuse, Take 1 to N; is the reference voltage of the electronic fuse.
[0104] It should be noted that the output voltage of the power supply unit (PSU) is the system voltage. The output voltage of the power supply module is connected to the system voltage detection terminal of the controller, and the real system voltage value is detected by the system voltage detection terminal. Furthermore, the voltage value of the voltage signal is detected by the system current detection terminal of the controller. , and when the system current value is calculated according to formula (13), the system power is calculated through the system voltage and system current.
[0105] Furthermore, after calculating the system current value detected by the system current detection terminal of the controller, the system power can be calculated according to the following formula:
[0106] ; (18)
[0107] in, is the system power; It is the system voltage value detected by the system voltage detection terminal of the controller; is the calculated system current value.
[0108] With reference to the foregoing description, it can be understood that the present application provides a circuit structure for testing system power, which is suitable for servers with multi-power supply. The circuit consists of multiple power supply branches, an adder and a controller. Each branch collects current through an electronic fuse and transmits the current information to the adder through an isolation resistor. The adder performs weighted summation on the current signals collected by all branches and outputs a voltage signal proportional to the total current of the system to the controller. At the same time, the power module outputs the system voltage signal to the controller, and the controller calculates the system power in real time based on the current signal and the system voltage, and outputs the result digitally. The key is to configure the isolation resistor value in each current detection branch so that the current gain of each branch is consistent and equal to the preset target gain, ensuring that the system current is a linear superposition of the currents of all branches.
[0109] As described earlier, this solution cleverly addresses the issue of inconsistent current sensing gains in EFUSE modules in multi-power supply scenarios, constructing an adder architecture with unified gain that supports precise aggregation across multiple branches. This allows the controller to accurately sense current changes in any module in real time and accurately output system power. Compared to traditional methods, this solution not only improves the accuracy and response speed of power consumption monitoring but also significantly enhances the energy efficiency management capabilities of AI servers in complex power supply scenarios, demonstrating both engineering practicality and innovative value.
[0110] The circuit for testing system power provided in this embodiment uniformly configures the current detection gains of multiple power supply branches so that the voltage divider generated by each current detection branch at the adder output is proportional to its corresponding current, thereby achieving linear superposition of system currents. Based on the aggregated voltage signal and the system voltage, the controller can accurately calculate the system power of the entire platform in real time. This technical solution effectively solves the power measurement error problem caused by inconsistent gains in traditional multi-channel EFUSE detection, achieves high-precision, full-coverage monitoring of platform power consumption under complex server power supply structures, and significantly improves the reliability and real-time performance of system energy efficiency management and response control.
[0111] It should be noted that, in a possible implementation, the controller is further configured to perform low-pass filtering on the system voltage and the system current before calculating the system power, so as to filter out measurement errors caused by power supply jitter or interference.
[0112] Specifically, in the system circuit, the switching power supply may generate high-frequency noise or interference in the circuit. After the noise is amplified by the operational amplifier circuit, the system power calculated by the controller will have large fluctuations. Sudden load changes in the circuit may also cause power supply jitter. The rapid change of the power supply voltage may be detected by the system as a normal signal, resulting in deviations in the system power calculation. Therefore, in order to eliminate the interference of high-frequency noise and the impact of power supply jitter on system power measurement, these noises can be filtered out by a low-pass filter. In this way, the controller can obtain more accurate results when calculating the system power based on the system voltage and system current.
[0113] In addition, in another possible implementation, the controller is further configured to fine-tune the target gain according to the detection result at the initial stage of circuit operation so that the system current calculated by the controller is equal to the sum of the input currents of all current detection branches.
[0114] Specifically, at the initial stage of circuit operation, the controller can perform one or more current detections, and by measuring the sum of the currents of each current detection branch and comparing it with the system current measured by the system, identify whether there is a deviation between the system current and the sum of the currents of each current detection branch; if there is a deviation, it means that there is a difference between the actual measured system current and the theoretical system current calculated by the target gain, and therefore, the target gain needs to be fine-tuned. Among them, the method for fine-tuning the target gain can be selected according to actual needs, and is not limited in this application; for example, in one embodiment, the target gain can be fine-tuned by proportional gain adjustment. If the deviation is large, the controller can increase the target gain to make the system current closer to the sum of the current detection branch currents; if the deviation is small, the controller can reduce the target gain to avoid excessive adjustment of the target gain leading to a larger deviation.
[0115] As described above, low-pass filtering effectively suppresses the high-frequency noise of the switching power supply and power supply jitter interference caused by sudden load changes, thereby improving the measurement accuracy of the system voltage and system current. In addition, a dynamic fine-tuning mechanism for the target gain at the initial stage of circuit operation is combined to eliminate the cumulative deviation between the actual system current and the theoretical calculated value. This can significantly improve the overall measurement accuracy and operational stability of the test system.
[0116] Figure 3 Please refer to the flowchart of the first embodiment of the method for testing system power provided by this application. Figure 3 The method for testing system power provided in this embodiment is implemented based on the circuit described in any one of the above embodiments, and the method includes:
[0117] S301: Collect the system voltage at the output end of the power module.
[0118] S302 : For each power supply branch, obtain a current signal at a current detection pin of an electronic fuse in the power supply branch, and convert the current signal into a voltage signal to obtain a voltage signal generated by each current detection branch.
[0119] S303 : superimpose and amplify the voltage signals of the current detection branches to obtain a voltage signal corresponding to the system current.
[0120] S304: Calculate the system current according to the voltage signal corresponding to the system current and a preset target gain for converting the voltage into the current.
[0121] S305: Calculate system power according to the system current and the system voltage.
[0122] It should be noted that the specific steps in the method for testing system power have been explained in the previous embodiments and will not be elaborated on here.
[0123] The method for testing system power provided in this embodiment obtains the current signal at the current detection pin of the electronic fuse in each power supply branch, converts the current signal into a voltage signal, and obtains the voltage signal generated by each current detection branch. The voltage signals of each current detection branch are then superimposed and amplified to obtain a voltage signal corresponding to the system current. The system current is then calculated based on the voltage signal corresponding to the system current and a preset target gain for voltage-to-current conversion. Finally, the system power is calculated based on the system current and the system voltage. In this way, the power of the system can be accurately monitored and protected.
[0124] Figure 4 Please refer to the flowchart of the second embodiment of the method for testing system power provided by this application. Figure 4 , Figure 4 The method for testing system power shown in FIG. 1 is implemented based on the circuit described in any one of the above embodiments, and the method includes:
[0125] S401 : Calculate the system current according to the voltage signal detected by the system current detection terminal and a preset target gain for converting the voltage into the current.
[0126] In this step, the system current can be calculated according to formula (13) by using the voltage signal detected by the system current detection terminal and the preset target gain for voltage-to-current conversion.
[0127] S402: Determine the system power according to the system voltage detected by the system voltage detection terminal and the system current.
[0128] In this step, the system power may be determined according to the system voltage detected by the system voltage detection terminal and the system current according to formula (18).
[0129] S403: Convert the determined system power into a digital signal, and transmit the digital signal to a processor.
[0130] In this step, the determined system power may be converted into a digital signal through an analog-to-digital converter, and then the digital signal may be transmitted to a processor through a digital interface SPI, and the processor may further process and analyze the digital signal of the system power.
[0131] The method for testing system power provided in this embodiment calculates the system current based on the voltage signal detected by the system current detection terminal and a preset target gain for voltage-to-current conversion; then determines the system power based on the system voltage detected by the system voltage detection terminal and the system current; then converts the determined system power into a digital signal, and transmits the digital signal to a processor, which further processes the digital signal of the system power. In this way, the processor can accurately monitor and analyze the system power in real time.
[0132] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A circuit for testing system power, characterized in that: The circuit is applied to a server and includes multiple power supply branches, an adder, and a controller. Each power supply branch is composed of a power supply module, an electronic fuse, and a corresponding functional module connected in series, and each power supply branch shares the same power supply module. The current detection pin of the electronic fuse on each power supply branch is grounded through a grounding resistor and connected to the input end of the adder through an isolation resistor; the branch formed by the electronic fuse, the grounding resistor and the isolation resistor on each power supply branch is a current detection branch for collecting current information of the power supply branch; The output end of the adder is connected to the system current detection end of the controller, and is used to summarize the divided voltages generated by each current detection branch at the output end of the adder, and output a voltage signal corresponding to the system current based on the sum of the divided voltages generated by all current detection branches at the output end of the adder to the controller; The output end of the power module is also connected to the system voltage detection end of the controller; The controller is configured to calculate the system current based on the voltage signal and a preset target gain for voltage-to-current conversion, determine the system power based on the system current and the system voltage detected by the system voltage detection terminal, and convert the determined system power into a digital signal for transmission to the processor; Among them, the current gain of each current detection branch is configured to be equal to the target gain, so that the system current calculated by the controller is equal to the sum of the input currents of all current detection branches; the current gain of each current detection branch is used to characterize the proportional relationship between the divided voltage generated by the current detection branch at the output end of the adder and the input current of the current detection branch; the current gain of each current detection branch is determined by the resistance value of the isolation resistor in each current detection branch, and by configuring the resistance value of the isolation resistor in each current detection branch, the current gain of all current detection branches is equal to the target gain.
2. The circuit according to claim 1, wherein: The adder includes an operational amplifier, an input resistor and a feedback resistor; wherein, The non-inverting input terminal of the operational amplifier constitutes the input terminal of the adder and is connected to the isolation resistor of each current detection branch; The inverting input terminal of the operational amplifier is grounded through the input resistor; The output end of the operational amplifier is connected to the inverting input end through the feedback resistor, and the output end of the operational amplifier constitutes the output end of the adder.
3. The circuit according to claim 2, characterized in that The voltage value of the voltage signal satisfies the following relationship: ; The resistance value of the isolation resistor in each current sensing branch is determined based on the following formula: ; in, is the voltage value of the voltage signal; For the The divided voltage generated by the current detection branch at the output end of the adder, Take 1 to N; For the Input current of the current detection branch, Take 1 to N; For the The resistance value of the isolation resistor of the current detection branch, Take 1 to N; is the resistor 、 ,……and Equivalent resistance after parallel connection; is the input resistance and feedback resistor Equivalent resistance after parallel connection; For the The resistance value of the grounding resistor in the current detection branch, Take 1 to N; For the The current gain of the electronic fuse in the current detection branch, Take 1 to N; For the The current gain of the current detection branch, is the target gain; Take 1 to N.
4. The circuit according to claim 3, characterized in that The resistance value of the grounding resistor in each current detection branch is determined based on the following formula: ; in, For the The grounding resistance in the current detection branch, Take 1 to N; The overcurrent of the electronic fuse in the current detection branch; is the reference current of the electronic fuse; is the reference resistance of the electronic fuse.
5. The circuit according to claim 1, wherein: The calculating the system current according to the voltage signal and a preset target gain for converting the voltage to the current includes: Calculate the system current according to the following formula: ; in, The voltage value of the voltage signal detected by the system current detection terminal; is the system current; is the target gain.
6. The circuit according to claim 1, wherein: The controller is further configured to perform low-pass filtering on the system voltage and the system current before calculating the system power, so as to filter out measurement errors caused by power supply jitter or interference.
7. The circuit according to claim 1, wherein: The controller is further configured to fine-tune the target gain according to the detection result at the initial stage of circuit operation so that the system current calculated by the controller is equal to the sum of the input currents of all current detection branches.
8. A method for testing system power, characterized in that: The method is implemented based on the circuit according to any one of claims 1 to 7; the method comprises: Collect the system voltage at the output end of the power module; For each power supply branch, obtain a current signal at a current detection pin of an electronic fuse in the power supply branch, and convert the current signal into a voltage signal to obtain a voltage signal generated by each current detection branch; The voltage signals of each current detection branch are superimposed to obtain the voltage signal corresponding to the system current; Calculate the system current based on the voltage signal corresponding to the system current and a preset target gain for voltage-to-current conversion; The system power is calculated according to the system current and the system voltage.
9. A method for testing system power, characterized in that: The method is applied to a controller in a circuit according to any one of claims 1 to 7; the method comprises: Calculate the system current based on the voltage signal detected by the system current detection terminal and the preset target gain for voltage-to-current conversion; determining the system power according to the system voltage detected by the system voltage detection terminal and the system current; The determined system power is converted into a digital signal, and the digital signal is transmitted to a processor.
Citation Information
Patent Citations
Self-adaptive power adjustment method and system for powered device
CN119536452A
Power Conversion Device
US20240022183A1