Methods, devices, and electronic equipment for monitoring temperature data using MOC cards

By monitoring whether multiple temperature monitoring values ​​of the MOC card are equal, abnormal sensor data can be identified, thus solving the problem of BMC misjudgment and ensuring the accuracy and stability of the server's heat dissipation system.

CN116089214BActive Publication Date: 2026-11-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310020704.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2026-11-17
Estimated Expiration
2043-01-06

AI Technical Summary

Technical Problem

In existing technologies, abnormal sensor temperature values ​​transmitted by MOC cards can cause BMC to misjudge the server's own temperature status, making it impossible to effectively determine whether there is an anomaly.

Method used

By acquiring multiple temperature monitoring values, the system analyzes whether the temperature monitoring values ​​at different time points are equal. If they are equal, it determines that there is an anomaly in the temperature sensor data of the MOC card and sends an early warning message to the server.

Benefits of technology

Effectively identify whether the temperature sensor values ​​transmitted by the MOC card have not changed for a long time, avoid BMC misjudging the server temperature, ensure the accuracy of the heat dissipation system, and prevent the MOC card from falling out or reporting abnormal errors due to high temperature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116089214B_ABST
    Figure CN116089214B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, and electronic device for monitoring temperature data of an MOC card. The method includes: acquiring multiple temperature monitoring values ​​based on a target number of detections; determining whether the temperature monitoring values ​​are equal; if the temperature monitoring values ​​are determined to be equal, then determining that the temperature sensor data of the MOC card is abnormal; each temperature monitoring value corresponds to a different detection time, and a first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points are temperature data reported by the MOC card to the server, and the first temperature monitoring value is any one of the multiple temperature monitoring values. By determining whether the temperature monitoring values ​​are equal, it is possible to analyze whether the temperature sensor values ​​transmitted by the MOC card have not changed for a long time. If the temperature monitoring values ​​are determined to be equal, it is possible to determine that the temperature sensor data of the MOC card is abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, and electronic device for monitoring temperature data using an MOC card. Background Technology

[0002] As servers place increasingly higher demands on data processing, MOC cards have emerged to improve server performance and efficiency. An MOC card is a component within a server, containing its own hard drive and memory, and connects to the server motherboard via a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIe). Its own sensor values ​​are written to the server's Baseboard Management Controller (BMC) registers via a program and then transmitted to the BMC for reference.

[0003] During aging tests, servers rely on the Base Configuration Management (BMC) to adjust cooling and maintain optimal operating conditions. When adjusting fan speeds, the BMC considers both temperature readings from the motherboard's sensors and those from the Operational Configuration Card (MOC). Abnormal temperature readings from the MOC can cause the BMC to misjudge the server's temperature status. Determining whether MOC-transmitted temperature readings are abnormal is a pressing issue in the industry. Summary of the Invention

[0004] To address the problems existing in the prior art, embodiments of the present invention provide a method, apparatus, and electronic device for monitoring temperature data of an MOC card.

[0005] In a first aspect, the present invention provides a method for monitoring temperature data of an MOC card, comprising:

[0006] Based on the number of target detections, multiple temperature monitoring values ​​are obtained, and the number of the multiple temperature monitoring values ​​is equal to the number of target detections.

[0007] Determine whether the temperature monitoring values ​​are equal;

[0008] If all temperature monitoring values ​​are determined to be equal, then the temperature sensor data of the MOC card is determined to be abnormal.

[0009] Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points is the temperature data reported to the server by the MOC card. The monitoring point is the temperature monitoring point in the MOC card. The first temperature monitoring value is any one of the multiple temperature monitoring values. The first detection time is the time when the first temperature monitoring value is obtained.

[0010] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, the step of acquiring multiple temperature monitoring values ​​based on the number of target detections includes:

[0011] Based on the detection cycle, the operation of acquiring the first temperature monitoring value is continuously executed until the number of acquired temperature monitoring values ​​equals the number of target detections;

[0012] The acquisition of the first temperature monitoring value includes:

[0013] At the first detection moment, temperature data from multiple monitoring points held by the server are acquired;

[0014] Based on the temperature data from the multiple monitoring points, the first temperature monitoring value is determined.

[0015] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, the plurality of monitoring points include a first monitoring point at the central processing unit, a second monitoring point at the field-programmable gate array (FPGA), a third monitoring point at the memory, a fourth monitoring point at the inlet, a fifth monitoring point at the hard disk, and a sixth monitoring point at the voltage regulator. Determining the first temperature monitoring value based on the temperature data from the plurality of monitoring points includes:

[0016] Calculate the sum of the temperature data from the first monitoring point, the second monitoring point, the third monitoring point, the fourth monitoring point, the fifth monitoring point, and the sixth monitoring point, and use the sum as the first temperature monitoring value.

[0017] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, after determining whether the temperature monitoring values ​​are equal, the method further includes:

[0018] If it is determined that the temperature monitoring values ​​are not equal, then it is determined that the temperature sensor data of the MOC card is not abnormal;

[0019] The second temperature monitoring value among the plurality of temperature monitoring values ​​is cleared, and the detection time corresponding to the second temperature monitoring value is the earliest detection time among the plurality of temperature monitoring values.

[0020] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, after determining that the temperature sensor data of the MOC card is abnormal, the method further includes:

[0021] A warning message is sent to the server, and the warning message includes the multiple temperature monitoring values.

[0022] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, before acquiring multiple temperature monitoring values ​​based on the number of target detections, the method further includes:

[0023] Read the configuration file, which includes the warning duration and detection cycle;

[0024] The number of times the target is detected is determined based on the ratio between the warning duration and the detection period.

[0025] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, after acquiring multiple temperature monitoring values ​​based on the number of target detections, the method further includes:

[0026] The temperature change rate is obtained based on the multiple temperature monitoring values;

[0027] The warning duration is updated based on the temperature change rate;

[0028] The number of target detections is updated based on the ratio between the updated warning duration and the detection period.

[0029] Secondly, the present invention also provides a temperature data monitoring device for an MOC card, comprising:

[0030] The acquisition module is used to acquire multiple temperature monitoring values ​​based on the number of target detections, wherein the number of multiple temperature monitoring values ​​is equal to the number of target detections;

[0031] The judgment module is used to determine whether the temperature monitoring values ​​are equal;

[0032] The first determining module is used to determine that the temperature sensor data of the MOC card is abnormal if all temperature monitoring values ​​are determined to be equal.

[0033] Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is determined based on the temperature data of multiple monitoring points held by the server at the first detection time. The temperature data of the multiple monitoring points are the temperature data reported to the server by the MOC card. The monitoring point is the temperature monitoring point in the MOC card. The first detection time is the time when the first temperature monitoring value is obtained.

[0034] Thirdly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the temperature data monitoring method of any of the above-described MOC cards.

[0035] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the temperature data monitoring method of the MOC card as described above.

[0036] The temperature data monitoring method, apparatus, and electronic device for MOC cards provided by this invention acquire multiple temperature monitoring values, with different temperature monitoring values ​​corresponding to different detection times. Each temperature monitoring value is determined based on the temperature data of multiple monitoring points held by the server at the corresponding detection time. The temperature data of multiple monitoring points are reported to the server by the MOC card. By judging whether each temperature monitoring value is equal, it can be analyzed whether the temperature sensor value transmitted by the MOC card has not changed for a long time. If it is determined that each temperature monitoring value is equal, it indicates that the temperature sensor value transmitted by the MOC card has not changed for a long time, and thus it can be determined that there is an anomaly in the temperature sensor data of the MOC card. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0038] Figure 1 This is one of the flowcharts illustrating the temperature data monitoring method for the MOC card provided by the present invention;

[0039] Figure 2 This is the second flowchart illustrating the temperature data monitoring method for the MOC card provided by the present invention;

[0040] Figure 3 This is a schematic diagram of the temperature data monitoring device for the MOC card provided by the present invention;

[0041] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0043] Figure 1 This is one of the flowcharts illustrating the temperature data monitoring method for the MOC card provided by this invention, such as... Figure 1 As shown, the entity executing the temperature data monitoring method of the MOC card can be an electronic device, such as a BMC. The method includes:

[0044] Step 101: Based on the number of target detections, obtain multiple temperature monitoring values, wherein the number of multiple temperature monitoring values ​​is equal to the number of target detections;

[0045] Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points is the temperature data reported to the server by the MOC card. The monitoring point is the temperature monitoring point in the MOC card. The first temperature monitoring value is any one of the multiple temperature monitoring values. The first detection time is the time when the first temperature monitoring value is obtained.

[0046] Specifically, in order to determine whether there are any abnormalities in the sensor temperature values ​​transmitted by the MOC card, multiple temperature monitoring values ​​can be obtained. Different temperature monitoring values ​​correspond to different detection times. Any temperature monitoring value is determined by calculating the sum of the temperature data of multiple monitoring points held by the server at the corresponding detection time. The temperature data of multiple monitoring points are reported to the server by the MOC card. By analyzing multiple temperature monitoring values, it can be determined whether the temperature sensor values ​​transmitted by the MOC card have not changed for a long time.

[0047] For example, if the target is detected 5 times, the sum of temperature data from multiple monitoring points held by the server can be calculated at the first detection time to obtain the first temperature monitoring value; the sum of temperature data from multiple monitoring points held by the server can be calculated at the second detection time to obtain the second temperature monitoring value; the sum of temperature data from multiple monitoring points held by the server can be calculated at the third detection time to obtain the third temperature monitoring value; the sum of temperature data from multiple monitoring points held by the server can be calculated at the fourth detection time to obtain the fourth temperature monitoring value; and the sum of temperature data from multiple monitoring points held by the server can be calculated at the fifth detection time to obtain the fifth temperature monitoring value.

