CN113719461A - Fan control method, system and related assembly - Google Patents

Fan control method, system and related assembly Download PDF

Info

Publication number
CN113719461A
CN113719461A CN202111006737.0A CN202111006737A CN113719461A CN 113719461 A CN113719461 A CN 113719461A CN 202111006737 A CN202111006737 A CN 202111006737A CN 113719461 A CN113719461 A CN 113719461A
Authority
CN
China
Prior art keywords
fan
bmc
hardware
state
iic
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.)
Pending
Application number
CN202111006737.0A
Other languages
Chinese (zh)
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 CN202111006737.0A priority Critical patent/CN113719461A/en
Publication of CN113719461A publication Critical patent/CN113719461A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D25/00Pumping installations or systems
    • F04D25/02Units comprising pumps and their driving means
    • F04D25/08Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
    • 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/001Testing thereof; Determination or simulation of flow characteristics; Stall or surge detection, e.g. condition monitoring
    • 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/008Stop safety or alarm devices, e.g. stop-and-go control; Disposition of check-valves
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D29/00Details, component parts, or accessories
    • F04D29/002Details, component parts, or accessories especially adapted for elastic fluid pumps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The application discloses a fan control method, a system, a device and a computer readable storage medium, which are applied to a CPLD (complex programmable logic device), wherein the CPLD is connected with a data transmission port of each temperature device in a server through a first IIC (inter-integrated circuit) link, and the fan control method comprises the following steps: detecting the hardware state of the BMC; when the hardware state is a hardware fault state, controlling a second IIC link between the BMC and a data transmission port of each temperature device to be disconnected, acquiring temperature data of each temperature device through all first IIC links, generating PWM signals based on all temperature data and sending the PWM signals to the fan; when the hardware state is the hardware normal state, generating a PWM signal based on a fan rotating speed control signal sent by the BMC and sending the PWM signal to the fan; all second IIC links are turned on when the BMC is in the hardware normal state. According to the method and the device, the rotating speed of the fan can be regulated and controlled as required, and the problem of high-temperature downtime and resource waste caused by regulation and control according to the unified rotating speed is avoided.

Description

