Fan rotating speed control method and system based on CPLD cooperating with BMC

Through the coordinated control of the CPLD module and the BMC module, the problem of the cooling fan not working properly caused by abnormal BMC module is solved, the reliability and security of the server are improved, and the effective control of the fan is ensured.

CN118934694AActive Publication Date: 2024-11-12BEIJING TIANDI HUIYUN TECH CO LTD

Patent Information

Application Number
CN202410995387.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-12
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

In the existing server cooling design, the BMC module may have abnormalities during long-term operation and cannot control the cooling fan normally, resulting in catastrophic events on the server motherboard, posing a major security risk.

Method used

The fan speed control method based on CPLD collaborative BMC is adopted. Through the coordinated control of the BMC module and the CPLD module, the GPIO, PWM, TACH and I2C interfaces are used to monitor and control the speed of the cooling fan to ensure that the CPLD module is used when the BMC module is abnormal. Take over fan control to avoid catastrophic events caused by improper heat dissipation.

Benefits of technology

Improve the reliability and security of server products, ensure that the cooling fan can be effectively controlled when the BMC module suddenly occurs, and prevent catastrophic events on the server motherboard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118934694A_ABST
    Figure CN118934694A_ABST
Patent Text Reader

Abstract

The invention provides a fan rotating speed control method and system based on a CPLD cooperating with a BMC, the method is applied to the fan rotating speed control system based on the CPLD cooperating with the BMC, and a BMC module transmits an ACTIVE signal used for representing whether the BMC module operates normally to a CPLD module through a first GPIO interface; and when the ACTIVE signal represents that the BMC module works abnormally, the CPLD module collects first overtemperature information reported by the CPU, and executes corresponding speed regulation control on the cooling fan or performs server shutdown control through the first PWM interface and the first TACH interface according to the overtemperature information. The fan is cooperatively controlled through the BMC module and the CPLD module, the situation that when the BMC module is abnormal suddenly, the rotating speed of the cooling fan cannot be normally controlled, the cooling fan cannot reach the expected state, and catastrophic events occur to a server mainboard is avoided, and the reliability and safety of a server product are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a fan speed control method and system based on CPLD and BMC. Background Art

[0002] In recent years, with the deepening of informatization in various industries, the popularity of server applications has also been increasing, bringing with it issues such as information security and product reliability.

[0003] In the design of server motherboards, the commonly used heat dissipation method is to use cooling fans to reduce the system temperature to avoid failure or burning of components due to excessive temperature. For existing server heat dissipation designs, the BMC module is used to directly control the cooling fan based on the data read from the temperature sensor inside the server; however, during long-term operation of the system, the BMC module may become abnormal and fail, and the cooling fan cannot be controlled. The cooling fan cannot reach the expected state, causing catastrophic events on the server motherboard, posing a major safety hazard. Summary of the invention

[0004] The purpose of the present application is to provide a fan speed control method and system based on CPLD and BMC, by which the fan is controlled collaboratively by the BMC module and the CPLD module, so as to avoid the failure of the BMC module to control the cooling fan speed normally when an abnormality occurs, and the cooling fan cannot reach the expected state, resulting in a catastrophic event on the server motherboard, thereby improving the reliability and safety of server products.

[0005] In the first aspect, the present application provides a fan speed control method based on CPLD and BMC, the method is applied to a fan speed control system based on CPLD and BMC, the system includes: a CPLD module, a BMC module, and a cooling fan; wherein the CPLD module is connected to the cooling fan through a first PWM interface and a first TACH interface; the BMC module is connected to the CPLD module through a second PWM interface, a second TACH interface, a first GPIO interface, and an over-temperature information interface; the BMC module is also connected to a temperature sensor on a server motherboard through an I2C interface; the BMC module is also connected to a CPU through a second GPIO interface; the CPLD module is connected to the CPU through a third GPIO interface; the method includes: the BMC module transmits an ACTIVE signal to the CPLD module through the first GPIO interface to indicate whether the BMC module is operating normally; when the ACTIVE signal indicates that the BMC When the module is working normally, the BMC module reads the temperature information of each module collected by the temperature sensor on the server mainboard through the I2C interface, and monitors and controls the rotation speed of the cooling fan through the second PWM interface and the second TACH interface according to the read temperature information; the BMC module also receives the first over-temperature information sent by the CPU through the second GPIO interface, monitors and records the first over-temperature information for user maintenance and viewing; and sends the first over-temperature information to the CPLD module through the over-temperature information interface, and performs fan control or shutdown control according to the first over-temperature information; when the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module receives the first over-temperature information reported by the CPU through the third GPIO interface, and performs corresponding speed control on the cooling fan or server shutdown control through the first PWM interface and the first TACH interface according to the first over-temperature information.

