CN109826822B - Fan control method and related device - Google Patents

Fan control method and related device Download PDF

Info

Publication number
CN109826822B
CN109826822B CN201910290072.7A CN201910290072A CN109826822B CN 109826822 B CN109826822 B CN 109826822B CN 201910290072 A CN201910290072 A CN 201910290072A CN 109826822 B CN109826822 B CN 109826822B
Authority
CN
China
Prior art keywords
fan
cpld
pwm
bmc
speed gear
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
CN201910290072.7A
Other languages
Chinese (zh)
Other versions
CN109826822A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910290072.7A priority Critical patent/CN109826822B/en
Publication of CN109826822A publication Critical patent/CN109826822A/en
Application granted granted Critical
Publication of CN109826822B publication Critical patent/CN109826822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Positive-Displacement Air Blowers (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The invention discloses a fan control method, a system and a device, wherein a CPLD is used for monitoring a BMC (baseboard management controller), when the BMC is abnormal, the CPLD is used for maintaining the rotating speed of a fan, and when a high-temperature alarm signal sent by equipment needing temperature adjustment is received, PWM (pulse width modulation) is output according to gears to complete the regulation and control of the rotating speed of the fan. Because the temperature regulation and control are executed only after the high-temperature signal is received, the temperature of each device needing temperature regulation does not need to be monitored in real time, and the expense of the CPLD can be relatively reduced; the CPLD can adjust the rotating speed of the fan according to the gear, the PWM can be adjusted, and the fan is guaranteed not to continuously rotate at the maximum rotating speed. Because the gear corresponds to a range, the gear does not need to be frequently adjusted as long as the maximum temperature value capable of finishing heat dissipation under the gear is not exceeded, so that the CPLD does not need to be frequently operated for adjusting PWM output, and the consumption of the CPLD is reduced under the condition of ensuring that the rotating speed can be adjusted.

Description

Fan control method and related device
Technical Field
The present invention relates to the field of computing technologies, and in particular, to a method, a system, and an apparatus for controlling a fan.
Background
At present, in computer equipment, in order to reduce the temperature of equipment such as a CPU and a memory during operation, a fan is generally provided to reduce the temperature. The fan is managed and controlled by BMC, and corresponding PWM signal is given for fan control circuit according to temperature output to BMC to the realization is to the control of fan, but when BMC broke down, just can not adjust according to the temperature that needs the temperature regulation equipment of fan, in order to satisfy the system heat dissipation, when designing fan circuit usually, place the fan in full speed under this condition, in order to satisfy the heat dissipation requirement. However, the heat dissipation requirement may not require the fan to be at full speed, which may result in unnecessary power consumption and may also cause significant noise problems when the fan is rotated at full speed for a long period of time.
Therefore, how to reasonably control the fan speed when the BMC is abnormal is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a fan control method, a system and a device, which are used for solving the problem of reasonably controlling the rotating speed of a fan when the BMC is abnormal.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
a fan control method, comprising:
monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal or not by using the CPLD;
when the BMC is abnormal, the CPLD is utilized to maintain the current rotating speed of the fan;
when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the speed gear of the fan is adjusted so that the high-temperature alarm signal disappears.
Wherein, the monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal by utilizing the CPLD comprises the following steps:
monitoring whether the heartbeat signal between the CPLD and the BMC is abnormal or not by utilizing the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
Wherein the method further comprises:
when the BMC is not abnormal, determining the current temperature value of the equipment needing temperature adjustment at intervals of preset time by using the BMC, and generating PWM (pulse width modulation) for adjusting the corresponding temperature value of the rotating speed of the fan according to the temperature value;
and introducing the PWM with the corresponding temperature value into the CPLD, and outputting the PWM with the corresponding temperature value to a control circuit of the fan by using the CPLD so as to adjust the rotating speed of the fan.
Wherein, the monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal by utilizing the CPLD comprises the following steps:
monitoring whether the PWM output by the BMC or the BMC is abnormal or not by utilizing the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
When the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the rotation speed gear of the fan is adjusted, wherein the method comprises the following steps:
s1, when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting PWM corresponding to the highest fan speed gear to the control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted to be the highest gear;
s2, judging whether the current high-temperature alarm signal disappears at preset time intervals;
s3, if yes, the CPLD is utilized to output PWM corresponding to the lower gear of the current fan speed gear to the control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the speed gear of the fan is adjusted;
s4, the CPLD monitors whether the equipment needing temperature adjustment sends out a high-temperature alarm signal at preset time intervals; if not, returning to S3;
s5, if yes, the CPLD is utilized to output PWM corresponding to the current fan speed gear which is higher than the current fan speed gear by one gear according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted; returning to S4.
The present application further provides a fan control system, comprising:
the abnormality judgment module is used for monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal or not by utilizing the CPLD;
the CPLD first control module is used for maintaining the current rotating speed of the fan by utilizing the CPLD when the BMC is abnormal;
and the CPLD second control module is used for outputting corresponding PWM to a control circuit of the fan by using the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, and adjusting the speed gear of the fan so as to make the high-temperature alarm signal disappear.
The abnormality determination module is specifically configured to:
monitoring whether the heartbeat signal between the CPLD and the BMC is abnormal or not by utilizing the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
Wherein the system further comprises:
the PWM generating module is used for determining the current temperature value of the equipment needing temperature adjustment by using the BMC at preset time intervals when the BMC is not abnormal, and generating PWM (pulse width modulation) for adjusting the corresponding temperature value of the rotating speed of the fan according to the temperature value;
and the CPLD third control module is used for introducing the PWM with the corresponding temperature value into the CPLD and outputting the PWM with the corresponding temperature value to the control circuit of the fan by utilizing the CPLD so as to adjust the rotating speed of the fan.
Wherein, the second control module of CPLD includes:
the first PWM output unit is used for outputting PWM corresponding to the highest fan speed gear to a control circuit of the fan by utilizing the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, and adjusting the fan speed gear to be the highest gear;
the judging unit is used for judging whether the current high-temperature warning signal disappears at intervals of preset time; if yes, stopping the adjustment.
The second PWM output unit is used for outputting PWM corresponding to the lower gear of the current fan speed gear to a control circuit of the fan by utilizing the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the high-temperature warning signal does not disappear, and adjusting the speed gear of the fan; and continuing to call the judging unit.
The present application further provides a fan control apparatus, including:
the BMC is used for controlling and adjusting the rotating speed of the fan;
the CPLD is connected with the BMC and is used for monitoring whether the BMC is abnormal or not; when the BMC is abnormal, keeping the current rotating speed of the fan; when monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM; adjusting the rotating speed gear of the fan to make the high-temperature alarm signal disappear;
the control circuit of the fan is connected with the CPLD and is used for receiving the PWM output by the CPLD and adjusting the wind speed of the fan by utilizing the PWM;
the fan is connected with the control circuit of the fan.
According to the above scheme, the fan control method provided by the invention is characterized by comprising the following steps: monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal or not by using the CPLD; when the BMC is abnormal, the CPLD is utilized to maintain the current rotating speed of the fan; when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the speed gear of the fan is adjusted so that the high-temperature alarm signal disappears.
Therefore, according to the fan control method provided by the application, the CPLD is used for monitoring the BMC, when the BMC is abnormal, the CPLD is used for maintaining the current fan rotating speed, the PWM corresponding to the gear is output when a high-temperature alarm signal sent by equipment needing temperature adjustment is received, and the fan rotating speed is adjusted and controlled in a temperature pertinence mode. The temperature regulation and control are executed only after the high-temperature signal is received, and the temperature of each device needing temperature regulation and control is not required to be monitored in real time, so that the overhead of the CPLD can be relatively reduced; in addition, the CPLD can adjust the rotating speed of the fan according to the gear, so that the PWM can be adjusted, and the fan can not continuously run at the maximum rotating speed. Moreover, since the gear does not correspond to a temperature value precisely but a temperature range, the gear does not need to be adjusted frequently as long as the maximum temperature value capable of finishing heat dissipation under the gear is not exceeded, so that the CPLD does not need to be adjusted frequently for PWM output, and the consumption of the CPLD is reduced under the condition that the rotating speed can be adjusted. The application also provides a fan control system and device, and the above effects can be achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for controlling a fan according to an embodiment of the present invention;
FIG. 2 is a flowchart of a specific fan control method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a specific fan control method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a fan control system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a fan control device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a fan control method, a system and a device, which aim to solve the problem of how to reasonably control the rotating speed of a fan when the BMC is abnormal.
Referring to fig. 1, a fan control method provided in an embodiment of the present invention specifically includes:
and S101, monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal or not by using the CPLD.
In the scheme, a CPLD (Complex Programmable Logic Device) is connected to a BMC (Baseboard Management Controller), and the BMC is used for controlling the rotation speed of the fan and editing the CPLD, so that the CPLD can be used for monitoring whether the BMC is abnormal in the scheme, and it can be understood that the BMC cannot adjust the rotation speed of the fan when the BMC is abnormal.
In a specific embodiment, the CPLD is utilized to monitor whether the heartbeat signal between the CPLD and the BMC is abnormal.
The heartbeat signal is a method for sending a small data packet to the other interconnected party at intervals and judging whether a communication link between the two interconnected parties is disconnected or not according to the reply condition of the other party. Whether the BMC is abnormal can be judged more conveniently by utilizing the heartbeat signal without complex judgment logic.
And S102, when the BMC is abnormal, maintaining the current rotating speed of the fan by using the CPLD.
When the BMC is abnormal, the CPLD is firstly utilized to maintain the current rotating speed of the fan. For specific operations, reference may be made to the prior art, which is not described in detail in this embodiment.
S103, when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted so that the high-temperature alarm signal disappears.
It should be noted that, in the present solution, the devices that need to be temperature-regulated, such as the CPU and the memory, that need to dissipate heat, may generate a high-temperature alarm information number when a high temperature condition occurs, that is, the temperature exceeds its own preset normal value.
It should be noted that, since editing a fine temperature adjustment logic in the CPLD may occupy a large amount of data processing resources, and the overhead on the CPLD is also very large, the fine temperature adjustment logic is usually executed in the BMC, for example, in the prior art, the BMC is used to monitor the temperature of each device to be temperature adjusted in real time, and the PWM for adjusting the rotation speed of the fan is changed according to the temperature value.
Considering the overhead problem of the CPLD and how to reasonably control the fan, when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted so that the high-temperature alarm signal disappears.
Firstly, a high-temperature alarm signal is introduced into the CPLD in the scheme, and the corresponding temperature regulation logic is executed only after the CPLD receives the high-temperature signal, so that the temperature of each device needing temperature regulation is not required to be monitored in real time like the BMC, and the expense of the CPLD can be relatively reduced.
In addition, elements and corresponding relations between the fan rotating speed gear and the PWM are added in the CPLD, the CPLD can be adjusted in a grading mode according to the gear, the output PWM cannot be accurately corresponding to the temperature, the PWM can be adjusted, and therefore the PWM does not need to be continuously the value corresponding to the maximum rotating speed of the fan, and the fan cannot be continuously operated at the maximum rotating speed.
Moreover, the gear does not correspond to a temperature value precisely but corresponds to a temperature range, for example, at the rotating speed of the first gear, the temperature of the equipment needing temperature adjustment is below 40 ℃, heat dissipation and temperature reduction can be completed, at the rotating speed of the second gear, the temperature of the equipment needing temperature adjustment is below 60 ℃, heat dissipation and temperature reduction can be completed, even if the temperature of the equipment needing temperature adjustment floats up and down, the gear does not need to be adjusted frequently as long as the maximum temperature value capable of completing heat dissipation at the gear is not exceeded, and therefore the CPLD does not need to be adjusted frequently, and consumption of the CPLD is reduced.
Therefore, according to the fan control method provided by the embodiment of the application, the CPLD is used for monitoring the BMC, when the BMC is abnormal, the CPLD is used for maintaining the current fan rotating speed, the PWM corresponding to the gear is output when a high-temperature alarm signal sent by equipment needing temperature adjustment is received, and the fan rotating speed is adjusted and controlled in a temperature pertinence mode. The temperature regulation and control are executed only after the high-temperature signal is received, and the temperature of each device needing temperature regulation and control is not required to be monitored in real time, so that the overhead of the CPLD can be relatively reduced; in addition, the CPLD can adjust the rotating speed of the fan according to the gear, so that the PWM can be adjusted, and the fan can not continuously run at the maximum rotating speed. Moreover, since the gear does not correspond to a temperature value precisely but a temperature range, the gear does not need to be adjusted frequently as long as the maximum temperature value capable of finishing heat dissipation under the gear is not exceeded, so that the CPLD does not need to be adjusted frequently for PWM output, and the consumption of the CPLD is reduced under the condition that the rotating speed can be adjusted.
A specific fan control method provided in the embodiments of the present application is described below, and a specific fan control method described below and any of the embodiments described above may be referred to with each other.
Referring to fig. 2, a specific fan control method provided in the embodiment of the present application specifically includes:
and S201, monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal or not by using the CPLD.
S202, when the BMC is not abnormal, determining the current temperature value of the equipment needing temperature adjustment by using the BMC interval preset time, and generating PWM (pulse width modulation) used for adjusting the corresponding temperature value of the rotating speed of the fan according to the temperature value.
In the scheme, in order to conveniently use the CPLD to complete the control of the fan when the BMC is abnormal and monitor the abnormality of the BMC by the CPLD, the BMC is connected with the CPLD and the CPLD is connected with a control circuit of the fan.
And when the BMC is not abnormal, generating corresponding PWM by using the BMC according to the temperature value of the equipment to be regulated, and outputting the PWM to the CPLD for forwarding.
In the scheme, the CPLD is connected with the BMC, and the PWM output by the BMC is first sent to the CPLD, so in S201, a specific monitoring method may be to monitor whether the BMC or the PWM output by the BMC is abnormal by using the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
That is to say, on the basis of monitoring whether the BMC is abnormal, whether the PWM is abnormal may also be monitored, so that whether the BMC is abnormal may be determined more accurately.
S203, introducing the PWM with the corresponding temperature value into the CPLD, and outputting the PWM with the corresponding temperature value to a control circuit of the fan by using the CPLD so as to adjust the rotating speed of the fan.
S204, when the BMC is abnormal, the CPLD is utilized to maintain the current rotating speed of the fan;
s205, when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted so that the high-temperature alarm signal disappears.
Therefore, in the scheme, the CPLD is used for forwarding the PWM output by the BMC to the control circuit of the fan, so that the normal regulation and control of the fan by the BMC are guaranteed, the CPLD can be always connected with the fan control circuit, and even if the BMC is abnormal, the circuit does not need to be switched, and the fan can be regulated and controlled by directly using the CPLD.
A specific fan control method provided in the embodiments of the present application is described below, and a specific fan control method described below and any of the embodiments described above may be referred to with each other. The following embodiment further defines and explains S103 in the above embodiment, and other steps may refer to any of the above embodiments, which is not described again in this embodiment.
Referring to fig. 3, S103 specifically includes:
and S1, when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting PWM corresponding to the highest fan speed gear to the control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted to be the highest gear.
It should be noted that when the temperature-adjusting device sends a high-temperature alarm signal, it means that the temperature of the temperature-adjusting device exceeds a normal value, and if the temperature of the temperature-adjusting device cannot be timely cooled, a fault caused by high temperature may occur.
Specifically, when a high-temperature alarm signal sent by the equipment needing temperature adjustment is monitored by the CPLD, the CPLD is utilized to output PWM corresponding to the highest fan rotating speed gear to a control circuit of the fan, so that the fan runs at the highest rotating speed first, and the temperature of the equipment needing temperature adjustment is reduced in time.
And S2, judging whether the current high-temperature alarm signal disappears at preset time intervals.
It should be noted that, in order to avoid the noise and energy consumption problems caused by the continuous operation of the fan at the highest rotation speed, in the present scheme, it is further necessary to determine whether the high temperature warning signal disappears after a preset time interval, and if the high temperature warning signal disappears, it is proved that the current rotation speed is sufficient to lower the temperature of the equipment to be temperature-regulated, but there is another possibility that the temperature of the equipment to be temperature-regulated does not need to be at such a high rotation speed, and the high temperature warning signal disappears even at a low rotation speed or at low rotation speeds, so that in such a case, the adjustment is required to be performed by going to S3.
And S3, if yes, outputting PWM corresponding to the lower gear of the current fan speed gear to a control circuit of the fan by using the CPLD according to the preset corresponding relation between the fan speed gear and the PWM, and adjusting the speed gear of the fan.
It should be noted that, if the high-temperature early warning signal disappears after the interval preset time, it needs to be further determined whether the first gear needs to be reduced, so that the rotating speed can meet the heat dissipation requirement, and unnecessary noise and energy consumption caused by the overhigh rotating speed can be avoided.
Specifically, the CPLD is first used to output PWM with the current rotation speed being lower by one gear, so that the fan is operated by one gear lower.
It should be noted that the highest gear, that is, the highest rotational speed of the fan is set according to the maximum heat dissipation requirement of all the devices to be temperature-regulated in the system, and when the rotational speed of the fan is regulated to the highest gear, that is, the highest rotational speed in step S2, heat dissipation can be completed after a preset time, so that the high-temperature warning signal can disappear after the preset time interval. It should be noted that, in each system, the maximum rotation speed of the device to be temperature-regulated and the maximum rotation speed of the fan are different, so the preset time can be set according to the actual situation, and the scheme is not particularly limited.
And S4, monitoring whether the equipment needing temperature adjustment sends out a high-temperature alarm signal or not by the CPLD at preset time intervals. If not, the process returns to S3.
In order to ensure that heat dissipation can still be completed after the first gear is shifted down, it is further necessary to continuously determine whether the CPLD monitors the high temperature warning signal, and if not, the downshift may be continuously returned to S3.
S5, if yes, the CPLD is utilized to output PWM corresponding to the current fan speed gear which is higher than the current fan speed gear by one gear according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted; returning to S4.
Specifically, if the first gear is reduced, the CPLD monitors the high-temperature warning signal again, which indicates that the rotation speed of the current gear cannot meet the heat dissipation requirement, and needs to return to the previous gear, that is, outputs PWM corresponding to the current fan rotation speed gear that is higher than the first gear to the control circuit.
It should be noted that, after the rotation speed of the previous gear is adjusted back, the speed adjustment can be stopped to maintain the current rotation speed, and when the CPLD generates the high-temperature warning signal again, the adjustment of step S1 is performed. Preferably, in order to ensure that unnecessary noise and energy consumption are avoided, the decision may be returned to S4.
A fan control system provided in an embodiment of the present application is described below, and a fan control system described below and any one of the above embodiments may be referred to with each other.
Referring to fig. 4, an embodiment of the present application provides a fan control system, which specifically includes:
and the abnormity judgment module 401 is used for monitoring whether the BMC which is connected with the CPLD and is used for controlling and adjusting the rotating speed of the fan is abnormal or not by utilizing the CPLD.
And the first control module 402 of the CPLD is used for maintaining the current rotating speed of the fan by utilizing the CPLD when the BMC is abnormal.
And the CPLD second control module 403 is configured to, when the CPLD is used to monitor that the temperature-needing adjusting device sends a high-temperature warning signal, output corresponding PWM to the control circuit of the fan by using the CPLD according to a preset corresponding relationship between the fan speed gear and the PWM, and adjust the fan speed gear so that the high-temperature warning signal disappears.
In a specific embodiment, the abnormality determining module 401 is specifically configured to:
monitoring whether the heartbeat signal between the CPLD and the BMC is abnormal or not by utilizing the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
In a specific embodiment, the system further comprises:
the PWM generating module is used for determining the current temperature value of the equipment needing temperature adjustment by using the BMC at preset time intervals when the BMC is not abnormal, and generating PWM (pulse width modulation) for adjusting the corresponding temperature value of the rotating speed of the fan according to the temperature value;
and the CPLD third control module is used for introducing the PWM with the corresponding temperature value into the CPLD and outputting the PWM with the corresponding temperature value to the control circuit of the fan by utilizing the CPLD so as to adjust the rotating speed of the fan.
In a specific embodiment, the abnormality determining module 401 is specifically configured to monitor whether the BMC or the PWM output by the BMC is abnormal by using the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
In a specific embodiment, the second control module 403 of the CPLD includes:
the first PWM output unit is used for outputting PWM corresponding to the highest fan speed gear to a control circuit of the fan by utilizing the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, and adjusting the fan speed gear to be the highest gear;
the judging unit is used for judging whether the current high-temperature warning signal disappears at intervals of preset time; if yes, stopping the adjustment.
The second PWM output unit is used for outputting PWM corresponding to the lower gear of the current fan speed gear to a control circuit of the fan by utilizing the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the high-temperature warning signal does not disappear, and adjusting the speed gear of the fan; and continuing to call the judging unit.
The fan control system of this embodiment is configured to implement the fan control method, and therefore a specific implementation of the fan control system may be found in the embodiment parts of the fan control method in the foregoing, for example, the abnormality determining module 401, the CPLD first control module 402, and the CPLD second control module 403, which are respectively configured to implement steps S101, S102, S103, and S104 in the fan control method, so that the specific implementation thereof may refer to descriptions of corresponding partial embodiments, and is not described herein again.
A fan control device provided in an embodiment of the present application is described below, and a fan control device described below and any one of the above embodiments may be referred to with each other.
Referring to fig. 5, an embodiment of the present application provides a fan control device, which specifically includes:
and the BMC is used for controlling and adjusting the rotating speed of the fan.
The CPLD is connected with the BMC and is used for monitoring whether the BMC is abnormal or not; when the BMC is abnormal, keeping the current rotating speed of the fan; when monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM; and adjusting the rotating speed gear of the fan to make the high-temperature alarm signal disappear.
And the control circuit of the fan is connected with the CPLD and is used for receiving the PWM output by the CPLD and adjusting the wind speed of the fan by utilizing the PWM.
The fan is connected with the control circuit of the fan.
As shown in fig. 5, the CPLD specifically includes a BMC heartbeat monitoring module, a PWM control module, and a temperature monitoring module.
And the BMC transmits the heartbeat signal to the BMC heartbeat monitoring module so that the CPLD monitors the BMC. And the BMC transmits the corresponding PWM to a PWM control module of the CPLD so that the CPLD outputs the PWM to a control circuit of the fan to adjust the rotating speed of the fan.
In addition, the equipment needing temperature adjustment, such as a CPU, a DDR, an IC and the like, is connected with the temperature monitoring module of the CPLD, and sends the high-temperature alarm signal of the equipment to the temperature monitoring module, so that when the CPLD monitors the high-temperature alarm signal, the PWM control module is triggered to output corresponding PWM to the control circuit of the fan according to the gear, and the rotating speed is regulated and controlled. The method for controlling the fan has been specifically described in the above embodiments, and is not described in detail in this embodiment.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A fan control method, comprising:
monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal or not by using the CPLD;
when the BMC is abnormal, the CPLD is utilized to maintain the current rotating speed of the fan;
when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the speed gear of the fan is adjusted so that the high-temperature alarm signal disappears;
when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the adjustment of the fan speed gear comprises the following steps:
s1, when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting PWM corresponding to the highest fan speed gear to the control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted to be the highest gear;
s2, judging whether the current high-temperature alarm signal disappears at preset time intervals;
s3, if yes, the CPLD is utilized to output PWM corresponding to the lower gear of the current fan speed gear to the control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the speed gear of the fan is adjusted;
s4, the CPLD monitors whether the equipment needing temperature adjustment sends out a high-temperature alarm signal at preset time intervals; if not, returning to S3;
s5, if yes, the CPLD is utilized to output PWM corresponding to the current fan speed gear which is higher than the current fan speed gear by one gear according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted; returning to S4.
2. The method of claim 1, wherein said monitoring with a CPLD whether a BMC connected to said CPLD and used to control the adjustment of fan speed is abnormal comprises:
monitoring whether the heartbeat signal between the CPLD and the BMC is abnormal or not by utilizing the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
3. The method of claim 1, further comprising:
when the BMC is not abnormal, determining the current temperature value of the equipment needing temperature adjustment at intervals of preset time by using the BMC, and generating PWM (pulse width modulation) for adjusting the corresponding temperature value of the rotating speed of the fan according to the temperature value;
and introducing the PWM with the corresponding temperature value into the CPLD, and outputting the PWM with the corresponding temperature value to a control circuit of the fan by using the CPLD so as to adjust the rotating speed of the fan.
4. The method of claim 3, wherein said monitoring with a CPLD whether a BMC coupled to the CPLD and used to control adjustments to fan speed is abnormal comprises:
monitoring whether the PWM output by the BMC or the BMC is abnormal or not by utilizing the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
5. A fan control system, comprising:
the abnormality judgment module is used for monitoring whether the BMC which is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan is abnormal or not by utilizing the CPLD;
the CPLD first control module is used for maintaining the current rotating speed of the fan by utilizing the CPLD when the BMC is abnormal;
the CPLD second control module is used for outputting corresponding PWM to a control circuit of the fan by using the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, and adjusting the speed gear of the fan so as to make the high-temperature alarm signal disappear;
the second control module of the CPLD comprises:
the first PWM output unit is used for outputting PWM corresponding to the highest fan speed gear to a control circuit of the fan by utilizing the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, and adjusting the fan speed gear to be the highest gear;
the judging unit is used for judging whether the current high-temperature warning signal disappears at intervals of preset time; if yes, stopping adjustment;
the second PWM output unit is used for outputting PWM corresponding to the lower gear of the current fan speed gear to a control circuit of the fan by utilizing the CPLD according to the preset corresponding relation between the fan speed gear and the PWM when the high-temperature warning signal does not disappear, and adjusting the speed gear of the fan; and continuing to call the judging unit.
6. The system of claim 5, wherein the anomaly determination module is specifically configured to:
monitoring whether the heartbeat signal between the CPLD and the BMC is abnormal or not by utilizing the CPLD; and the BMC is connected with the CPLD and used for controlling and adjusting the rotating speed of the fan.
7. The system of claim 5, further comprising:
the PWM generating module is used for determining the current temperature value of the equipment needing temperature adjustment by using the BMC at preset time intervals when the BMC is not abnormal, and generating PWM (pulse width modulation) for adjusting the corresponding temperature value of the rotating speed of the fan according to the temperature value;
and the CPLD third control module is used for introducing the PWM with the corresponding temperature value into the CPLD and outputting the PWM with the corresponding temperature value to the control circuit of the fan by utilizing the CPLD so as to adjust the rotating speed of the fan.
8. A fan control apparatus, comprising:
the BMC is used for controlling and adjusting the rotating speed of the fan;
the CPLD is connected with the BMC and is used for monitoring whether the BMC is abnormal or not; when the BMC is abnormal, keeping the current rotating speed of the fan; when monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM; adjusting the rotating speed gear of the fan to make the high-temperature alarm signal disappear;
the control circuit of the fan is connected with the CPLD and is used for receiving the PWM output by the CPLD and adjusting the wind speed of the fan by utilizing the PWM;
the fan is connected with the control circuit of the fan;
when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting corresponding PWM to a control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the adjustment of the fan speed gear comprises the following steps:
s1, when the CPLD is used for monitoring that the equipment needing temperature adjustment sends out a high-temperature alarm signal, the CPLD is used for outputting PWM corresponding to the highest fan speed gear to the control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted to be the highest gear;
s2, judging whether the current high-temperature alarm signal disappears at preset time intervals;
s3, if yes, the CPLD is utilized to output PWM corresponding to the lower gear of the current fan speed gear to the control circuit of the fan according to the preset corresponding relation between the fan speed gear and the PWM, and the speed gear of the fan is adjusted;
s4, the CPLD monitors whether the equipment needing temperature adjustment sends out a high-temperature alarm signal at preset time intervals; if not, returning to S3;
s5, if yes, the CPLD is utilized to output PWM corresponding to the current fan speed gear which is higher than the current fan speed gear by one gear according to the preset corresponding relation between the fan speed gear and the PWM, and the fan speed gear is adjusted; returning to S4.
CN201910290072.7A 2019-04-11 2019-04-11 Fan control method and related device Active CN109826822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910290072.7A CN109826822B (en) 2019-04-11 2019-04-11 Fan control method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910290072.7A CN109826822B (en) 2019-04-11 2019-04-11 Fan control method and related device

Publications (2)

Publication Number Publication Date
CN109826822A CN109826822A (en) 2019-05-31
CN109826822B true CN109826822B (en) 2021-06-29

Family

ID=66874417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910290072.7A Active CN109826822B (en) 2019-04-11 2019-04-11 Fan control method and related device

Country Status (1)

Country Link
CN (1) CN109826822B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399024A (en) * 2019-07-19 2019-11-01 苏州浪潮智能科技有限公司 A kind of control method and relevant apparatus of server fan rotating speed
CN111894887A (en) * 2020-09-01 2020-11-06 河南艾牧智能设备有限公司 Safe operation method of EC fan for livestock and poultry house
CN112948185A (en) * 2021-02-26 2021-06-11 浪潮电子信息产业股份有限公司 Server heat dissipation method and device and related components

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838655A (en) * 2012-11-20 2014-06-04 英业达科技有限公司 Computer system and method for controlling computer system
CN104895817A (en) * 2015-04-27 2015-09-09 浪潮集团有限公司 SNMP-based method for controlling server fan
CN106292960A (en) * 2016-08-12 2017-01-04 深圳市云海麒麟计算机系统有限公司 A kind of server radiating intelligent management
CN107145428A (en) * 2017-05-26 2017-09-08 郑州云海信息技术有限公司 A kind of server and server monitoring method
CN107503968A (en) * 2017-09-22 2017-12-22 安徽皖通邮电股份有限公司 A kind of temperature self-adaptation fan control device
CN108170575A (en) * 2017-12-25 2018-06-15 曙光信息产业(北京)有限公司 A kind of control method and device of server radiating
CN108518351A (en) * 2018-06-06 2018-09-11 上海海事大学 A kind of isolated form intelligent temperature control fan assembly and its control method
CN109162953A (en) * 2018-11-01 2019-01-08 郑州云海信息技术有限公司 A kind of fan control device and server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206647293U (en) * 2017-03-03 2017-11-17 郑州云海信息技术有限公司 A kind of server fan rotating speed control system based on CPLD
CN107023504A (en) * 2017-06-02 2017-08-08 郑州云海信息技术有限公司 A kind of fan control system and control method based on BMC
CN107588030B (en) * 2017-09-14 2019-09-24 郑州云海信息技术有限公司 A kind of radiator fan speed regulating method, apparatus and system
CN107797880A (en) * 2017-11-29 2018-03-13 济南浪潮高新科技投资发展有限公司 A kind of method for improving server master board BMC reliabilities
CN109375750A (en) * 2018-11-21 2019-02-22 郑州云海信息技术有限公司 Control method, device, medium and the equipment of storage server fan cooling group
CN109356875B (en) * 2018-12-18 2020-11-10 广东浪潮大数据研究有限公司 Server fan control method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838655A (en) * 2012-11-20 2014-06-04 英业达科技有限公司 Computer system and method for controlling computer system
CN104895817A (en) * 2015-04-27 2015-09-09 浪潮集团有限公司 SNMP-based method for controlling server fan
CN106292960A (en) * 2016-08-12 2017-01-04 深圳市云海麒麟计算机系统有限公司 A kind of server radiating intelligent management
CN107145428A (en) * 2017-05-26 2017-09-08 郑州云海信息技术有限公司 A kind of server and server monitoring method
CN107503968A (en) * 2017-09-22 2017-12-22 安徽皖通邮电股份有限公司 A kind of temperature self-adaptation fan control device
CN108170575A (en) * 2017-12-25 2018-06-15 曙光信息产业(北京)有限公司 A kind of control method and device of server radiating
CN108518351A (en) * 2018-06-06 2018-09-11 上海海事大学 A kind of isolated form intelligent temperature control fan assembly and its control method
CN109162953A (en) * 2018-11-01 2019-01-08 郑州云海信息技术有限公司 A kind of fan control device and server

Also Published As

Publication number Publication date
CN109826822A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN109826822B (en) Fan control method and related device
CN109882439B (en) Fan control system, method and server
US20140069626A1 (en) Temperature control system and temperature control method thereof
CN106896884A (en) ATCA framework equipment cooling management methods and device
EP2986097B1 (en) Liquid cooling system and control method therefor
US20140344389A1 (en) Server having multiple nodes and method for dynamically setting master node of the server
CN110990199A (en) Server fan redundancy control method and device
CN113374724B (en) Fan control system and method based on multiple temperature nodes
CN108131318A (en) The control method for fan and device of a kind of electronic equipment
CN106383569A (en) Universal server power supply protection mechanism
CN103699471A (en) Method and device for controlling temperature of computer hardware
JP2015050240A (en) Cooling fan system and communication apparatus
CN111734667A (en) Method and device for regulating and controlling rotating speed of server fan
JP2019101870A (en) Power control system and power control program
US11733762B2 (en) Method to allow for higher usable power capacity in a redundant power configuration
CN103379802A (en) Fan control system
CN111324503B (en) Machine frame management device, method and computer readable storage medium
US10284134B2 (en) Method for controlling a fan module of a server rack and controller unit for implementing the same
US11387643B2 (en) Method, device and system for protecting parallel-connected topology units
JP6800935B2 (en) How to control a fan in an electronic system
CN116823587A (en) Graphics processor control method and device, electronic equipment and storage medium
CN115047954B (en) Equipment heat dissipation control method, system, device, equipment and storage medium
CN108173786B (en) Management monitoring system and method
CN113586503B (en) Serial connection control method of multiple fan speed regulation modules and system for realizing method
JP2016029692A (en) Information processing system and control method of information processing system

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