CN117271272B - BMC-based fan in-place state monitoring method and system - Google Patents

BMC-based fan in-place state monitoring method and system Download PDF

Info

Publication number
CN117271272B
CN117271272B CN202311559922.1A CN202311559922A CN117271272B CN 117271272 B CN117271272 B CN 117271272B CN 202311559922 A CN202311559922 A CN 202311559922A CN 117271272 B CN117271272 B CN 117271272B
Authority
CN
China
Prior art keywords
fan
processor
rotating speed
value
duty ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311559922.1A
Other languages
Chinese (zh)
Other versions
CN117271272A (en
Inventor
江旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Bojiang Information Technology Co Ltd
Original Assignee
Hunan Bojiang Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Bojiang Information Technology Co Ltd filed Critical Hunan Bojiang Information Technology Co Ltd
Priority to CN202311559922.1A priority Critical patent/CN117271272B/en
Publication of CN117271272A publication Critical patent/CN117271272A/en
Application granted granted Critical
Publication of CN117271272B publication Critical patent/CN117271272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/08Duration or width modulation ; Duty cycle modulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a monitoring method and a system for the fan on-site state based on BMC, wherein the method can timely and accurately detect the fan on-site state; when the fan is specifically used, only a linear relation formula of the duty ratio and the rotating speed corresponding to the fan is needed to be obtained, then a first duty ratio is generated and sent to the fan, then an actual first rotating speed corresponding to the first duty ratio is obtained, then a second duty ratio is generated and sent to the fan, and then an actual second rotating speed corresponding to the second duty ratio is obtained; by comparing the theoretical ratio between the first rotating speed and the second rotating speed with the actual ratio between the first rotating speed and the second rotating speed, whether the fan is in place or not can be judged, namely, when the fan is pulled out or fails, the state change of the pulled out or failed fan can be timely obtained.

Description

BMC-based fan in-place state monitoring method and system
Technical Field
The invention relates to the technical field of BMC monitoring, in particular to a BMC-based fan in-place state monitoring method and system.
Background
In the server system, a plurality of fans are required to be arranged in a server case so as to radiate heat; the fan runs at high speed for a long time, with a risk of failure. For example, a sudden drop of the fan may cause the server chassis to overheat, thereby damaging the server. In the normal operation process of the server, a BMC controller (Baseboard Management Controller ) in the server can monitor, control and manage a plurality of fans in the server case, and is mainly used for dynamically adjusting the rotating speed of the fans according to the temperature in the server case.
The existing BMC controller cannot directly monitor the in-place state (i.e. whether the fan falls off or operates normally) of the fan in the server chassis, so that when the fan is pulled out or fails, the BMC controller cannot timely acquire the state change of the pulled out or failed fan.
Disclosure of Invention
The invention mainly aims to provide a BMC-based fan in-place state monitoring method and system, and aims to solve the problem that an existing BMC controller cannot directly monitor the in-place state of a fan in a server case, so that when the fan is pulled out or fails, the BMC controller cannot timely acquire the state change of the pulled out or failed fan.
The technical scheme provided by the invention is as follows:
a BMC-based fan in-place state monitoring method is applied to a BMC-based fan in-place state monitoring system; the monitoring system comprises a BMC main board, a processor arranged on the BMC main board and a temperature sensor in communication connection with the processor; the processor is provided with a plurality of PWM controllers and a plurality of TACH controllers; the PWM controllers are used for being connected with the fans in a one-to-one correspondence manner, and the TACH controllers are used for being connected with the fans in a one-to-one correspondence manner; the monitoring method comprises the following steps:
the processor acquires a linear relation formula of the duty ratio and the rotating speed corresponding to the fan through the PWM controller and the TACH controller;
the processor marks the fan needing in-place monitoring as a target fan;
the PWM controller generates a first duty ratio and sends the first duty ratio to the target fan;
after receiving a first duty ratio from a target fan for a first preset time period, acquiring the rotating speed of the target fan at the current moment by a TACH controller, and marking the rotating speed as a first rotating speed;
the PWM controller generates a second duty ratio different from the first duty ratio and sends the second duty ratio to the target fan;
after receiving the second duty ratio from the target fan for a first preset time, the TACH controller obtains the rotating speed of the target fan at the current moment and marks the rotating speed as a second rotating speed;
the processor calculates a theoretical ratio between the first rotating speed and the second rotating speed based on a linear relation formula, the first duty ratio and the second duty ratio, and calculates an actual ratio between the first rotating speed and the second rotating speed;
the processor judges whether the absolute value of the difference value between the actual ratio and the theoretical ratio is smaller than a first preset value;
if the target fan is smaller than the first preset value, the processor determines that the target fan is in place;
if the target fan is not smaller than the first preset value, the processor determines that the target fan is out of position;
the temperature sensor detects the internal temperature of the case in real time and sends the internal temperature to the processor;
the processor judges whether the internal temperature is lower than a first temperature threshold value;
if the temperature is lower than the first temperature threshold, the processor acquires a rotating speed heating prediction model and a fan quantity heating prediction model which correspond to the case and are trained;
the processor determines a power reduction scheme based on the internal temperature, the first temperature threshold, the rotational speed warming prediction model, and the fan number warming prediction model.
Preferably, the processor obtains a linear relation formula of the duty ratio and the rotation speed corresponding to the fan through the PWM controller and the TACH controller, including:
the PWM controller generates a third duty cycle and sends the third duty cycle to the fan;
after receiving a third duty ratio from the fan for a first preset time, the TACH controller obtains the rotating speed of the fan at the current moment and marks the rotating speed as a third rotating speed corresponding to the third duty ratio;
the PWM controller generates a fourth duty ratio different from the third duty ratio and sends the fourth duty ratio to the fan;
after receiving a fourth duty cycle from the fan for a first preset time period, the TACH controller obtains the rotating speed of the fan at the current moment and marks the rotating speed as a fourth rotating speed corresponding to the fourth duty cycle;
the processor acquires a linear relation formula of the duty ratio and the rotating speed corresponding to the fan:
in the method, in the process of the invention,is the rotation speed value; />The value range is [0,1] for duty cycle];/>And C are constants;
the processor substitutes the third duty ratio and the third rotating speed into a linear relation formula, and substitutes the fourth duty ratio and the fourth rotating speed into the linear relation formula to obtainAnd C.
Preferably, the processor calculates a theoretical ratio between the first rotation speed and the second rotation speed based on a linear relation formula, the first duty ratio and the second duty ratio, and calculates an actual ratio between the first rotation speed and the second rotation speed, including:
the processor calculates a theoretical ratio between the first rotational speed and the second rotational speed:
in the method, in the process of the invention,is a theoretical ratio; />For a first duty cycle +.>Is a second duty cycle;
the processor calculates an actual ratio between the first rotational speed and the second rotational speed:
in the method, in the process of the invention,is the actual ratio,/>For the first rotational speed +.>The second rotational speed.
Preferably, the method further comprises:
after the processor detects that the BMC mainboard is electrified, executing the step that the processor marks the fan needing in-place monitoring as a target fan, and determining that the target fan is out of place by the processor if the fan is not smaller than a first preset value;
the processor marks the time when all fans finish on-site monitoring as the finishing time;
the processor controls the fan to normally operate by adopting a PID algorithm through the PWM controller;
and after the completion time, executing the step of marking the fan needing to be subjected to in-place monitoring as a target fan by the processor every a second preset time length until the step that the processor determines that the target fan is out of place if the fan is not smaller than the first preset value.
Preferably, the method further comprises:
the processor acquires an actual duty ratio generated by the PWM controller at the current moment;
the processor acquires the actual rotating speed of the fan at the current moment through the TACH controller;
the processor calculates to obtain the estimated rotating speed based on a linear relation formula of the duty ratio and the rotating speed and the actual duty ratio;
when the difference between the actual rotating speed and the estimated rotating speed is larger than a second preset value, the processor generates first warning information for expressing that the fan needs to clean dust.
Preferably, the monitoring system further comprises a display module in communication with the processor; each fan is correspondingly provided with a unique fan code; the processor marks the time when all fans finish on-site monitoring as the finishing time, and then the processor further comprises:
the processor marks the fan which is not in place as a fault fan and acquires the fan code of the fault fan;
the processor generates and displays second warning information through the display module, wherein the second warning information comprises the number of the fault fans and fan codes of the fault fans.
Preferably, the temperature sensor detects the internal temperature of the chassis in real time, and sends the internal temperature to the processor, and then the processor further includes:
the processor judges whether the internal temperature is higher than a second temperature threshold, wherein the second temperature threshold is larger than the first temperature threshold;
if yes, the processor controls the fan to perform primary rotation speed lifting through the PWM controller, and the rotation speed lifting amplitude is a preset amplitude;
when the rotation speed of the fan is increased, the processor judges whether the internal temperature is higher than a second temperature threshold value again;
if the temperature is higher than the second temperature threshold, the processor is executed again to control the fan to perform primary rotation speed lifting through the PWM controller, the rotation speed lifting amplitude is a preset amplitude, and the following steps are performed;
if the temperature is not higher than the second temperature threshold value or the rotating speed of the fan is increased to the maximum value, the processor controls the fan to operate according to the current rotating speed.
Preferably, the monitoring system further comprises a display module in communication with the processor; the monitoring method further comprises the following steps:
if the rotating speed of the fan is increased to the maximum value and the internal temperature is higher than the second temperature threshold, the processor generates third warning information for expressing abnormal high temperature in the chassis.
Preferably, the input variable of the speed-increasing prediction model is a temperature increasing value in the case, the output variable of the speed-increasing prediction model is a fan speed decreasing value corresponding to the temperature increasing value in the case, the input variable of the number-increasing prediction model is a temperature increasing value in the case, and the output variable of the number-increasing prediction model is a fan work number decreasing value corresponding to the temperature increasing value in the case; the processor determines a power reduction scheme based on the internal temperature, the first temperature threshold, the rotational speed warming prediction model, and the fan number warming prediction model, comprising:
the processor marks the difference between the internal temperature and the first temperature threshold as a target difference;
the processor inputs the target difference value into a speed-increasing prediction model to obtain a fan speed-decreasing predicted value, and marks the predicted value as a first predicted value;
the processor inputs the target difference value into a fan number heating prediction model to obtain a fan work number reduction predicted value, and marks the fan work number reduction predicted value as a second predicted value;
the processor obtains a power value which can be reduced by the fan after the rotating speed of the fan is reduced by a first preset value based on the relation between the power of the fan and the rotating speed, and marks the power value as a first power reduction preset value;
the processor obtains a power value which can be reduced after the number of the working fans is reduced by a second preset value based on the actual power value of the single fan at the current moment, and marks the power value as a second power reduction preset value;
if the first power reduction predicted value is greater than or equal to the second power reduction predicted value, the processor controls the fan to reduce the rotating speed through the PWM controller, and the rotating speed reduction amplitude is the first predicted value;
if the first power reduction predicted value is smaller than the second power reduction predicted value, the processor controls the number of the working fans to be reduced, and the reduced value is the second predicted value.
The invention also provides a monitoring system of the fan on-site state based on the BMC, and a monitoring method of the fan on-site state based on the BMC is applied; the monitoring system comprises a BMC mainboard and a processor arranged on the BMC mainboard; the processor is provided with a plurality of PWM controllers and a plurality of TACH controllers; the PWM controller is used for being connected with the fans in a one-to-one correspondence manner, and the TACH controller is used for being connected with the fans in a one-to-one correspondence manner.
Through the technical scheme, the following beneficial effects can be realized:
the monitoring method of the fan on-site state based on the BMC can timely and accurately detect the fan on-site state; when the fan is specifically used, only a linear relation formula of the duty ratio and the rotating speed corresponding to the fan is needed to be obtained, then a first duty ratio is generated and sent to the fan, then an actual first rotating speed corresponding to the first duty ratio is obtained, then a second duty ratio is generated and sent to the fan, and then an actual second rotating speed corresponding to the second duty ratio is obtained; by comparing the theoretical ratio between the first rotating speed and the second rotating speed with the actual ratio between the first rotating speed and the second rotating speed, whether the fan is in place or not can be judged, namely, when the fan is pulled out or fails, the state change of the pulled out or failed fan can be timely obtained.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a first embodiment of a method for monitoring a fan in-place status based on a BMC according to the present invention;
fig. 2 is a hardware schematic diagram of a monitoring system for fan in-place status based on BMC according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention provides a BMC-based fan in-place state monitoring method and system.
As shown in fig. 1 and fig. 2, in a first embodiment of a method for monitoring an on-premise status of a BMC-based fan according to the present invention, the method for monitoring an on-premise status of a BMC-based fan is applied to a system for monitoring an on-premise status of a BMC-based fan; the monitoring system comprises a BMC main board, a processor arranged on the BMC main board and a temperature sensor in communication connection with the processor; the processor is provided with a plurality of PWM controllers (Pulse Width Modulation, pulse width modulation, in the invention, a controller for adjusting the rotation speed of the fan by changing the duty ratio) and a plurality of TACH controllers (TACH is abbreviated as a tachometer, and the TACH controllers are hardware controllers for acquiring TACH signals of the corresponding fans, and the TACH signals are pulse signals output by the fans and are used for feeding back the rotation speed information of the fans, namely, the TACH controllers can acquire the rotation speed of the fans based on the TACH signals); the PWM controllers are used for being connected with the fans in a one-to-one correspondence manner, and the TACH controllers are used for being connected with the fans in a one-to-one correspondence manner; specifically, the system further includes a plurality of fan seats (in this embodiment, n are n number of PWM controllers, TACH controllers, fans, and fan seats, n is a positive integer greater than 2); the fan seat is respectively connected with the PWM controller and the TACH controller in a communication way; the fan seat is used for connecting a fan; the BMC main board, the processor, the PWM controller, the TACH controller, the fan and the fan seat are all arranged in the case; the embodiment comprises the following steps:
step S101: the processor acquires a linear relation formula of the duty ratio and the rotating speed corresponding to the fan through the PWM controller and the TACH controller.
Specifically, in the fan whose rotation speed is controlled and regulated by the PWM controller, the rotation speed of the fan is always in a linear relationship with the duty ratio; in practical application, for chassis fans of different models, specific parameters of the linear relationship between the duty ratio and the rotation speed of different fans are different due to different parameters inside the fans, so in this embodiment, a linear relationship formula between the duty ratio and the rotation speed corresponding to the fan to be monitored in place needs to be obtained first.
Step S102: the processor marks the fan that needs to be monitored in place as the target fan.
Step S103: the PWM controller generates a first duty cycle and sends it to the target fan.
Step S104: after receiving the first duty cycle from the target fan for a first preset period of time (e.g., 2 seconds), the TACH controller obtains the current rotation speed of the target fan and marks the current rotation speed as the first rotation speed.
Specifically, the fan needs to adjust the rotation speed after receiving the duty cycle, and the rotation speed is adjusted in a time-consuming manner, so that after a first preset period of time, the fan is considered to reach the stable rotation speed (i.e., the first rotation speed) corresponding to the first duty cycle.
Step S105: the PWM controller generates a second duty cycle different from the first duty cycle and sends to the target fan.
Step S106: and after the second duty ratio is received from the target fan and the first preset time period is passed, the TACH controller obtains the rotating speed of the target fan at the current moment and marks the rotating speed as the second rotating speed.
Specifically, the fan needs to adjust the rotation speed after receiving the duty cycle, and the rotation speed is adjusted in a time-consuming manner, so that after a first preset period of time, the fan is considered to reach a stable rotation speed (i.e., the second rotation speed) corresponding to the second duty cycle.
Step S107: the processor calculates a theoretical ratio between the first rotating speed and the second rotating speed based on a linear relation formula, the first duty ratio and the second duty ratio, and calculates an actual ratio between the first rotating speed and the second rotating speed.
Specifically, if the fan is operating normally, a corresponding rotation speed change can be generated according to the change of the duty ratio, and the actual ratio between the first rotation speed and the second rotation speed should be the same as or close to the theoretical ratio between the first rotation speed and the second rotation speed, so that it can be determined whether the fan is operating normally.
Step S108: the processor determines whether the absolute value of the difference between the actual ratio and the theoretical ratio is less than a first preset value (preferably 10% of the theoretical ratio).
Specifically, in practical application, the fan cannot completely and strictly respond to the change of the duty ratio to change the rotation speed due to the influence of dust after long-time running, so that the corresponding fan is still considered to be in a normal running state as long as the absolute value of the difference between the actual ratio and the theoretical ratio is smaller than a first preset value.
Step S109: if the target fan is smaller than the first preset value, the processor determines that the target fan is in place.
Step S110: if the target fan is not smaller than the first preset value, the processor determines that the target fan is not in place.
Specifically, if the absolute value of the difference between the actual ratio and the theoretical ratio is not smaller than the first preset value, the corresponding fan is considered to be out of place, namely, a fault or a detachment phenomenon occurs, and maintenance is needed.
Step S111: the temperature sensor detects the internal temperature of the case in real time and sends the internal temperature to the processor.
Step S112: the processor determines whether the internal temperature is below a first temperature threshold (e.g., 50 degrees celsius).
Step S113: and if the temperature is lower than the first temperature threshold, the processor acquires a rotating speed heating prediction model and a fan number heating prediction model which correspond to the case and are trained.
Step S114: the processor determines a power reduction scheme based on the internal temperature, the first temperature threshold, the rotational speed warming prediction model, and the fan number warming prediction model.
Specifically, if the temperature of the chassis is lower than the first temperature threshold, which means that the temperature in the chassis is lower and has a certain temperature rising space, the measures to be taken may be to turn off a certain number of fans or directly reduce the rotation speeds of all fans, and then the selection needs to be performed according to the saved power corresponding to 2 schemes.
Specifically, the rotational speed heating prediction model is obtained by training based on first operation data of the case in a third preset time period (for example, in the past 1 month), wherein the first operation data comprises a case internal temperature rising value and a fan rotational speed reducing value corresponding to the case internal temperature rising value; the temperature rise value in the machine case is used as an input variable of the speed rise prediction model, and the fan speed reduction value corresponding to the temperature rise value in the machine case is used as an output variable of the speed rise prediction model for training.
Specifically, the fan number heating prediction model is obtained by training based on second operation data of the case in a third preset time period (for example, in the past 1 month), wherein the second operation data comprises a case internal temperature rising value and a fan working number reducing value corresponding to the case internal temperature rising value; the temperature rise value in the machine case is used as an input variable of the fan number temperature rise prediction model, and the fan work number reduction value corresponding to the temperature rise value in the machine case is used as an output variable of the fan number temperature rise prediction model for training.
The monitoring method of the fan on-site state based on the BMC can timely and accurately detect the fan on-site state; when the fan is specifically used, only a linear relation formula of the duty ratio and the rotating speed corresponding to the fan is needed to be obtained, then a first duty ratio is generated and sent to the fan, then an actual first rotating speed corresponding to the first duty ratio is obtained, then a second duty ratio is generated and sent to the fan, and then an actual second rotating speed corresponding to the second duty ratio is obtained; by comparing the theoretical ratio between the first rotating speed and the second rotating speed with the actual ratio between the first rotating speed and the second rotating speed, whether the fan is in place or not can be judged, namely, when the fan is pulled out or fails, the state change of the pulled out or failed fan can be timely obtained.
The method has excellent compatibility, does not need to newly add other hardware equipment, can be realized only by a software algorithm, and can be suitable for a large number of server cases which are put into use. The method has low application cost because no new hardware is needed; and the on-site state of the fan can be clearly known only by comparing the actual ratio and the theoretical ratio of the first rotating speed and the second rotating speed, the whole steps are simpler, and the monitoring result is accurate.
In a second embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, based on the first embodiment, step S101 includes the following steps:
step S210: the PWM controller generates a third duty cycle and sends it to the fan.
Step S220: and after the third duty ratio is received from the fan and the first preset time period is passed, the TACH controller obtains the rotating speed of the fan at the current moment and marks the rotating speed as a third rotating speed corresponding to the third duty ratio.
Step S230: the PWM controller generates a fourth duty cycle different from the third duty cycle and sends it to the fan.
Step S240: and after the fourth duty ratio is received from the fan and the first preset time period is elapsed, the TACH controller obtains the rotating speed of the fan at the current moment and marks the rotating speed as a fourth rotating speed corresponding to the fourth duty ratio.
Step S250: the processor acquires a linear relation formula of the duty ratio and the rotating speed corresponding to the fan:
in the method, in the process of the invention,is the rotation speed value; />The value range is [0,1] for duty cycle];/>And C are constant.
Step S260: the processor substitutes the third duty ratio and the third rotating speed into a linear relation formula, and substitutes the fourth duty ratio and the fourth rotating speed into the linear relation formula to obtainAnd C.
Specifically, the embodiment provides a specific calculation scheme of a linear relation formula of the duty ratio signal and the rotation speed, for example, in the embodiment, the third duty ratio is 0.3, and the third rotation speed is 400 rotations per minute; the fourth duty cycle is 0.5, and the fourth rotating speed is 600 revolutions per minute; then substituting the linear relation formula to obtainC=100; and then the complete linear relation formula of the duty ratio signal and the rotating speed is obtained as follows:
in a third embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, based on the second embodiment, step S107 includes the following steps:
step S310: the processor calculates a theoretical ratio between the first rotational speed and the second rotational speed:
in the method, in the process of the invention,is a theoretical ratio; />For a first duty cycle +.>Is a second duty cycle.
Specifically, the theoretical ratio between the first rotating speed and the second rotating speed is equal to the first duty ratio, the second duty ratio,And C is related to the value of C.
Step S320: the processor calculates an actual ratio between the first rotational speed and the second rotational speed:
in the method, in the process of the invention,for the actual ratio +.>For the first rotational speed +.>The second rotational speed.
Specifically, the theoretical ratio and the actual ratio can be calculated through the embodiment.
In a fourth embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, based on the first embodiment, the method further includes the following steps:
step S410: after detecting that the BMC motherboard is powered on, the processor executes step S102 to step S110.
Step S420: the processor marks the time when all fans are finished in-place monitoring as the finishing time.
Step S430: the processor controls the fan to normally operate by adopting a PID algorithm through the PWM controller.
Specifically, the fan can be closed-loop controlled by a PID algorithm, so that the rotation speed of the fan is maintained at a set rotation speed value, which is the prior art.
Step S440: after the completion time, step S102 is performed every second preset time period (for example, 24 hours) to step S110.
Specifically, after the power-on is completed, the on-site monitoring is performed on all fans every second preset time.
In a fifth embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, based on the second embodiment, the method further includes the following steps:
step S510: the processor obtains the actual duty cycle generated by the PWM controller at the current time.
Step S520: the processor obtains the actual rotating speed of the fan at the current moment through the TACH controller.
Specifically, the actual rotation speed is the rotation speed of the fan corresponding to the actual duty ratio.
Step S530: the processor calculates the estimated rotating speed based on a linear relation formula of the duty ratio and the rotating speed and the actual duty ratio.
Specifically, the estimated rotation speed is the rotation speed that the fan should reach based on the actual duty ratio under normal conditions, but in practical application, the rotation speed of the fan often cannot reach the estimated rotation speed due to the influence of external factors such as dust accumulation.
Step S540: when the difference between the actual rotation speed and the estimated rotation speed is larger than a second preset value (preferably 10% of the estimated rotation speed), the processor generates first warning information for indicating that the fan needs to clean dust.
Specifically, when the difference between the actual rotation speed and the estimated rotation speed is greater than the second preset value, the rotation speed of the fan is too low, and dust accumulation of the fan is too much, so that ash removal treatment is needed.
In a sixth embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, based on the fourth embodiment, the monitoring system further includes a display module communicatively connected to the processor; each fan is correspondingly provided with a unique fan code; step S420, further comprising the following steps:
step S610: the processor marks the fan that is not in place as a failed fan and obtains a fan code for the failed fan.
Step S620: the processor generates and displays second warning information through the display module, wherein the second warning information comprises the number of the fault fans and fan codes of the fault fans.
In a seventh embodiment of the method for monitoring a fan in-place status based on a BMC according to the present invention, based on the sixth embodiment, the system further includes an intelligent terminal (e.g. a mobile phone terminal) communicatively connected to the processor; the embodiment further comprises the following steps:
step S710: and the processor sends the second alarm information to the intelligent terminal.
In an eighth embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, step S111 is based on the first embodiment; the method further comprises the following steps:
step S810: the processor determines whether the internal temperature is above a second temperature threshold (e.g., 70 degrees celsius), wherein the second temperature threshold is greater than the first temperature threshold.
If yes, step S110 is executed: the processor controls the fan to perform one rotation speed increase through the PWM controller, and the rotation speed increase amplitude is a preset amplitude (for example, 400 rotations per minute).
Step S830: when the fan speed is increased, the processor again judges whether the internal temperature is higher than a second temperature threshold value.
Step S840: and if the temperature is higher than the second temperature threshold, the processor is executed again to control the fan to perform primary rotation speed lifting through the PWM controller, the rotation speed lifting amplitude is a preset amplitude, and the following steps are performed.
Step S850: if the temperature is not higher than the second temperature threshold value or the rotating speed of the fan is increased to the maximum value, the processor controls the fan to operate according to the current rotating speed.
The embodiment provides a scheme how to raise the rotation speed of the fan to reduce the temperature in the chassis when the temperature in the chassis is higher than the second temperature threshold.
In a ninth embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, based on the eighth embodiment, the monitoring system further includes a display module communicatively connected to the processor; the embodiment further comprises the following steps:
step S910: if the rotating speed of the fan is increased to the maximum value and the internal temperature is higher than the second temperature threshold, the processor generates third warning information for expressing abnormal high temperature in the chassis.
Specifically, if the rotational speed of the fan has been increased to a maximum value and the internal temperature is higher than the first temperature threshold, it is indicated that the number of fans in the chassis is insufficient to sufficiently dissipate heat, so that the processor generates third warning information for indicating an abnormally high temperature in the chassis.
In a tenth embodiment of the method for monitoring a fan in-place state based on a BMC according to the present invention, based on the ninth embodiment, an input variable of a rotational speed elevation prediction model is a fan rotational speed decrease value corresponding to the internal temperature increase value of the chassis, an output variable of the rotational speed elevation prediction model is a fan rotational speed decrease value corresponding to the internal temperature increase value of the chassis, an input variable of a fan number elevation prediction model is a chassis internal temperature increase value, and an output variable of the fan number elevation prediction model is a fan work number decrease value corresponding to the internal temperature increase value of the chassis; step S114, including the steps of:
step S1010: the processor marks the difference between the internal temperature and the first temperature threshold as a target difference.
Step S1020: the processor inputs the target difference value into a speed-increasing prediction model to obtain a fan speed-decreasing predicted value, and marks the predicted value as a first predicted value.
Specifically, the first preset value is a rotation speed value of the fan corresponding to the target difference value of the temperature rise in the chassis.
Step S1030: the processor inputs the target difference value into a fan number heating prediction model to obtain a fan work number reduction predicted value, and marks the predicted value as a second predicted value.
Specifically, the second predicted value is the corresponding reduced number of working fans when the temperature in the chassis increases by the target difference.
Step S1040: the processor obtains a power value which can be reduced by the fan after the rotating speed of the fan is reduced by a first preset value based on the relation between the power of the fan and the rotating speed, and marks the power value as a first power reduction preset value.
Specifically, the first power reduction predicted value is the power that can be saved when the scheme of reducing the rotation speed of the fan is adopted.
Step S1050: the processor obtains a power value which can be reduced after the number of the working fans is reduced by a second preset value based on the actual power value of the single fan at the current moment, and marks the power value as a second power reduction preset value.
Specifically, the second power reduction predicted value is the power that can be saved when the number of the working fans is reduced.
Step S1060: if the first power reduction predicted value is greater than or equal to the second power reduction predicted value, the processor controls the fan to reduce the rotating speed through the PWM controller, and the rotating speed reduction amplitude is the first predicted value.
Specifically, if the first power reduction predicted value is greater than or equal to the second power reduction predicted value, a scheme for reducing the rotation speed of the fan is implemented.
Step S1070: if the first power reduction predicted value is smaller than the second power reduction predicted value, the processor controls the number of the working fans to be reduced, and the reduced value is the second predicted value.
Specifically, if the first power reduction predicted value is smaller than the second power reduction predicted value, a scheme for reducing the number of working fans is implemented.
The invention also provides a monitoring system of the fan on-site state based on the BMC, and a monitoring method of the fan on-site state based on the BMC is applied; the monitoring system comprises a BMC mainboard and a processor arranged on the BMC mainboard; the processor is provided with a plurality of PWM controllers and a plurality of TACH controllers; the PWM controller is used for being connected with the fans in a one-to-one correspondence manner, and the TACH controller is used for being connected with the fans in a one-to-one correspondence manner.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (10)