Fan control method, system and related assembly
Technical Field
The present disclosure relates to the field of servers, and in particular, to a method and a system for controlling a fan and related components.
Background
The current temperature control system of the server includes a BMC (Baseboard Management Controller) and a CPLD (Complex Programmable Logic Device), wherein the BMC collects temperature data inside the server, calculates a required fan rotation speed according to the temperature data, transmits the fan rotation speed to the CPLD through an Inter-Integrated Circuit (IIC) bus, and then the CPLD generates a PWM signal for controlling the fan according to the fan rotation speed. The actual rotating speed of the fan is fed back to the CPLD through the TACH signal, the CPLD stores the value of the TACH signal in the register, and then the BMC reads the value in the register through the IIC to confirm whether the rotating speed is correct or not.
When the BMC is abnormal, the CPLD can directly take over the control of the fan, and the fan is controlled to operate according to the unified preset rotating speed. However, in the prior art, the control can only be performed according to the preset rotating speed, if the preset rotating speed is too high, and the internal temperature of the current server does not reach a high-temperature state, resource waste can be caused, and if the preset rotating speed is too low, the server may still have a high-temperature downtime risk, which affects the normal operation of the server.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a fan control method, a system, a device and a computer readable storage medium, which can regulate and control the rotating speed of a fan as required and avoid the problems of high-temperature downtime and resource waste caused by regulation and control according to a uniform rotating speed.
In order to solve the above technical problem, the present application provides a fan control method, which is applied to a CPLD, where the CPLD is connected to a data transmission port of each temperature device inside a server through a first IIC link, and the fan control method includes:
detecting the hardware state of the BMC;
when the hardware state is a hardware fault state, controlling a second IIC link between the BMC and the data transmission port of each temperature device to be disconnected, acquiring temperature data of each temperature device through all the first IIC links, generating PWM signals based on all the temperature data and sending the PWM signals to a fan;
when the hardware state is a hardware normal state, generating a PWM signal based on a fan rotating speed control signal sent by the BMC and sending the PWM signal to the fan; and all the second IIC links are conducted when the BMC is in a hardware normal state.
Optionally, the process of detecting the hardware state of the BMC includes:
judging whether a watchdog signal sent by the BMC is received in the current detection period;
if so, judging that the hardware state of the BMC is a hardware normal state;
if not, the hardware state of the BMC is judged to be a hardware abnormal state.
Optionally, after detecting the hardware state of the BMC, the fan control method further includes:
when the hardware state is a hardware normal state, judging whether a fan rotating speed control signal output by the BMC is abnormal;
if yes, generating PWM signals based on the temperature data transmitted on all the second IIC links and sending the PWM signals to the fan;
correspondingly, when the hardware state is the hardware normal state, the process of generating the PWM signal based on the fan speed control signal sent by the BMC and sending the PWM signal to the fan includes:
and when the fan rotating speed control signal output by the BMC is normal, generating a PWM signal based on the fan rotating speed control signal and sending the PWM signal to the fan.
Optionally, after detecting the state of the BMC, the fan control method further includes:
when the state is a hardware normal state, acquiring and analyzing all temperature data transmitted on the second IIC link according to an acquisition period;
the process of judging whether the fan rotating speed control signal output by the BMC is abnormal comprises the following steps:
and when the temperature data acquired in a plurality of continuous acquisition periods is in a continuous rising state, and the fan rotating speed control signal corresponding to the plurality of continuous acquisition periods is unchanged or is in a low rotating speed control range, judging that the fan rotating speed control signal is abnormal.
Optionally, when the temperature data acquired in a plurality of consecutive acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the plurality of consecutive acquisition cycles is unchanged or the fan speed control signal is in a low speed control range, the process of determining that the fan speed control signal is abnormal includes:
and when the temperature data acquired in a plurality of continuous acquisition periods is in a continuous rising state, the fan rotating speed control signal corresponding to the plurality of continuous acquisition periods is unchanged or the fan rotating speed control signal is in a low rotating speed control range, and each temperature data of the current acquisition period reaches a corresponding preset upper limit temperature value, judging that the fan rotating speed control signal is abnormal.
Optionally, after determining whether the fan speed control signal output by the BMC is abnormal, the fan control method further includes:
if yes, an alarm signal is output to the BMC.
Optionally, a switch is arranged on each second IIC link;
the process of controlling the disconnection of the second IIC link between the BMC and the data transmission port of each of the temperature devices includes:
and controlling the switch on each second IIC link to be disconnected so as to disconnect the second IIC link between the BMC and the data transmission port of each temperature device.
In order to solve the above technical problem, the present application further provides a fan control system, which is applied to a CPLD, where the CPLD is connected to a data transmission port of each temperature device inside a server through a first IIC link, and the fan control system includes:
the first detection module is used for detecting the hardware state of the BMC;
the first control module is used for controlling a second IIC link between the BMC and the data transmission port of each temperature device to be disconnected when the hardware state is a hardware fault state, acquiring temperature data of each temperature device through all the first IIC links, generating PWM signals based on all the temperature data and sending the PWM signals to the fan;
the second control module is used for generating a PWM signal based on a fan rotating speed control signal sent by the BMC and sending the PWM signal to the fan when the hardware state is a hardware normal state; and all the second IIC links are conducted when the BMC is in a hardware normal state.
In order to solve the above technical problem, the present application further provides a fan control device, including:
a memory for storing a computer program;
a processor for implementing the steps of the fan control method as claimed in any one of the above when executing the computer program.
To solve the above technical problem, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the fan control method according to any one of the above.
The application provides a fan control method, a CPLD is connected with a data transmission port of each temperature device in a server through a first IIC link, when a BMC is in a hardware abnormal state, the CPLD acquires temperature data of each current temperature device by using the first IIC link, and regulates and controls the rotating speed of a fan according to the acquired temperature data, so that the problem of high-temperature downtime and resource waste caused by regulation and control according to a unified preset rotating speed is avoided. In addition, for each temperature device, because the first IIC link and the second IIC link are both connected with the same data transmission port of the temperature device, in order to prevent BMC hardware from pulling an IIC signal of the data transmission port abnormally, when the BMC hardware is detected to be in a hardware abnormal state, all the second IIC links are disconnected firstly, so that the CPLD can obtain accurate temperature data through the first IIC link, and the accuracy of fan rotating speed control of the CPLD is improved. The application also provides a fan rotating speed control system, a fan rotating speed control device and a computer readable storage medium, and the fan rotating speed control system, the fan rotating speed control device and the computer readable storage medium have the same beneficial effects as the fan rotating speed control method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a schematic structural diagram of a monitoring system provided in the present application;
FIG. 2 is a flow chart illustrating steps of a method for controlling a fan according to the present disclosure;
FIG. 3 is a schematic diagram of another monitoring system provided herein;
fig. 4 is a schematic structural diagram of a fan control system provided in the present application.
Detailed Description
The core of the application is to provide a fan control method, a system, a device and a computer readable storage medium, which can regulate and control the rotating speed of a fan as required, and avoid the problems of high-temperature downtime and resource waste caused by regulation and control according to a uniform rotating speed.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
For the convenience of understanding the solution of the present application, a monitoring system to which the fan control method proposed by the present application is applied will be described below. Referring to fig. 1, fig. 1 is a schematic structural diagram of a monitoring system provided in the present application, the monitoring system includes a plurality of temperature devices, CPLDs 02 and BMCs 03, wherein the temperature devices include a temperature sensor 011 or a device 012 having a temperature calculation function. The CPLD 02 and the BMC 03 are connected with each temperature device through an IIC bus. Specifically, the CPLD 02 is connected with each temperature device through a first IIC link, and the BMC 03 is connected with each temperature device through a second IIC link, wherein the IIC links of the CPLD 02 and the BMC 03 are both connected with the same data transmission port of each temperature device, taking a temperature sensor 011 as an example, one end of the first IIC link is connected with the CPLD 02, the other end is connected with the data transmission port of the temperature sensor 011, one end of the second IIC link is connected with the BMC 03, and the other end is also connected with the data transmission port of the temperature sensor 011. The first IIC link may be multiple, as shown in fig. 1, the CPLD 02 is connected to the plurality of temperature sensors 011 through the first IIC link IIC11, the CPLD 02 is connected to the plurality of devices 012 with temperature calculation function through the second first IIC link IIC12, the second IIC link may be multiple, as shown in fig. 1, the BMC 03 is connected to the plurality of temperature sensors 011 through the first second IIC link IIC21, and the BMC 03 is connected to the plurality of devices 012 with temperature calculation function through the second IIC link IIC 22. It can be understood that, by adopting the structure of the monitoring system provided by the application, both the BMC 03 and the CPLD 02 can query the temperature data of the temperature device as required.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a fan control method according to the present disclosure, the fan control method includes:
s101: detecting the hardware state of the BMC;
it can be understood that when the BMC can normally operate, the BMC defaults to query the temperature data of each temperature device according to rules, the BMC generates a corresponding fan rotation speed control signal according to the acquired temperature data, and the CPLD generates a PWM signal according to the fan rotation speed signal sent by the BMC to control each fan. However, when the BMC hardware is abnormal, the BMC cannot normally query the temperature data of each temperature device, and thus cannot normally send a fan rotation speed signal to the CPLD, and at this time, normal heat dissipation control inside the server may be affected. Therefore, the hardware state of the BMC needs to be detected, the hardware state includes a hardware normal state and a hardware abnormal state, and the control logic executed by the CPLD is different for different hardware states of the BMC.
Specifically, the BMC sends a watchdog signal to the CPLD according to a preset detection period, and as a preferred embodiment, the process of detecting the hardware state of the BMC includes: and judging whether a watchdog signal sent by the BMC is received in the current detection period, if so, judging that the hardware state of the BMC is a hardware normal state, and if not, judging that the hardware state of the BMC is a hardware abnormal state.
S102: when the hardware state is a hardware fault state, controlling a second IIC link between the BMC and a data transmission port of each temperature device to be disconnected, acquiring temperature data of each temperature device through all first IIC links, generating PWM signals based on all temperature data and sending the PWM signals to the fan;
specifically, because the IIC link of the BMC and the IIC link of the CPLD are connected to the same data transmission port of the temperature device, and the default state of all the second IIC links is the on state, when it is determined that the BMC is in the hardware fault state, the second IIC link between the BMC and each temperature device is controlled to be disconnected first, so as to prevent the IIC signal from being pulled when the BMC is in the hardware fault state, and the CPLD cannot query the temperature data of each temperature device through the first IIC link. After the IIC link between the BMC and each temperature device is controlled to be disconnected, the CPLD inquires temperature data of each temperature device through the first IIC link and directly generates PWM signals according to each temperature data to be sent to the fan, and therefore accurate control of the CPLD on the rotating speed of the fan is achieved.
After acquiring the temperature data, the CPLD calculates the rotating speed required by the fan through a PID algorithm, so as to generate a corresponding PWM signal.
As a preferred embodiment, referring to fig. 3, a switch 04 is provided on each second IIC link, and the second IIC link between the BMC and the data transmission port of each temperature device may be opened by controlling the switch 04 on each second IIC link to be opened, it can be understood that the switch 04 on the second IIC link is in a closed state by default, so that the BMC queries the temperature data of each temperature device.
S103: when the hardware state is the hardware normal state, generating a PWM signal based on a fan rotating speed control signal sent by the BMC and sending the PWM signal to the fan; all second IIC links are turned on when the BMC is in the hardware normal state.
Specifically, if the hardware state of the BMC is determined to be the hardware normal state, the CPLD does not query the temperature data of each temperature device through the second IIC link, and the CPLD generates a PWM signal based on a fan rotation speed control signal sent by the BMC and sends the PWM signal to the fan to control the fan to operate at a required rotation speed.
In this embodiment, firstly, the CPLD is connected to the data transmission port of each temperature device in the server through the first IIC link, and when the BMC is in the hardware abnormal state, the CPLD acquires the temperature data of each current temperature device by using the first IIC link and adjusts and controls the rotation speed of the fan according to the acquired temperature data, so as to avoid the problem of high-temperature downtime and resource waste caused by the uniform adjustment and control of the preset rotation speed. In addition, for each temperature device, because the first IIC link and the second IIC link are both connected with the same data transmission port of the temperature device, in order to prevent BMC hardware from pulling an IIC signal of the data transmission port abnormally, when the BMC hardware is detected to be in a hardware abnormal state, all the second IIC links are disconnected firstly, so that the CPLD can obtain accurate temperature data through the first IIC link, and the accuracy of fan rotating speed control of the CPLD is improved.
On the basis of the above-described embodiment:
as a preferred embodiment, after detecting the hardware status of the BMC, the fan control method further includes:
when the hardware state is the hardware normal state, judging whether a fan rotating speed control signal output by the BMC is abnormal;
if yes, generating PWM signals based on the temperature data transmitted on all the second IIC links and sending the PWM signals to the fan;
correspondingly, when the hardware state is the hardware normal state, the process of generating the PWM signal based on the fan speed control signal sent by the BMC and sending the PWM signal to the fan includes:
and when the fan rotating speed control signal output by the BMC is normal, generating a PWM signal based on the fan rotating speed control signal and sending the PWM signal to the fan.
Specifically, in this embodiment, a software state of the BMC is further detected, where the software state specifically indicates whether a rotation speed calculation function of the BMC is abnormal, that is, the BMC may normally query temperature data of each temperature device, but cannot accurately calculate a corresponding fan rotation speed according to the queried temperature data, a fan rotation speed control signal output by the BMC is an erroneous fan rotation speed control signal, and the erroneous fan rotation speed control signal causes an inaccurate control of the fan rotation speed, so that a risk of high-temperature downtime exists inside the server.
It can be understood that, when the hardware state of the BMC is the hardware normal state, the BMC may normally query the temperature data of the temperature devices through the second IIC link, and therefore, when the CPLD detects that the BMC is the hardware normal state, the CPLD may obtain and analyze the temperature data transmitted on the second IIC link without autonomously querying the temperature data of the temperature devices. When the CPLD detects that the software state of the BMC is abnormal, the CPLD does not respond to the fan rotating speed control signal sent by the BMC any more, generates a PWM signal according to the temperature data transmitted on the second IIC link analyzed by the CPLD, and sends the PWM signal to the fan so as to control the fan to operate. When the CPLD detects that the BMC software and the hardware are normal, namely the hardware state of the BMC is a hardware normal state, and the fan rotating speed control signal output by the BMC is normal, the CPLD generates a PWM signal according to the fan rotating speed control signal sent by the BMC so as to control the fan to operate. As a preferred embodiment, after detecting the status of the BMC, the fan control method further includes:
when the state is a hardware normal state, acquiring and analyzing all temperature data transmitted on the second IIC link according to the acquisition period;
the process of judging whether the fan rotating speed control signal output by the BMC is abnormal comprises the following steps:
and when the temperature data acquired in a plurality of continuous acquisition periods is in a continuous rising state, and the fan rotating speed control signals corresponding to the plurality of continuous acquisition periods are unchanged or the fan rotating speed control signals are in a low rotating speed control range, judging that the fan rotating speed control signals are abnormal.
As described above, when the hardware state of the BMC is the hardware normal state, the BMC may normally query the temperature data of each temperature device through the second IIC link, that is, there is temperature data transmission on the second IIC link, and therefore, when the BMC is the hardware normal state, the CPLD may obtain the temperature data of each temperature device in the current obtaining period by obtaining and analyzing the IIC signal transmitted on the second IIC link. When the CPLD analyzes the temperature data acquired in a plurality of continuous periods and is in a continuous rising state, but the fan rotating speed control signal is not changed, or is in a rotating speed range which is not consistent with the current temperature data, if the temperature is continuously raised, but the fan rotating speed control signal is still in a low rotating speed control range, the temperature calculation function or the rotating speed calculation function of the BMC is abnormal, and the BMC cannot generate a correct fan rotating speed control signal according to the inquired temperature data, so that the CPLD is judged to be abnormal when receiving the fan rotating speed control signal.
Specifically, the continuous multiple acquisition cycles provided in this embodiment, that is, the continuous multiple acquisition cycles including the current acquisition cycle, for example, five continuous acquisition cycles, and assuming that the current acquisition cycle is the seventh acquisition cycle, the five continuous acquisition cycles are the third acquisition cycle, the fourth acquisition cycle, the fifth acquisition cycle, the sixth acquisition cycle, and the seventh acquisition cycle.
As a preferred embodiment, when the temperature data acquired in a plurality of consecutive acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the consecutive acquisition cycles is unchanged or the fan speed control signal is in the low speed control range, the process of determining that the fan speed control signal is abnormal includes:
and when the temperature data acquired in the continuous acquisition periods are in a continuous rising state, the fan rotating speed control signals corresponding to the continuous acquisition periods are unchanged, or the fan rotating speed control signals are in a low rotating speed control range, and each temperature data of the current acquisition period reaches a corresponding preset upper limit temperature value, judging that the fan rotating speed control signals are abnormal. As a preferred embodiment, after determining whether the fan speed control signal output by the BMC is abnormal, the fan control method further includes:
if yes, an alarm signal is output to the BMC.
Specifically, when the CPLD determines that the BMC hardware is normal, but the software is abnormal, it indicates that the BMC can implement the corresponding function at this time, and is not completely unable to operate, and the CPLD outputs an alarm signal to the BMC to prompt that the BMC software is abnormal, so as to perform subsequent processing operations, such as resetting, restarting, and the like.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a fan control system provided in the present application, the fan control system including:
the first detection module 11 is used for detecting the hardware state of the BMC;
the first control module 12 is configured to control the second IIC link between the BMC and the data transmission port of each temperature device to be disconnected when the hardware state is the hardware fault state, acquire temperature data of each temperature device through all the first IIC links, generate a PWM signal based on all the temperature data, and send the PWM signal to the fan;
the second control module 13 is configured to generate a PWM signal based on a fan rotation speed control signal sent by the BMC and send the PWM signal to the fan when the hardware state is the hardware normal state; all second IIC links are turned on when the BMC is in the hardware normal state.
In this embodiment, firstly, the CPLD is connected to the data transmission port of each temperature device in the server through the first IIC link, and when the BMC is in the hardware abnormal state, the CPLD acquires the temperature data of each current temperature device by using the first IIC link and adjusts and controls the rotation speed of the fan according to the acquired temperature data, so as to avoid the problem of high-temperature downtime and resource waste caused by the uniform adjustment and control of the preset rotation speed. In addition, for each temperature device, because the first IIC link and the second IIC link are both connected with the same data transmission port of the temperature device, in order to prevent BMC hardware from pulling an IIC signal of the data transmission port abnormally, when the BMC hardware is detected to be in a hardware abnormal state, all the second IIC links are disconnected firstly, so that the CPLD can obtain accurate temperature data through the first IIC link, and the accuracy of fan rotating speed control of the CPLD is improved.
As a preferred embodiment, the process of detecting the hardware status of the BMC includes:
judging whether a watchdog signal sent by the BMC is received in the current detection period;
if so, judging the hardware state of the BMC to be a hardware normal state;
if not, the hardware state of the BMC is judged to be a hardware abnormal state.
As a preferred embodiment, the fan control system further includes:
the second detection module is used for judging whether the fan rotating speed control signal output by the BMC is abnormal or not when the hardware state is a hardware normal state, and if so, triggering the third control module;
the third control module is used for generating PWM signals based on the temperature data transmitted on all the second IIC links and sending the PWM signals to the fan;
correspondingly, the second control module 13 is specifically configured to:
and when the fan rotating speed control signal output by the BMC is normal, generating a PWM signal based on the fan rotating speed control signal and sending the PWM signal to the fan.
As a preferred embodiment, the fan control system further includes:
the acquisition module is used for acquiring and analyzing all temperature data transmitted on the second IIC link according to an acquisition cycle when the state is a hardware normal state;
the process of judging whether the fan rotating speed control signal output by the BMC is abnormal comprises the following steps:
and when the temperature data acquired in a plurality of continuous acquisition periods is in a continuous rising state, and the fan rotating speed control signals corresponding to the plurality of continuous acquisition periods are unchanged or the fan rotating speed control signals are in a low rotating speed control range, judging that the fan rotating speed control signals are abnormal.
As a preferred embodiment, when the temperature data acquired in a plurality of consecutive acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the consecutive acquisition cycles is unchanged or the fan speed control signal is in the low speed control range, the process of determining that the fan speed control signal is abnormal includes:
and when the temperature data acquired in the continuous acquisition periods are in a continuous rising state, the fan rotating speed control signals corresponding to the continuous acquisition periods are unchanged, or the fan rotating speed control signals are in a low rotating speed control range, and each temperature data of the current acquisition period reaches a corresponding preset upper limit temperature value, judging that the fan rotating speed control signals are abnormal.
As a preferred embodiment, the fan control method further includes:
and the alarm module is used for outputting an alarm signal to the BMC when the fan rotating speed control signal output by the BMC is judged to be abnormal.
As a preferred embodiment, each second IIC link is provided with a switch;
the process of controlling the disconnection of the second IIC link between the BMC and the data transmission port of each temperature device includes:
and controlling the switch on each second IIC link to be disconnected so as to disconnect the second IIC link between the BMC and the data transmission port of each temperature device.
On the other hand, the present application also provides a fan control apparatus, including:
a memory for storing a computer program;
a processor for implementing the steps of the fan control method as described in any one of the above embodiments when executing the computer program.
For the introduction of the fan control device provided in the present application, please refer to the above embodiments, which are not described herein again.
The fan control device provided by the application has the same beneficial effects as the fan control method.
In another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the fan control method as described in any one of the above embodiments.
For the introduction of a computer-readable storage medium provided in the present application, please refer to the above embodiments, which are not described herein again.
The computer-readable storage medium provided by the present application has the same advantageous effects as the above-described fan control method.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 (10)