[0006] Furthermore, the above system also includes: a power regulator module; a CPLD module is connected to the power regulator module through a third GPIO interface; the method also includes: the CPLD module collects the second over-temperature information sent by the power regulator module, and sends the second over-temperature information to the BMC module; when the ACTIVE signal indicates that the BMC module is working normally, the BMC module performs fan control or shutdown control according to the second over-temperature information; when the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module performs fan control or shutdown control according to the second over-temperature information.

[0007] Furthermore, the above-mentioned first over-temperature information and the second over-temperature information both correspond to alarm levels; the step of performing fan control or shutdown control according to the over-temperature information includes: when the alarm level corresponding to the over-temperature information is high risk, the BMC module controls the server to shut down; when the alarm level corresponding to the over-temperature information is low risk, the BMC module performs corresponding speed control on the cooling fan through the second PWM interface and the second TACH interface; when the alarm level corresponding to the over-temperature information is high risk, the CPLD module controls the server to shut down; when the alarm level corresponding to the over-temperature information is low risk, the CPLD module performs corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface.

[0008] Furthermore, the above-mentioned BMC module performs corresponding speed control steps on the cooling fan through the second PWM interface and the second TACH interface, including: the BMC module sends the fan control signal to the CPLD module through the second PWM interface and the second TACH interface, so that the CPLD module outputs the fan control signal to the cooling fan through the first PWM interface and the first TACH interface to achieve control of the fan speed.

[0009] Furthermore, the above-mentioned CPLD module includes a PWM control module. When the alarm level corresponding to the over-temperature information is low risk, the PWM control module outputs a PWM fan control signal with a duty cycle of 70% by default, or outputs the PWM fan control signal with a matching set duty cycle according to a plurality of different temperature range levels under low risk; when the alarm level corresponding to the over-temperature information is high risk, the PWM fan control signal is output with a duty cycle of 100%.

[0010] Furthermore, after the step of transmitting an ACTIVE signal for indicating whether the BMC module is operating normally to the CPLD module through the first GPIO interface, the step further includes: the CPLD module determines the working state of the BMC module according to the state of the ACTIVE signal, and when the ACTIVE signal indicates that the BMC module is operating normally, the signal interface of the cooling fan is switched to be controlled by the BMC module; when the ACTIVE signal indicates that the BMC module is operating abnormally, the signal interface of the cooling fan is switched to be controlled by the internal PWM control module.

[0011] Furthermore, when the ACTIVE signal is a high-level signal, it indicates that the BMC module is working normally; when the ACTIVE signal is a low-level signal, it indicates that the BMC module is working abnormally.

[0012] Furthermore, the temperature information collected by the temperature sensor on the server mainboard includes: temperature information corresponding to a plurality of preset key point positions on the mainboard.

[0013] In the second aspect, the present application also provides a fan speed control system based on CPLD and BMC, the system comprising: a CPLD module, a BMC module, and a cooling fan; wherein the CPLD module is connected to the cooling fan via a first PWM interface and a first TACH interface; the BMC module is connected to the CPLD module via a second PWM interface, a second TACH interface, a first GPIO interface, and an over-temperature information interface; the BMC module is also connected to a temperature sensor on a server motherboard via an I2C interface; the BMC module is also connected to a CPU via a second GPIO interface; the CPLD module is connected to the CPU via a third GPIO interface; the BMC module is used to transmit an ACTIVE signal to the CPLD module via the first GPIO interface to indicate whether the BMC module is operating normally; the BMC module is also used to indicate whether the BMC module is operating normally when the ACTIVE signal indicates that the BMC module is operating normally. When working, the temperature information collected by the temperature sensor on the server mainboard is read through the I2C interface, and the rotation speed of the cooling fan is monitored and controlled through the second PWM interface and the second TACH interface according to the read temperature information; the BMC module is also used to receive the first over-temperature information sent by the CPU through the second GPIO interface, monitor and record the first over-temperature information for user maintenance and viewing; and send the first over-temperature information to the CPLD module through the over-temperature information interface, and perform fan control or shutdown control according to the first over-temperature information; the CPLD module is used to receive the first over-temperature information reported by the CPU through the third GPIO interface when the ACTIVE signal indicates that the BMC module is working abnormally, and according to the first over-temperature information, perform corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface, or perform server shutdown control.