1. The BMC-based fan on-site state monitoring method is characterized by being applied to a BMC-based fan on-site state monitoring system; the monitoring system comprises a BMC main board, a processor arranged on the BMC main board and a temperature sensor in communication connection with the processor; the processor is provided with a plurality of PWM controllers and a plurality of TACH controllers; the PWM controllers are used for being connected with the fans in a one-to-one correspondence manner, and the TACH controllers are used for being connected with the fans in a one-to-one correspondence manner; the monitoring method comprises the following steps:
the processor acquires a linear relation formula of the duty ratio and the rotating speed corresponding to the fan through the PWM controller and the TACH controller;
the processor marks the fan needing in-place monitoring as a target fan;
the PWM controller generates a first duty ratio and sends the first duty ratio to the target fan;
after receiving a first duty ratio from a target fan for a first preset time period, acquiring the rotating speed of the target fan at the current moment by a TACH controller, and marking the rotating speed as a first rotating speed;
the PWM controller generates a second duty ratio different from the first duty ratio and sends the second duty ratio to the target fan;
after receiving the second duty ratio from the target fan for a first preset time, the TACH controller obtains the rotating speed of the target fan at the current moment and marks the rotating speed as a second rotating speed;
the processor calculates a theoretical ratio between the first rotating speed and the second rotating speed based on a linear relation formula, the first duty ratio and the second duty ratio, and calculates an actual ratio between the first rotating speed and the second rotating speed;
the processor judges whether the absolute value of the difference value between the actual ratio and the theoretical ratio is smaller than a first preset value;
if the target fan is smaller than the first preset value, the processor determines that the target fan is in place;
if the target fan is not smaller than the first preset value, the processor determines that the target fan is out of position;
the temperature sensor detects the internal temperature of the case in real time and sends the internal temperature to the processor;
the processor judges whether the internal temperature is lower than a first temperature threshold value;
if the temperature is lower than the first temperature threshold, the processor acquires a rotating speed heating prediction model and a fan quantity heating prediction model which correspond to the case and are trained;
the processor determines a power reduction scheme based on the internal temperature, the first temperature threshold, the rotational speed warming prediction model, and the fan number warming prediction model.
2. The method for monitoring the on-site status of a fan based on BMC according to claim 1, wherein the processor obtains a linear relation formula of a duty ratio and a rotation speed corresponding to the fan through a PWM controller and a TACH controller, comprising:
the PWM controller generates a third duty cycle and sends the third duty cycle to the fan;
after receiving a third duty ratio from the fan for a first preset time, the TACH controller obtains the rotating speed of the fan at the current moment and marks the rotating speed as a third rotating speed corresponding to the third duty ratio;
the PWM controller generates a fourth duty ratio different from the third duty ratio and sends the fourth duty ratio to the fan;
after receiving a fourth duty cycle from the fan for a first preset time period, the TACH controller obtains the rotating speed of the fan at the current moment and marks the rotating speed as a fourth rotating speed corresponding to the fourth duty cycle;
the processor acquires a linear relation formula of the duty ratio and the rotating speed corresponding to the fan:
wherein N is a rotation speed value; s is duty ratio, and the value range is [0,1]; k and C are constants;
the processor substitutes the third duty ratio and the third rotating speed into a linear relation formula, and substitutes the fourth duty ratio and the fourth rotating speed into the linear relation formula to obtain the values of k and C.
3. The method for monitoring the on-site status of a BMC-based fan according to claim 2, wherein the processor calculates a theoretical ratio between the first rotational speed and the second rotational speed based on a linear relation formula, the first duty cycle, and the second duty cycle, and calculates an actual ratio between the first rotational speed and the second rotational speed, comprising:
the processor calculates a theoretical ratio between the first rotational speed and the second rotational speed:
in the method, in the process of the invention,is a theoretical ratio; />For a first duty cycle +.>Is a second duty cycle;
the processor calculates an actual ratio between the first rotational speed and the second rotational speed:
in the method, in the process of the invention,for the actual ratio +.>For the first rotational speed +.>The second rotational speed.
4. The method for monitoring the fan in-place status based on the BMC as claimed in claim 1, further comprising:
after the processor detects that the BMC mainboard is electrified, executing the step that the processor marks the fan needing in-place monitoring as a target fan, and determining that the target fan is out of place by the processor if the fan is not smaller than a first preset value;
the processor marks the time when all fans finish on-site monitoring as the finishing time;
the processor controls the fan to normally operate by adopting a PID algorithm through the PWM controller;
and after the completion time, executing the step of marking the fan needing to be subjected to in-place monitoring as a target fan by the processor every a second preset time length until the step that the processor determines that the target fan is out of place if the fan is not smaller than the first preset value.
5. The method for monitoring the fan in-place status based on the BMC as claimed in claim 2, further comprising:
the processor acquires an actual duty ratio generated by the PWM controller at the current moment;
the processor acquires the actual rotating speed of the fan at the current moment through the TACH controller;
the processor calculates to obtain the estimated rotating speed based on a linear relation formula of the duty ratio and the rotating speed and the actual duty ratio;
when the difference between the actual rotating speed and the estimated rotating speed is larger than a second preset value, the processor generates first warning information for expressing that the fan needs to clean dust.
6. The method of claim 4, wherein the monitoring system further comprises a display module communicatively coupled to the processor; each fan is correspondingly provided with a unique fan code; the processor marks the time when all fans finish on-site monitoring as the finishing time, and then the processor further comprises:
the processor marks the fan which is not in place as a fault fan and acquires the fan code of the fault fan;
the processor generates and displays second warning information through the display module, wherein the second warning information comprises the number of the fault fans and fan codes of the fault fans.
7. The method for monitoring the on-site status of a BMC-based fan according to claim 1, wherein the temperature sensor detects the internal temperature of the chassis in real time and sends the detected internal temperature to the processor, and further comprising:
the processor judges whether the internal temperature is higher than a second temperature threshold, wherein the second temperature threshold is larger than the first temperature threshold;
if yes, the processor controls the fan to perform primary rotation speed lifting through the PWM controller, and the rotation speed lifting amplitude is a preset amplitude;
when the rotation speed of the fan is increased, the processor judges whether the internal temperature is higher than a second temperature threshold value again;
if the temperature is higher than the second temperature threshold, the processor is executed again to control the fan to perform primary rotation speed lifting through the PWM controller, the rotation speed lifting amplitude is a preset amplitude, and the following steps are performed;
if the temperature is not higher than the second temperature threshold value or the rotating speed of the fan is increased to the maximum value, the processor controls the fan to operate according to the current rotating speed.
8. The method of claim 7, wherein the monitoring system further comprises a display module communicatively coupled to the processor; the monitoring method further comprises the following steps:
if the rotating speed of the fan is increased to the maximum value and the internal temperature is higher than the second temperature threshold, the processor generates third warning information for expressing abnormal high temperature in the chassis.
9. The method for monitoring the on-site state of a BMC-based fan according to claim 1, wherein the input variable of the rotational speed elevation prediction model is an elevation value of the temperature inside the cabinet, the output variable of the rotational speed elevation prediction model is a decrease value of the rotational speed of the fan corresponding to the elevation value of the temperature inside the cabinet, the input variable of the number of fans elevation prediction model is an elevation value of the temperature inside the cabinet, and the output variable of the number of fans elevation prediction model is a decrease value of the number of fans corresponding to the elevation value of the temperature inside the cabinet; the processor determines a power reduction scheme based on the internal temperature, the first temperature threshold, the rotational speed warming prediction model, and the fan number warming prediction model, comprising:
the processor marks the difference between the internal temperature and the first temperature threshold as a target difference;
the processor inputs the target difference value into a speed-increasing prediction model to obtain a fan speed-decreasing predicted value, and marks the predicted value as a first predicted value;
the processor inputs the target difference value into a fan number heating prediction model to obtain a fan work number reduction predicted value, and marks the fan work number reduction predicted value as a second predicted value;
the processor obtains a power value which can be reduced by the fan after the rotating speed of the fan is reduced by a first preset value based on the relation between the power of the fan and the rotating speed, and marks the power value as a first power reduction preset value;
the processor obtains a power value which can be reduced after the number of the working fans is reduced by a second preset value based on the actual power value of the single fan at the current moment, and marks the power value as a second power reduction preset value;
if the first power reduction predicted value is greater than or equal to the second power reduction predicted value, the processor controls the fan to reduce the rotating speed through the PWM controller, and the rotating speed reduction amplitude is the first predicted value;
if the first power reduction predicted value is smaller than the second power reduction predicted value, the processor controls the number of the working fans to be reduced, and the reduced value is the second predicted value.
10. A monitoring system for the on-site status of a BMC-based fan, wherein the monitoring method for the on-site status of a BMC-based fan according to any one of claims 1 to 9 is applied; the monitoring system comprises a BMC mainboard and a processor arranged on the BMC mainboard; the processor is provided with a plurality of PWM controllers and a plurality of TACH controllers; the PWM controller is used for being connected with the fans in a one-to-one correspondence manner, and the TACH controller is used for being connected with the fans in a one-to-one correspondence manner.
CN202311559922.1A 2023-11-22 2023-11-22 BMC-based fan in-place state monitoring method and system Active CN117271272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311559922.1A CN117271272B (en) 2023-11-22 2023-11-22 BMC-based fan in-place state monitoring method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311559922.1A CN117271272B (en) 2023-11-22 2023-11-22 BMC-based fan in-place state monitoring method and system