1. A fan control method is applied to a CPLD (complex programmable logic device), wherein the CPLD is connected with a data transmission port of each temperature device in a server through a first IIC link, and the fan control method comprises the following steps:
detecting the hardware state of the BMC;
when the hardware state is a hardware fault state, controlling a second IIC link between the BMC and the data transmission port of each temperature device to be disconnected, acquiring temperature data of each temperature device through all the first IIC links, generating PWM signals based on all the temperature data and sending the PWM signals to a fan;
when the hardware state is a hardware normal state, generating a PWM signal based on a fan rotating speed control signal sent by the BMC and sending the PWM signal to the fan; and all the second IIC links are conducted when the BMC is in a hardware normal state.
2. The fan control method of claim 1, wherein the detecting the hardware status of the BMC comprises:
judging whether a watchdog signal sent by the BMC is received in the current detection period;
if so, judging that the hardware state of the BMC is a hardware normal state;
if not, the hardware state of the BMC is judged to be a hardware abnormal state.
3. The fan control method of claim 1, wherein after detecting the hardware status of the BMC, the fan control method further comprises:
when the hardware state is a hardware normal state, judging whether a fan rotating speed control signal output by the BMC is abnormal;
if yes, generating PWM signals based on the temperature data transmitted on all the second IIC links and sending the PWM signals to the fan;
correspondingly, when the hardware state is the hardware normal state, the process of generating the PWM signal based on the fan speed control signal sent by the BMC and sending the PWM signal to the fan includes:
and when the fan rotating speed control signal output by the BMC is normal, generating a PWM signal based on the fan rotating speed control signal and sending the PWM signal to the fan.
4. The fan control method of claim 3, wherein after detecting the state of the BMC, the fan control method further comprises:
when the state is a hardware normal state, acquiring and analyzing all temperature data transmitted on the second IIC link according to an acquisition period;
the process of judging whether the fan rotating speed control signal output by the BMC is abnormal comprises the following steps:
and when the temperature data acquired in a plurality of continuous acquisition periods is in a continuous rising state, and the fan rotating speed control signal corresponding to the plurality of continuous acquisition periods is unchanged or is in a low rotating speed control range, judging that the fan rotating speed control signal is abnormal.
5. The method according to claim 4, wherein the step of determining that the fan speed control signal is abnormal when the temperature data acquired in the consecutive acquisition periods is in a continuously rising state and the fan speed control signal corresponding to the consecutive acquisition periods is unchanged or the fan speed control signal is in a low speed control range comprises:
and when the temperature data acquired in a plurality of continuous acquisition periods is in a continuous rising state, the fan rotating speed control signal corresponding to the plurality of continuous acquisition periods is unchanged or the fan rotating speed control signal is in a low rotating speed control range, and each temperature data of the current acquisition period reaches a corresponding preset upper limit temperature value, judging that the fan rotating speed control signal is abnormal.
6. The fan control method according to claim 1, wherein after determining whether the fan speed control signal output by the BMC is abnormal, the fan control method further comprises:
if yes, an alarm signal is output to the BMC.
7. The fan control method according to any one of claims 1 to 6, wherein a switch is provided on each of the second IIC links;
the process of controlling the disconnection of the second IIC link between the BMC and the data transmission port of each of the temperature devices includes:
and controlling the switch on each second IIC link to be disconnected so as to disconnect the second IIC link between the BMC and the data transmission port of each temperature device.
8. A fan control system is applied to a CPLD (complex programmable logic device), wherein the CPLD is connected with a data transmission port of each temperature device in a server through a first IIC link, and the fan control system comprises:
the first detection module is used for detecting the hardware state of the BMC;
the first control module is used for controlling a second IIC link between the BMC and the data transmission port of each temperature device to be disconnected when the hardware state is a hardware fault state, acquiring temperature data of each temperature device through all the first IIC links, generating PWM signals based on all the temperature data and sending the PWM signals to the fan;
the second control module is used for generating a PWM signal based on a fan rotating speed control signal sent by the BMC and sending the PWM signal to the fan when the hardware state is a hardware normal state; and all the second IIC links are conducted when the BMC is in a hardware normal state.
9. A fan control apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the fan control method according to any of claims 1-7 when executing said computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the fan control method according to any one of claims 1 to 7.
CN202111006737.0A 2021-08-30 2021-08-30 Fan control method, system and related assembly Pending CN113719461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111006737.0A CN113719461A (en) 2021-08-30 2021-08-30 Fan control method, system and related assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111006737.0A CN113719461A (en) 2021-08-30 2021-08-30 Fan control method, system and related assembly

