A fan control method, system and related components

By detecting the BMC hardware status in the CPLD and disconnecting the abnormal link, and using the first IIC link to obtain temperature data for fan speed regulation, the problem of the inability to dynamically adjust the fan speed in the prior art is solved, and more accurate fan control is achieved, avoiding high-temperature downtime and resource waste.

CN113719461BActive Publication Date: 2025-04-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111006737.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2025-04-29
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

Existing server fan control technology cannot dynamically adjust the fan speed according to the actual temperature, resulting in the risk of high-temperature downtime or waste of resources.

Method used

The hardware state of the BMC is detected by CPLD. When the BMC is in a hardware abnormal state, the second IIC link is disconnected, the temperature data of each temperature device is obtained using the first IIC link, and a PWM signal based on the temperature data is generated for fan speed regulation.

Benefits of technology

It realizes on-demand control of fan speed, avoids high-temperature downtime and resource waste, and improves the accuracy of fan control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113719461B_ABST
    Figure CN113719461B_ABST
Patent Text Reader

Abstract

The present application discloses a fan control method, system, device and computer-readable storage medium, which are applied to CPLD, and the data transmission port of each temperature device inside the server is connected through a first IIC link. The fan control method includes: detecting the hardware state of the BMC; when the hardware state is a hardware failure state, controlling the second IIC link between the BMC and the data transmission port of each temperature device to be disconnected, obtaining the temperature data of each temperature device through all the first IIC links, generating a PWM signal based on all the temperature data and sending it to the fan; when the hardware state is a hardware normal state, generating a PWM signal based on the fan speed control signal sent by the BMC and sending it to the fan; all the second IIC links are turned on when the BMC is in a hardware normal state. The present application can adjust the fan speed on demand, avoiding the high temperature downtime problem and resource waste problem caused by uniform speed control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of servers, and in particular to a fan control method, system and related components. Background Art

[0002] The current server temperature control system includes BMC (Baseboard Management Controller) and CPLD (Complex Programmable Logic Device). BMC collects temperature data inside the server, calculates the required fan speed based on the temperature data, and sends the fan speed to CPLD through IIC (Inter-Integrated Circuit), which then generates a PWM signal to control the fan based on the fan speed. The actual fan speed is fed back to CPLD through the TACH signal, and CPLD stores the value of the TACH signal in the register. Then BMC reads the value in the register through IIC to confirm whether the speed is correct.

[0003] When the BMC is abnormal, the CPLD will directly take over the control of the fan and control the fan operation according to a unified preset speed. However, since the existing technical solution can only control according to the preset speed, if the preset speed is set too high and the current internal temperature of the server has not reached a high temperature state, it will cause a waste of resources. If the preset speed is set too low, the server may still be at risk of high temperature downtime, affecting the normal operation of the server.

[0004] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0005] The purpose of the present application is to provide a fan control method, system, device and computer-readable storage medium, which can adjust the fan speed on demand to avoid high temperature downtime and resource waste caused by uniform speed control.

[0006] In order to solve the above technical problems, the present application provides a fan control method, which is applied to CPLD, wherein the CPLD is connected to the data transmission port of each temperature device inside the server through a first IIC link, and the fan control method includes:

[0007] Check the hardware status of BMC;

[0008] When the hardware state is a hardware failure state, controlling the 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 a PWM signal based on all the temperature data, and sending the PWM signal to the fan;

[0009] When the hardware state is a normal hardware state, a PWM signal based on the fan speed control signal sent by the BMC is generated and sent to the fan; all the second IIC links are turned on when the BMC is in a normal hardware state.

[0010] Optionally, the process of detecting the hardware status of the BMC includes:

[0011] Determine whether the watchdog signal sent by the BMC is received during the current detection cycle;

[0012] If yes, determine that the hardware state of the BMC is a normal hardware state;

[0013] If not, it is determined that the hardware state of the BMC is a hardware abnormal state.

[0014] Optionally, after detecting the hardware status of the BMC, the fan control method further includes:

[0015] When the hardware state is a normal hardware state, determining whether the fan speed control signal output by the BMC is abnormal;

[0016] If so, generating a PWM signal based on the temperature data transmitted on all the second IIC links and sending the signal to the fan;

[0017] Correspondingly, when the hardware state is a normal hardware state, the process of generating a PWM signal based on the fan speed control signal sent by the BMC and sending the signal to the fan includes:

[0018] When the fan speed control signal output by the BMC is normal, a PWM signal based on the fan speed control signal is generated and sent to the fan.

[0019] Optionally, after detecting the state of the BMC, the fan control method further includes:

[0020] When the state is a normal hardware state, acquiring and parsing all temperature data transmitted on the second IIC link according to an acquisition cycle;

[0021] The process of determining whether the fan speed control signal output by the BMC is abnormal includes:

[0022] 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 does not change or the fan speed control signal is in a low speed control range, it is determined that the fan speed control signal is abnormal.

[0023] 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 does not change 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:

[0024] When the temperature data acquired in multiple consecutive acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the multiple consecutive acquisition cycles does not change or the fan speed control signal is in a low speed control range, and each temperature data in the current acquisition cycle reaches its corresponding preset upper limit temperature value, the fan speed control signal is determined to be abnormal.

[0025] Optionally, after determining whether the fan speed control signal output by the BMC is abnormal, the fan control method further includes:

[0026] If yes, output alarm signal to BMC.

[0027] Optionally, each of the second IIC links is provided with a switch;

[0028] The process of controlling the second IIC link between the BMC and the data transmission port of each temperature device to be disconnected includes:

[0029] The switch on each of the second IIC links is controlled to be disconnected, so that the second IIC link between the BMC and the data transmission port of each of the temperature devices is disconnected.

[0030] In order to solve the above technical problems, the present application also provides a fan control system, which is applied to CPLD, wherein the CPLD is connected to the data transmission port of each temperature device inside the server through a first IIC link, and the fan control system includes:

[0031] The first detection module is used to detect the hardware status of the BMC;

[0032] A first control module is used for controlling the 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, obtaining the temperature data of each temperature device through all the first IIC links, generating a PWM signal based on all the temperature data, and sending the PWM signal to the fan;

[0033] The second control module is used to generate a PWM signal based on the fan speed control signal sent by the BMC and send it to the fan when the hardware state is a normal hardware state; all the second IIC links are turned on when the BMC is in a normal hardware state.

[0034] In order to solve the above technical problems, the present application also provides a fan control device, comprising:

[0035] Memory for storing computer programs;

[0036] A processor is used to implement the steps of the fan control method as described in any one of the above when executing the computer program.

[0037] To solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the fan control method as described in any one of the above are implemented.

[0038] The present application provides a fan control method, in which the data transmission port of the CPLD and each temperature device inside the server is connected through a first IIC link. When the BMC is in a hardware abnormal state, the CPLD uses the first IIC link to obtain the temperature data of each current temperature device, and adjusts the fan speed on demand according to the currently obtained temperature data, thereby avoiding the high-temperature downtime problem and resource waste problem caused by regulating the speed according to a unified preset speed. In addition, for each temperature device, since the first IIC link and the second IIC link are both connected to the same data transmission port of the temperature device, in order to avoid the BMC hardware abnormality pulling the IIC signal of the data transmission port, the present application disconnects all the second IIC links when it detects that the BMC is in a hardware abnormal state, so that the CPLD can obtain accurate temperature data through the first IIC link, thereby improving the accuracy of the fan speed control of the CPLD. The present application also provides a fan speed control system, device and computer-readable storage medium, which have the same beneficial effects as the above-mentioned fan control method. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 A schematic diagram of the structure of a monitoring system provided in this application;

[0041] Figure 2A flow chart of the steps of a fan control method provided in this application;

[0042] Figure 3 A schematic diagram of the structure of another monitoring system provided by this application;

[0043] Figure 4 A schematic diagram of the structure of a fan control system provided in this application. DETAILED DESCRIPTION

[0044] The core of this application is to provide a fan control method, system, device and computer-readable storage medium, which can adjust the fan speed on demand to avoid high temperature downtime and resource waste caused by uniform speed control.

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. 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 this field without creative work are within the scope of protection of this application.