[0014] Furthermore, the above system also includes: a power regulator module; a CPLD module is connected to the power regulator module through a third GPIO interface; the CPLD module is also used to collect the second over-temperature information sent by the power regulator module, and send the second over-temperature information to the BMC module; when the ACTIVE signal indicates that the BMC module is working normally, the BMC module is also used to perform fan control or shutdown control according to the second over-temperature information; when the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module is also used to perform fan control or shutdown control according to the second over-temperature information.

[0015] The present application provides a fan speed control method and system based on CPLD and BMC, wherein the method is applied to a fan speed control system based on CPLD and BMC, and the system comprises: a CPLD module, a BMC module, and a cooling fan; wherein the CPLD module is connected to the cooling fan via a first PWM interface and a first TACH interface; the BMC module is connected to the CPLD module via a second PWM interface, a second TACH interface, a first GPIO interface, and an over-temperature information interface; the BMC module is also connected to a temperature sensor on a server motherboard via an I2C interface; the BMC module is also connected to a CPU via a second GPIO interface; the CPLD module is connected to the CPU via a third GPIO interface; the method comprises: the BMC module transmits an ACTIVE signal for indicating whether the BMC module is operating normally to the CPLD module via the first GPIO interface; when the ACTIVE signal indicates that the BMC When the module is working normally, the BMC module reads the temperature information of each module collected by the temperature sensor on the server motherboard through the I2C interface, and monitors and controls the speed of the cooling fan through the second PWM interface and the second TACH interface according to the read temperature information; the BMC module also receives the first over-temperature information sent by the CPU through the second GPIO interface, monitors and records the first over-temperature information for user maintenance and viewing; and sends the first over-temperature information to the CPLD module through the over-temperature information interface, and performs fan control or shutdown control according to the first over-temperature information; when the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module receives the first over-temperature information reported by the CPU through the third GPIO interface, and performs corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface according to the first over-temperature information, or performs server shutdown control. The present application controls the fan in coordination with the BMC module and the CPLD module to avoid the failure to normally control the speed of the cooling fan when the BMC module suddenly fails, and the cooling fan cannot reach the desired state, resulting in a catastrophic event on the server motherboard, thereby improving the reliability and safety of server products. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 A structural diagram of a fan speed control system based on CPLD and BMC provided in an embodiment of the present application;

[0018] Figure 2 A flow chart of a fan speed control method based on CPLD and BMC provided in an embodiment of the present application;

[0019] Figure 3 A structural diagram of another fan speed control system based on CPLD and BMC provided in an embodiment of the present application;

[0020] Figure 4 This is a structural diagram of another fan speed control system based on CPLD and BMC provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0022] The existing server heat dissipation design method uses the BMC module to directly control the cooling fan based on the data read from the temperature sensor inside the server. However, during long-term operation of the system, the BMC module may become abnormal and fail, and the cooling fan cannot be controlled. The cooling fan cannot reach the desired state, causing a catastrophic event on the server motherboard, posing a major safety hazard.

[0023] Based on this, an embodiment of the present application provides a method for fan speed control based on CPLD (Complex Programmable Logic Device) in collaboration with BMC (Baseboard Management Controller), thereby solving the aforementioned problems existing in the prior art. To facilitate understanding of this embodiment, a method disclosed in an embodiment of the present application is first introduced in detail.

[0024] The present application embodiment provides a fan speed control method based on CPLD and BMC, and the method is applied to a fan speed control system based on CPLD and BMC, see Figure 1As shown, the system includes: a CPLD module 11, a BMC module 12, and a cooling fan 13; wherein the CPLD module 11 is connected to the cooling fan 13 through a first PWM interface (such as PWM1 in the figure) and a first TACH interface (such as TACH1 in the figure); the BMC module 12 is connected to the CPLD module 11 through a second PWM interface (such as PWM2 in the figure), a second TACH interface (such as TACH2 in the figure), a first GPIO interface (such as GPIO1 in the figure), and an over-temperature information interface; the BMC module 12 is also connected to a temperature sensor 14 on a server motherboard through an I2C interface; the BMC module 12 is also connected to a CPU 15 through a second GPIO interface (such as GPIO2 in the figure); the CPLD module 11 is also connected to the CPU 15 through a third GPIO interface (such as GPIO3 in the figure); see Figure 2 The flowchart of the fan speed control method based on CPLD and BMC is shown, and the method includes the following steps:

[0025] Step S202: The BMC module transmits an ACTIVE signal to the CPLD module through the first GPIO interface, which is used to indicate whether the BMC module is operating normally.

[0026] The above ACTIVE signal uses two different digital identifiers or character identifiers to indicate the normal operation and abnormal operation of the BMC module. When the ACTIVE signal is the first identifier, it indicates that the BMC module is working normally; when the ACTIVE signal is the second identifier, it indicates that the BMC module is working abnormally. The first identifier and the second identifier can be different numbers or characters, for example, 1 and 0 are used to indicate normal operation and abnormal operation respectively; or Y and N are used to indicate normal operation and abnormal operation respectively.

[0027] Step S204, when the ACTIVE signal indicates that the BMC module is working normally, the BMC module reads the temperature information collected by the temperature sensor on the server mainboard through the I2C interface, and monitors and controls the speed of the cooling fan through the second PWM interface and the second TACH interface according to the read temperature information; the BMC module also receives the first over-temperature information sent by the CPU through the second GPIO interface, monitors and records the first over-temperature information for user maintenance and viewing; and sends the first over-temperature information to the CPLD module through the over-temperature information interface, and performs fan control or shutdown control according to the first over-temperature information;

[0028] The temperature sensor on the server mainboard is used to collect temperature information corresponding to a plurality of preset key points on the mainboard in real time, that is, temperature information of each module inside the server.

[0029] When the CPU determines that an over-temperature event has occurred based on the temperature information corresponding to the positions of multiple preset key points, it sends the first over-temperature information to the BMC module so that the BMC module can make a decision, such as performing fan control or shutdown control based on the first over-temperature information. The BMC module also sends the first over-temperature information to the CPLD module to facilitate fan control or shutdown control through the CPLD module when an abnormality occurs in the BMC module itself, that is, the following steps:

[0030] Step S206, when the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module receives the first over-temperature information reported by the CPU through the third GPIO interface, and according to the first over-temperature information, performs corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface, or performs server shutdown control.

[0031] The fan speed control method based on CPLD and BMC provided in the embodiment of the present application controls the fan through the collaborative control of the BMC module and the CPLD module, so as to avoid the situation where the BMC module fails to control the cooling fan speed normally, the cooling fan fails to reach the expected state, and a catastrophic event occurs on the server motherboard, thereby improving the reliability and safety of the server products.

[0032] The embodiment of the present application also provides another fan speed control method based on CPLD and BMC. This method is implemented on the basis of the previous embodiment, focusing on describing a new system structure and a corresponding control method.

[0033] See also Figure 3 As shown, the above system also includes: a power regulator module 16; the CPLD module 11 is connected to the power regulator module 16 via the third GPIO interface; the power regulator module 16 is a digital power controller that supplies power to the CPU, including a voltage regulator for the memory and the CPU, and has internal sensors that can detect temperature, voltage, current and other information.

[0034] The above method also includes: a CPLD module collects second over-temperature information sent by the power regulator module and sends the second over-temperature information to the BMC module; when the ACTIVE signal indicates that the BMC module is working normally, the BMC module performs fan control or shutdown control according to the second over-temperature information; when the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module performs fan control or shutdown control according to the second over-temperature information.

[0035] Furthermore, the above-mentioned first over-temperature information and second over-temperature information both correspond to alarm levels; the step in which the BMC module performs fan control or shutdown control according to the over-temperature information includes: when the alarm level corresponding to the over-temperature information is high risk, the BMC module controls the server to shut down; when the alarm level corresponding to the over-temperature information is low risk, the BMC module performs corresponding speed control on the cooling fan through the second PWM interface and the second TACH interface; when the alarm level corresponding to the over-temperature information is high risk, the CPLD module controls the server to shut down; when the alarm level corresponding to the over-temperature information is low risk, the CPLD module performs corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface.

[0036] It should be noted that the above alarm level can be determined based on the relationship between the detected temperature and the preset temperature threshold. For example, if the detected temperature is greater than the preset temperature threshold, the alarm level is determined to be high risk. If the detected temperature is less than or equal to the preset temperature threshold, the alarm level is determined to be low risk. In the low-risk temperature range, different temperature levels can be divided to further refine the fan control method.

