Method for improving reading precision of analog sensor by using computer BMC (Baseboard Management Controller)

By dynamically adjusting the parameters of the sensor reading conversion formula, the problem of inaccurate low-power reading values ​​in IPMI specifications is solved, and more accurate power consumption monitoring and alarm information are achieved. It is suitable for real-time monitoring and real-time monitoring of high-power systems and manage.

CN119046091APending Publication Date: 2024-11-29SHENZHEN ZHONGKE YIXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411140601.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the prior art, sensors based on IPMI specifications have inaccurate reading values ​​in the low power range, resulting in inability to effectively monitor and alert, and traditional solutions increase the complexity of system management and alarm inconsistency.

Method used

By dynamically adjusting the parameters M, B, K1, K2 in the sensor reading conversion formula, compress the power value and calculate the power consumption value in the BMC framework, accurate alarm information is generated to ensure the reliability and uniformity of alarms.

Benefits of technology

It significantly improves the accuracy of the analog sensor reading value, ensures accurate monitoring of low-power ranges and timeliness and reliability of alarm information, realizes real-time and accurate monitoring of system power consumption, and uniformly manages alarm formats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046091A_ABST
    Figure CN119046091A_ABST
Patent Text Reader

Abstract

The invention discloses a method for improving the reading precision of an analog sensor through a computer BMC management controller, and the reading precision of the sensor in different power consumption ranges is ensured by dynamically adjusting the parameters of the sensor. And fine resolution monitoring is performed on the power consumption change, and an alarm threshold value is set, so that accurate alarm of the power consumption change is ensured. By dynamically adjusting the parameters M, B, K1 and K2 in the sensor reading conversion formula, the converted power consumption reading is more accurate, so that the reliability and accuracy of alarm information are ensured. In this way, more accurate monitoring can be provided over the entire power consumption range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for improving the reading accuracy of an analog sensor by a computer BMC management controller. Background Art

[0002] Power management is a key issue in the management of modern computer systems and servers. The power consumption of computer systems can often reach very high levels, especially when multiple high-power components are used in the system. For example, the power consumption of the entire machine can be as high as 12,000W (currently the maximum power supply is 3,000W, there are 4 power supplies, a total of 12,000W, and if subsequent technological revolutions are not excluded, the maximum power supply can support more than 3,000W), which may include 4 power supplies with a power consumption of 3,000W.

[0003] To monitor and manage this high power consumption, sensors based on the Intelligent Platform Management Interface (IPMI) specification are often used to measure and report system power consumption. The IPMI specification provides a standardized method to convert the raw readings of sensors into values ​​in real units through sensor reading conversion formulas. For example, the formula in the IPMI specification is:

[0004] y=L[(MX2+(BX2*10^ K1 ))*10^ K2 ];

[0005] Where: x is the original reading value;

[0006] y is the converted reading value;

[0007] L[] is the linearization function specified by "Linearization Type";

[0008] M is a signed integer constant multiplier;

[0009] B is the signed addition "offset";

[0010] K1 is a signed exponent, which sets the "decimal point" position;

[0011] K2 is the signed result exponent.

[0012] However, in actual applications, using fixed parameters M, B, K1, and K2 can lead to inaccurate readings within certain power consumption ranges. For example, when parameters M = 48, B = 0, K1 = 0, and K2 = 0, all power consumption below 48W will be displayed as 48W, which cannot accurately reflect the changes in actual power consumption. This situation is particularly unfavorable for accurate monitoring and alarming in low-power states. For example, when the underlying hardware detects a change in power consumption from 1W to 48W, the user may need to generate an alarm when the actual power consumption is 5W, but because the reading is fixed at 48W, the alarm cannot be output normally.

[0013] One of the traditional solutions is to enable a power consumption monitoring program outside the IPMI specification to monitor the changes of the underlying hardware power consumption sensor with higher resolution. However, the alarm and log format of this method is not in the IPMI specification and cannot be managed uniformly, which increases the complexity of system management and cannot guarantee the consistency and accuracy of all alarms. Summary of the invention

[0014] In order to solve the above problems, the present invention provides a method for improving the accuracy of analog sensor readings by a computer BMC management controller. The method dynamically adjusts the parameters M, B, K1, and K2 in the sensor reading conversion formula to make the converted power consumption readings more accurate, thereby ensuring the reliability and accuracy of the alarm information. In this way, more accurate monitoring can be provided within the entire power consumption range.

[0015] The present invention is implemented by the following technical solution: A method for improving the reading accuracy of an analog sensor by a computer BMC management controller, comprising the following steps:

[0016] S1, based on the power value X1 read by the underlying hardware, dynamically form the parameters M, B, K1, K2 in the conversion formula;

[0017] S2 and X1 are compressed into 8-bit unsigned numbers by the formula X2=compress(X1), where the compress() function performs compression processing according to the dynamically adjusted parameters M, B, K1, and K2;