Publications (1)

Publication Number Publication Date
CN113719461A true CN113719461A (en) 2021-11-30

Family

ID=78679265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111006737.0A Pending CN113719461A (en) 2021-08-30 2021-08-30 Fan control method, system and related assembly

Country Status (1)

Country Link
CN (1) CN113719461A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170575A (en) * 2017-12-25 2018-06-15 曙光信息产业(北京)有限公司 A kind of control method and device of server radiating
CN109376060A (en) * 2018-11-12 2019-02-22 郑州云海信息技术有限公司 A kind of temperature adjusting method and device
CN109488631A (en) * 2018-11-28 2019-03-19 郑州云海信息技术有限公司 A kind of fan control device and its method
CN109882440A (en) * 2019-04-16 2019-06-14 苏州浪潮智能科技有限公司 A kind of fan rotation speed control apparatus and control method
CN110345100A (en) * 2019-07-19 2019-10-18 苏州浪潮智能科技有限公司 Monitoring method, device, equipment and the readable storage medium storing program for executing of server fan rotating speed
CN112948185A (en) * 2021-02-26 2021-06-11 浪潮电子信息产业股份有限公司 Server heat dissipation method and device and related components

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170575A (en) * 2017-12-25 2018-06-15 曙光信息产业(北京)有限公司 A kind of control method and device of server radiating
CN109376060A (en) * 2018-11-12 2019-02-22 郑州云海信息技术有限公司 A kind of temperature adjusting method and device
CN109488631A (en) * 2018-11-28 2019-03-19 郑州云海信息技术有限公司 A kind of fan control device and its method
CN109882440A (en) * 2019-04-16 2019-06-14 苏州浪潮智能科技有限公司 A kind of fan rotation speed control apparatus and control method
CN110345100A (en) * 2019-07-19 2019-10-18 苏州浪潮智能科技有限公司 Monitoring method, device, equipment and the readable storage medium storing program for executing of server fan rotating speed
CN112948185A (en) * 2021-02-26 2021-06-11 浪潮电子信息产业股份有限公司 Server heat dissipation method and device and related components