Publications (2)

Publication Number Publication Date
CN117271272A CN117271272A (en) 2023-12-22
CN117271272B true CN117271272B (en) 2024-02-02

Family

ID=89203019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311559922.1A Active CN117271272B (en) 2023-11-22 2023-11-22 BMC-based fan in-place state monitoring method and system

Country Status (1)

Country Link
CN (1) CN117271272B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103161720A (en) * 2011-12-09 2013-06-19 鸿富锦精密工业(深圳)有限公司 Fan testing device
CN109918267A (en) * 2019-02-28 2019-06-21 苏州浪潮智能科技有限公司 A kind of fan-status detection method, system, device and readable storage medium storing program for executing
CN110630552A (en) * 2019-09-21 2019-12-31 苏州浪潮智能科技有限公司 System, method and device for detecting fan link fault
CN210484156U (en) * 2019-08-09 2020-05-08 苏州浪潮智能科技有限公司 Server fan and BMC fault monitoring circuit based on CPLD
CN112799916A (en) * 2021-02-02 2021-05-14 神威超算(北京)科技有限公司 Server fan monitoring method, device and system
CN114153693A (en) * 2021-11-26 2022-03-08 苏州浪潮智能科技有限公司 Server fan state monitoring method and device and storage medium
CN114443430A (en) * 2022-01-24 2022-05-06 苏州浪潮智能科技有限公司 Server fan fault prediction system and method
CN115355192A (en) * 2022-09-23 2022-11-18 苏州浪潮智能科技有限公司 Device and method for detecting state of server fan
CN116398461A (en) * 2023-05-16 2023-07-07 上海申矽凌微电子科技股份有限公司 Fan control method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106208828B (en) * 2015-05-27 2020-09-29 罗姆股份有限公司 Motor drive device, motor drive IC, and cooling device and electronic apparatus using the same
US10519960B2 (en) * 2016-06-07 2019-12-31 Microsoft Technology Licensing Llc Fan failure detection and reporting
TWI621779B (en) * 2017-04-20 2018-04-21 保銳科技股份有限公司 Fan control apparatus and method of operating the same
US10620674B2 (en) * 2017-06-21 2020-04-14 Cisco Technology, Inc. Predictive monitoring of computer cooling systems
US11366502B2 (en) * 2020-05-18 2022-06-21 Quanta Computer Inc. Fan failure detection
US11614782B2 (en) * 2021-02-25 2023-03-28 Dell Products L.P. Fan blockage detection for an information handling system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103161720A (en) * 2011-12-09 2013-06-19 鸿富锦精密工业(深圳)有限公司 Fan testing device
CN109918267A (en) * 2019-02-28 2019-06-21 苏州浪潮智能科技有限公司 A kind of fan-status detection method, system, device and readable storage medium storing program for executing
CN210484156U (en) * 2019-08-09 2020-05-08 苏州浪潮智能科技有限公司 Server fan and BMC fault monitoring circuit based on CPLD
CN110630552A (en) * 2019-09-21 2019-12-31 苏州浪潮智能科技有限公司 System, method and device for detecting fan link fault
CN112799916A (en) * 2021-02-02 2021-05-14 神威超算(北京)科技有限公司 Server fan monitoring method, device and system
CN114153693A (en) * 2021-11-26 2022-03-08 苏州浪潮智能科技有限公司 Server fan state monitoring method and device and storage medium
CN114443430A (en) * 2022-01-24 2022-05-06 苏州浪潮智能科技有限公司 Server fan fault prediction system and method
CN115355192A (en) * 2022-09-23 2022-11-18 苏州浪潮智能科技有限公司 Device and method for detecting state of server fan
CN116398461A (en) * 2023-05-16 2023-07-07 上海申矽凌微电子科技股份有限公司 Fan control method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
合理的风扇控制设计确保电信设备可靠运行;栾成强;《Design Field 设计天地》;第1-3页 *