[0018] S3. In the BMC framework, based on the compressed X2 value, the formula y=L[(MX2+(BX2*10^ K1 ))*10^ K2 ]Calculate the power consumption value Y, where:

[0019] y is the final calculated power consumption value;

[0020] L[] is the linearization function specified by "Linearization Type";

[0021] M is a signed integer constant multiplier;

[0022] B is the signed addition "offset";

[0023] K1 is a signed exponent, which sets the "decimal point" position;

[0024] K2 is the signed result exponent;

[0025] S4. Generate and output alarm information based on the final calculated power consumption value Y to ensure the accuracy of the alarm.

[0026] As a preferred technical solution, the step of dynamically adjusting the parameters M, B, K1, K2 in the sensor reading conversion formula includes:

[0027] Read the power value X1 of the underlying hardware sensor in real time;

[0028] Through the set compression rules, X1 is compressed into an 8-bit unsigned number X2, and the parameters M, B, K1, and K2 are dynamically adjusted to ensure the accuracy of the conversion formula.

[0029] As a preferred technical solution, the linearization function L[] in the formula is null 1, that is, y=f(x)=X.

[0030] As a preferred technical solution, the alarm information includes a specific value of the power consumption change and an alarm level.

[0031] As a preferred technical solution, the alarm information is managed and output according to IPMI specifications.

[0032] As a preferred technical solution, the method can identify and record changes in power consumption and generate an alarm when the power consumption reaches a set threshold.

[0033] As a preferred technical solution, the method is applied to a system in which the total power consumption can reach up to 12000W (currently the maximum power consumption of a power supply is 3000W, there are 4 power supplies, totaling 12000W, and without ruling out subsequent technological revolutions, a power supply can support a maximum of more than 3000W).

[0034] As a preferred technical solution, the method enables a power consumption monitoring program separately outside the IPMI specification to monitor changes in the underlying hardware power consumption sensor.

[0035] The beneficial effects of the present invention are as follows: by dynamically adjusting the sensor reading conversion parameters, the present invention can significantly improve the accuracy of analog sensor readings, especially in the low power consumption range, and solves the problem of inaccurate readings caused by fixed parameters.

[0036] The present invention can generate and output accurate alarm information according to the actual power value, ensure the timeliness and reliability of the alarm, and help to timely discover and handle abnormal power consumption.

[0037] By reading the power value of the underlying hardware sensor in real time and dynamically adjusting the conversion parameter according to the read value, the present invention realizes real-time monitoring of the system power consumption and ensures the real-time and accuracy of the monitoring data.

[0038] The alarm information of the present invention is managed and outputted according to the IPMI specification, which ensures the uniformity of the alarm format and management and facilitates the centralized management and maintenance of the system.

[0039] The present invention is applicable to systems where the total power consumption can reach up to 12000W (currently, the maximum power consumption of a power supply is 3000W, there are 4 power supplies, totaling 12000W, and without ruling out subsequent technological revolutions, a power supply can support a maximum of more than 3000W). It is not only used in power consumption sensors, but also can support other analog sensors that comply with IPMI specifications.

[0040] The present invention avoids the monitoring limitations caused by fixed parameters in traditional methods by dynamically adjusting conversion parameters, can flexibly adapt to different power consumption changes, and provide more accurate readings and alarm information. It is not only used for power consumption sensors, but also supports other analog sensors that comply with IPMI specifications. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.

[0042] Figure 1 It is a system block diagram of the present invention. DETAILED DESCRIPTION

[0043] All features disclosed in this specification, or steps in all methods or processes disclosed, except mutually exclusive features and / or steps, can be combined in any manner.

[0044] Any feature disclosed in this specification (including any additional claims, abstract and drawings), unless otherwise stated, may be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

[0045] like Figure 1 As shown, a method for improving the reading accuracy of an analog sensor by a computer BMC management controller of the present invention comprises the following steps:

[0046] S1, based on the power value X1 read by the underlying hardware, dynamically form the parameters M, B, K1, K2 in the conversion formula;

[0047] S2 and X1 are compressed into 8-bit unsigned numbers by the formula X2=compress(X1), where the compress() function performs compression processing according to the dynamically adjusted parameters M, B, K1, and K2;

[0048] S3. In the BMC framework, based on the compressed X2 value, the formula y=L[(MX2+(BX2*10^K1 ))*10^ K2 ]Calculate the power consumption value Y, where:

[0049] y is the final calculated power consumption value;

[0050] L[] is the linearization function specified by "Linearization Type";

[0051] M is a signed integer constant multiplier;

[0052] B is the signed addition "offset";

[0053] K1 is a signed exponent, which sets the "decimal point" position;

[0054] K2 is the signed result exponent;