[0046] To facilitate understanding of the solution of the present application, the following describes a monitoring system applicable to the fan control method proposed in the present application. Figure 1 , Figure 1 This is a structural diagram of a monitoring system provided by the present application, and the monitoring system includes multiple temperature devices, CPLD 02 and BMC 03, wherein the temperature device includes a temperature sensor 011 or a device 012 with a temperature calculation function. CPLD 02 and BMC 03 are connected to each temperature device via an IIC bus. Specifically, CPLD 02 is connected to each temperature device via a first IIC link, and BMC 03 is connected to each temperature device via a second IIC link, wherein the IIC links of CPLD02 and BMC 03 are both connected to 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 to CPLD 02, and the other end is connected to the data transmission port of the temperature sensor 011. One end of the second IIC link is connected to BMC 03, and the other end is also connected to the data transmission port of the temperature sensor 011. There can be multiple first IIC links, refer to Figure 1 As shown, CPLD 02 is connected to multiple temperature sensors 011 through a first IIC link IIC11, and CPLD 02 is connected to multiple devices 012 with temperature calculation functions through a second first IIC link IIC12. There may also be multiple second IIC links, see Figure 1As shown, BMC 03 is connected to multiple temperature sensors 011 through a first second IIC link IIC21, and BMC 03 is connected to multiple devices 012 with temperature calculation functions through a second second IIC link IIC22. It can be understood that, by adopting the structure of the monitoring system provided by the present application, both BMC 03 and CPLD 02 can query the temperature data of the temperature device as needed.

[0047] Please refer to Figure 2 , Figure 2 This is a flow chart of the steps of a fan control method provided in the present application, and the fan control method includes:

[0048] S101: Check the hardware status of BMC;

[0049] It is understandable that when the BMC can work normally, the BMC queries the temperature data of each temperature device according to the rules by default, and the BMC generates the corresponding fan speed control signal based on the acquired temperature data. The CPLD generates a PWM signal based on the fan speed signal sent by the BMC to control each fan. However, when the BMC hardware is abnormal, the BMC cannot query the temperature data of each temperature device normally, and thus cannot send the fan speed signal to the CPLD normally. At this time, it will affect the normal heat dissipation control inside the server. Therefore, it is necessary to detect the hardware status of the BMC. The hardware status includes the normal hardware status and the abnormal hardware status. For different hardware states of the BMC, the control logic executed by the CPLD is different.

[0050] Specifically, the BMC sends a watchdog signal to the CPLD according to a preset detection cycle. As a preferred embodiment, the process of detecting the hardware status of the BMC includes: determining whether the watchdog signal sent by the BMC is received within the current detection cycle, if so, determining that the hardware status of the BMC is a normal hardware status, if not, determining that the hardware status of the BMC is an abnormal hardware status.

[0051] S102: When the hardware status is a hardware failure status, the second IIC link between the BMC and the data transmission port of each temperature device is disconnected, the temperature data of each temperature device is obtained through all the first IIC links, a PWM signal based on all the temperature data is generated and sent to the fan;

[0052] Specifically, since 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 second IIC links is the on state, when the BMC is determined to be in a hardware failure state, the second IIC link between the BMC and each temperature device is first controlled to be disconnected to avoid the IIC signal being pulled when the BMC hardware fails, so that 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 queries the temperature data of each temperature device through the first IIC link, and directly generates a PWM signal based on each temperature data and sends it to the fan, thereby realizing the precise control of the fan speed by the CPLD.

[0053] Among them, after obtaining each temperature data, the CPLD calculates the required fan speed through the PID algorithm, thereby generating a corresponding PWM signal.

[0054] As a preferred embodiment, refer to Figure 3 As shown, each second IIC link is provided with a switch 04, and the switch 04 on each second IIC link can be controlled to be disconnected so that the second IIC link between the BMC and the data transmission port of each temperature device is disconnected. It can be understood that the switch 04 on the second IIC link is closed by default so that the BMC can query the temperature data of each temperature device.

[0055] S103: When the hardware state is in the normal hardware state, a PWM signal based on the fan speed control signal sent by the BMC is generated and sent to the fan; all second IIC links are turned on when the BMC is in the normal hardware state.

[0056] Specifically, if the hardware status of the BMC is determined to be normal, the CPLD will not query the temperature data of each temperature device through the second IIC link. The CPLD generates a PWM signal based on the fan speed control signal sent by the BMC and sends it to the fan to control the fan to run at the required speed.

[0057] It can be seen that in this embodiment, the data transmission port of each temperature device inside the server is first connected to the CPLD through the first IIC link. When the BMC is in a hardware abnormal state, the CPLD uses the first IIC link to obtain the temperature data of each temperature device at present, and adjusts the fan speed on demand according to the currently obtained temperature data, thereby avoiding the high-temperature downtime problem and resource waste problem caused by the unified preset speed control. In addition, for each temperature device, since the first IIC link and the second IIC link are both connected to the same data transmission port of the temperature device, in order to avoid the BMC hardware abnormality pulling the IIC signal of the data transmission port, when the present application detects that the BMC is in a hardware abnormal state, all second IIC links are first disconnected so that the CPLD can obtain accurate temperature data through the first IIC link, thereby improving the accuracy of the fan speed control of the CPLD.

