CN115405550A - Fan control method, device, equipment and medium - Google Patents

Fan control method, device, equipment and medium Download PDF

Info

Publication number
CN115405550A
CN115405550A CN202211096460.XA CN202211096460A CN115405550A CN 115405550 A CN115405550 A CN 115405550A CN 202211096460 A CN202211096460 A CN 202211096460A CN 115405550 A CN115405550 A CN 115405550A
Authority
CN
China
Prior art keywords
fan
temperature
pwm control
control value
programmable logic
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.)
Granted
Application number
CN202211096460.XA
Other languages
Chinese (zh)
Other versions
CN115405550B (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 CN202211096460.XA priority Critical patent/CN115405550B/en
Publication of CN115405550A publication Critical patent/CN115405550A/en
Application granted granted Critical
Publication of CN115405550B publication Critical patent/CN115405550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/004Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by varying driving speed
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/006Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by influencing fluid temperatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The invention discloses a fan control method, a fan control device, fan control equipment and a medium, and belongs to the technical field of heat dissipation, wherein the method comprises the following steps: receiving an upgrading instruction for the baseboard management controller; calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device; the baseboard management controller stores the flag bit into the read-only memory; and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan. When the baseboard management controller is upgraded, the fan can be controlled more intelligently through effective cooperation of the BMC, the EEPROM and the CPLD, so that the rotating speed of the fan can be stably and excessively increased, and the integral noise and power consumption of the server are reduced.

Description

Fan control method, device, equipment and medium
Technical Field
The present invention relates to the field of heat dissipation technologies, and in particular, to a method, an apparatus, a device, and a medium for controlling a fan.
Background
In the field of servers, fan cooling control has always been the greater direction in server monitoring. As the user's demands for server performance increase, the demands for heat dissipation at various times also become more stringent. In most cases, the heat dissipation strategy of the whole server is to simultaneously calculate the PWM maximum value through the CPU temperature, the memory temperature, the power supply temperature, the hard disk temperature, and the like, and then control the rotation speed of the fan through the PWM maximum value to dissipate heat of the server. In normal operation of the machine, a Baseboard Management Controller (BMC) controls the fan according to a configuration set by a heat dissipation engineer, so as to meet a requirement of a server for normal running service. Meanwhile, the general machine room also has the requirements of noise decibel and power consumption saving. There are many aspects to be considered in the control of server fans.
The prior art comprises a technology of how to control a fan when BMC fails and how to control the fan when BMC is normal, and when the BMC suddenly fails to control the fan, a fan controller finds that no BMC signal exists and automatically rotates at full speed, so that normal operation of the fan and continuous heat dissipation of a server machine are ensured, and the problems of overhigh temperature of the server and the like are prevented. However, when the BMC fails, the fan is not intelligently controlled to rotate at its own full speed, which may cause the noise of the fan of the machine to be too high and the power consumption to be too high.
And in the BMC upgrading process, no intelligent and complex control logic exists for the fan. The existing processing mode is that BMC upgrading is defaulted to be BMC failure processing, but BMC failure and BMC upgrading are two different aspects, and failure is not controllable; and when the BMC is upgraded can be controlled.
Therefore, since a Complex Programmable Logic Device (CPLD) cannot implement a Complex heat dissipation strategy for the fan, the fan is generally controlled by the BMC, but as the mirror image of the baseboard management controller is larger and larger, the upgrade time is longer, and in the upgrade process, if the fan cannot be controlled, many potential safety hazards are brought to the server.
Disclosure of Invention
In order to overcome the technical defects, an object of the present invention is to provide a fan control method, an apparatus, a device and a medium, where the method is applied to a fan control system, the fan control system includes a baseboard management controller, a complex programmable logic device and a read only memory, a first output terminal of the baseboard management controller is connected to an input terminal of the read only memory, a second output terminal of the baseboard management controller is connected to a first input terminal of the complex programmable logic device, and a third output terminal of the baseboard management controller is connected to a second input terminal of the complex programmable logic device, and the method includes: receiving an upgrading instruction for the substrate management controller; calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device; the baseboard management controller stores the flag bit into the read-only memory; and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan. When the baseboard management controller is upgraded, the fan can be controlled more intelligently through effective cooperation of the BMC, the EEPROM and the CPLD, so that the rotating speed of the fan can be stably increased, and the integral noise and power consumption of the server are reduced.
The embodiment of the invention provides the following specific technical scheme:
in a first aspect, a fan control method is provided, where the method is applied to a fan control system, the fan control system includes a baseboard management controller, a complex programmable logic device, and a read only memory, a first output terminal of the baseboard management controller is connected to an input terminal of the read only memory, a second output terminal of the baseboard management controller is connected to a first input terminal of the complex programmable logic device, and a third output terminal of the baseboard management controller is connected to a second input terminal of the complex programmable logic device, and the method includes:
receiving an upgrading instruction for the substrate management controller;
calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device;
the baseboard management controller stores the flag bit into the read-only memory;
and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan.
Further, before the calculating the PWM control value matched to the fan and sending the PWM control value matched to the fan to the complex programmable logic device, the method includes:
and informing the complex programmable logic device to stop monitoring the active data signal through an I2C command.
Further, the calculating a PWM control value matched to the fan and sending the PWM control value matched to the fan to the complex programmable logic device includes:
calculating a PWM control value for each temperature device of the server;
when a first PWM control value of a first temperature device is larger than a second PWM control value of a second temperature device, setting the first PWM control value as a PWM control value matched with the fan;
and sending the PWM control value matched with the fan to the complex programmable logic device.
Further, the calculating of the PWM control value for each temperature device of the server includes:
acquiring the current time temperature T (k) of the temperature device, the time temperature T (k-1) of the temperature device k-1, the time temperature T (k-2) of the temperature device k-2 and the standard temperature Tref of the temperature device;
acquiring a first preset threshold Kp, a second preset threshold Ki, a third preset threshold Kd, a PWM control value FS (k) of the temperature device at the time k, and a PWM control value FS _ act (k-1) of the temperature device at the time k-1;
the PWM control value at the present time of the temperature device is calculated by a first formula FS (k) = FS _ act (k-1) + Kp (T (k) -T (k-1)) + Ki (T (k) -Tref) + Kd (T (k) -2T (k-1) + T (k-2)).
Further, the method further comprises:
acquiring m historical time temperature values T of the temperature device, and the sum delta T of historical time temperature differences;
by a second formula
Figure BDA0003835096380000031
Calculating the sum of the temperature differences at the historical moment;
judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moment;
the judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moments comprises the following steps:
when the value of the sum of the temperature differences at the historical moment is larger than a second threshold value, the temperature of the temperature device at the current moment is in an ascending trend;
when the value of the sum of the temperature differences at the historical moments is smaller than a third threshold value, the temperature of the temperature device at the current moment is in a descending trend;
when the value of the sum of the temperature differences at the historical moments is between the third threshold and the second threshold, the temperature of the temperature device at the current moment is in a steady trend.
Further, after the determining the temperature trend of the temperature device at the current time by the value of the sum of the temperature differences at the historical times, the method includes:
when the temperature of the temperature device at the current moment is in a rising, stable and descending trend, a first temperature threshold, a second temperature threshold and a third temperature threshold are correspondingly added to the temperature value of the temperature device at the current moment, and a PWM control value of the temperature device is calculated through a first formula.
Further, the complex programmable logic device sets the rotation speed of the fan control board to a PWM control value matched with the fan, and after controlling the fan, the complex programmable logic device includes:
and after the substrate management controller finishes upgrading, the substrate management controller informs the complex programmable logic device to start monitoring active data signals through an I2C command, and the substrate management controller continuously controls the fan by setting the rotating speed of the fan control panel as a PWM control value matched with the fan.
In a second aspect, there is provided a fan control apparatus, the apparatus comprising:
the receiving module is used for receiving an upgrading instruction of the substrate management controller;
the calculation module is used for calculating a PWM control value matched with the fan and sending the PWM control value matched with the fan to the complex programmable logic device;
the storage module is used for storing the flag bit into the read-only memory;
and the control module is used for setting the rotating speed of the fan control board to be a PWM control value matched with the fan by the complex programmable logic device when the flag bit is a first threshold value, and controlling the fan.
In a third aspect, a computer device is provided, the device comprising:
memory, a processor and a computer program stored on the memory, the processor executing the computer program to implement the steps of the fan control method according to any of the first aspects.
In a fourth aspect, a computer storage medium is provided, the medium comprising:
on which a computer program is stored which, when executed by a memory, carries out the steps of the fan control method according to any one of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the invention is applied to a fan control system, the fan control system comprises a substrate management controller, a complex programmable logic device and a read-only memory, a first output end of the substrate management controller is connected with an input end of the read-only memory, a second output end of the substrate management controller is connected with a first input end of the complex programmable logic device, a third output end of the substrate management controller is connected with a second input end of the complex programmable logic device, and the method comprises the following steps: receiving an upgrading instruction for the substrate management controller; calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device; the baseboard management controller stores the flag bit to the read-only memory; and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan. When the baseboard management controller is upgraded, the fan can be controlled more intelligently through effective cooperation of the BMC, the EEPROM and the CPLD. Meanwhile, the rotating speed of the fan can be stably increased in the stages before, during and after BMC upgrading, and the overall noise and power consumption of the server are reduced.
The technical scheme provided by the embodiment of the invention is beneficial to forming a technical barrier in the field of high-end servers by a company and ensuring the advantages of the company in the high-end servers.
The technical scheme provided by the embodiment of the invention can ensure that the rotating speed of the fan can stably work at a proper PWM control value when the BMC is upgraded by the cooperation of the BMC, the erasable Programmable Read-only memory (EEPROM) and the CPLD, and solves the problems of over-high noise and over-high power consumption of the fan.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a block diagram of a fan control system according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a fan control method according to an embodiment of the present invention;
FIG. 3 is a second flowchart illustrating a fan control method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a fan control method according to a second embodiment of the present invention;
fig. 5 is a structural diagram of a fan control device according to a third embodiment of the present invention;
fig. 6 provides an exemplary system that may be used to implement various embodiments described in this application, according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying 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.
It is to be understood that, unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Example one
An embodiment of the present invention provides a fan control method, as shown in fig. 1, where the method is applied to a fan control system, the fan control system includes a substrate management controller, a complex programmable logic device, and a read only memory, a first output terminal of the substrate management controller is connected to an input terminal of the read only memory, a second output terminal of the substrate management controller is connected to a first input terminal of the complex programmable logic device, and a third output terminal of the substrate management controller is connected to a second input terminal of the complex programmable logic device, and the method includes:
receiving an upgrading instruction for the baseboard management controller;
calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device;
the baseboard management controller stores the flag bit into the read-only memory;
and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan.
Specifically, as shown in fig. 1, the BMC is connected to the EEPROM and the CPLD through I2C links, and the BMC is connected to the CPLD through a general purpose input/output IO port (GPIO); the device can be connected to a complex programmable logic device CPLD, but is not limited to the CPLD, and can also be connected with other programmable logic devices such as an FPGA and the like. As shown in fig. 2, before a BMC of a substrate management controller is upgraded, m temperature values T at historical times of the temperature device and a sum Δ T of temperature differences at historical times are obtained, a sum of temperature differences at historical times is calculated by a second formula, a PWM control value of the temperature device is calculated by a first formula after a temperature trend of the temperature device at the current time is determined by a value of the sum of temperature differences at historical times, and a PWM control value is calculated for each temperature device of a server; and when a first PWM control value of the first temperature device is greater than a second PWM control value of the second temperature device, setting the first PWM control value as a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device. The BMC predicts and outputs a PWM control value matched with the fan through information such as a historical temperature curve, a heat dissipation strategy, a time preset temperature and the like; when the baseboard management controller is upgraded, the fan can be controlled according to the predicted PWM control value matched with the fan, so that the fan can normally work, the rotating speed of the fan can be stably excessive, and the integral noise and power consumption of the server are reduced; and after the substrate management controller is upgraded, the BMC recovers the control right and continues to control the fan by setting the rotating speed of the fan control panel to be the PWM control value matched with the fan.
Wherein the first threshold is "1".
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when the baseboard management controller is upgraded, the fan can be controlled more intelligently through effective cooperation of the BMC, the EEPROM and the CPLD. And meanwhile, the rotating speed of the fan can be stably excessive in the stages before, during and after BMC upgrading, and the integral noise and power consumption of the server are reduced.
The technical scheme provided by the embodiment of the invention is beneficial to forming a technical barrier in the field of high-end servers of a company and ensuring the advantages of the company in the high-end servers.
Example two
An embodiment of the present invention provides a fan control method, as shown in fig. 3, the method includes:
and S01, receiving an upgrading instruction for the substrate management controller.
And S02, informing the complex programmable logic device to stop monitoring active data signals through an I2C command.
Specifically, under normal conditions, the BMC controls the rotation speed of the fan through a heat dissipation strategy, that is, through a highest PWM control value of the temperature device, and sends an active ("dog feeding") signal to the CPLD through a General-Purpose input/output (GPIO) port at a certain frequency. Before the BMC starts to be upgraded, sending data for stopping monitoring of 'dog feeding' to an address of stored data needing to be controlled by the CPLD through an I2C command (shown in a command format table 1), and informing the complex programmable logic device to stop monitoring of an active data signal, namely a 'dog feeding' signal through the I2C command. And simultaneously, transmitting the predicted PWM control value matched with the fan, which is calculated in the step S03, to the CPLD through an I2C command according to different address positions of stored data, and storing the PWM control value matched with the fan in a memory of a PWM storage address.
Wherein, the active signal is continuously pulled down or pulled up to the general input/output IO port.
Detecting 'dog feeding' addresses Command Data of
PWM memory address Command Data of
TABLE 1
And S03, calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device.
Step S03 further includes:
step S031, calculate PWM control value to every temperature device of the server;
when a first PWM control value of a first temperature device is larger than a second PWM control value of a second temperature device, setting the first PWM control value as a PWM control value matched with the fan;
and sending the PWM control value matched with the fan to the complex programmable logic device.
Specifically, a PWM control value is calculated for each temperature device of the server, and the highest PWM control value in the temperature devices is sent to the complex programmable logic device.
Step S032, acquiring m temperature values T of the temperature device at historical time, and acquiring the sum delta T of temperature differences at historical time;
by a second formula
Figure BDA0003835096380000091
Calculating the sum of temperature differences at historical moments;
judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moment;
the judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moments comprises the following steps:
when the value of the sum of the temperature differences at the historical moment is larger than a second threshold value, the temperature of the temperature device at the current moment is in an ascending trend;
when the value of the sum of the temperature differences at the historical moments is smaller than a third threshold value, the temperature of the temperature device at the current moment is in a descending trend;
when the value of the sum of the temperature differences at the historical moment is between the third threshold and the second threshold, the temperature of the temperature device at the current moment is in a stable trend.
Specifically, a PWM control value is calculated for each temperature device, continuous 5 temperature values at historical time on a temperature curve at historical time of the temperature device are read, the former temperature value is subtracted from the latter temperature value for 4 times, and then temperature differences are summed, namely the temperature differences are summed through a second formula
Figure BDA0003835096380000101
Calculating the sum of the temperature differences at the historical moments, and judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moments;
when the value of the sum of the temperature differences at the historical moment is larger than 3, the temperature of the temperature device at the current moment is in an ascending trend;
when the value of the sum of the temperature differences at the historical moment is less than-3, the temperature of the temperature device at the current moment is in a descending trend;
when the value of the sum of the temperature differences at the historical moment is between-3 and 3, the temperature of the temperature device at the current moment is in a stable trend.
Wherein m is equal to 5; the second threshold is 3; the third threshold is-3.
Step S033, when the temperature of the temperature device at the current time is in a rising, steady, or falling trend, correspondingly increasing a first temperature threshold, a second temperature threshold, and a third temperature threshold to the temperature value of the temperature device at the current time, and calculating a PWM control value of the temperature device by a first formula.
Specifically, according to the current BMC upgrading time (generally about 5 minutes), if the current time temperature value of the temperature device is in an ascending stage, adding a 5 ℃ allowance to the current time temperature value T (k) of the temperature device on the current finally obtained temperature value, and substituting into a first formula to calculate the PWM control value of the temperature device; if the current time temperature value of the temperature device is in a stable state, adding a temperature margin of 2 ℃ to the current time temperature value T (k) of the temperature device on the current last acquired temperature value; and if the temperature is in a descending state, calculating by using the current time temperature value T (k) of the temperature device so as to ensure that the temperature controlled by the CPLD can meet the requirement of a server machine in the subsequent BMC upgrading process.
Wherein the first temperature threshold, the second temperature threshold and the third temperature threshold are respectively 5 ℃, 2 ℃ and 0 ℃.
Step S034, acquiring the current time temperature T (k) of the temperature device, the time temperature T (k-1) of the temperature device k-1, the time temperature T (k-2) of the temperature device k-2 and the standard temperature Tref of the temperature device;
acquiring a first preset threshold Kp, a second preset threshold Ki, a third preset threshold Kd, a PWM control value FS (k) of the temperature device at the moment k and a PWM control value FS _ act (k-1) of the temperature device at the moment k-1;
the PWM control value at the present time of the temperature device is calculated by a first formula FS (k) = FS _ act (k-1) + Kp (T (k) -T (k-1)) + Ki (T (k) -Tref) + Kd (T (k) -2T (k-1) + T (k-2)).
Specifically, the first preset threshold Kp, the second preset threshold Ki and the third preset threshold Kd are constant values; the standard temperature Tref of the temperature device is the turn-on temperature of the temperature device, for example 35-36 ℃.
Wherein Kp (T (k) -T (k-1)) is a P factor item; ki (T (k) -Tref) is factor I; kd (T (k) -2T (k-1) + T (k-2)) is the D factor term. k-1 is the previous second of the current time k; k-2 is the first two seconds of the current time k.
Here, the temperature device includes: CPU, internal memory, power supply and hard disk.
And S04, storing the flag bit into the read-only memory by the substrate management controller.
Specifically, after the BMC sends PWM control value data matched with the fan to the CPLD, the BMC stores a flag bit stop _ wtd (stop watchdog) flag =1 in an EEPROM (read only memory). The flag may also be stored in the CPLD, but for decoupling from the CPLD, it is optionally stored in the EEPROM here. The flag is set to indicate whether the CPLD has stopped monitoring the "dog feed" signal when the BMC is upgraded.
Here, normally, when the BMC controls the fan, the CPLD monitors the "dog feeding" signal, and the flag bit is 0 at this time; when the BMC does not control the fan any more, namely the CPLD stops monitoring the 'dog feeding' signal, and when the CPLD controls the fan, the flag bit is the first threshold value which is 1.
And S05, when the flag bit is a first threshold value, setting the rotating speed of the fan control board to be a PWM control value matched with the fan by the complex programmable logic device, and controlling the fan.
Specifically, when the flag bit is 1, after the CPLD obtains a command of stopping monitoring the dog feeding and waits for several seconds, the CPLD accesses the PWM storage address to obtain a PWM control value matched with the fan when the BMC is upgraded, sets the rotation speed of the fan control board to the PWM control value matched with the fan, and controls the fan.
Here, PWM is a fan speed control method, that is, a pulse width modulation method in which the fan speed is adjusted by changing the duty ratio of a fixed value of the switching frequency of the fan power supply. The larger the duty cycle, the faster the fan speed. The PWM control value is a percentage of the number of rotations of the fan, for example, the PWM control value is 0.2, the maximum rotation speed according to the specification of the fan is 10000 revolutions, and the maximum rotation speed of the fan at this time is obtained by multiplying the maximum rotation speed of 10000 revolutions by the PWM control value of 0.2. The key to this control is to select the appropriate switching frequency, and if the frequency is too low, the fan speed will oscillate with the PWM period. Conversely, if the frequency is too high, a commutation rectifier circuit inside the fan will de-energize the fan speed up/down circuit causing the fan to stall.
And S06, after the substrate management controller finishes upgrading, informing the complex programmable logic device to start monitoring active data signals through an I2C command, and continuously controlling the fan by the substrate management controller by setting the rotating speed of the fan control panel as a PWM control value matched with the fan.
Specifically, after the baseboard management controller is upgraded, when the baseboard management controller is restarted, the flag bit in the EEPROM is read, and if the flag bit is 1, a command is sent to allow the CPLDs to continue to monitor the 'dog feeding' signals between the CPLDs. After the CPLD acquires the command, the control right of the fan control board is returned to the BMC, the CPLD is recovered to the state of only monitoring a 'dog feeding' signal, the base plate management controller continuously controls the fan by setting the rotating speed of the fan control board to be a PWM control value matched with the fan, and the flag bit is 0 at the moment.
An embodiment of the present invention provides a fan control method, and as shown in fig. 4, a specific flowchart of the fan control method is provided: the baseboard management controller BMC, the erasable programmable read-only memory EEPROM and the complex programmable logic device CPLD cooperate together to ensure that the rotating speed of the fan can be stabilized at a proper PWM control value to work when the BMC is upgraded; before the BMC (baseboard management controller) is upgraded, informing the complex programmable logic device to stop monitoring active (dog feeding) data signals through an I2C (inter-integrated circuit) command, predicting whether the current temperature of the temperature device needs to be added with surplus temperature or not by detecting a historical time temperature curve, calculating a PWM (pulse-width modulation) control value of the temperature device at the current time according to a heat dissipation formula, outputting the highest PWM control value in the temperature device to a complex programmable logic device CPLD (complex programmable logic device), setting a flag bit of the EEPROM (electrically erasable programmable logic device), and storing the flag bit to the EEPROM; when the BMC is upgraded, the fan can normally work according to the highest PWM control value after prejudgment calculation, and the problems of overlarge fan noise and overhigh power consumption are solved; after upgrading of the BMC, the BMC recovers the control right and continues to control the fan by setting the rotating speed of the fan control plate to be the highest PWM control value in the temperature device.
The fan control method provided by the embodiment of the invention can also make several improvements and optimizations without departing from the technical solution of the invention, and these improvements and optimizations should also be regarded as the protection scope of the invention.
Meanwhile, the technical scheme provided by the embodiment of the invention can be applied to a server and a computer system with complex storage function and the like.
The embodiment of the invention provides a fan control method, which comprises the following steps: receiving an upgrading instruction for the baseboard management controller; calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device; the baseboard management controller stores the flag bit into the read-only memory; and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan. When the baseboard management controller is upgraded, the fan can be controlled more intelligently through effective cooperation of the BMC, the EEPROM and the CPLD, so that the rotating speed of the fan can be stably increased, and the integral noise and power consumption of the server are reduced.
The technical scheme provided by the embodiment of the invention has the advantages that the BMC, the erasable programmable read-only memory EEPROM and the CPLD cooperate together to ensure that the rotating speed of the fan can be stabilized at a proper PWM control value to work when the BMC is upgraded, and the problems of overlarge fan noise and overhigh power consumption are solved.
EXAMPLE III
The invention provides a fan control device, which comprises a receiving module, a first processing module, a calculating module, a storage module, a control module and a second processing module, as shown in fig. 5.
In this embodiment, the receiving module is configured to receive an upgrade instruction for a baseboard management controller;
the calculation module is used for calculating a PWM control value matched with the fan and sending the PWM control value matched with the fan to the complex programmable logic device;
the storage module is used for storing the flag bit into the read-only memory;
and the control module is used for setting the rotating speed of the fan control board to be a PWM control value matched with the fan by the complex programmable logic device when the flag bit is a first threshold value, and controlling the fan.
Further, the first processing module is configured to notify the complex programmable logic device to stop monitoring the active data signal through an I2C command.
Further, the calculation module is also used for calculating a PWM control value for each temperature device of the server;
when a first PWM control value of a first temperature device is larger than a second PWM control value of a second temperature device, setting the first PWM control value as a PWM control value matched with the fan;
and sending the PWM control value matched with the fan to the complex programmable logic device.
Further, the calculation module is further configured to obtain m historical time temperature values T of the temperature device, and a historical time temperature difference sum Δ T;
by a second formula
Figure BDA0003835096380000141
Calculating the sum of temperature differences at historical moments;
judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moment;
the judging the temperature trend of the temperature device at the current moment through the value of the sum of the historical moment temperature differences comprises the following steps:
when the value of the sum of the temperature differences at the historical moment is larger than a second threshold value, the temperature of the temperature device at the current moment is in an ascending trend;
when the value of the sum of the temperature differences at the historical moment is smaller than a third threshold, the temperature of the temperature device at the current moment is in a descending trend;
when the value of the sum of the temperature differences at the historical moments is between the third threshold and the second threshold, the temperature of the temperature device at the current moment is in a steady trend.
Further, the calculation module is further configured to correspondingly increase a first temperature threshold, a second temperature threshold, and a third temperature threshold for the current-time temperature value of the temperature device when the current-time temperature of the temperature device is in a rising, steady, or falling trend, and calculate the PWM control value of the temperature device by using a first formula.
Further, the calculation module is configured to obtain a current time temperature T (k) of the temperature device, a time temperature T (k-1) of the temperature device k-1, a time temperature T (k-2) of the temperature device k-2, and a standard temperature Tref of the temperature device;
acquiring a first preset threshold Kp, a second preset threshold Ki, a third preset threshold Kd, a PWM control value FS (k) of the temperature device at the time k, and a PWM control value FS _ act (k-1) of the temperature device at the time k-1;
the PWM control value at the present time of the temperature device is calculated by a first formula FS (k) = FS _ act (k-1) + Kp (T (k) -T (k-1)) + Ki (T (k) -Tref) + Kd (T (k) -2 × T (k-1) + T (k-2)).
Further, the second processing module is configured to notify the complex programmable logic device to start monitoring an active data signal through an I2C command after the substrate management controller is upgraded, and the substrate management controller continues to control the fan by setting the rotation speed of the fan control board to a PWM control value matched with the fan.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the technical scheme provided by the embodiment of the invention is beneficial to forming a technical barrier in the field of high-end servers of a company and ensuring the advantages of the company in the high-end servers.
The technical scheme provided by the embodiment of the invention can ensure that the rotating speed of the fan can stably work at a proper PWM control value when the BMC is upgraded by the cooperation of the BMC, the erasable Programmable Read-only memory (EEPROM) and the CPLD, and solves the problems of over-high noise and over-high power consumption of the fan.
Example four
The invention provides a computer device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor can execute the following fan control method when executing the computer program:
receiving an upgrading instruction for the substrate management controller;
calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device;
the baseboard management controller stores the flag bit to the read-only memory;
and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when the baseboard management controller is upgraded, the fan can be controlled more intelligently through effective cooperation of the BMC, the EEPROM and the CPLD. Meanwhile, the rotating speed of the fan can be stably increased in the stages before, during and after BMC upgrading, and the overall noise and power consumption of the server are reduced.
EXAMPLE five
The invention provides a computer storage medium, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the following steps:
receiving an upgrading instruction for the baseboard management controller;
calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device;
the baseboard management controller stores the flag bit into the read-only memory;
and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan.
Further, the calculating the PWM control value matching with the fan and sending the PWM control value matching with the fan to the complex programmable logic device includes:
and informing the complex programmable logic device to stop monitoring the active data signal through an I2C command.
Further, the calculating a PWM control value matched to the fan and sending the PWM control value matched to the fan to the complex programmable logic device includes:
calculating a PWM control value for each temperature device of the server;
when a first PWM control value of a first temperature device is larger than a second PWM control value of a second temperature device, setting the first PWM control value as a PWM control value matched with the fan;
and sending the PWM control value matched with the fan to the complex programmable logic device.
Further, the calculating of the PWM control value for each temperature device of the server includes:
acquiring the current time temperature T (k) of the temperature device, the time temperature T (k-1) of the temperature device k-1, the time temperature T (k-2) of the temperature device k-2 and the standard temperature Tref of the temperature device;
acquiring a first preset threshold Kp, a second preset threshold Ki, a third preset threshold Kd, a PWM control value FS (k) of the temperature device at the time k, and a PWM control value FS _ act (k-1) of the temperature device at the time k-1;
the PWM control value at the present time of the temperature device is calculated by a first formula FS (k) = FS _ act (k-1) + Kp (T (k) -T (k-1)) + Ki (T (k) -Tref) + Kd (T (k) -2T (k-1) + T (k-2)).
Further, the method further comprises:
acquiring m historical moment temperature values T of the temperature device, and the sum delta T of temperature differences at historical moments;
by a second formula
Figure BDA0003835096380000171
Calculating the sum of temperature differences at historical moments;
judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moment;
the judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moments comprises the following steps:
when the value of the sum of the temperature differences at the historical moment is larger than a second threshold value, the temperature of the temperature device at the current moment is in an ascending trend;
when the value of the sum of the temperature differences at the historical moments is smaller than a third threshold value, the temperature of the temperature device at the current moment is in a descending trend;
when the value of the sum of the temperature differences at the historical moment is between the third threshold and the second threshold, the temperature of the temperature device at the current moment is in a stable trend.
Further, after the determining the temperature trend of the temperature device at the current moment by the value of the sum of the historical moment temperature differences, the method includes:
when the temperature of the temperature device at the current moment is in a rising, stable and descending trend, a first temperature threshold, a second temperature threshold and a third temperature threshold are correspondingly added to the temperature value of the temperature device at the current moment, and a PWM control value of the temperature device is calculated through a first formula.
Further, the complicated programmable logic device sets the rotation speed of the fan control board to a PWM control value matched with the fan, and after controlling the fan, the method includes:
and after the substrate management controller finishes upgrading, the substrate management controller informs the complex programmable logic device to start monitoring active data signals through an I2C command, and the substrate management controller continuously controls the fan by setting the rotating speed of the fan control panel as a PWM control value matched with the fan.
FIG. 6 provides an exemplary system that may be used to implement various embodiments described herein, according to a fifth embodiment of the present invention;
in some embodiments, the system can function as any of the above described devices for fan control, as shown in FIG. 6. In some embodiments, a system may include one or more computer-readable media (e.g., system memory or NVM/storage) having a result and one or more processors (e.g., processor (s)) coupled with the one or more computer-readable media and configured to execute the result to implement modules to perform actions described herein.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware related to the results of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases or other media used in the embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A fan control method is applied to a fan control system, the fan control system comprises a baseboard management controller, a complex programmable logic device and a read-only memory, a first output end of the baseboard management controller is connected with an input end of the read-only memory, a second output end of the baseboard management controller is connected with a first input end of the complex programmable logic device, and a third output end of the baseboard management controller is connected with a second input end of the complex programmable logic device, and the method comprises the following steps:
receiving an upgrading instruction for the baseboard management controller;
calculating a PWM control value matched with the fan, and sending the PWM control value matched with the fan to the complex programmable logic device;
the baseboard management controller stores the flag bit to the read-only memory;
and when the flag bit is a first threshold value, the complex programmable logic device sets the rotating speed of the fan control board to be a PWM control value matched with the fan, and controls the fan.
2. The method of claim 1, wherein the calculating the PWM control value matching the fan and sending the PWM control value matching the fan to the complex programmable logic device comprises:
and informing the complex programmable logic device to stop monitoring the active data signal through an I2C command.
3. The fan control method according to claim 1, wherein the calculating the PWM control value matching the fan and sending the PWM control value matching the fan to the complex programmable logic device comprises:
calculating a PWM control value for each temperature device of the server;
when a first PWM control value of a first temperature device is larger than a second PWM control value of a second temperature device, setting the first PWM control value as a PWM control value matched with the fan;
and sending the PWM control value matched with the fan to the complex programmable logic device.
4. The fan control method according to claim 3, wherein the calculating of the PWM control value for each temperature device of the server includes:
acquiring the current time temperature T (k) of the temperature device, the time temperature T (k-1) of the temperature device k-1, the time temperature T (k-2) of the temperature device k-2 and the standard temperature Tref of the temperature device;
acquiring a first preset threshold Kp, a second preset threshold Ki, a third preset threshold Kd, a PWM control value FS (k) of the temperature device at the moment k and a PWM control value FS _ act (k-1) of the temperature device at the moment k-1;
the PWM control value at the present time of the temperature device is calculated by a first formula FS (k) = FS _ act (k-1) + Kp (T (k) -T (k-1)) + Ki (T (k) -Tref) + Kd (T (k) -2T (k-1) + T (k-2)).
5. The fan control method according to claim 4, further comprising:
acquiring m historical moment temperature values T of the temperature device, and the sum delta T of temperature differences at historical moments;
by a second formula
Figure FDA0003835096370000021
Calculating the sum of temperature differences at historical moments;
judging the temperature trend of the temperature device at the current moment according to the value of the sum of the historical moment temperature differences;
the judging the temperature trend of the temperature device at the current moment according to the value of the sum of the temperature differences at the historical moments comprises the following steps:
when the value of the sum of the temperature differences at the historical moment is larger than a second threshold value, the temperature of the temperature device at the current moment is in an ascending trend;
when the value of the sum of the temperature differences at the historical moment is smaller than a third threshold, the temperature of the temperature device at the current moment is in a descending trend;
when the value of the sum of the temperature differences at the historical moments is between the third threshold and the second threshold, the temperature of the temperature device at the current moment is in a steady trend.
6. The fan control method according to claim 5, wherein after the determining the temperature trend of the temperature device at the current time by the value of the sum of the historical time temperature differences, the method comprises:
when the temperature of the temperature device at the current moment is in a rising, stable and descending trend, a first temperature threshold, a second temperature threshold and a third temperature threshold are correspondingly added to the temperature value of the temperature device at the current moment, and a PWM control value of the temperature device is calculated through a first formula.
7. The method as claimed in claim 1, wherein the complex programmable logic device sets the rotation speed of the fan control board to a PWM control value matching the fan, and after controlling the fan, the method comprises:
and after the substrate management controller finishes upgrading, the substrate management controller informs the complex programmable logic device to start monitoring active data signals through an I2C command, and the substrate management controller continuously controls the fan by setting the rotating speed of the fan control panel as a PWM control value matched with the fan.
8. A fan control apparatus, the apparatus comprising:
the receiving module is used for receiving an upgrading instruction of the substrate management controller;
the calculation module is used for calculating a PWM control value matched with the fan and sending the PWM control value matched with the fan to the complex programmable logic device;
the storage module is used for storing the flag bit into the read-only memory;
and the control module is used for setting the rotating speed of the fan control board to be a PWM control value matched with the fan by the complex programmable logic device when the flag bit is a first threshold value, and controlling the fan.
9. A computer device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to implement the steps of the method according to any of claims 1 to 7.
10. A computer storage medium on which a computer program is stored, characterized in that the computer program realizes the steps of the method according to any one of claims 1 to 7 when executed by a memory.
CN202211096460.XA 2022-09-06 2022-09-06 Fan control method, device, equipment and medium Active CN115405550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211096460.XA CN115405550B (en) 2022-09-06 2022-09-06 Fan control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211096460.XA CN115405550B (en) 2022-09-06 2022-09-06 Fan control method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN115405550A true CN115405550A (en) 2022-11-29
CN115405550B CN115405550B (en) 2024-01-19

Family

ID=84165134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211096460.XA Active CN115405550B (en) 2022-09-06 2022-09-06 Fan control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115405550B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140142764A1 (en) * 2012-11-20 2014-05-22 Inventec Corporation Fan rotational speed control system and method for controlling rotational speed of fan
US20180164795A1 (en) * 2016-12-14 2018-06-14 Inventec (Pudong) Technology Corporation Fan monitoring system
CN108170575A (en) * 2017-12-25 2018-06-15 曙光信息产业(北京)有限公司 A kind of control method and device of server radiating
CN109857228A (en) * 2018-12-29 2019-06-07 曙光信息产业(北京)有限公司 Fan control device and method
CN113048090A (en) * 2021-03-12 2021-06-29 山东英信计算机技术有限公司 Fan rotating speed control method and system
CN113867500A (en) * 2021-08-27 2021-12-31 苏州浪潮智能科技有限公司 Case heat dissipation control method, device, equipment and storage medium
CN113883078A (en) * 2021-08-27 2022-01-04 苏州浪潮智能科技有限公司 Fan control device and method
CN114281169A (en) * 2021-11-26 2022-04-05 苏州浪潮智能科技有限公司 Method and system for regulating and controlling server fan and server
CN114911332A (en) * 2022-04-29 2022-08-16 苏州浪潮智能科技有限公司 Server fan regulation and control method, system, electronic equipment and storage medium
CN114996096A (en) * 2022-06-24 2022-09-02 浪潮商用机器有限公司 Server, and fan speed regulation method and circuit of server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140142764A1 (en) * 2012-11-20 2014-05-22 Inventec Corporation Fan rotational speed control system and method for controlling rotational speed of fan
US20180164795A1 (en) * 2016-12-14 2018-06-14 Inventec (Pudong) Technology Corporation Fan monitoring system
CN108170575A (en) * 2017-12-25 2018-06-15 曙光信息产业(北京)有限公司 A kind of control method and device of server radiating
CN109857228A (en) * 2018-12-29 2019-06-07 曙光信息产业(北京)有限公司 Fan control device and method
CN113048090A (en) * 2021-03-12 2021-06-29 山东英信计算机技术有限公司 Fan rotating speed control method and system
CN113867500A (en) * 2021-08-27 2021-12-31 苏州浪潮智能科技有限公司 Case heat dissipation control method, device, equipment and storage medium
CN113883078A (en) * 2021-08-27 2022-01-04 苏州浪潮智能科技有限公司 Fan control device and method
CN114281169A (en) * 2021-11-26 2022-04-05 苏州浪潮智能科技有限公司 Method and system for regulating and controlling server fan and server
CN114911332A (en) * 2022-04-29 2022-08-16 苏州浪潮智能科技有限公司 Server fan regulation and control method, system, electronic equipment and storage medium
CN114996096A (en) * 2022-06-24 2022-09-02 浪潮商用机器有限公司 Server, and fan speed regulation method and circuit of server

Also Published As

Publication number Publication date
CN115405550B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
US8634952B2 (en) Fan control method and medium storing fan control program
US7310738B2 (en) Multifunctional control of cooling systems for computers
CN103699471A (en) Method and device for controlling temperature of computer hardware
CN106371540B (en) System power management method, chip and electronic equipment
CN111158447A (en) Server heat dissipation parameter regulation and control method, device, equipment and readable storage medium
CN110647224A (en) Method and device for controlling running state
CN113009999A (en) Power adjustment method and device for processor
CN112698712B (en) Method and apparatus for energy consumption management
CN113826082B (en) Method and equipment for controlling heat dissipation device
CN115405550A (en) Fan control method, device, equipment and medium
CN112433580A (en) Fan control method and device, computer equipment and storage medium
CN111026252B (en) Method and device for server temperature redundancy control
JP6800935B2 (en) How to control a fan in an electronic system
CN109708265B (en) Starting method of fan in outdoor unit and outdoor unit
US10396697B2 (en) Motor operating systems and methods thereof
US10509449B2 (en) Processor power adjustment
CN111045844A (en) Fault degradation method and device
CN113568805A (en) Real-time adjustment method and device for power consumption of server and electronic equipment
CN112394803B (en) Domestic server power consumption real-time dynamic adjusting method
CN110566492A (en) fan speed regulation method, device, equipment and medium
CN115657838A (en) Power supply control method and computing equipment
CN113254307A (en) Method and device for determining failure of fan
CN114721852A (en) Power management system and management method
CN117846999A (en) Method and device for adjusting rotation speed of fan, medium and rotation speed adjusting and controlling system of fan
CN113867753B (en) Firmware updating method and system of server

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