[0037] By performing the above control according to different risk levels, the temperature control of the server working environment can be achieved more reasonably and accurately to maintain the high performance operation of the server.

[0038] Furthermore, the BMC module performs corresponding speed control steps on the cooling fan through the second PWM interface and the second TACH interface, including: the BMC module sends the fan control signal to the CPLD module through the second PWM interface and the second TACH interface, so that the CPLD module outputs the fan control signal to the cooling fan through the first PWM interface and the first TACH interface to achieve control of the fan speed. The CPLD module includes a PWM control module, which outputs the PWM fan control signal with a 70% duty cycle by default when the alarm level corresponding to the over-temperature information is low risk, or outputs the PWM fan control signal with a matching set duty cycle according to a plurality of different temperature range levels under low risk; when the alarm level corresponding to the over-temperature information is high risk, the PWM fan control signal is output with a 100% duty cycle to achieve precise fan speed regulation.

[0039] Furthermore, after the step of transmitting an ACTIVE signal for indicating whether the BMC module is operating normally to the CPLD module through the first GPIO interface, the step further includes: the CPLD module determines the working state of the BMC module according to the state of the ACTIVE signal, and when the ACTIVE signal indicates that the BMC module is operating normally, the signal interface of the cooling fan is switched to be controlled by the BMC module; when the ACTIVE signal indicates that the BMC module is operating abnormally, the signal interface of the cooling fan is switched to be controlled by the internal PWM control module.

[0040] The embodiment of the present application is based on the Feiteng S5000C server motherboard, adopts the Feiteng E2000S BMC management chip, and the CPLD module adopts the EF3L90CG400B. On the one hand, it is used for signal level conversion so that the signal can communicate normally before each chip, and on the other hand, it controls the power-on timing and power control of the server motherboard, and realizes specific logical functions according to requirements. It has the characteristics of instantaneous power-on, non-volatile storage, and high I / O count; the voltage regulator adopts RAA229126, supports SMBUS voltage regulation function, zero-delay synthetic current control, and has high-precision current sensing and precise over-current protection functions.

[0041] The fan speed control method based on CPLD and BMC provided in the embodiment of the present application mainly includes a CPLD module, a BMC module, a power regulator module, and a cooling fan; wherein the BMC module has a PWM and a TACH interface for adjusting and detecting the speed of the cooling fan, and is connected to the CPLD; the BMC module reads the motherboard temperature sensor information through the I2C interface, and also receives the memory and CPU over-temperature alarm information through the GPIO interface. If an over-temperature event occurs, the BMC module reports the over-temperature information to the CPLD and is responsible for adjusting the speed of the cooling fan; the BMC module also has an ACTIVE signal for indicating that the BMC system is operating normally, and is connected to the CPLD; the CPLD module includes a PWM control module; the CPLD module is responsible for collecting the over-temperature information reported by the CPU, the power regulator module and the BMC module, and synchronizing the information to the BMC module for adjusting the speed of the cooling fan; the ACTIVE signal of the BMC module is used to judge whether the BMC module is operating normally, if it is operating normally, the motherboard fan is controlled by the BMC module, and if it is operating abnormally, the CPLD module takes over the fan control.

[0042] In the embodiment of the present application, the fan is controlled collaboratively by the BMC module and the CPLD module to avoid the situation where, when a sudden abnormality occurs in the BMC module, the speed of the cooling fan cannot be normally controlled, and the cooling fan cannot reach a desired state, causing a catastrophic event on the server motherboard, thereby improving the reliability and safety of the server product.

[0043] Based on the above method embodiment, the present application embodiment also provides a fan speed control system based on CPLD and BMC, see Figure 1 As shown, the system includes: a CPLD module 11, a BMC module 12, and a cooling fan 13; wherein the CPLD module 11 is connected to the cooling fan 13 via a first PWM interface and a first TACH interface; the BMC module 12 is connected to the CPLD module 11 via a second PWM interface, a second TACH interface, a first GPIO interface, and an over-temperature information interface; the BMC module 12 is also connected to a temperature sensor 14 on a server motherboard via an I2C interface; the BMC module 12 is also connected to a CPU 15 via a second GPIO interface; and the CPLD module 11 is also connected to a CPU 15 via a third GPIO interface.