[0048] Understandably, the MOC card can periodically write temperature data from multiple monitoring points into the server's BMC register. By reading the server's BMC register at different detection times, the temperature data from multiple monitoring points held by the server can be analyzed at each detection time, thereby obtaining the temperature monitoring value corresponding to each detection time.

[0049] Step 102: Determine whether the temperature monitoring values ​​are equal.

[0050] Specifically, after acquiring multiple temperature monitoring values, by determining whether each temperature monitoring value is equal, it is possible to analyze whether the temperature sensor values ​​transmitted by the MOC card have remained unchanged for a long time.

[0051] Alternatively, if all temperature monitoring values ​​are equal, it can be determined that the temperature sensor values ​​transmitted by the MOC card have not changed for a long time.

[0052] Alternatively, if the temperature monitoring values ​​are not all equal, it can be determined that the temperature sensor values ​​transmitted by the MOC card have not remained unchanged for a long time.

[0053] Step 103: If it is determined that all temperature monitoring values ​​are equal, then it is determined that the temperature sensor data of the MOC card is abnormal.

[0054] Specifically, if all temperature monitoring values ​​are equal, it indicates that the temperature sensor values ​​transmitted by the MOC card have not changed for a long time, thus confirming that there is an anomaly in the temperature sensor data of the MOC card.

[0055] The temperature data monitoring method for MOC cards provided by this invention acquires multiple temperature monitoring values, with different temperature monitoring values ​​corresponding to different detection times. Each temperature monitoring value is determined based on the temperature data of multiple monitoring points held by the server at the corresponding detection time. The temperature data of multiple monitoring points is reported to the server by the MOC card. By judging whether each temperature monitoring value is equal, it can be analyzed whether the temperature sensor value transmitted by the MOC card has not changed for a long time. If it is determined that each temperature monitoring value is equal, it indicates that the temperature sensor value transmitted by the MOC card has not changed for a long time, and thus it can be determined that there is an anomaly in the temperature sensor data of the MOC card.

[0056] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, the step of acquiring multiple temperature monitoring values ​​based on the number of target detections includes:

[0057] Based on the detection cycle, the operation of acquiring the first temperature monitoring value is continuously executed until the number of acquired temperature monitoring values ​​equals the number of target detections;

[0058] The acquisition of the first temperature monitoring value includes:

[0059] At the first detection moment, temperature data from multiple monitoring points held by the server are acquired;

[0060] Based on the temperature data from the multiple monitoring points, the first temperature monitoring value is determined.

[0061] Specifically, in order to obtain multiple temperature monitoring values, the operation of obtaining the first temperature monitoring value can be continuously executed based on the detection cycle. Each execution of the operation of obtaining the first temperature monitoring value can obtain one temperature monitoring value. By repeatedly executing the operation of obtaining the first temperature monitoring value, multiple temperature monitoring values ​​can be obtained.

[0062] Specifically, each process of acquiring the first temperature monitoring value may include acquiring temperature data from multiple monitoring points held by the server at the first detection moment, and then calculating the sum of the temperature data from multiple monitoring points to determine the first temperature monitoring value.

[0063] Optionally, if it is determined that the number of temperature monitoring values ​​obtained is less than the target number of detections, the operation of obtaining the first temperature monitoring value can be continuously performed based on the detection cycle.

[0064] For example, the detection period can be 10ms. If it is determined that the number of temperature monitoring values ​​obtained is less than the target number of detections, the operation of obtaining the first temperature monitoring value can be performed once every 10ms.

[0065] Optionally, if it is determined that the number of temperature monitoring values ​​obtained is equal to the number of target detections, the operation of obtaining the first temperature monitoring value can be stopped.

[0066] Optionally, each process of acquiring the first temperature monitoring value may include, at the first detection moment, acquiring temperature data from multiple monitoring points by reading the server's BMC register, and then calculating the sum of the temperature data from the multiple monitoring points to determine the first temperature monitoring value.

[0067] Therefore, by continuously performing the operation of acquiring the first temperature monitoring value based on the detection cycle, multiple temperature monitoring values ​​can be obtained. By analyzing multiple temperature monitoring values, it can be determined whether the temperature sensor value transmitted by the MOC card has not changed for a long time.

[0068] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, the plurality of monitoring points include a first monitoring point at the central processing unit, a second monitoring point at the field programmable gate array (FPGA), a third monitoring point at the memory, a fourth monitoring point at the inlet, a fifth monitoring point at the hard disk, and a sixth monitoring point at the voltage regulator. Determining the first temperature monitoring value based on the temperature data from the plurality of monitoring points includes:

[0069] Calculate the sum of the temperature data from the first monitoring point, the second monitoring point, the third monitoring point, the fourth monitoring point, the fifth monitoring point, and the sixth monitoring point, and use the sum as the first temperature monitoring value.