Similar Documents

Publication Publication Date Title
US10983510B2 (en) Operation state monitoring apparatus, learning data generation apparatus, method and program
CN112324693B (en) Monitoring method, monitoring device, monitoring equipment and storage medium for fan rotating speed
EP1376285A1 (en) Trouble detection method, trouble detection apparatus, and temperature controller
CN114151373B (en) Method, system, terminal and storage medium for regulating and controlling rotation speed of server fan
JP2010140302A (en) Field device
CN110609578A (en) Temperature protection method, device and system for mechanical equipment
CN114153693A (en) Server fan state monitoring method and device and storage medium
CN109766110B (en) Control method, substrate management controller and control system
CN113719461A (en) Fan control method, system and related assembly
JP6800935B2 (en) How to control a fan in an electronic system
US10935949B2 (en) Controller system
JP2005302006A (en) Analog input slave and monitoring system
US20150046128A1 (en) Filtration method for abnormal sensing data of monitoring chip
US20220140888A1 (en) Control system, relay device, and relay program
US10083138B2 (en) Controller, bus circuit, control method, and recording medium
CN114838582A (en) Method and device for monitoring drying materials on line and computer readable storage medium
CN107807605B (en) Calibration method and device for engineering machinery electric control system
KR102343543B1 (en) Microcomputer monitoring apparatus and control method thereof
CN109857232B (en) Fan control method, system, device and computer readable storage medium
US20230050374A1 (en) Backlash-amount measurement apparatus, backlash-amount measurement method and computer readable medium
CN109917884A (en) A kind of server and its fan control system
CN116488341A (en) Cable monitoring fault alarm method and system
CN115853812A (en) Fan rotating speed monitoring method and device and medium
CN115686156A (en) Heat dissipation control method and device, communication equipment and storage medium
CN113359965A (en) Temperature adjusting method and related assembly

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