[0044] The BMC module 12 is used to transmit an ACTIVE signal to the CPLD module 11 through the first GPIO interface, which is used to indicate whether the BMC module is operating normally. The BMC module 12 is also used to read the temperature information collected by the temperature sensor 14 on the server mainboard through the I2C interface when the ACTIVE signal indicates that the BMC module 12 is operating normally, and monitor and control the rotation speed of the cooling fan 13 through the second PWM interface and the second TACH interface according to the read temperature information. The BMC module 12 is also used to receive the first over-temperature information sent by the CPU 15 through the second GPIO interface, monitor and record the first over-temperature information, so as to provide it for user maintenance and viewing; and send the first over-temperature information to the CPLD module 11 through the over-temperature information interface, and perform fan control or shutdown control according to the first over-temperature information. The CPLD module 11 is used to receive the first over-temperature information reported by the CPU 15 through the third GPIO interface when the ACTIVE signal indicates that the BMC module 12 is operating abnormally, and perform corresponding speed control on the cooling fan 13 through the first PWM interface and the first TACH interface according to the first over-temperature information, or perform server shutdown control.

[0045] See also Figure 3 As shown, the above system also includes: a power regulator module 16; a CPLD module 11 is connected to the power regulator module 16 via a third GPIO interface; the CPLD module 11 is also used to collect the second over-temperature information sent by the power regulator module 16, and send the second over-temperature information to the BMC module 12; when the ACTIVE signal indicates that the BMC module is working normally, the BMC module 12 is also used to perform fan control or shutdown control according to the second over-temperature information; when the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module 11 is also used to perform fan control or shutdown control according to the second over-temperature information.

[0046] Figure 4The power regulator module 16 includes a memory VR and a power VR. The thick line in the figure represents the over-temperature information transmission line. The specific working process can be referred to the content of the above method embodiment, which will not be repeated here.

[0047] The system provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the system, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0048] In the description of the present application, it should be noted that the terms "first", "second" and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0049] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A fan speed control method based on CPLD and BMC, characterized in that: The method is applied to a fan speed control system based on CPLD and BMC, and the system comprises: a CPLD module, a BMC module, and a cooling fan; wherein the CPLD module is connected to the cooling fan through a first PWM interface and a first TACH interface; the BMC module is connected to the CPLD module through a second PWM interface, a second TACH interface, a first GPIO interface, and an over-temperature information interface; the BMC module is also connected to a temperature sensor on a server mainboard through an I2C interface; the BMC module is also connected to a CPU through a second GPIO interface; the CPLD module is connected to the CPU through a third GPIO interface; the method comprises: The BMC module transmits an ACTIVE signal, which is used to indicate whether the BMC module is operating normally, to the CPLD module through the first GPIO interface; When the ACTIVE signal indicates that the BMC module is operating normally, the BMC module reads the temperature information collected by the temperature sensor on the server mainboard through the I2C interface, and monitors and controls the rotation speed of the cooling fan through the second PWM interface and the second TACH interface according to the read temperature information; the BMC module also receives the first over-temperature information sent by the CPU through the second GPIO interface, monitors and records the first over-temperature information for user maintenance and viewing; and sends the first over-temperature information to the CPLD module through the over-temperature information interface, and performs fan control or shutdown control according to the first over-temperature information; When the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module receives the first over-temperature information reported by the CPU through the third GPIO interface, and according to the first over-temperature information, performs corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface, or performs server shutdown control.

2. The method according to claim 1, characterized in that The system further includes: a power regulator module; the CPLD module is connected to the power regulator module via the third GPIO interface; the method further includes: The CPLD module collects the second over-temperature information sent by the power regulator module, and sends the second over-temperature information to the BMC module; When the ACTIVE signal indicates that the BMC module is operating normally, the BMC module performs fan control or shutdown control according to the second over-temperature information; When the ACTIVE signal indicates that the BMC module operates abnormally, the CPLD module performs fan control or shutdown control according to the second over-temperature information.

3. The method according to claim 2, characterized in that The alarm levels corresponding to the first over-temperature information and the second over-temperature information; and the step of performing fan control or shutdown control according to the over-temperature information, comprising: When the alarm level corresponding to the over-temperature information is high risk, the BMC module controls the server to shut down; when the alarm level corresponding to the over-temperature information is low risk, the BMC module performs corresponding speed control on the cooling fan through the second PWM interface and the second TACH interface; When the alarm level corresponding to the over-temperature information is high risk, the CPLD module controls the server to shut down; when the alarm level corresponding to the over-temperature information is low risk, the CPLD module performs corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface.