[0058] Based on the above embodiments:

[0059] As a preferred embodiment, after detecting the hardware status of the BMC, the fan control method further includes:

[0060] When the hardware status is normal, determine whether the fan speed control signal output by the BMC is abnormal;

[0061] If so, generate a PWM signal based on the temperature data transmitted on all second IIC links and send it to the fan;

[0062] Accordingly, when the hardware state is the normal hardware state, the process of generating a PWM signal based on the fan speed control signal sent by the BMC and sending it to the fan includes:

[0063] When the fan speed control signal output by the BMC is normal, a PWM signal based on the fan speed control signal is generated and sent to the fan.

[0064] Specifically, in this embodiment, the software status of the BMC is also detected. The software status here specifically refers to whether the speed calculation function of the BMC is abnormal, that is, the BMC can query the temperature data of each temperature device normally, but cannot accurately calculate the corresponding fan speed according to the queried temperature data. At this time, the fan speed control signal output by the BMC is an erroneous fan speed control signal. The erroneous fan speed control signal makes it impossible to accurately control the fan speed, thereby causing a risk of high-temperature shutdown inside the server.

[0065] It can be understood that when the hardware status of the BMC is in the normal hardware status, the BMC can normally query the temperature data of each temperature device through the second IIC link. Therefore, when the CPLD detects that the BMC is in the normal hardware status, the CPLD can obtain and parse the temperature data transmitted on the second IIC link without autonomously querying the temperature data of each temperature device. When the CPLD detects that the BMC has an abnormal software status, it will no longer respond to the fan speed control signal sent by the BMC, but will generate a PWM signal based on the temperature data transmitted on the second IIC link that it has parsed, and send it to the fan to control the fan operation. When the CPLD detects that the BMC software and hardware are normal, that is, the BMC hardware status is in the normal hardware status, and the fan speed control signal output by the BMC is also normal, the CPLD generates a PWM signal based on the fan speed control signal sent by the BMC to control the fan operation. As a preferred embodiment, after detecting the status of the BMC, the fan control method also includes:

[0066] When the state is the normal hardware state, the temperature data transmitted on all the second IIC links are acquired and parsed according to the acquisition cycle;

[0067] The process of determining whether the fan speed control signal output by the BMC is abnormal includes:

[0068] 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 does not change or the fan speed control signal is in a low speed control range, it is determined that the fan speed control signal is abnormal.

[0069] Referring to the above, when the hardware status of the BMC is the normal hardware status, the BMC can query the temperature data of each temperature device through the second IIC link normally, that is, there is temperature data transmission on the second IIC link. Therefore, when the BMC is in the normal hardware status, the CPLD can obtain the temperature data of each temperature device in the current acquisition cycle by acquiring and parsing the IIC signal transmitted on the second IIC link. When the CPLD parses the temperature data acquired for multiple consecutive cycles, it is in a continuous rising state, but the fan speed control signal does not change, or is in a speed range that does not match the current temperature data. For example, the temperature continues to rise, but the fan speed control signal is still in a low speed control range, which means that the temperature calculation function or speed calculation function of the BMC is abnormal at this time, and the BMC cannot generate a correct fan speed control signal based on the queried temperature data, thereby determining that the CPLD receives the fan speed control signal abnormally.

[0070] Specifically, the multiple consecutive acquisition cycles provided in this embodiment, that is, multiple consecutive acquisition cycles including the current acquisition cycle, such as five consecutive acquisition cycles. Assuming that the current acquisition cycle is the seventh acquisition cycle, then the five consecutive acquisition cycles are the third acquisition cycle, the fourth acquisition cycle, the fifth acquisition cycle, the sixth acquisition cycle and the seventh acquisition cycle.

[0071] 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 plurality of consecutive acquisition cycles does not change 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:

[0072] When the temperature data acquired in multiple consecutive acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the multiple consecutive acquisition cycles does not change or the fan speed control signal is in a low speed control range, and each temperature data in the current acquisition cycle reaches its corresponding preset upper limit temperature value, it is determined that the fan speed control signal is 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:

[0073] If yes, output alarm signal to BMC.