[0055] S4. Generate and output alarm information based on the final calculated power consumption value Y to ensure the accuracy of the alarm.

[0056] Example 1

[0057] In a server using the original AMI BMC, assuming that the original power consumption value currently read is X, the original AMIBMC program is modified;

[0058] The sensor reading conversion parameters M, B, K1, and K2 are dynamically adjusted according to the read power consumption value X. For example, if the currently read power consumption value X is 10W, the dynamically adjusted parameters are M=50, B=0, K1=1, and K2=0.

[0059] The raw sensor reading X is converted by dynamically adjusted parameters. Assuming the conversion formula is y=L[(MX2+(BX2*10^K1))*10^K2], the converted power consumption value Y is 500W.

[0060] An alarm message is generated according to the converted power consumption value Y. For example, when the power consumption value Y reaches 500W, a high power consumption alarm is generated, and the alarm message is output through the IPMI specification.

[0061] Example 2

[0062] In a server using the original AMI BMC, assuming that the original power consumption value currently read is X, the original AMIBMC program is modified.

[0063] The sensor reading conversion parameters are adjusted according to the currently read power consumption value X. For example, if the currently read power consumption value X is 100W, the dynamically adjusted parameters are M=45, B=2, K1=0, and K2=1.

[0064] Convert the raw sensor reading X to the adjusted parameters. Assume the conversion formula is y = L[(Mx + (Bx10 k1 ))x10 k2 ], the converted power consumption value Y is 4500W.

[0065] Generate and output alarm information according to the converted power consumption value Y. For example, when the power consumption value Y reaches 4500W, an excessively high power consumption alarm is generated, and the alarm information is output through the IPMI specification.

[0066] The working principle of the present invention is as follows:

[0067] The system power consumption value is read in real time through the underlying hardware sensor. The raw power consumption value X read by the sensor is used as input.

[0068] The sensor reading conversion parameters M, B, K1, and K2 are dynamically adjusted according to the real-time power consumption value X. The adjustment of these parameters is based on a preset algorithm to ensure the accuracy of the conversion formula.

[0069] Using the dynamically adjusted parameters, the raw sensor reading X is converted to the actual power consumption value Y through the conversion formula. The linearization function L[] in the conversion formula is used to convert the linear or nonlinear sensor reading into a value in actual units.

[0070] The alarm information is generated according to the converted actual power consumption value Y. When the power consumption value Y reaches a preset threshold, the corresponding alarm information is generated and managed and outputted through the IPMI specification.

[0071] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that are not conceived through creative work should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope defined in the claims.

Claims

1. A method for improving the reading accuracy of an analog sensor by a computer BMC management controller, characterized in that: The following steps are involved: S1, based on the power value X1 read by the underlying hardware, dynamically form the parameters M, B, K1, K2 in the conversion formula; S2 and X1 are compressed into 8-bit unsigned numbers by the formula X2=compress(X1), where the compress() function performs compression processing according to the dynamically adjusted parameters M, B, K1, and K2; S3. In the BMC framework, based on the compressed X2 value, the formula y=L[(MX2+(BX2*10^ k1 ))*10^ K2 ]Calculate the power consumption value Y, where: y is the final calculated power consumption value; L[] is the linearization function specified by "Linearization Type"; M is a signed integer constant multiplier; B is the signed addition "offset"; K1 is the signed exponent, set the "decimal point" position; K2 is the signed result exponent; S4. Generate and output alarm information based on the final calculated power consumption value Y to ensure the accuracy of the alarm.

2. The method for improving the reading accuracy of analog sensors by a computer BMC management controller according to claim 1, characterized in that: The step of dynamically adjusting the parameters M, B, K1, K2 in the sensor reading conversion formula includes: Read the power value X1 of the underlying hardware sensor in real time; Through the set compression rules, X1 is compressed into an 8-bit unsigned number X2, and the parameters M, B, K1, and K2 are dynamically adjusted to ensure the accuracy of the conversion formula.

3. The method for improving the reading accuracy of analog sensors by a computer BMC management controller according to claim 1, characterized in that: The linearization function L[] in the formula is null, that is, y=f(x)=x.

4. The method for improving the reading accuracy of analog sensors by a computer BMC management controller according to claim 1, characterized in that: The alarm information includes a specific value of the power consumption change and an alarm level.

5. The method for improving the reading accuracy of analog sensors by a computer BMC management controller according to claim 1, characterized in that: The alarm information is managed and output according to the IPMI specification.

6. The method for improving the reading accuracy of analog sensors by a computer BMC management controller according to claim 1, characterized in that: The method can identify and record power consumption changes, and generate an alarm when the power consumption reaches a set threshold.

7. The method for improving the reading accuracy of analog sensors by a computer BMC management controller according to claim 1, characterized in that: The method is applied to a system in which the total power consumption can reach up to 12000W.