4. The method according to claim 3, characterized in that The step of the BMC module performing corresponding speed control on the cooling fan through the second PWM interface and the second TACH interface includes: The BMC module sends the fan control signal to the CPLD module through the second PWM interface and the second TACH interface, so that the CPLD module outputs the fan control signal to the cooling fan through the first PWM interface and the first TACH interface to control the fan speed.

5. The method according to claim 4, characterized in that The CPLD module includes a PWM control module. When the alarm level corresponding to the over-temperature information is low risk, the PWM control module outputs a PWM fan control signal with a duty cycle of 70% by default, or outputs the PWM fan control signal with a matching set duty cycle according to a plurality of different temperature range levels under low risk; when the alarm level corresponding to the over-temperature information is high risk, the PWM control signal is output with a duty cycle of 100%.

6. The method according to claim 5, characterized in that After the step of transmitting, by the BMC module, to the CPLD module through the first GPIO interface, an ACTIVE signal for indicating whether the BMC module is operating normally, the method further includes: The CPLD module determines the working state of the BMC module according to the state of the ACTIVE signal. When the ACTIVE signal indicates that the BMC module is working normally, the signal interface of the cooling fan is switched to be controlled by the BMC module; when the ACTIVE signal indicates that the BMC module is working abnormally, the signal interface of the cooling fan is switched to be controlled by the internal PWM control module.

7. The method according to claim 1, characterized in that When the ACTIVE signal is a high-level signal, it indicates that the BMC module works normally; when the ACTIVE signal is a low-level signal, it indicates that the BMC module works abnormally.

8. The method according to claim 1, characterized in that The temperature information collected by the temperature sensor on the server mainboard includes: temperature information corresponding to a plurality of preset key point positions on the mainboard.

9. A fan speed control system based on CPLD and BMC, characterized in that: The system comprises: a CPLD module, a BMC module, and a cooling fan; wherein the CPLD module is connected to the cooling fan via a first PWM interface and a first TACH interface; the BMC module is connected to the CPLD module via a second PWM interface, a second TACH interface, a first GPIO interface, and an over-temperature information interface; the BMC module is also connected to a temperature sensor on a server mainboard via an I2C interface; the BMC module is also connected to a CPU via a second GPIO interface; the CPLD module is connected to the CPU via a third GPIO interface; The BMC module is used to transmit an ACTIVE signal, which is used to indicate whether the BMC module is operating normally, to the CPLD module through the first GPIO interface; The BMC module is further configured to read temperature information collected by a temperature sensor on a server mainboard through an I2C interface when an ACTIVE signal indicates that the BMC module is operating normally, and monitor and control the rotation speed of the cooling fan through the second PWM interface and the second TACH interface according to the read temperature information; The BMC module is further configured to receive the first over-temperature information sent by the CPU through the second GPIO interface, monitor and record the first over-temperature information for user maintenance and viewing; and send the first over-temperature information to the CPLD module through the over-temperature information interface, and perform fan control or shutdown control according to the first over-temperature information; The CPLD module is used to receive the first over-temperature information reported by the CPU through the third GPIO interface when the ACTIVE signal indicates that the BMC module is working abnormally, and according to the first over-temperature information, perform corresponding speed control on the cooling fan through the first PWM interface and the first TACH interface, or perform server shutdown control.

10. The system according to claim 9, characterized in that The system further comprises: a power regulator module; the CPLD module is connected to the power regulator module via the third GPIO interface; The CPLD module is further used to collect the second over-temperature information sent by the power regulator module, and send the second over-temperature information to the BMC module; When the ACTIVE signal indicates that the BMC module is operating normally, the BMC module is further configured to perform fan control or shutdown control according to the second over-temperature information; When the ACTIVE signal indicates that the BMC module is working abnormally, the CPLD module is further configured to perform fan control or shutdown control according to the second over-temperature information.

Citation Information

Patent Citations

  • Fan control method and system and related components

    CN113719461A

  • Server management method and device, equipment and medium

    CN114936125A

  • Heat dissipation regulation and control circuit of server and server

    CN115509330A

  • Heat dissipation control device based on CPLD

    CN210639561U

  • Fan rotational speed control system and method for controlling rotational speed of fan

    US20140142764A1

Cited By

  • Test method, device and equipment of temperature supervision system, medium and program product

    CN120429242A