[0074] Specifically, when the CPLD determines that the BMC hardware is normal but the software is abnormal, it means that the BMC can implement the corresponding functions and is not completely unable to work. At this time, the CPLD outputs an alarm signal to the BMC to prompt the BMC software abnormality so as to perform subsequent processing operations, such as resetting and restarting.

[0075] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of a fan control system provided in this application, and the fan control system includes:

[0076] The first detection module 11 is used to detect the hardware status of the BMC;

[0077] The first control module 12 is used for controlling the 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 failure state, obtaining the temperature data of each temperature device through all the first IIC links, generating a PWM signal based on all the temperature data and sending it to the fan;

[0078] The second control module 13 is used to generate a PWM signal based on the fan speed control signal sent by the BMC and send it to the fan when the hardware state is the normal hardware state; all second IIC links are turned on when the BMC is in the normal hardware state.

[0079] It can be seen that in this embodiment, the data transmission port of each temperature device inside the server is first connected to the CPLD through the first IIC link. When the BMC is in a hardware abnormal state, the CPLD uses the first IIC link to obtain the temperature data of each temperature device at present, and adjusts the fan speed on demand according to the currently obtained temperature data, thereby avoiding the high-temperature downtime problem and resource waste problem caused by the unified preset speed control. In addition, for each temperature device, since the first IIC link and the second IIC link are both connected to the same data transmission port of the temperature device, in order to avoid the BMC hardware abnormality pulling the IIC signal of the data transmission port, when the present application detects that the BMC is in a hardware abnormal state, all second IIC links are first disconnected so that the CPLD can obtain accurate temperature data through the first IIC link, thereby improving the accuracy of the fan speed control of the CPLD.

[0080] As a preferred embodiment, the process of detecting the hardware status of the BMC includes:

[0081] Determine whether the watchdog signal sent by the BMC is received during the current detection cycle;

[0082] If yes, determine that the hardware status of the BMC is a normal hardware status;

[0083] If not, it is determined that the hardware status of the BMC is a hardware abnormal status.

[0084] As a preferred embodiment, the fan control system further includes:

[0085] The second detection module is used to determine whether the fan speed control signal output by the BMC is abnormal when the hardware status is the normal hardware status, and if so, trigger the third control module;

[0086] A third control module, used for generating a PWM signal based on the temperature data transmitted on all second IIC links and sending the PWM signal to the fan;

[0087] Accordingly, the second control module 13 is specifically used for:

[0088] When the fan speed control signal output by the BMC is normal, a PWM signal based on the fan speed control signal is generated and sent to the fan.

[0089] As a preferred embodiment, the fan control system further includes:

[0090] An acquisition module, used for acquiring and parsing temperature data transmitted on all second IIC links according to an acquisition cycle when the hardware is in a normal state;

[0091] The process of determining whether the fan speed control signal output by the BMC is abnormal includes:

[0092] 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 does not change or the fan speed control signal is in a low speed control range, it is determined that the fan speed control signal is abnormal.

[0093] 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 plurality of consecutive acquisition cycles does not change 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:

[0094] When the temperature data acquired in multiple consecutive acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the multiple consecutive acquisition cycles does not change or the fan speed control signal is in a low speed control range, and each temperature data in the current acquisition cycle reaches its corresponding preset upper limit temperature value, the fan speed control signal is determined to be abnormal.

[0095] As a preferred embodiment, the fan control method further includes:

[0096] The alarm module is used to output an alarm signal to the BMC when it is determined that the fan speed control signal output by the BMC is abnormal.

[0097] As a preferred embodiment, a switch is provided on each second IIC link;

[0098] The process of controlling the disconnection of the second IIC link between the BMC and the data transmission port of each temperature device includes:

[0099] The switch on each second IIC link is controlled to be disconnected, so that the second IIC link between the BMC and the data transmission port of each temperature device is disconnected.

[0100] On the other hand, the present application also provides a fan control device, comprising:

[0101] Memory for storing computer programs;

[0102] A processor is used to implement the steps of the fan control method described in any one of the above embodiments when executing a computer program.

[0103] For an introduction to a fan control device provided in the present application, please refer to the above-mentioned embodiment, and the present application will not go into details here.

[0104] A fan control device provided in the present application has the same beneficial effects as the above-mentioned fan control method.

[0105] On the other hand, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the fan control method described in any one of the above embodiments are implemented.

[0106] For an introduction to a computer-readable storage medium provided in the present application, please refer to the above-mentioned embodiments, and the present application will not go into details here.