Also Published As

Publication number Publication date
CN117271272A (en) 2023-12-22

Similar Documents

Publication Publication Date Title
US20230223874A1 (en) Methods and systems for automatic rotation direction determination of electronically commutated motor
CN106369749B (en) Determine method, blowing device and its control method of the remaining time of cleaning strainer
US7711439B2 (en) Microcontroller methods of improving reliability in DC brushless motors and cooling fans
US9057378B2 (en) Intelligent air moving apparatus
CN114153693B (en) Method and device for monitoring fan state of server and storage medium
CN110736249A (en) Method and device for controlling running frequency of compressor, storage medium and processor
CN108223414B (en) Fan control method and device, storage medium and air conditioner
CN109489179B (en) Method and device for detecting air conditioner motor
CN117271272B (en) BMC-based fan in-place state monitoring method and system
CN108981077B (en) Abnormal fault tolerance control method and device and air conditioner
CN112653130B (en) Method and system for determining frequency supporting capacity of power grid based on inertia ratio
CN104682828A (en) Motor power limitation method and motor control system
CN110649837A (en) PG motor control method and device
CN107166681B (en) Air conditioner and air conditioner control method and device thereof
JP3741101B2 (en) Motor cooling control system
CN113376518B (en) Furnace belly fan fault detection method and device
US20160239058A1 (en) Determine installation of components based on performance characteristics
CN112145553A (en) Magnetic suspension bearing system, control method and device thereof and storage medium
CN104349043B (en) Network camera corrects system and method
CN109654055B (en) Detection method and detection device for wind pressure abnormity, fan and air conditioner
CN115218455A (en) Air conditioner control method and device, air conditioner and storage medium
WO2022201322A1 (en) Air conditioning control system
CN116481131A (en) Control method, device and equipment for resetting air deflector program of air conditioner and air conditioner
CN102434476B (en) Controlled angle acceleration for ventilation installation
CN112415388A (en) Motor fault detection method and device, electronic equipment and heating and ventilation equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant