A method, device and equipment for processing fan speed anomaly
By using CPLD to disable fan power monitoring and having the BMC automatically restart the fan, the problem of server loss caused by abnormal fan speed was solved, achieving automated processing without manual intervention and reducing costs.
Patent Information
- Application Number
- CN202111276897.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2041-10-29
AI Technical Summary
In existing technologies, when the fan speed is abnormal, maintenance personnel need to manually restart it. Failure to handle it in time may cause the fan to burn out, the server to overheat and shut down, and manual operation is costly.
After receiving an abnormal fan speed signal from the BMC, the CPLD directly determines that the fan power status is normal and disables monitoring; after the fan restarts, the BMC resumes monitoring to avoid abnormal power failure protection mechanism and automatically restart the fan.
This avoids the server power shutting down during fan restart, reducing the need for on-site manual operation by maintenance personnel and lowering labor and time costs.
Smart Images

Figure CN114153656B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of handling abnormal fan speeds, and in particular to a method, apparatus, and equipment for handling abnormal fan speeds. Background Technology
[0002] During server operation, the high power consumption of CPLDs (Complex Programmable Logic Devices) and their various configurations can cause high chassis temperatures, requiring multiple fans to meet cooling needs. When fans exhibit abnormal speeds—meaning the server's BMC (Baseboard Manager Controller) detects a discrepancy between the preset fan speed and the actual operating speed—the existing solution involves the BMC notifying maintenance personnel. These personnel then locate the machine and manually restart the fan to restore normal operation. However, if maintenance personnel fail to detect the BMC's alarm in time and neglect manual fan restart maintenance for an extended period, the fan may burn out, leading to server overheating and shutdown, disrupting customer services. Furthermore, this method requires maintenance personnel to physically visit the data center to manually hot-swap the fan, resulting in high labor and time costs. Summary of the Invention
[0003] The purpose of this invention is to provide a method, apparatus, and equipment for handling abnormal fan speeds. This solution eliminates the need for maintenance personnel to manually hot-swap the fans in the computer room, resulting in lower labor and time costs.
[0004] To solve the above-mentioned technical problems, the present invention provides a method for handling abnormal fan speed, applied to a device, the device including a CPLD and a BMC, the CPLD being connected to the BMC and the fan respectively; the BMC being connected to the fan and used to control the fan rotation;
[0005] The methods for handling abnormal fan speed include:
[0006] After receiving the first signal indicating abnormal fan speed sent by the BMC when it determines that the fan speed is abnormal, the CPLD directly determines the power supply status of the fan as normal.
[0007] After receiving the second signal indicating that the fan speed is normal after the BMC restarts the fan, the system determines whether the power supply status of the fan is normal based on the detected fan power signal.
[0008] Preferably, before the CPLD directly determines the power supply status of the fan to be normal after receiving the first signal indicating an abnormal fan speed sent by the BMC when determining that the fan speed is abnormal, the CPLD further includes:
[0009] The BMC obtains the actual speed of the fan;
[0010] Determine whether the actual rotational speed is the same as the preset rotational speed corresponding to the PWM signal currently being output;
[0011] If the actual rotational speed is different from the preset rotational speed, a first signal indicating that the fan speed is abnormal is sent to the CPLD.
[0012] If the actual rotational speed is the same as the preset rotational speed, a second signal indicating that the fan speed is normal is sent to the CPLD.
[0013] Preferably, the BMC obtains the actual speed of the fan by:
[0014] The BMC reads the tachometer signal of the fan;
[0015] The actual speed of the fan is determined based on the tachometer signal.
[0016] Preferably, the BMC obtains the actual speed of the fan by:
[0017] The BMC periodically acquires the actual rotational speed of the fan.
[0018] Preferably, after receiving the first signal indicating an abnormal fan speed sent by the BMC when determining that the fan speed is abnormal, the CPLD, after directly determining the power supply status of the fan as normal, further includes:
[0019] The BMC is informed that it has directly determined the power status of the fan to be normal;
[0020] Upon receiving notification from the CPLD, the BMC initiates the process of restarting the fan.
[0021] Preferably, the device further includes a controllable switch disposed between the BMC and the fan, wherein the BMC restarts the fan, including:
[0022] The BMC controls the controllable switch to first open and then close.
[0023] Preferably, the controllable switch is an Efuse.
[0024] Preferred options also include:
[0025] The BMC generates an alarm when the fan speed is abnormal.
[0026] To address the aforementioned technical problems, the present invention also provides a CPLD, comprising:
[0027] Memory, used to store computer programs;
[0028] A processor is configured to execute the computer program to implement the steps of the above-described method for handling abnormal fan speed.
[0029] To address the aforementioned technical problems, the present invention also provides a device, including the aforementioned CPLD, and further comprising:
[0030] The BMC is used to control the rotation of the fan. When it is determined that the fan speed is abnormal, it sends a first signal indicating that the fan speed is abnormal to the CPLD. After restarting the fan, it sends a second signal indicating that the fan speed is normal to the CPLD.
[0031] This application provides a method, apparatus, and device for handling abnormal fan speed. In this solution, when the CPLD receives a first signal from the BMC indicating an abnormal fan speed, it directly determines the fan's power supply status as normal, thereby disabling monitoring of the fan's power supply. After receiving a second signal from the BMC indicating that the fan speed is normal after restarting the fan, the CPLD determines whether the fan's power supply status is normal based on the detected fan power supply signal and resumes monitoring of the fan's power supply. This solution, after an abnormal fan speed, first disables the CPLD's monitoring of the fan's power supply before the BMC restarts the fan, preventing the CPLD from detecting an abnormal fan power supply status during the fan restart process and shutting down the server power, thus avoiding losses to customer services running on the server. Furthermore, this solution eliminates the need for maintenance personnel to manually hot-swap the fan in the server room, resulting in lower labor and time costs. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 A flowchart illustrating a method for handling abnormal fan speed provided by the present invention;
[0034] Figure 2 This is a schematic diagram of the structure of a CPLD provided by the present invention. Detailed Implementation
[0035] The core of this invention is to provide a method, apparatus, and equipment for handling abnormal fan speeds. This solution eliminates the need for maintenance personnel to manually hot-swap the fans in the server room, resulting in lower labor and time costs.
[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] Figure 1 This invention provides a flowchart of a method for handling abnormal fan speed. The method is applied to a device, which includes a CPLD and a BMC. The CPLD is connected to both the BMC and the fan. The BMC is connected to the fan and is used to control the fan's rotation.
[0038] Troubleshooting methods for abnormal fan speed include:
[0039] S11: After receiving the first signal indicating abnormal fan speed sent by the BMC when it determines that the fan speed is abnormal, the CPLD directly determines the power supply status of the fan as normal.
[0040] S12: After receiving the second signal sent by the BMC after the fan restart, indicating that the fan speed is normal, determine whether the power supply status of the fan is normal based on the detected fan power supply signal.
[0041] In existing technologies, when the BMC detects an abnormal fan speed, it notifies the maintenance personnel. The maintenance personnel then manually restart the fan to restore it to normal. However, if the maintenance personnel fail to detect the BMC alarm in time and do not manually restart the fan for an extended period, the fan may burn out, causing the server to overheat and shut down. This can result in irreparable damage to the customer's services running on the server. Furthermore, this method requires maintenance personnel to manually hot-swap the fan in the data center, which is costly in terms of labor and time. In contrast, this application resolves the abnormality by automatically restarting the fan, eliminating the need for maintenance personnel to manually hot-swap the fan in the data center, thus reducing labor and time costs.
[0042] Specifically, when the fan speed becomes abnormal, the BMC restarts the fan. During the restart process, the CPLD's abnormal power-down protection mechanism is triggered. This means that the CPLD detects a drop in the fan's power supply without actively pulling it down. In this case, the CPLD determines the fan's power status is abnormal and will actively shut down the server, preventing it from powering on again. To avoid service interruptions caused by the abnormal power-down protection mechanism, the CPLD's detection of the fan's power supply needs to be disabled after the fan speed becomes abnormal and before the fan restarts. That is, regardless of whether the fan's power supply is in a normal or abnormal state, it should be directly determined to be in a normal state.
[0043] After the fan restarts, once the fan speed is normal, the CPLD no longer masks the detection of the fan's power status. That is, if the fan's power signal is detected to be normal, the power status of the fan is determined to be normal; if the fan's power signal is detected to be abnormal, the power status of the fan is determined to be abnormal.
[0044] It should be noted that this method can be applied to server products or other products with abnormal power failure protection mechanisms; no special limitation is made here.
[0045] In summary, this application provides a method for handling abnormal fan speeds. In this method, when the CPLD receives a first signal from the BMC indicating an abnormal fan speed, it directly determines the fan's power supply status as normal, thus masking the monitoring of the fan's power supply. After receiving a second signal from the BMC indicating that the fan speed is normal after a fan restart, the CPLD determines whether the fan's power supply status is normal based on the detected power supply signal and resumes monitoring of the fan's power supply. This solution, after an abnormal fan speed, first masks the CPLD's monitoring of the fan's power supply before the BMC restarts the fan, preventing the CPLD from detecting an abnormal fan power supply status during the restart process and shutting down the server power, thereby avoiding losses to the customer's services running on the server. Furthermore, this solution eliminates the need for maintenance personnel to manually hot-swap the fan in the data center, resulting in lower labor and time costs.
[0046] Based on the above embodiments:
[0047] As a preferred embodiment, before the CPLD directly determines the fan's power supply status to be normal after receiving the first signal indicating an abnormal fan speed sent by the BMC when determining that the fan speed is abnormal, the CPLD further includes:
[0048] BMC obtains the actual fan speed;
[0049] Determine whether the actual rotational speed is the same as the preset rotational speed corresponding to the PWM (Pulse Width Modulation) signal currently being output;
[0050] If the actual speed is different from the preset speed, a first signal indicating that the fan speed is abnormal is sent to the CPLD.
[0051] If the actual speed is the same as the preset speed, a second signal indicating that the fan speed is normal is sent to the CPLD.
[0052] In this embodiment, the BMC (Browser Control Center) determines whether the fan speed is abnormal. A speed higher or lower than the preset speed is considered abnormal, and the result is sent to the CPLD. This result can be transmitted via the CPLD's GPIO (General-purpose input / output)_0 interface. For example, when the actual fan speed matches the preset speed, the BMC sends a low level to the CPLD's GPIO_0 interface as a second signal indicating normal fan speed; when the actual fan speed differs from the preset speed, the BMC sends a high level to the CPLD's GPIO_0 interface as a first signal indicating abnormal fan speed.
[0053] In summary, it is easier to implement the BMC method to determine whether the actual fan speed matches the preset speed and send the result to the CPLD.
[0054] As a preferred embodiment, the BMC obtains the actual fan speed, including:
[0055] BMC reads the fan's tachometer signal;
[0056] The actual fan speed is determined based on the tachometer signal.
[0057] In this embodiment, the actual fan speed is determined by the tachometer signal. Specifically, the tachometer signal represents the fan's current operating speed, i.e., the actual speed. Therefore, by reading the fan's tachometer signal through the BMC, the actual fan speed can be determined from the tachometer signal, making it more convenient and faster to obtain the actual fan speed.
[0058] As a preferred embodiment, the BMC obtains the actual fan speed, including:
[0059] The BMC periodically obtains the actual fan speed.
[0060] In this embodiment, the fan speed is detected periodically. Therefore, the actual fan speed also needs to be acquired periodically and compared with the preset speed to determine whether the speed is abnormal. The acquisition period depends on the actual situation and is not specifically limited in this embodiment.
[0061] In a preferred embodiment, after receiving the first signal indicating an abnormal fan speed sent by the BMC when determining that the fan speed is abnormal, the CPLD directly determines the power supply status of the fan to be normal, and further includes:
[0062] Inform BMC that the fan's power status has been directly determined to be normal;
[0063] After receiving notification from the CPLD, the BMC initiates the fan restart process.
[0064] In this embodiment, the detection of the fan's power supply is masked by directly determining that the fan's power supply status is normal. After masking, the masking event is notified to the BMC, and the BMC restarts the fan upon receiving the notification. Specifically, the CPLD can notify the BMC of the masking event through its own GPIO_1 interface.
[0065] In summary, by informing the BMC of the blocking event, the BMC can restart the fan only after being informed of the blocking event, thus preventing the CPLD from not having processed the blocking event when the BMC restarts the fan, thereby improving security.
[0066] In a preferred embodiment, the device further includes a controllable switch disposed between the BMC and the fan, wherein the BMC restarts the fan, including:
[0067] BMC controls a controllable switch to first open and then close.
[0068] In this embodiment, the BMC restarts the fan via a controllable switch. Specifically, the BMC first controls the controllable switch to open, thus de-energizing the fan, and then controls the controllable switch to close, thus energizing the fan. The fan completes the restart by going through the process of first de-energizing and then energizing. The BMC can control the controllable switch via an I2C (Inter-Integrated Circuit, two-wire serial bus) link.
[0069] In summary, restarting the fan by first disconnecting and then closing the controllable switch via BMC is easy to implement and highly automated, eliminating the need for maintenance personnel to manually restart the fan, thus saving labor and time costs.
[0070] As a preferred embodiment, the controllable switch is an Efuse (electric programming fuse).
[0071] In this embodiment, Efuse is selected as the controllable switch. Efuse has the advantages of small size and low cost. Of course, other components that can realize the controllable switch function can also be selected, and no special limitation is made here.
[0072] As a preferred embodiment, it also includes:
[0073] The BMC generates an alarm when the fan speed is abnormal.
[0074] In this embodiment, after the BMC determines that the fan speed is abnormal, it will issue an alarm for the abnormality. This alarm can be issued by storing information about the abnormal fan speed in the network log, so that the abnormal fan speed problem can be queried and resolved later, thereby improving security.
[0075] Please refer to Figure 2 , Figure 2 This invention provides a schematic diagram of the structure of a CPLD, which includes:
[0076] Memory 1 is used to store computer programs;
[0077] Processor 2 is used to execute a computer program to implement the steps of the above-described method for handling abnormal fan speed.
[0078] For an introduction to the CPLD provided in this application, please refer to the above embodiments; further details will not be repeated here.
[0079] This application also provides an apparatus, including a CPLD, and further comprising:
[0080] The BMC is used to control the fan rotation. When it detects that the fan speed is abnormal, it sends a first signal indicating that the fan speed is abnormal to the CPLD. After restarting the fan, it sends a second signal indicating that the fan speed is normal to the CPLD.
[0081] For a description of the device provided in this application, please refer to the above embodiments; further details will not be repeated here.
[0082] It should be noted that, in this specification, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0083] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not 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
1. A method for handling abnormal fan speed, characterized in that, The device is applied to a device including a CPLD and a BMC. The CPLD is connected to the BMC and a fan, respectively. The BMC is connected to the fan and is used to control the rotation of the fan. The methods for handling abnormal fan speed include: After receiving the first signal indicating abnormal fan speed sent by the BMC when it determines that the fan speed is abnormal, the CPLD directly determines the power supply status of the fan as normal. After receiving the second signal sent by the BMC after restarting the fan, indicating that the fan speed is normal, the power supply status of the fan is determined based on the detected power supply signal of the fan. After receiving the first signal indicating an abnormal fan speed sent by the BMC when determining that the fan speed is abnormal, the CPLD directly determines the power supply status of the fan as normal, and further includes: The BMC is informed that it has directly determined the power status of the fan to be normal; Upon receiving notification from the CPLD, the BMC initiates the process of restarting the fan.
2. The method for handling abnormal fan speed as described in claim 1, characterized in that, Before directly determining the power supply status of the fan to be normal, after receiving the first signal indicating an abnormal fan speed sent by the BMC when determining that the fan speed is abnormal, the CPLD further includes: The BMC obtains the actual speed of the fan; Determine whether the actual rotational speed is the same as the preset rotational speed corresponding to the PWM signal currently being output; If the actual rotational speed is different from the preset rotational speed, a first signal indicating that the fan speed is abnormal is sent to the CPLD. If the actual rotational speed is the same as the preset rotational speed, a second signal indicating that the fan speed is normal is sent to the CPLD.
3. The method for handling abnormal fan speed as described in claim 2, characterized in that, The BMC obtains the actual speed of the fan, including: The BMC reads the tachometer signal of the fan; The actual speed of the fan is determined based on the tachometer signal.
4. The method for handling abnormal fan speed as described in claim 2, characterized in that, The BMC obtains the actual speed of the fan, including: The BMC periodically acquires the actual rotational speed of the fan.
5. The method for handling abnormal fan speed as described in claim 1, characterized in that, The device also includes a controllable switch disposed between the BMC and the fan, wherein the BMC restarts the fan, including: The BMC controls the controllable switch to first open and then close.
6. The method for handling abnormal fan speed as described in claim 5, characterized in that, The controllable switch is Efuse.
7. The method for handling abnormal fan speed as described in any one of claims 1 to 6, characterized in that, Also includes: The BMC generates an alarm when the fan speed is abnormal.
8. A CPLD, characterized in that, include: Memory, used to store computer programs; A processor is configured to execute the computer program to implement the steps of the fan speed abnormality handling method as described in claim 1 or claim 5.
9. A device, characterized in that, Including the CPLD as described in claim 8, it further includes: The BMC is used to control the rotation of the fan. When it is determined that the fan speed is abnormal, it sends a first signal indicating that the fan speed is abnormal to the CPLD. After restarting the fan, it sends a second signal indicating that the fan speed is normal to the CPLD. It is also used to enter the step of restarting the fan after receiving notification from the CPLD. Specifically, after receiving the first signal indicating that the fan speed is abnormal sent by the BMC when it determines that the fan speed is abnormal, the CPLD directly determines that the power supply status of the fan is normal, and then informs the BMC that it has directly determined that the power supply status of the fan is normal.
Citation Information
Patent Citations
Control method of equipment fan, control device, interchanger and storage medium
CN111120383A
Electronic equipment protecting device
JP1999085301A