[0107] A computer-readable storage medium provided in the present application has the same beneficial effects as the above-mentioned fan control method.

[0108] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0109] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be 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 present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A fan control method, characterized in that: Applied to CPLD, the CPLD is connected to the data transmission port of each temperature device inside the server through a first IIC link, the temperature device is a temperature sensor or a device with a temperature calculation function, and the BMC is connected to the data transmission port of each temperature device through a second IIC link. The fan control method includes: Detecting the hardware status of the BMC; When the hardware state is a hardware failure state, controlling the 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, calculating a PWM signal through a PID algorithm based on all the temperature data, and sending the PWM signal to the fan; When the hardware state is a normal hardware state, a PWM signal based on the fan speed control signal sent by the BMC is generated and sent to the fan; all the second IIC links are turned on when the BMC is in a normal hardware state; The process of detecting the hardware status of the BMC includes: Determine whether the watchdog signal sent by the BMC is received during the current detection cycle; If yes, determine that the hardware status of the BMC is a normal hardware status; If not, determining that the hardware state of the BMC is a hardware abnormal state; After detecting the hardware status of the BMC, the fan control method further includes: When the hardware state is a normal hardware state, determining whether the fan speed control signal output by the BMC is abnormal; If so, generate a PWM signal based on all the temperature data transmitted on the second IIC link and send it to the fan, and output an alarm signal to the BMC; If not, a PWM signal based on the fan speed control signal is generated and sent to the fan.

2. The fan control method according to claim 1, characterized in that: After detecting the hardware status of the BMC, the fan control method further includes: When the hardware state is a normal hardware state, acquiring and parsing all temperature data transmitted on the second IIC link according to an acquisition cycle; The process of determining whether the fan speed control signal output by the BMC is abnormal includes: 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 does not change or the fan speed control signal is in a low speed control range, it is determined that the fan speed control signal is abnormal.

3. The fan control method according to claim 2, characterized in that: When the temperature data acquired in the consecutive multiple acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the consecutive multiple acquisition cycles does not change 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: When the temperature data acquired in multiple consecutive acquisition cycles is in a continuously rising state, and the fan speed control signal corresponding to the multiple consecutive acquisition cycles does not change or the fan speed control signal is in a low speed control range, and each temperature data in the current acquisition cycle reaches its corresponding preset upper limit temperature value, the fan speed control signal is determined to be abnormal.

4. The fan control method according to any one of claims 1 to 3, characterized in that: Each of the second IIC links is provided with a switch; The process of controlling the second IIC link between the BMC and the data transmission port of each temperature device to be disconnected includes: The switch on each of the second IIC links is controlled to be disconnected, so that the second IIC link between the BMC and the data transmission port of each of the temperature devices is disconnected.

5. A fan control system, characterized in that: Applied to CPLD, the CPLD is connected to the data transmission port of each temperature device inside the server through a first IIC link, the temperature device is a temperature sensor or a device with a temperature calculation function, and the BMC is connected to the data transmission port of each temperature device through a second IIC link. The fan control system includes: A first detection module, used to detect the hardware status of the BMC; A first control module is used for controlling the 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, obtaining temperature data of each temperature device through all the first IIC links, calculating a PWM signal through a PID algorithm based on all the temperature data, and sending the PWM signal to the fan; a second control module, configured to generate a PWM signal based on a fan speed control signal sent by the BMC and send the signal to the fan when the hardware state is a normal hardware state; all the second IIC links are turned on when the BMC is in a normal hardware state; The process of detecting the hardware status of the BMC includes: Determine whether the watchdog signal sent by the BMC is received during the current detection cycle; If yes, determine that the hardware status of the BMC is a normal hardware status; If not, determining that the hardware state of the BMC is a hardware abnormal state; The fan control system is also used to: After detecting the hardware state of the BMC, when the hardware state is a normal hardware state, determining whether the fan speed control signal output by the BMC is abnormal; If so, generate a PWM signal based on all the temperature data transmitted on the second IIC link and send it to the fan, and output an alarm signal to the BMC; If not, a PWM signal based on the fan speed control signal is generated and sent to the fan.

6. A fan control device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the fan control method according to any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fan control method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Temperature detector

    CN107220158A

  • Fan rotating speed control device and method

    CN109882440A

  • Monitoring method, device and equipment for server fan rotating speed and readable storage medium

    CN110345100A

  • Server heat dissipation method and device and related components

    CN112948185A

  • Fan radiating device

    CN207869582U