Multi-channel fan status indication method, system, product, device and storage medium
By using methods related to the pulse signal frequency and fan speed in the server system, the flickering frequency of the fan status indicator light is controlled, and the problem that the front window indicator light in the prior art cannot reflect the fan rotation rate is solved, and the operation and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202411515460.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-10-29
AI Technical Summary
In existing server systems, the front window indicator light cannot reflect the fan rotation rate information through the flashing frequency, which makes it difficult for operation and maintenance engineers to understand the speed of the fan rotation rate from the front window.
By obtaining the fan status indicator signals of multiple fans, we can determine whether the fan is in position and whether it is rotating. When all fans are in position and rotating, the fan status indicator light is flashed with the highest pulse signal frequency signal and the pulse signal frequency is The fan speed is proportional, so that the flashing frequency of the indicator light is related to the fan speed.
It realizes the acquisition of fan rotation speed information through the flashing frequency of the front window indicator light, which improves the convenience of operation and maintenance engineers to understand the fan status at the front of the chassis, reduces dependence on the rear window, and saves operation and maintenance time and energy.
Smart Images

Figure CN119042154B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a multi-channel fan status indication method and system, product, computer equipment and storage medium. Background Art
[0002] In a server system, multiple fans or multiple fan adapters are generally configured to achieve the heat dissipation requirements of the machine. Each fan has its own status indicator light to indicate the speed data status and position status of each fan.
[0003] The fan adapter board interface is located on the rear window or inside the server chassis, and the corresponding status indicator lights of each fan are also located on the rear window or inside the chassis. In order to make it easier for maintenance engineers to understand the working status of the fan when operating in the front of the chassis, while taking into account the requirement of reducing the space occupied by the server front window, an indicator light is usually used on the front window to indicate the working status of the fan.
[0004] In order to use an indicator light to indicate the working status of the fan, the current solution usually performs a logical "AND" operation on the status indication signals of each fan to obtain a control signal for controlling the front window indicator light. A low level control signal lights up the front window indicator light, and a high level control signal turns off the front window indicator light. However, it is impossible to obtain the corresponding fan rotation speed information from the flashing frequency of the front window indicator light. Summary of the invention
[0005] Based on this, it is necessary to provide a multi-channel fan status indication method and system, device, computer equipment and storage medium that can obtain the corresponding fan rotation speed information from the flashing frequency of the front window indicator light to address the above technical problems.
[0006] On the one hand, a multi-channel fan status indication method is provided, the method comprising:
[0007] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0008] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0009] In response to any fan being out of position, the fan status indicator light is controlled to turn off;
[0010] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0011] In one embodiment, the acquiring of fan status indication signals of the plurality of fans, and determining whether corresponding fans are in place and rotating according to the fan status indication signals of the plurality of fans comprises:
[0012] Acquire a fan status indication signal of a target fan, and identify whether the fan status indication signal of the target fan is a type of a continuous high level, a continuous low level, or a pulse signal;
[0013] In response to the type of the fan status indication signal of the target fan being a continuous high level, determining that the target fan is not in place;
[0014] In response to the type of the fan status indication signal of the target fan being a continuous low level, determining that the target fan is in place and not rotating;
[0015] In response to the type of the fan status indication signal of the target fan being a pulse signal, it is determined that the target fan is in place and rotating.
[0016] In one of the embodiments, before obtaining the fan status indication signal of the target fan, the method further includes:
[0017] Determining whether the target fan is connected to a fan adapter board;
[0018] If the target fan is not connected to the fan adapter board, controlling the fan status indication signal of the target fan to be high level;
[0019] If the target fan is connected to the fan adapter plate, determining whether the target fan is rotating;
[0020] If the target fan does not rotate, the fan state indication signal of the target fan is controlled to be at a low level;
[0021] If the target fan rotates, the fan state indication signal for controlling the target fan is a pulse signal.
[0022] In one embodiment, if the target fan rotates, controlling the fan status indication signal of the target fan to be a pulse signal includes:
[0023] Detecting and obtaining the rotation speed of the target fan;
[0024] The frequency of the pulse signal is set according to the rotation speed of the target fan, wherein the frequency of the pulse signal is proportional to the rotation speed of the target fan.
[0025] In one of the embodiments, in response to the fact that the multiple fans are in place and rotating, obtaining the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans to control the fan status indicator light to flash includes:
[0026] Obtaining the maximum cycle of the fan status indication signal of each fan when it is normally reversed as the maximum cycle value of the logic output;
[0027] Setting the period of the fan status indication signal being at a continuous high level to be equal to the maximum period value of the logic output;
[0028] Calculating each cycle of the fan status indication signals of the plurality of fans, and comparing and searching for the minimum cycle among the cycles;
[0029] Determining whether the minimum periods of the fan status indication signals of the plurality of fans are all the maximum period values of the logic output;
[0030] If the minimum periods of the fan status indication signals of multiple fans are not all the maximum period value of the logic output, it is determined that the multiple fans are all in place and have different rotation speeds, and the fan status indication signal corresponding to the minimum period is used as the indicator light control signal, and the fan status indicator light is controlled to flash according to the indicator light control signal.
[0031] In one embodiment, in response to any fan being out of position, controlling the fan status indicator to turn off includes:
[0032] If the minimum periods of the fan status indication signals of the multiple fans are all the maximum period value of the logic output, determining whether there is a continuous high level in the fan status indication signals of the multiple fans;
[0033] If there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form an indicator light control signal;
[0034] The fan status indicator light is controlled to turn off according to the indicator light control signal.
[0035] In one embodiment, if there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form the indicator light control signal, including:
[0036] If there is a continuous high level in the fan status indication signals of the multiple fans, identifying the number of the fan status indication signals of the multiple fans that are continuously high level;
[0037] If the number of the fan status indication signals that are continuously high is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans are not in place, and the indicator light control signal formed is made high through a phase OR operation;
[0038] If the number of the fan status indication signals at a continuous high level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not in place, and the indicator light control signal formed is made high level through a phase OR operation.
[0039] In one embodiment, in response to the plurality of fans being in place and any one of the fans not rotating, controlling the fan status indicator to be always on includes:
[0040] If there is no continuous high level in the fan status indication signals of the multiple fans, it is determined that the multiple fans are in place;
[0041] Performing AND operation on fan status indication signals of multiple fans to form an indicator light control signal;
[0042] The fan status indicator light is controlled to be always on according to the indicator light control signal.
[0043] In one embodiment, performing AND operation on the fan status indication signals of the plurality of fans to form the indicator light control signal comprises:
[0044] If there is at least one continuous low level among the fan status indication signals of the multiple fans, identifying the number of fan status indication signals of the multiple fans that are continuously low level;
[0045] If the number of the fan status indication signals that are continuously at a low level is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans among the plurality of fans are not rotating, and the indicator light control signal formed is made at a low level through an AND operation;
[0046] If the number of the fan status indication signals at a continuous low level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not rotating, and the indicator light control signal formed is made low level through an AND operation.
[0047] In one embodiment, obtaining the maximum cycle of the fan status indication signal of each fan when it is normally reversed as the logic output maximum cycle value includes:
[0048] Determine whether there is a power-on reset;
[0049] If there is a power-on reset, the maximum cycle of the fan status indication signal corresponding to the fan at rated power when the fan is normally reversed is obtained as the maximum cycle value of the logic output;
[0050] In response to the power-on reset, the indicator light control signal is controlled to be high level, and the fan status indicator light is turned off.
[0051] In one embodiment, the calculating of the respective cycles of the fan status indication signals of the plurality of fans and comparing and searching for the minimum cycle among the respective cycles comprises:
[0052] A register is used to count the duration of each cycle of the fan status indication signal of each fan;
[0053] Find the highest bit of the duration count in the registers corresponding to multiple cycles; if only one register has a highest bit of 1, determine that the duration count of the register is the largest; if the highest bit value of multiple registers is 1, compare the second highest bit values of the cycle count values in the multiple registers;
[0054] If only one register has a second highest digit value of 1, the duration count of the register with the second highest digit value of 1 is determined to be the largest; if multiple registers have second highest digit values of 1, the second highest digit values of the cycle count values in the multiple registers are compared;
[0055] In this way, the cycle with the smallest duration count of the register is found out in a loop, and the cycle is used as the minimum cycle of the fan status indication signal.
[0056] On the other hand, a multi-channel fan status indication system is provided, which includes a fan group, a complex programmable logic device and a fan status indicator light;
[0057] The fan group is provided with at least two fans, each fan is connected to the complex programmable logic device, and the complex programmable logic device is connected to the fan status indicator light;
[0058] The complex programmable logic device includes at least two cycle detection logics, a cycle comparison logic and a gating control logic, each fan is connected to each cycle detection logic, the cycle detection logic is connected to the cycle comparison logic, the fan is connected to the gating control logic, the cycle detection logic is connected to the gating control logic, and the gating control logic is connected to the fan status indicator light;
[0059] The gating control logic is used to obtain a fan status indication signal of the corresponding fan, and determine whether the corresponding fan is in place and whether it is rotating according to the fan status indication signal;
[0060] In response to the plurality of fans being in place and rotating, the period detection logic acquires the minimum period of the fan status indication signal of each fan, and the period comparison logic compares the minimum period of the fan status indication signals of the plurality of fans;
[0061] The gating control logic obtains the fan status indication signal with the minimum period output by the period comparison logic, and controls the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of multiple fans to flash and light up;
[0062] In response to any fan not being in place, the gating control logic controls the fan status indicator light to turn off;
[0063] In response to multiple fans being in place and any one of the fans not rotating, the gate control logic controls the fan status indicator light to remain on.
[0064] In another aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0065] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0066] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0067] In response to any fan not being in place, the fan status indicator light is controlled to turn off;
[0068] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0069] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0070] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0071] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0072] In response to any fan not being in place, the fan status indicator light is controlled to turn off;
[0073] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0074] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0075] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0076] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0077] In response to any fan being out of position, the fan status indicator light is controlled to turn off;
[0078] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0079] The above-mentioned multi-channel fan status indication method and system, product, computer equipment and storage medium can determine whether the corresponding fans are in place and rotating through the fan status indication signals of multiple fans. When a fan is not in place, the fan status indicator light is controlled to be off, and when a fan is not rotating, the fan status indicator light is controlled to be always on. When all fans are in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of all fans is obtained to control the fan status indicator light to flash. The pulse signal frequency is positively correlated with the fan speed, so that the flashing frequency of the indicator light is positively correlated with the fan speed, and the corresponding fan rotation speed information can be obtained from the flashing frequency of the front window indicator light. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0081] Figure 1 This is an application environment diagram of a multi-channel fan status indication method in one embodiment of the present application;
[0082] Figure 2 This is a structural block diagram of a complex programmable logic device in one embodiment of the present application;
[0083] Figure 3 A logic diagram of a multi-channel fan status indication method in one embodiment of the present application;
[0084] Figure 4 This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0085] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0086] The multi-channel fan status indication method provided in this application can be applied to Figure 1 In the application environment shown, the multi-channel fan status indication system includes a fan group, a complex programmable logic device (CPLD) and a fan status indicator light; wherein the fan group is provided with at least two fans, each fan is connected to the complex programmable logic device, and the complex programmable logic device is connected to the fan status indicator light.
[0087] like Figure 2 As shown, the complex programmable logic device includes at least two cycle detection logics, a cycle comparison logic and a gating control logic, each fan is connected to each cycle detection logic, the cycle detection logic is connected to the cycle comparison logic, the fan is connected to the gating control logic, the cycle detection logic is connected to the gating control logic, and the gating control logic is connected to the fan status indicator light.
[0088] In one embodiment, a multi-channel fan status indication method is provided, and the method is applied to Figure 1 The complex programmable logic device in the example is used to illustrate, including the following steps:
[0089] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0090] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0091] In response to any fan being out of position, the fan status indicator light is controlled to turn off;
[0092] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0093] It is understandable that any one fan being out of position includes multiple fans being out of position. Any one fan not rotating includes multiple fans not rotating.
[0094] Among them, the fan status indication signals of multiple fans can be used to determine whether the corresponding fans are in place and whether they are rotating. When a fan is not in place, the fan status indicator light is controlled to be off, and when a fan is not rotating, the fan status indicator light is controlled to be always on. When all fans are in place and rotating, the fan status indication signals of all fans are pulse signals. At this time, the pulse signal frequency is set based on the fan speed. The fan status indication signal with the highest pulse signal frequency among the fan status indication signals of all fans is obtained to control the fan status indicator light to flash. The pulse signal frequency is positively correlated with the fan speed, so that the indicator light flashing frequency is positively correlated with the fan speed, and the corresponding fan rotation speed information can be obtained from the flashing frequency of the front window indicator light.
[0095] In this embodiment, the acquiring of fan status indication signals of the plurality of fans and determining whether corresponding fans are in place and rotating according to the fan status indication signals of the plurality of fans include:
[0096] Acquire a fan status indication signal of a target fan, and identify whether the fan status indication signal of the target fan is a type of a continuous high level, a continuous low level, or a pulse signal;
[0097] In response to the type of the fan status indication signal of the target fan being a continuous high level, determining that the target fan is not connected to a fan adapter board and the target fan is not in place;
[0098] In response to the type of the fan status indication signal of the target fan being a continuous low level, determining that the target fan is connected to a fan adapter board, and the target fan is in place and does not rotate;
[0099] In response to the type of the fan status indication signal of the target fan being a pulse signal, it is determined that the target fan is connected to a fan adapter board, and the target fan is in place and rotating.
[0100] Among them, the type of the fan status indication signal can be used to clearly distinguish whether the target fan is in place and whether it is rotating. The pulse signal means that the fan is in place and rotating.
[0101] In this embodiment, before obtaining the fan status indication signal of the target fan, the method further includes:
[0102] Determining whether the target fan is connected to a fan adapter board;
[0103] If the target fan is not connected to the fan adapter board, controlling the fan status indication signal of the target fan to be high level;
[0104] If the target fan is connected to the fan adapter plate, determining whether the target fan is rotating;
[0105] If the target fan does not rotate, the fan state indication signal of the target fan is controlled to be at a low level;
[0106] If the target fan rotates, the fan state indication signal for controlling the target fan is a pulse signal.
[0107] The type of the fan status indication signal is set based on the fan detection of the fan connection status and whether the fan is working and rotating, so that it can be subsequently determined whether the corresponding fans are in place and rotating according to the fan status indication signals of multiple fans.
[0108] In this embodiment, if the target fan rotates, controlling the fan status indication signal of the target fan to be a pulse signal includes:
[0109] Detecting and obtaining the rotation speed of the target fan;
[0110] The frequency of the pulse signal is set according to the rotation speed of the target fan, wherein the frequency of the pulse signal is proportional to the rotation speed of the target fan.
[0111] By setting the pulse signal frequency based on the fan speed, the pulse signal frequency is positively correlated with the fan speed. The faster the fan speed, the higher the pulse signal frequency, and the slower the fan speed, the lower the pulse signal frequency. The fan status indication signal with the highest pulse signal frequency among the fan status indication signals of multiple fans is obtained to control the fan status indicator light to flash. The fan rotation speed can be displayed by the flashing frequency of the fan status indicator light, and the corresponding fan rotation speed information can be obtained from the flashing frequency of the front window indicator light.
[0112] like Figure 3 As shown, in this embodiment, in response to the fact that the multiple fans are in place and rotating, obtaining the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans to control the fan status indicator light to flash includes:
[0113] Obtaining the maximum cycle of the fan status indication signal of each fan when it is normally reversed as the maximum cycle value of the logic output;
[0114] Setting the period of the fan status indication signal being at a continuous high level to be equal to the maximum period value of the logic output;
[0115] Calculating each cycle of the fan status indication signals of the plurality of fans, and comparing and searching for the minimum cycle among the cycles;
[0116] Determining whether the minimum periods of the fan status indication signals of the plurality of fans are all the maximum period values of the logic output;
[0117] If the minimum periods of the fan status indication signals of multiple fans are not all the maximum period value of the logic output, it is determined that the multiple fans are all in place and have different rotation speeds, and the fan status indication signal corresponding to the minimum period is used as the indicator light control signal, and the fan status indicator light is controlled to flash according to the indicator light control signal.
[0118] Among them, the period when the fan status indication signal is at a continuous low level does not exist, and the period when the fan status indication signal is at a continuous high level is set to be equal to the maximum period value of the logic output, so that the periods of multiple fan status indication signals of continuous low level and pulse signal types can be collected, and the minimum period value of the fan status indication signal generated by the fan when the fan is not at the maximum speed is greater than the maximum period value of the logic output. Therefore, the minimum period value of the fan status indication signal generated by the fan is equal to the maximum period value of the logic output, so that the fan rotation speed can be displayed by using the fan status indication signal corresponding to the minimum period as the indicator light control signal.
[0119] like Figure 3 As shown, in this embodiment, in response to any fan being out of position, controlling the fan status indicator to turn off includes:
[0120] If the minimum periods of the fan status indication signals of the multiple fans are all the maximum period value of the logic output, determining whether there is a continuous high level in the fan status indication signals of the multiple fans;
[0121] If there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form an indicator light control signal;
[0122] The fan status indicator light is controlled to turn off according to the indicator light control signal.
[0123] The fan status indication signals of all fans are operated in phase or in an OR operation mode, so that as long as there is a continuous high level in the fan status indication signal, the indicator light control signal formed must be high level, and the fan status indicator light is controlled to turn off. If the minimum period of the fan status indication signals of all fans is the maximum period value of the logic output, it is determined whether there is a continuous high level in the fan status indication signals of all fans; if there is a continuous high level in the fan status indication signals of all fans, it is determined that at least one fan is not in place, and the fan status indication signals of all fans are operated in phase or in an OR operation to form the indicator light control signal.
[0124] In this embodiment, if there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form the indicator light control signal, including:
[0125] If there is a continuous high level in the fan status indication signals of the multiple fans, identifying the number of the fan status indication signals of the multiple fans that are continuously high level;
[0126] If the number of the fan status indication signals that are continuously high is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans are not in place, and the indicator light control signal formed is made high through a phase OR operation;
[0127] If the number of the fan status indication signals at a continuous high level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not in place, and the indicator light control signal formed is made high level through a phase OR operation.
[0128] The number of fans not in place can be determined by further determining the number of continuously high-level fan status indication signals. When multiple fans are not in place or multiple fans are not in place, the indicator light control signal is high. When the indicator light control signal is high, the fan status indicator light is turned off.
[0129] like Figure 3 As shown, in this embodiment, in response to the multiple fans being in place and any one of the fans not rotating, controlling the fan status indicator to be always on includes:
[0130] If there is no continuous high level in the fan status indication signals of the multiple fans, it is determined that the multiple fans are in place;
[0131] Performing AND operation on fan status indication signals of multiple fans to form an indicator light control signal;
[0132] The fan status indicator light is controlled to be always on according to the indicator light control signal.
[0133] The fan status indication signals of the multiple fans are ANDed together to realize that as long as there is a continuous low level in the fan status indication signal, the indicator light control signal will definitely be low level, and the fan status indicator light will be controlled to be always on.
[0134] In this embodiment, performing AND operation on the fan status indication signals of the plurality of fans to form the indicator light control signal comprises:
[0135] If there is at least one continuous low level among the fan status indication signals of the multiple fans, identifying the number of fan status indication signals of the multiple fans that are continuously low level;
[0136] If the number of the fan status indication signals that are continuously at a low level is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans among the plurality of fans are not rotating, and the indicator light control signal formed is made at a low level through an AND operation;
[0137] If the number of the fan status indication signals at a continuous low level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not rotating, and the indicator light control signal formed is made low level through an AND operation.
[0138] Among them, the AND operation method is that the two bits are "1" at the same time, the result is "1", otherwise it is 0. Therefore, the number of fan status indication signals with continuous low level can be refined to determine the number of fans that are not rotating. As long as there is a fan status indication signal with continuous low level, the indicator light control signal formed by the AND operation is low level. When the indicator light control signal is low level, the fan status indicator light is controlled to be always on.
[0139] The maximum logic output cycle value is the maximum cycle value of the fan status signal. That is, the maximum cycle when the fan status signal is normally reversed is the maximum logic output cycle value. If the fan status signal does not reverse within the maximum logic output cycle value time, it is considered that the status signal is always high or always low and is not in a reverse state.
[0140] It is understandable that when the rotation speeds of multiple fans reach the maximum, the minimum periods of the fan status indication signals of the multiple fans are all the maximum period value of the logic output, and there are no continuous high levels and continuous low levels in the fan status indication signals of the multiple fans. In this case, the indicator light control signal is also formed through an AND operation, so that the formed indicator light control signal is a pulse signal.
[0141] Therefore, in this embodiment, the method further includes:
[0142] If there is no continuous high level or continuous low level in the fan status indication signals of the multiple fans, determining whether the minimum periods of the multiple fan status indication signals are all the maximum period values of the logic output;
[0143] If so, it is determined that the speeds of multiple fans have reached the maximum value and an over-temperature alarm message is issued.
[0144] When the rotation speeds of multiple fans reach their maximum values, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of multiple fans is obtained to control the fan status indicator light to flash. The fan rotation speed can be displayed by the flashing frequency of the fan status indicator light, and an over-temperature alarm message can be issued when the rotation speeds of multiple fans reach their maximum values to achieve a high temperature hazard warning.
[0145] like Figure 3 As shown, in this embodiment, the step of obtaining the maximum cycle of the fan status indication signal of each fan when the fan status indication signal is normally reversed as the logic output maximum cycle value includes:
[0146] Determine whether there is a power-on reset;
[0147] If there is a power-on reset, the maximum cycle of the fan status indication signal corresponding to the fan at rated power when the fan is normally reversed is obtained as the maximum cycle value of the logic output;
[0148] In response to the power-on reset, the indicator light control signal is controlled to be high level, and the fan status indicator light is turned off.
[0149] As shown in the figure, after power-on reset, each cycle of the fan status indication signals of multiple fans is calculated, and the minimum cycle is compared in each cycle. By judging whether the minimum cycle of the fan status indication signals of multiple fans are all the maximum cycle value of the logic output, it is possible to distinguish between two groups of fan status indication signals that are all pulse signal types and fan status indication signals that include continuous low level types. Detailed analysis of these two groups can determine information such as whether the fan is not in place, in place but not rotating, and fan speed, so as to control the different state displays of the fan status indicator light.
[0150] In this embodiment, the calculating of the cycles of the fan status indication signals of the plurality of fans and comparing and searching for the minimum cycle among the cycles comprises:
[0151] A register is used to count the duration of each cycle of the fan status indication signal of each fan;
[0152] Find the highest bit of the duration count in the registers corresponding to multiple cycles; if only one register has a highest bit of 1, determine that the duration count of the register is the largest; if the highest bit value of multiple registers is 1, compare the second highest bit values of the cycle count values in the multiple registers;
[0153] If only one register has a second highest digit value of 1, the duration count of the register with the second highest digit value of 1 is determined to be the largest; if multiple registers have second highest digit values of 1, the second highest digit values of the cycle count values in the multiple registers are compared;
[0154] In this way, the cycle with the smallest duration count of the register is found out in a loop, and the cycle is used as the minimum cycle of the fan status indication signal.
[0155] Using the highest bit first method to compare and find the minimum period of the fan status indication signal is beneficial to reducing computing power requirements, can realize block analysis, and can quickly find the minimum period of the fan status indication signal.
[0156] In the above-mentioned multi-channel fan status indication method, it is possible to determine whether the corresponding fans are in place and rotating through the fan status indication signals of multiple fans. When a fan is not in place, the fan status indicator light is controlled to be off; when a fan is not rotating, the fan status indicator light is controlled to be always on; when all fans are in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of all fans is obtained to control the fan status indicator light to flash. The pulse signal frequency is positively correlated with the fan speed, so that the indicator light flashing frequency is positively correlated with the fan speed, and the corresponding fan rotation speed information can be obtained from the flashing frequency of the front window indicator light.
[0157] In one embodiment, Figure 1 , Figure 2 As shown, a multi-channel fan status indication system is provided, which includes a fan group, a complex programmable logic device and a fan status indicator light;
[0158] The fan group is provided with at least two fans, each fan is connected to the complex programmable logic device, and the complex programmable logic device is connected to the fan status indicator light;
[0159] The complex programmable logic device includes at least two cycle detection logics, a cycle comparison logic and a gating control logic, each fan is connected to each cycle detection logic, the cycle detection logic is connected to the cycle comparison logic, the fan is connected to the gating control logic, the cycle detection logic is connected to the gating control logic, and the gating control logic is connected to the fan status indicator light;
[0160] The gating control logic is used to obtain a fan status indication signal of the corresponding fan, and determine whether the corresponding fan is in place and whether it is rotating according to the fan status indication signal;
[0161] In response to the plurality of fans being in place and rotating, the period detection logic acquires the minimum period of the fan status indication signal of each fan, and the period comparison logic compares the minimum period of the fan status indication signals of the plurality of fans;
[0162] The gating control logic obtains the fan status indication signal with the minimum period output by the period comparison logic, and controls the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of multiple fans to flash and light up;
[0163] In response to any fan not being in place, the gating control logic controls the fan status indicator light to turn off;
[0164] In response to multiple fans being in place and any one of the fans not rotating, the gate control logic controls the fan status indicator light to remain on.
[0165] This embodiment uses complex programmable logic devices to detect and determine the status indication signals of multiple fans, and controls the fan status indicator light on the front window of the chassis to accurately indicate the working status of the fan. When the operation and maintenance engineer is at the front window position corresponding to the node and maintains many nodes in the data center, he can qualitatively determine the heat dissipation status of the node currently being maintained by visual means without having to go through the rear window, which saves operation and maintenance time and energy, and makes the indication function of the front window of the chassis more complete and effective.
[0166] In this embodiment, the acquiring of fan status indication signals of the plurality of fans and determining whether corresponding fans are in place and rotating according to the fan status indication signals of the plurality of fans include:
[0167] Acquire a fan status indication signal of a target fan, and identify whether the fan status indication signal of the target fan is a type of a continuous high level, a continuous low level, or a pulse signal;
[0168] In response to the type of the fan status indication signal of the target fan being a continuous high level, determining that the target fan is not connected to a fan adapter board and the target fan is not in place;
[0169] In response to the type of the fan status indication signal of the target fan being a continuous low level, determining that the target fan is connected to a fan adapter board, and the target fan is in place and does not rotate;
[0170] In response to the type of the fan status indication signal of the target fan being a pulse signal, it is determined that the target fan is connected to a fan adapter board and the target fan is in place and rotating.
[0171] In this embodiment, the fan is further provided with a connection detector, and the connection detector is used before obtaining the fan status indication signal of the target fan:
[0172] Determining whether the target fan is connected to a fan adapter board;
[0173] If the target fan is not connected to the fan adapter board, controlling the fan status indication signal of the target fan to be high level;
[0174] If the target fan is connected to the fan adapter plate, determining whether the target fan is rotating;
[0175] If the target fan does not rotate, the fan state indication signal of the target fan is controlled to be at a low level;
[0176] If the target fan rotates, the fan state indication signal for controlling the target fan is a pulse signal.
[0177] In this embodiment, if the target fan rotates, controlling the fan status indication signal of the target fan to be a pulse signal includes:
[0178] Detecting and obtaining the rotation speed of the target fan;
[0179] The frequency of the pulse signal is set according to the rotation speed of the target fan, wherein the frequency of the pulse signal is proportional to the rotation speed of the target fan.
[0180] In this embodiment, the step of obtaining the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans to control the fan status indicator light to flash includes:
[0181] Obtaining the maximum cycle of the fan status indication signal of each fan when it is normally reversed as the maximum cycle value of the logic output;
[0182] Setting the period of the fan status indication signal being at a continuous high level to be equal to the maximum period value of the logic output;
[0183] Calculating each cycle of the fan status indication signals of the plurality of fans, and comparing and searching for the minimum cycle among the cycles;
[0184] Determining whether the minimum periods of the fan status indication signals of the plurality of fans are all the maximum period values of the logic output;
[0185] If the minimum periods of the fan status indication signals of multiple fans are not all the maximum period value of the logic output, it is determined that the multiple fans are all in place and have different rotation speeds, and the fan status indication signal corresponding to the minimum period is used as the indicator light control signal, and the fan status indicator light is controlled to flash according to the indicator light control signal.
[0186] In this embodiment, in response to any fan not being in place, the gating control logic controls the fan status indicator to turn off, including:
[0187] If the minimum periods of the fan status indication signals of the multiple fans are all the maximum period value of the logic output, determining whether there is a continuous high level in the fan status indication signals of the multiple fans;
[0188] If there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form an indicator light control signal;
[0189] The fan status indicator light is controlled to turn off according to the indicator light control signal.
[0190] In this embodiment, if there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form the indicator light control signal, including:
[0191] If there is a continuous high level in the fan status indication signals of the multiple fans, identifying the number of the fan status indication signals of the multiple fans that are continuously high level;
[0192] If the number of the fan status indication signals that are continuously high is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans are not in place, and the indicator light control signal formed is made high through a phase OR operation;
[0193] If the number of the fan status indication signals at a continuous high level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not in place, and the indicator light control signal formed is made high level through a phase OR operation.
[0194] In this embodiment, in response to the plurality of fans being in place and any one of the fans not rotating, the gating control logic controls the fan status indicator light to be always on, including:
[0195] If there is no continuous high level in the fan status indication signals of the multiple fans, it is determined that the multiple fans are in place;
[0196] Performing AND operation on fan status indication signals of multiple fans to form an indicator light control signal;
[0197] The fan status indicator light is controlled to be always on according to the indicator light control signal.
[0198] In this embodiment, performing AND operation on the fan status indication signals of the plurality of fans to form the indicator light control signal comprises:
[0199] If there is at least one continuous low level among the fan status indication signals of the multiple fans, identifying the number of fan status indication signals of the multiple fans that are continuously low level;
[0200] If the number of the fan status indication signals that are continuously at a low level is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans among the plurality of fans are not rotating, and the indicator light control signal formed is made at a low level through an AND operation;
[0201] If the number of the fan status indication signals at a continuous low level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not rotating, and the indicator light control signal formed is made low level through an AND operation.
[0202] In this embodiment, the step of obtaining the maximum cycle of the fan status indication signal of each fan when the fan status indication signal is normally reversed as the logic output maximum cycle value includes:
[0203] Determine whether there is a power-on reset;
[0204] If there is a power-on reset, the maximum cycle of the fan status indication signal corresponding to the fan at rated power when the fan is normally reversed is obtained as the maximum cycle value of the logic output;
[0205] In response to the power-on reset, the indicator light control signal is controlled to be high level, and the fan status indicator light is turned off.
[0206] In this embodiment, the calculating of the cycles of the fan status indication signals of the plurality of fans and comparing and searching for the minimum cycle among the cycles comprises:
[0207] A register is used to count the duration of each cycle of the fan status indication signal of each fan;
[0208] Find the highest bit of the duration count in the registers corresponding to multiple cycles; if only one register has a highest bit of 1, determine that the duration count of the register is the largest; if the highest bit value of multiple registers is 1, compare the second highest bit values of the cycle count values in the multiple registers;
[0209] If only one register has a second highest digit value of 1, the duration count of the register with the second highest digit value of 1 is determined to be the largest; if multiple registers have second highest digit values of 1, the second highest digit values of the cycle count values in the multiple registers are compared;
[0210] In this way, the cycle with the smallest duration count of the register is found out in a loop, and the cycle is used as the minimum cycle of the fan status indication signal.
[0211] This embodiment also provides a multi-channel fan status indication system, which includes a fan group, a complex programmable logic device and a fan status indicator light;
[0212] The fan group is provided with at least two fans, each fan is connected to the complex programmable logic device, and the complex programmable logic device is connected to the fan status indicator light;
[0213] The complex programmable logic device includes at least two cycle detection logics, a cycle comparison logic and a gating control logic, each fan is connected to each cycle detection logic, the cycle detection logic is connected to the cycle comparison logic, the fan is connected to the gating control logic, the cycle detection logic is connected to the gating control logic, and the gating control logic is connected to the fan status indicator light;
[0214] The gating control logic is used to obtain a fan status indication signal of the corresponding fan, and determine whether the corresponding fan is in place and whether it is rotating according to the fan status indication signal;
[0215] In response to the plurality of fans being in place and rotating, the period detection logic acquires the minimum period of the fan status indication signal of each fan, and the period comparison logic compares the minimum period of the fan status indication signals of the plurality of fans;
[0216] The gating control logic obtains the fan status indication signal with the minimum period output by the period comparison logic, and controls the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of multiple fans to flash and light up;
[0217] In response to any fan not being in place, the gating control logic controls the fan status indicator light to turn off;
[0218] In response to multiple fans being in place and any one of the fans not rotating, the gate control logic controls the fan status indicator light to remain on.
[0219] In the above-mentioned multi-channel fan status indication device, it is possible to determine whether the corresponding fans are in place and rotating through the fan status indication signals of multiple fans. When a fan is not in place, the fan status indicator light is controlled to be off; when a fan is not rotating, the fan status indicator light is controlled to be always on; when all fans are in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of all fans is obtained to control the fan status indicator light to flash. The pulse signal frequency is positively correlated with the fan speed, so that the flashing frequency of the indicator light is positively correlated with the fan speed, and the corresponding fan rotation speed information can be obtained from the flashing frequency of the front window indicator light.
[0220] For the specific definition of the multi-way fan status indication device, please refer to the definition of the multi-way fan status indication method in the above text, which will not be repeated here. Each module in the above multi-way fan status indication device can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0221] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store multi-channel fan status indication data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a multi-channel fan status indication method is implemented.
[0222] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0223] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0224] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0225] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0226] In response to any fan being out of position, the fan status indicator light is controlled to turn off;
[0227] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0228] For specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method for indicating the status of multiple fans above, which will not be repeated here.
[0229] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0230] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0231] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0232] In response to any fan not being in place, the fan status indicator light is controlled to turn off;
[0233] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0234] For specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the method for indicating the status of multiple fans above, which will not be repeated here.
[0235] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0236] Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans;
[0237] In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up;
[0238] In response to any fan not being in place, the fan status indicator light is controlled to turn off;
[0239] In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on.
[0240] For specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method for indicating the status of multiple fans above, which will not be repeated here.
[0241] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0242] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0243] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A multi-channel fan status indication method, characterized in that: include: Obtain fan status indication signals of multiple fans, and determine whether corresponding fans are in place and rotating according to the fan status indication signals of the multiple fans; In response to the fact that the multiple fans are all in place and rotating, the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans is obtained to control the fan status indicator light to flash and light up; In response to any fan not being in place, the fan status indicator light is controlled to turn off; In response to multiple fans being in place and any one of the fans not rotating, the fan status indicator light is controlled to be always on; The acquiring of fan status indication signals of the plurality of fans and determining whether corresponding fans are in place and rotating according to the fan status indication signals of the plurality of fans include: Acquire a fan status indication signal of a target fan, and identify whether the fan status indication signal of the target fan is a type of a continuous high level, a continuous low level, or a pulse signal; In response to the type of the fan status indication signal of the target fan being a continuous high level, determining that the target fan is not in place; In response to the type of the fan status indication signal of the target fan being a continuous low level, determining that the target fan is in place and not rotating; In response to the type of the fan status indication signal of the target fan being a pulse signal, determining that the target fan is in place and rotating; Wherein, in response to the fact that the multiple fans are in place and rotating, obtaining the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of the multiple fans to control the fan status indicator light to flash includes: Obtaining the maximum cycle of the fan status indication signal of each fan when it is normally reversed as the maximum cycle value of the logic output; Setting the period of the fan status indication signal being at a continuous high level to be equal to the maximum period value of the logic output; Calculating each cycle of the fan status indication signals of the plurality of fans, and comparing and searching for the minimum cycle among the cycles; Determining whether the minimum periods of the fan status indication signals of the plurality of fans are all the maximum period values of the logic output; If the minimum periods of the fan status indication signals of the multiple fans are not all the maximum period value of the logic output, it is determined that the multiple fans are all in place and have different rotation speeds, and the fan status indication signal corresponding to the minimum period is used as the indicator light control signal, and the fan status indicator light is controlled to flash according to the indicator light control signal; Wherein, in response to any fan not being in place, controlling the fan status indicator to turn off includes: If the minimum periods of the fan status indication signals of the multiple fans are all the maximum period value of the logic output, determining whether there is a continuous high level in the fan status indication signals of the multiple fans; If there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form an indicator light control signal; Controlling the fan status indicator light to turn off according to the indicator light control signal; Wherein, in response to the fact that multiple fans are in place and any one of the fans does not rotate, controlling the fan status indicator light to be always on includes: If there is no continuous high level in the fan status indication signals of the multiple fans, it is determined that the multiple fans are in place; Performing AND operation on fan status indication signals of multiple fans to form an indicator light control signal; The fan status indicator light is controlled to be always on according to the indicator light control signal.
2. The multi-channel fan status indication method according to claim 1, characterized in that: Before obtaining the fan status indication signal of the target fan, the method further includes: Determining whether the target fan is connected to a fan adapter board; If the target fan is not connected to the fan adapter board, controlling the fan status indication signal of the target fan to be high level; If the target fan is connected to the fan adapter plate, determining whether the target fan is rotating; If the target fan does not rotate, the fan state indication signal of the target fan is controlled to be at a low level; If the target fan rotates, the fan state indication signal for controlling the target fan is a pulse signal.
3. The multi-channel fan status indication method according to claim 2, characterized in that: If the target fan rotates, controlling the fan status indication signal of the target fan to be a pulse signal includes: Detecting and obtaining the rotation speed of the target fan; The frequency of the pulse signal is set according to the rotation speed of the target fan, wherein the frequency of the pulse signal is proportional to the rotation speed of the target fan.
4. The multi-channel fan status indication method according to claim 1, characterized in that: If there is a continuous high level in the fan status indication signals of the multiple fans, it is determined that at least one fan is not in place, and the fan status indication signals of the multiple fans are ORed to form an indicator light control signal, including: If there is a continuous high level in the fan status indication signals of the multiple fans, identifying the number of the fan status indication signals of the multiple fans that are continuously high level; If the number of the fan status indication signals that are continuously high is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans are not in place, and the indicator light control signal formed is made high through a phase OR operation; If the number of the fan status indication signals at a continuous high level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not in place, and the indicator light control signal formed is made high level through a phase OR operation.
5. The multi-channel fan status indication method according to claim 1, characterized in that: The forming of the indicator light control signal by performing AND operation on the fan status indication signals of the plurality of fans comprises: If there is at least one continuous low level among the fan status indication signals of the multiple fans, identifying the number of fan status indication signals of the multiple fans that are continuously low level; If the number of the fan status indication signals that are continuously at a low level is less than the total number of the plurality of fan status indication signals, it is determined that a plurality of fans among the plurality of fans are not rotating, and the indicator light control signal formed is made at a low level through an AND operation; If the number of the fan status indication signals at a continuous low level is equal to the total number of the plurality of fan status indication signals, it is determined that the plurality of fans are not rotating, and the indicator light control signal formed is made low level through an AND operation.
6. The multi-channel fan status indication method according to claim 1, characterized in that: The step of obtaining the maximum cycle of the fan status indication signal of each fan when the fan status indication signal is normally reversed as the maximum cycle value of the logic output includes: Determine whether there is a power-on reset; If there is a power-on reset, the maximum cycle of the fan status indication signal corresponding to the fan at rated power when the fan is normally reversed is obtained as the maximum cycle value of the logic output; In response to the power-on reset, the indicator light control signal is controlled to be high level, and the fan status indicator light is turned off.
7. The multi-channel fan status indication method according to claim 1, characterized in that: The step of calculating the respective cycles of the fan status indication signals of the plurality of fans and comparing and searching for the minimum cycle in the respective cycles comprises: A register is used to count the duration of each cycle of the fan status indication signal of each fan; Find the highest bit of the duration count in the registers corresponding to multiple cycles; if only one register has a highest bit of 1, determine that the duration count of the register is the largest; if the highest bit value of multiple registers is 1, compare the second highest bit values of the cycle count values in the multiple registers; If only one register has a second highest digit value of 1, the duration count of the register with the second highest digit value of 1 is determined to be the largest; if multiple registers have second highest digit values of 1, the second highest digit values of the cycle count values in the multiple registers are compared; In this way, the cycle with the smallest duration count of the register is found out in a loop, and the cycle is used as the minimum cycle of the fan status indication signal.
8. A multi-channel fan status indication system, used to implement the multi-channel fan status indication method according to any one of claims 1 to 7, characterized in that: Includes fan group, complex programmable logic device and fan status indicator light; The fan group is provided with at least two fans, each fan is connected to the complex programmable logic device, and the complex programmable logic device is connected to the fan status indicator light; The complex programmable logic device includes at least two cycle detection logics, a cycle comparison logic and a gating control logic, each fan is connected to each cycle detection logic, the cycle detection logic is connected to the cycle comparison logic, the fan is connected to the gating control logic, the cycle detection logic is connected to the gating control logic, and the gating control logic is connected to the fan status indicator light; The gating control logic is used to obtain a fan status indication signal of the corresponding fan, and determine whether the corresponding fan is in place and whether it is rotating according to the fan status indication signal; In response to the plurality of fans being in place and rotating, the period detection logic acquires the minimum period of the fan status indication signal of each fan, and the period comparison logic compares the minimum period of the fan status indication signals of the plurality of fans; The gating control logic obtains the fan status indication signal with the minimum period output by the period comparison logic, and controls the fan status indication signal with the highest pulse signal frequency among the fan status indication signals of multiple fans to flash and light up; In response to any fan not being in place, the gating control logic controls the fan status indicator light to turn off; In response to multiple fans being in place and any one of the fans not rotating, the gate control logic controls the fan status indicator light to remain on.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.