[0070] Specifically, the temperature data at the first monitoring point can represent the temperature at the Central Processing Unit (CPU), the temperature data at the second monitoring point can represent the temperature at the FPGA, the temperature data at the third monitoring point can represent the temperature at the memory, the temperature data at the fourth monitoring point can represent the temperature at the inlet, the temperature data at the fifth monitoring point can represent the temperature at the hard disk, and the temperature data at the sixth monitoring point can represent the temperature at the voltage regulator (VR). By calculating the sum of the temperature data from multiple monitoring points, this sum can be used as the first temperature monitoring value.

[0071] For example, at the first detection moment, temperature data from multiple monitoring points can be obtained by reading the server's BMC register. The temperature data from the first monitoring point can be 53℃, the temperature data from the second monitoring point can be 68℃, the temperature data from the third monitoring point can be 39℃, the temperature data from the fourth monitoring point can be 28℃, the temperature data from the fifth monitoring point can be 47℃, and the temperature data from the sixth monitoring point can be 66℃. By calculating the sum of the temperature data from multiple monitoring points, the value is 301℃, and this sum can be used as the first temperature monitoring value.

[0072] Optionally, the server can use a Linux operating system, and the ipmitool tool can be installed on the Linux operating system. The ipmitool tool can be used to query the temperature data of each monitoring point, and it can also be used to extract the temperature data of each monitoring point.

[0073] It is understandable that the temperature monitoring value is the sum of temperature data from multiple monitoring points. Over a period of time, one or more temperature data from multiple monitoring points should change. The multiple temperature monitoring values ​​are generally not equal. If multiple temperature monitoring values ​​are equal, it indicates that the temperature sensor value transmitted by the MOC card has not changed for a long time. Therefore, in this case, it can be determined that there is an anomaly in the temperature sensor data of the MOC card.

[0074] Therefore, the temperature monitoring value can be the sum of temperature data from multiple monitoring points. By analyzing multiple temperature monitoring values, it can be determined whether the temperature sensor value transmitted by the MOC card has not changed for a long time. If multiple temperature monitoring values ​​are equal, it can be determined that there is an anomaly in the temperature sensor data of the MOC card.

[0075] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, after determining whether the temperature monitoring values ​​are equal, the method further includes:

[0076] If it is determined that the temperature monitoring values ​​are not equal, then it is determined that the temperature sensor data of the MOC card is not abnormal;

[0077] The second temperature monitoring value among the plurality of temperature monitoring values ​​is cleared, and the detection time corresponding to the second temperature monitoring value is the earliest detection time among the plurality of temperature monitoring values.

[0078] Specifically, after determining whether all temperature monitoring values ​​are equal, if it is determined that the temperature monitoring values ​​are not equal, it indicates that the temperature sensor values ​​transmitted by the MOC card have not remained unchanged for a long time. In this case, the second temperature monitoring value can be cleared from the multiple temperature monitoring values. After clearing the second temperature monitoring value, the number of multiple temperature monitoring values ​​is less than the target detection count. Therefore, the process of obtaining multiple temperature monitoring values ​​based on the target detection count can be repeated to make the number of multiple temperature monitoring values ​​equal to the target detection count, and then the operation of "determining whether the temperature monitoring values ​​are equal" can be performed.

[0079] For example, the target can be detected 5 times, and the multiple temperature monitoring values ​​obtained can include 5 temperature monitoring values, namely the temperature monitoring value corresponding to the 1st detection time, the temperature monitoring value corresponding to the 2nd detection time, the temperature monitoring value corresponding to the 3rd detection time, the temperature monitoring value corresponding to the 4th detection time, and the temperature monitoring value corresponding to the 5th detection time. It can be determined whether each temperature monitoring value is equal.

[0080] If it is determined that the temperature monitoring values ​​are not all equal, the temperature monitoring value corresponding to the first detection time can be cleared. After clearing the temperature monitoring value corresponding to the first detection time, the number of multiple temperature monitoring values ​​(the number is 4) is less than the target detection count. Therefore, the process of obtaining multiple temperature monitoring values ​​based on the target detection count can be repeated, and the temperature monitoring value corresponding to the sixth detection time can be obtained. The multiple temperature monitoring values ​​obtained can include the temperature monitoring values ​​corresponding to the second, third, fourth, fifth, and sixth detection times, and then the operation of "determining whether the temperature monitoring values ​​are equal" can be performed.

[0081] Therefore, by clearing the second temperature monitoring value among multiple temperature monitoring values, the operation of obtaining multiple temperature monitoring values ​​based on the number of target detections can be repeatedly performed, and then the operation of judging whether each temperature monitoring value is equal can be performed, which can realize continuous monitoring of the temperature data of the MOC card until it is determined that there is an anomaly in the temperature sensor data of the MOC card.

[0082] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, after determining that the temperature sensor data of the MOC card is abnormal, the method further includes:

[0083] A warning message is sent to the server, and the warning message includes the multiple temperature monitoring values.

[0084] Specifically, after determining that there is an anomaly in the temperature sensor data of the MOC card, multiple temperature monitoring values ​​can be packaged into an early warning message and then sent to the server so that the server can be aware that there is an anomaly in the temperature sensor data of the MOC card.

[0085] Understandably, in related technologies, if the sensor temperature values ​​transmitted by the MOC card are abnormal, the BMC (Browser Control Center) may misjudge the server's own temperature status. This can lead to a mismatch between fan speed and actual temperature, causing overheating and affecting testing. More importantly, high temperatures can cause the MOC card to detach or record high-temperature alarms, ultimately leading to server aging and abnormal error reports. The MOC card temperature data monitoring method provided in this invention, by sending early warning information to the server, enables the server to be aware of abnormal temperature sensor data from the MOC card, thus preventing the BMC from misjudging the server's own temperature status due to abnormal sensor temperature values ​​transmitted by the MOC card.

[0086] Therefore, by sending early warning information to the server, it is possible to prevent the BMC from misjudging the server's own temperature status due to abnormal sensor temperature values ​​transmitted by the MOC card.

[0087] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, before acquiring multiple temperature monitoring values ​​based on the number of target detections, the method further includes:

[0088] Read the configuration file, which includes the warning duration and detection cycle;

[0089] The number of times the target is detected is determined based on the ratio between the warning duration and the detection period.

[0090] Specifically, in order to obtain the number of target detections, before obtaining multiple temperature monitoring values ​​based on the number of target detections, a configuration file can be read. This configuration file includes the warning duration length and the detection cycle. Then, the ratio of the warning duration length to the detection cycle can be calculated, and this ratio can be used as the number of target detections.

[0091] Understandably, an appropriate warning duration can be determined based on experimental data from the MOC card.

[0092] Therefore, by calculating the ratio between the warning duration and the detection cycle, the number of times the target is detected can be determined.

[0093] Optionally, according to the temperature data monitoring method for an MOC card provided by the present invention, after acquiring multiple temperature monitoring values ​​based on the number of target detections, the method further includes:

[0094] The temperature change rate is obtained based on the multiple temperature monitoring values;

[0095] The warning duration is updated based on the temperature change rate;

[0096] The number of target detections is updated based on the ratio between the updated warning duration and the detection period.

[0097] Specifically, after acquiring multiple temperature monitoring values, the rate of temperature change of the multiple temperature monitoring values ​​can be calculated. Then, based on the rate of temperature change, the warning duration can be updated to adapt the updated warning duration to the rate of temperature change. Furthermore, based on the ratio between the adjusted warning duration and the detection cycle, the number of target detections can be updated to adapt the number of target detections to the rate of temperature change.

[0098] For example, the number of target detections can be 5. Multiple temperature monitoring values ​​can include the temperature monitoring value t1 corresponding to the first detection time, the temperature monitoring value t2 corresponding to the second detection time, the temperature monitoring value t3 corresponding to the third detection time, the temperature monitoring value t4 corresponding to the fourth detection time, and the temperature monitoring value t5 corresponding to the fifth detection time. The temperature change rate can be R = (T2 - T1) / T1, where R represents the temperature change rate, T1 represents the average of t1 and t2, i.e., (t1 + t2) / 2, and T2 represents the average of t3, t4, and t5, i.e., (t3 + t4 + t5) / 3.

[0099] Optionally, the warning duration can be updated based on a preset update method and the absolute value of the temperature change rate. The preset update method can be that the smaller the absolute value of the temperature change rate, the longer the warning duration, and the larger the absolute value of the temperature change rate, the shorter the warning duration.

[0100] Understandably, if the absolute value of the temperature change rate is smaller, it means that the temperature monitoring value changes less over a period of time, and an update operation to increase the warning duration can be performed. If the absolute value of the temperature change rate is larger, it means that the temperature monitoring value changes more rapidly over a period of time, and an update operation to shorten the warning duration can be performed, so that the updated warning duration is adapted to the temperature change rate.

[0101] Therefore, by updating the warning duration based on the temperature change rate, the updated number of target detections can be adapted to the temperature change rate.

[0102] Optionally, Figure 2 This is the second flowchart illustrating the temperature data monitoring method for the MOC card provided by this invention, as shown below. Figure 2 As shown, the method for monitoring temperature data of the MOC card may include steps 201 to 208:

[0103] Step 201: Read the configuration file.

[0104] Specifically, the configuration file may include the warning duration and detection period. By reading the configuration file, the warning duration and detection period can be obtained.

[0105] Step 202: Calculate the number of target detections.

[0106] Specifically, the ratio between the duration of the early warning and the detection cycle is calculated, and this ratio is determined as the number of times the target is detected.

[0107] Step 203: Calculate the temperature monitoring value corresponding to the 0th detection time.

[0108] Specifically, the monitoring points are the temperature monitoring points in the MOC card. The multiple monitoring points in the MOC card include the first monitoring point at the CPU, the second monitoring point at the FPGA, the third monitoring point at the memory, the fourth monitoring point at the inlet, the fifth monitoring point at the hard disk, and the sixth monitoring point at the voltage regulator.

[0109] Specifically, at the 0th detection time, the sum of the temperature data of the first monitoring point, the second monitoring point, the third monitoring point, the fourth monitoring point, the fifth monitoring point, and the sixth monitoring point can be calculated, and the sum can be used as the temperature monitoring value corresponding to the 0th detection time.

[0110] Step 204: Determine whether the number of temperature monitoring values ​​obtained has reached the target number of detections. If it has, proceed to step 205; otherwise, proceed to step 206.

[0111] Step 205: Determine whether the temperature monitoring values ​​are equal. If they are equal, proceed to step 207. If they are not equal, proceed to step 208.

[0112] Step 206: Based on the detection cycle, perform an operation to acquire a temperature monitoring value once, and then proceed to step 204.

[0113] Specifically, at the Nth detection time, temperature data from multiple monitoring points held by the server can be obtained, and then the temperature monitoring value corresponding to the Nth detection time can be determined based on the temperature data from multiple monitoring points, where N is a positive integer.

[0114] Step 207: Send the warning information to the server.

[0115] Step 208: Clear the temperature monitoring value corresponding to the earliest time and proceed to step 206.

[0116] Specifically, the second temperature monitoring value among multiple temperature monitoring values ​​can be cleared, and the detection time corresponding to the second temperature monitoring value is the earliest detection time among the multiple temperature monitoring values.

[0117] The temperature data monitoring method for MOC cards provided by this invention acquires multiple temperature monitoring values, with different temperature monitoring values ​​corresponding to different detection times. Each temperature monitoring value is determined based on the temperature data of multiple monitoring points held by the server at the corresponding detection time. The temperature data of multiple monitoring points is reported to the server by the MOC card. By judging whether each temperature monitoring value is equal, it can be analyzed whether the temperature sensor value transmitted by the MOC card has not changed for a long time. If it is determined that each temperature monitoring value is equal, it indicates that the temperature sensor value transmitted by the MOC card has not changed for a long time, and thus it can be determined that there is an anomaly in the temperature sensor data of the MOC card.

[0118] The temperature data monitoring device for MOC cards provided by the present invention is described below. The temperature data monitoring device for MOC cards described below can be referred to in correspondence with the temperature data monitoring method for MOC cards described above.

[0119] Figure 3 This is a schematic diagram of the temperature data monitoring device for the MOC card provided by the present invention, as shown below. Figure 3 As shown, the device includes an acquisition module 301, a judgment module 302, and a first determination module 303, wherein:

[0120] The acquisition module 301 is used to acquire multiple temperature monitoring values ​​based on the number of target detections, wherein the number of multiple temperature monitoring values ​​is equal to the number of target detections;

[0121] The judgment module 302 is used to determine whether the temperature monitoring values ​​are equal.

[0122] The first determining module 303 is used to determine that the temperature sensor data of the MOC card is abnormal if all temperature monitoring values ​​are determined to be equal.

[0123] Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points is the temperature data reported to the server by the MOC card. The monitoring point is the temperature monitoring point in the MOC card. The first temperature monitoring value is any one of the multiple temperature monitoring values. The first detection time is the time when the first temperature monitoring value is obtained.

[0124] The temperature data monitoring device for MOC cards provided by this invention acquires multiple temperature monitoring values, with different temperature monitoring values ​​corresponding to different detection times. Each temperature monitoring value is determined based on the temperature data of multiple monitoring points held by the server at the corresponding detection time. The temperature data of multiple monitoring points is reported to the server by the MOC card. By judging whether each temperature monitoring value is equal, it can be analyzed whether the temperature sensor value transmitted by the MOC card has not changed for a long time. If it is determined that each temperature monitoring value is equal, it indicates that the temperature sensor value transmitted by the MOC card has not changed for a long time, and thus it can be determined that there is an anomaly in the temperature sensor data of the MOC card.

[0125] Optionally, in the temperature data monitoring device for an MOC card provided by the present invention, the acquisition module is specifically used for:

[0126] Based on the detection cycle, the operation of acquiring the first temperature monitoring value is continuously executed until the number of acquired temperature monitoring values ​​equals the number of target detections;

[0127] The acquisition of the first temperature monitoring value includes:

[0128] At the first detection moment, temperature data from multiple monitoring points held by the server are acquired;

[0129] Based on the temperature data from the multiple monitoring points, the first temperature monitoring value is determined.

[0130] Optionally, according to the temperature data monitoring device for an MOC card provided by the present invention, the plurality of monitoring points include a first monitoring point at the central processing unit, a second monitoring point at the field-programmable gate array (FPGA), a third monitoring point at the memory, a fourth monitoring point at the inlet, a fifth monitoring point at the hard disk, and a sixth monitoring point at the voltage regulator. The acquisition module is specifically used for:

[0131] Calculate the sum of the temperature data from the first monitoring point, the second monitoring point, the third monitoring point, the fourth monitoring point, the fifth monitoring point, and the sixth monitoring point, and use the sum as the first temperature monitoring value.

[0132] Optionally, according to the temperature data monitoring device for an MOC card provided by the present invention, the device further includes a clearing module, which, after determining whether the temperature monitoring values ​​are equal, is used to:

[0133] If it is determined that the temperature monitoring values ​​are not equal, then it is determined that the temperature sensor data of the MOC card is not abnormal;

[0134] The second temperature monitoring value among the plurality of temperature monitoring values ​​is cleared, and the detection time corresponding to the second temperature monitoring value is the earliest detection time among the plurality of temperature monitoring values.

[0135] Optionally, according to the temperature data monitoring device for an MOC card provided by the present invention, the device further includes a transmitting module, which, after determining that there is an anomaly in the temperature sensor data of the MOC card, is used to:

[0136] A warning message is sent to the server, and the warning message includes the multiple temperature monitoring values.

[0137] Optionally, according to the temperature data monitoring device for an MOC card provided by the present invention, the device further includes a second determining module, which, before acquiring multiple temperature monitoring values ​​based on the number of target detections, is used to:

[0138] Read the configuration file, which includes the warning duration and detection cycle;

[0139] The number of times the target is detected is determined based on the ratio between the warning duration and the detection period.

[0140] Optionally, according to the temperature data monitoring device for an MOC card provided by the present invention, the device further includes an update module, which, after acquiring multiple temperature monitoring values ​​based on the number of target detections, is used to:

[0141] The temperature change rate is obtained based on the multiple temperature monitoring values;

[0142] The warning duration is updated based on the temperature change rate;

[0143] The number of target detections is updated based on the ratio between the updated warning duration and the detection period.

[0144] The temperature data monitoring device for MOC cards provided by this invention acquires multiple temperature monitoring values, with different temperature monitoring values ​​corresponding to different detection times. Each temperature monitoring value is determined based on the temperature data of multiple monitoring points held by the server at the corresponding detection time. The temperature data of multiple monitoring points is reported to the server by the MOC card. By judging whether each temperature monitoring value is equal, it can be analyzed whether the temperature sensor value transmitted by the MOC card has not changed for a long time. If it is determined that each temperature monitoring value is equal, it indicates that the temperature sensor value transmitted by the MOC card has not changed for a long time, and thus it can be determined that there is an anomaly in the temperature sensor data of the MOC card.

[0145] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a temperature data monitoring method for the MOC card, such as the method including:

[0146] Based on the number of target detections, multiple temperature monitoring values ​​are obtained, and the number of the multiple temperature monitoring values ​​is equal to the number of target detections.

[0147] Determine whether the temperature monitoring values ​​are equal;

[0148] If all temperature monitoring values ​​are determined to be equal, then the temperature sensor data of the MOC card is determined to be abnormal.

[0149] Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points is the temperature data reported to the server by the MOC card. The monitoring point is the temperature monitoring point in the MOC card. The first temperature monitoring value is any one of the multiple temperature monitoring values. The first detection time is the time when the first temperature monitoring value is obtained.

[0150] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as a software functional unit 5 and, when sold or used as an independent product, can be stored in a computer-readable storage device.

[0151] The information is read from the storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium, including...

[0152] The instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present invention.

[0153] The aforementioned storage media include: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, and other media that can store program code.

[0154] On the other hand, the present invention also provides a computer program product, wherein the computer program product includes a computer program that can be stored in a non-transitory computer-readable storage medium.

[0155] In essence, when the computer program is executed by the processor, the computer is able to perform the temperature data monitoring method for the MOC card provided by the above methods, for example, the method includes:

[0156] Based on the number of target detections, multiple temperature monitoring values ​​are obtained.

[0157] The number is equal to the number of times the target was detected;

[0158] 0. Determine if all temperature monitoring values ​​are equal;

[0159] If all temperature monitoring values ​​are determined to be equal, then the temperature sensor data of the MOC card is determined to be abnormal.

[0160] Each temperature monitoring value corresponds to a different detection time, with the first temperature monitoring value being the clothing temperature.

[0161] The sum of temperature data from multiple monitoring points held by the server at the first detection moment, wherein the temperature data from the multiple monitoring points is the temperature data reported to the server by the MOC card.

[0162] The monitoring point is the temperature monitoring point in the MOC card, the first temperature monitoring value is any one of the multiple temperature monitoring values, and the first detection time is the time when the first temperature monitoring value is acquired.

[0163] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the temperature data monitoring method for the MOC card provided by the methods described above, for example, the method includes:

[0164] Based on the number of target detections, multiple temperature monitoring values ​​are obtained, and the number of the multiple temperature monitoring values ​​is equal to the number of target detections.

[0165] Determine whether the temperature monitoring values ​​are equal;

[0166] If all temperature monitoring values ​​are determined to be equal, then the temperature sensor data of the MOC card is determined to be abnormal.

[0167] Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points is the temperature data reported to the server by the MOC card. The monitoring point is the temperature monitoring point in the MOC card. The first temperature monitoring value is any one of the multiple temperature monitoring values. The first detection time is the time when the first temperature monitoring value is obtained.

[0168] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0169] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for monitoring temperature data using an MOC card, characterized in that, include: Based on the number of target detections, multiple temperature monitoring values ​​are obtained by reading the BMC register of the server, and the number of the multiple temperature monitoring values ​​is equal to the number of target detections; Determine whether the temperature monitoring values ​​are equal; If all temperature monitoring values ​​are determined to be equal, then the temperature sensor data of the MOC card is determined to be abnormal. Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points is the temperature data reported by the MOC card to the BMC register of the server. The monitoring point is the temperature monitoring point in the MOC card. The first temperature monitoring value is any one of the multiple temperature monitoring values. The first detection time is the time when the first temperature monitoring value is obtained. The multiple monitoring points include a first monitoring point at the central processing unit, a second monitoring point at the field-programmable gate array (FPGA), a third monitoring point at the memory, a fourth monitoring point at the inlet, a fifth monitoring point at the hard disk, and a sixth monitoring point at the voltage regulator.

2. The method for monitoring temperature data of an MOC card according to claim 1, characterized in that, The method of obtaining multiple temperature monitoring values ​​based on the number of target detections includes: Based on the detection cycle, the operation of acquiring the first temperature monitoring value is continuously executed until the number of acquired temperature monitoring values ​​equals the number of target detections; The acquisition of the first temperature monitoring value includes: At the first detection moment, temperature data from multiple monitoring points held by the server are acquired; Based on the temperature data from the multiple monitoring points, the first temperature monitoring value is determined.

3. The method for monitoring temperature data of an MOC card according to claim 2, characterized in that, Determining the first temperature monitoring value based on the temperature data from the multiple monitoring points includes: Calculate the sum of the temperature data from the first monitoring point, the second monitoring point, the third monitoring point, the fourth monitoring point, the fifth monitoring point, and the sixth monitoring point, and use the sum as the first temperature monitoring value.

4. The method for monitoring temperature data of an MOC card according to claim 1, characterized in that, After determining whether the temperature monitoring values ​​are equal, the process also includes: If it is determined that the temperature monitoring values ​​are not equal, then it is determined that the temperature sensor data of the MOC card is not abnormal; The second temperature monitoring value among the plurality of temperature monitoring values ​​is cleared, and the detection time corresponding to the second temperature monitoring value is the earliest detection time among the plurality of temperature monitoring values.

5. The method for monitoring temperature data of an MOC card according to claim 1, characterized in that, After determining that the temperature sensor data of the MOC card is abnormal, the process further includes: A warning message is sent to the server, and the warning message includes the multiple temperature monitoring values.

6. The method for monitoring temperature data of an MOC card according to any one of claims 1 to 5, characterized in that, Before obtaining multiple temperature monitoring values ​​based on the number of target detections, the method further includes: Read the configuration file, which includes the warning duration and detection cycle; The number of times the target is detected is determined based on the ratio between the warning duration and the detection period.

7. The method for monitoring temperature data of an MOC card according to claim 6, characterized in that, After obtaining multiple temperature monitoring values ​​based on the number of target detections, the method further includes: The temperature change rate is obtained based on the multiple temperature monitoring values; The warning duration is updated based on the temperature change rate; The number of target detections is updated based on the ratio between the updated warning duration and the detection period.

8. A temperature data monitoring device for an MOC card, characterized in that, include: The acquisition module is used to acquire multiple temperature monitoring values ​​by reading the BMC register of the server based on the number of target detections, wherein the number of multiple temperature monitoring values ​​is equal to the number of target detections; The judgment module is used to determine whether the temperature monitoring values ​​are equal; The first determining module is used to determine that the temperature sensor data of the MOC card is abnormal if all temperature monitoring values ​​are determined to be equal. Each temperature monitoring value corresponds to a different detection time. The first temperature monitoring value is the sum of temperature data from multiple monitoring points held by the server at the first detection time. The temperature data from the multiple monitoring points is the temperature data reported by the MOC card to the BMC register of the server. The monitoring point is the temperature monitoring point in the MOC card. The first temperature monitoring value is any one of the multiple temperature monitoring values. The first detection time is the time when the first temperature monitoring value is obtained. The multiple monitoring points include a first monitoring point at the central processing unit, a second monitoring point at the field-programmable gate array (FPGA), a third monitoring point at the memory, a fourth monitoring point at the inlet, a fifth monitoring point at the hard disk, and a sixth monitoring point at the voltage regulator.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the temperature data monitoring method for the MOC card as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the temperature data monitoring method for the MOC card as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for detection sensor abnormality

    JP1999161325A