Fan control method and related apparatus
By adopting a centralized fan speed control method in the all-in-one machine, and using complex programmable logic devices to dynamically adjust the fan speed, the backflow problem caused by independent control of adjacent fan boards is solved, thereby improving heat dissipation efficiency and system stability.
Patent Information
- Application Number
- PCT/CN2026/083594
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-07
- Filing Date
- 2026-03-16
- Publication Date
- 2026-11-12
AI Technical Summary
In all-in-one PCs, the fan backflow caused by the independent control of adjacent fan boards results in low heat dissipation efficiency, and existing methods of adding physical baffles have not completely solved this problem.
By uniformly receiving and processing fan speed control signals from adjacent nodes in a complex programmable logic device at a single node, and dynamically adjusting the fan speed using an anti-backflow algorithm, the difference in speed between adjacent fans is ensured to be less than a preset threshold, thus achieving centralized control.
It effectively reduces fan backflow, improves the heat dissipation efficiency of the all-in-one PC, avoids the additional cost and space occupation caused by physical baffles, and ensures balanced heat dissipation and heat dissipation efficiency under high load.
Smart Images

Figure CN2026083594_12112026_PF_FP_ABST
Abstract
Description
Fan control methods and related devices
[0001] This application claims priority to Chinese Patent Application No. 202510584542.6, filed on May 7, 2025, entitled "Fan Control Method and Related Apparatus", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of server technology, and in particular to a fan control method and related apparatus. Background Technology
[0003] With the rapid development of information technology, the demand for computing power in data centers and high-performance computing clusters is increasing. All-in-one machines, as key devices in these application scenarios, integrate a large number of computing nodes, switching nodes, and storage units, resulting in significant heat generation during operation. Improving heat dissipation efficiency has become a crucial factor in ensuring stable operation and extending the lifespan of all-in-one machines.
[0004] In related technologies, each unit within an all-in-one PC has an independent built-in fan plate. The control center of each unit adjusts the fan plate speed based on feedback from an internal temperature sensor to achieve heat dissipation. However, the independent operation of adjacent fan plates with significant speed differences can easily lead to fan backflow, meaning that the fans on adjacent fan plates interfere with each other, creating airflow short circuits and reducing heat dissipation efficiency. To solve this problem, the industry commonly uses the method of adding physical baffles between adjacent fan plates to reduce or prevent fan backflow.
[0005] However, the inventors discovered that even with the above method, fan backflow still occurs, resulting in low heat dissipation efficiency for the all-in-one PC. Summary of the Invention
[0006] This application provides a fan control method and related devices to reduce fan backflow and improve the heat dissipation efficiency of the all-in-one machine.
[0007] In a first aspect, embodiments of this application provide a fan control method applied to a first complex programmable logic device in a fan control system. The fan control system includes a first node, a second node, and a third node. The first node is configured with a first fan and a first complex programmable logic device, the second node is configured with a second fan, and the third node is configured with a third fan. The method includes:
[0008] Obtain the speed control signals of the first fan, the second fan, and the third fan respectively;
[0009] An anti-backflow algorithm is used to adjust the speed control signal to obtain the target speed signals of the first fan, the second fan, and the third fan. The difference between the target speed signals of adjacent fans is less than a preset threshold.
[0010] Based on the target speed signal, control the first fan, the second fan, and the third fan respectively.
[0011] In one possible implementation, the first node is located between the second node and the third node;
[0012] Using an anti-backflow algorithm, the speed control signal is adjusted to obtain the target speed signals for the first, second, and third fans, including:
[0013] Based on the speed control signals of the first fan, the second fan, and the third fan, determine the target speed signal of the first fan;
[0014] The target speed signal of the second fan is determined based on the target speed signal of the first fan and the speed control signal of the second fan. The target speed signal of the third fan is determined based on the target speed signal of the first fan and the speed control signal of the third fan.
[0015] In one possible implementation, determining the target speed signal of the first fan based on the speed control signals of the first fan, the second fan, and the third fan includes:
[0016] Adjust the speed control signals of the second fan and the third fan according to the preset ratio;
[0017] The maximum value among the speed control signals of the first fan, the adjusted speed control signals of the second fan, and the adjusted speed control signals of the third fan is determined as the target speed signal of the first fan.
[0018] In one possible implementation, determining the target speed signal of the second fan based on the target speed signal of the first fan and the speed control signal of the second fan, and determining the target speed signal of the third fan based on the target speed signal of the first fan and the speed control signal of the third fan, includes:
[0019] Calculate the product of the target speed signal of the first fan and the preset ratio;
[0020] The larger of the product and the speed control signal of the second fan is determined to be the target speed signal of the second fan, and the larger of the product and the speed control signal of the third fan is determined to be the target speed signal of the third fan.
[0021] In one possible implementation, the second node is further configured with a second complex programmable logic device, and the third node is further configured with a third complex programmable logic device.
[0022] Based on the target speed signal, control the first fan, the second fan, and the third fan respectively, including:
[0023] Control the first fan according to the target speed signal corresponding to the first fan;
[0024] The target speed signal corresponding to the second fan is sent to the second complex programmable logic device, so that the second complex programmable logic device controls the second fan according to the target speed signal corresponding to the second fan;
[0025] The target speed signal corresponding to the third fan is sent to the third complex programmable logic device, so that the third complex programmable logic device controls the third fan according to the target speed signal corresponding to the third fan.
[0026] Secondly, embodiments of this application provide a fan control system, including: a first node, a second node, and a third node;
[0027] The first node is equipped with a first fan and a first complex programmable logic device, the second node is equipped with a second fan, and the third node is equipped with a third fan;
[0028] The first complex programmable logic device is used to execute the fan control method as claimed in any one of claims 1-5.
[0029] In one possible implementation, the first node is located between the second and third nodes.
[0030] Thirdly, embodiments of this application provide a fan control device applied to a fan control system. The fan control system includes a first node, a second node, and a third node. The first node is equipped with a first fan, the second node is equipped with a second fan, and the third node is equipped with a third fan. The device includes:
[0031] The acquisition module is used to acquire the speed control signals of the first fan, the second fan, and the third fan respectively;
[0032] The processing module is used to adjust the speed control signal using an anti-backflow algorithm to obtain the target speed signals of the first fan, the second fan, and the third fan, and the difference between the target speed signals of adjacent fans is less than a preset threshold.
[0033] The control module is used to control the first fan, the second fan, and the third fan respectively according to the target speed signal.
[0034] In one possible implementation, the first node is located between the second node and the third node;
[0035] The processing module is specifically used to determine the target speed signal of the first fan based on the speed control signals of the first fan, the second fan, and the third fan.
[0036] The target speed signal of the second fan is determined based on the target speed signal of the first fan and the speed control signal of the second fan. The target speed signal of the third fan is determined based on the target speed signal of the first fan and the speed control signal of the third fan.
[0037] In one possible implementation, the processing module is specifically used to adjust the speed control signals of the second fan and the third fan according to a preset ratio.
[0038] The maximum value among the speed control signals of the first fan, the adjusted speed control signals of the second fan, and the adjusted speed control signals of the third fan is determined as the target speed signal of the first fan.
[0039] In one possible implementation, the processing module is specifically used to calculate the product of the target speed signal of the first fan and a preset ratio;
[0040] The larger of the product and the speed control signal of the second fan is determined to be the target speed signal of the second fan, and the larger of the product and the speed control signal of the third fan is determined to be the target speed signal of the third fan.
[0041] In one possible implementation, the second node is further configured with a second complex programmable logic device, and the third node is further configured with a third complex programmable logic device.
[0042] The control module is specifically used to control the first fan according to the target speed signal corresponding to the first fan;
[0043] The target speed signal corresponding to the second fan is sent to the second complex programmable logic device, so that the second complex programmable logic device controls the second fan according to the target speed signal corresponding to the second fan;
[0044] The target speed signal corresponding to the third fan is sent to the third complex programmable logic device, so that the third complex programmable logic device controls the third fan according to the target speed signal corresponding to the third fan.
[0045] Fourthly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0046] The memory stores instructions that the computer executes;
[0047] The processor executes computer execution instructions stored in memory, causing the processor to perform the various possible implementations of the first aspect above.
[0048] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement various possible implementations of the first aspect described above.
[0049] In a sixth aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements various possible implementations of the first aspect described above.
[0050] The fan control method and related apparatus provided in this application establish a centralized processing mechanism within a complex programmable logic device at a single node. This mechanism uniformly receives and processes fan speed control signals from adjacent nodes and dynamically adjusts the speed using a preset anti-backflow algorithm. This algorithm, by comparing and constraining the speed difference between adjacent fans in real time, fundamentally solves the airflow interference problem caused by independent control in traditional solutions, further reducing fan backflow and improving the heat dissipation efficiency of the integrated machine. Attached Figure Description
[0051] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0052] Figure 1 is a structural schematic diagram of an all-in-one machine;
[0053] Figure 2 is a schematic diagram of a fan control system in the related art;
[0054] Figure 3 is a schematic diagram of a fan control system provided in this application;
[0055] Figure 4 is a flowchart illustrating a fan control method provided in this application;
[0056] Figure 5 is a partial structural schematic diagram of a fan control system provided in this application;
[0057] Figure 6 is a flowchart illustrating another fan control method provided in this application;
[0058] Figure 7 is a structural schematic diagram of a fan control device provided in this application;
[0059] Figure 8 is a schematic diagram of the structure of an electronic device provided in this application.
[0060] Reference numerals in the attached figures: 10. Fan control system; 11. First node; 111. First fan; 112. First CPLD; 113. First BMC; 12. Second node; 121. Second fan; 122. Second CPLD; 123. Second BMC; 13. Third node; 131. Third fan; 132. Third CPLD; 133. Third BMC.
[0061] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0062] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0063] As shown in Figure 1, modern high-density computing all-in-one machines adopt a vertically layered architecture design, mainly composed of three functional layers: the top layer is the switching node, responsible for data exchange and communication between computing nodes; the middle layer is configured with graphics processing unit (GPU) nodes, undertaking the main parallel computing tasks; and the bottom layer deploys central processing unit (CPU) nodes, handling general computing and system scheduling. This vertical stacking structure of "switching-GPU-CPU" achieves efficient collaboration of computing resources through short-distance high-speed interconnection, integrating complete computing-communication functional units within a single chassis, and is widely used in scenarios requiring large-scale parallel processing capabilities, such as deep learning training and scientific computing.
[0064] As shown in Figure 2, in traditional heat dissipation designs, each functional layer independently configures a fan board, controlling its speed according to its own needs to achieve heat dissipation. Specifically, the Baseboard Management Controller (BMC) of each node sends the speed control signal of the corresponding fan board to the I2C_SLAVE module in the Complex Programmable Logic Device (CPLD) of that node via an I2C channel. The CPLD then controls the fan speed of the corresponding fan board based on the speed control signal. Because the control of the fan boards by the three functional layers lacks a coordinated control mechanism, when there is a speed difference between the fan of the GPU node and the fans of the upper and lower layers, airflow turbulence and backflow can easily occur in the interlayer junction area, meaning that fans in adjacent fan boards can interfere with each other when operating.
[0065] To address the fan backflow issue, related technologies typically involve installing baffles between adjacent fan plates for physical isolation. However, this approach not only increases the structural weight of the all-in-one PC and requires disassembling multiple baffles for maintenance, but also means that momentary backflow can still occur when the system load fluctuates drastically, resulting in low heat dissipation efficiency for the all-in-one PC.
[0066] To address the aforementioned issues, this application provides a fan control method and related apparatus, which achieves dynamic intelligent adjustment of fans at each functional layer through a centralized control architecture. This method establishes a centralized processing mechanism within a complex programmable logic device at a single node, uniformly receiving and processing fan speed control signals from adjacent nodes, and employs a unique anti-backflow algorithm for dynamic adjustment. This algorithm fundamentally solves the airflow interference problem caused by independent control in traditional solutions by comparing and constraining the speed difference between adjacent fans in real time. Without increasing structural costs or affecting the overall cabinet layout, it reduces the backflow impact between adjacent fan boards, thereby improving the heat dissipation efficiency of the integrated machine.
[0067] Figure 3 is a schematic diagram of a fan control system provided in this application. As shown in Figure 3, the fan control system 10 in this embodiment includes a first node 11, a second node 12 and a third node 13. The first node 11 is equipped with a first fan 111 and a first CPLD 112, the second node 12 is equipped with a second fan 121, and the third node 13 is equipped with a third fan 131.
[0068] Optionally, the second node 12 is also configured with a second CPLD 122, and the third node 13 is also configured with a third CPLD 132.
[0069] Optionally, the first node 11 is also configured with a first BMC 113, the second node 12 is also configured with a second BMC 123, and the third node 13 is also configured with a third BMC 133.
[0070] Optionally, the first node 11 is located between the second node 12 and the third node 13.
[0071] It is understandable that the positional relationship between the first node 11, the second node 12, and the third node 13 can also be that the second node 12 is located between the first node 11 and the third node 13, or that the third node 13 is located between the first node 11 and the second node 12.
[0072] Optionally, the first node 11 is a switching node, the second node 12 is a GPU node, and the third node 13 is a CPU node.
[0073] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0074] Figure 4 is a flowchart illustrating a fan control method provided in this application. As shown in Figure 4, with the first CPLD112 as the execution entity, the fan control method of this embodiment specifically includes the following steps:
[0075] S101: Obtain the speed control signals of the first fan 111, the second fan 121, and the third fan 131 respectively.
[0076] In this embodiment, the first CPLD112 can receive the pulse width modulation (PWM) speed control signal of the first fan 111 sent by the first BMC113 via the I2C bus, receive the PWM speed control signal of the second fan 121 sent by the second BMC123 via the I2C bus, and receive the PWM speed control signal of the third fan 131 sent by the third BMC133 via the I2C bus.
[0077] Optionally, the first CPLD112 can normalize the received PWM speed control signal, for example, by converting it into a duty cycle percentage, to eliminate signal reference differences between different nodes.
[0078] As shown in Figure 5, the first CPLD112 can be equipped with three independent I2C_SLAVE modules, which are used to receive PWM speed control signals sent by three BMCs respectively.
[0079] S102. Using an anti-backflow algorithm, adjust the speed control signal to obtain the target speed signals of the first fan 111, the second fan 121, and the third fan 131.
[0080] In this embodiment, the difference between the target speed signals of adjacent fans is less than a preset threshold, for example, the difference is less than 20%.
[0081] Optionally, the first CPLD112 can compare three PWM speed control signals and select the median value as the reference signal. Then, based on the reference signal, the PWM speed control signal of each fan is adjusted to ensure that the difference between the target speed signals of adjacent fans is less than a preset threshold.
[0082] For example, if the PWM speed control signal of the first fan 111 is 80, the PWM speed control signal of the second fan 121 is 60, and the PWM speed control signal of the third fan 131 is 70, then the reference signal is 70.
[0083] If the first fan 111, the second fan 121 and the third fan 131 are arranged in sequence, then the PWM speed control signal of the third fan 131 is used as the reference signal, that is, the target speed signal of the third fan 131 is 70.
[0084] Based on the target speed signal of the third fan 131, the PWM speed control signal of the second fan 121 is adjusted to obtain the target speed signal of the second fan 121. It can be understood that the difference between the target speed signal of the second fan 121 and the target speed signal of the third fan 131 is less than a preset threshold.
[0085] For example, the target speed signal of the second fan 121 = max(PWM speed control signal of the second fan 121 × 0.85, target speed signal of the third fan 131 × 0.85).
[0086] Based on the target speed signal of the second fan 121, the PWM speed control signal of the first fan 111 is adjusted to obtain the target speed signal of the first fan 111. It can be understood that the difference between the target speed signal of the first fan 111 and the target speed signal of the second fan 121 is less than a preset threshold.
[0087] For example, the target speed signal of the first fan 111 is max(PWM speed control signal of the first fan 111 × 0.85, target speed signal of the second fan 121 × 0.85).
[0088] Optionally, if the difference between the PWM speed control signal of a certain fan and the target speed signal of an adjacent fan is much smaller than a preset threshold, for example, the difference is less than 3%, then the target speed signal of that fan is the PWM speed control signal, thereby reducing unnecessary adjustment actions.
[0089] S103. Control the first fan 111, the second fan 121 and the third fan 131 respectively according to the target speed signal.
[0090] In this embodiment, the first CPLD 112 can control the first fan 111 according to the target speed signal of the first fan 111.
[0091] If the second node 12 and the third node 13 are configured with CPLDs, the first CPLD 112 can send the target speed signal to the corresponding CPLD through the Serial General Purpose Input / Output (SGPIO) communication bus, and the CPLDs of the second node 12 and the third node 13 can control the corresponding fan.
[0092] If the second node 12 and the third node 13 are not configured with CPLD, the first CPLD 112 can remotely control the second fan 121 and the third fan 131 through the I2C extended IO chip.
[0093] The fan control method provided in this embodiment can be adapted to hybrid node architectures without CPLDs, achieving heterogeneous control through a bus protocol. Furthermore, the BMCs between nodes do not need to communicate with each other for fan control. The hardware parallel processing capability of the CPLD ensures that the anti-backflow algorithm is completed in microseconds, far faster than the milliseconds of the BMC software solution. Without increasing the structural cost of the all-in-one machine or affecting the layout of the entire rack, it can effectively reduce fan backflow and improve the heat dissipation efficiency of the all-in-one machine.
[0094] Figure 6 is a flowchart illustrating another fan control method provided in this application. As shown in Figure 6, this embodiment provides a detailed description of the fan control method based on the embodiment in Figure 4. Taking the first node 11 located between the second node 12 and the third node 13 as an example, the fan control method of this embodiment includes the following steps:
[0095] S201: Obtain the speed control signals of the first fan 111, the second fan 121, and the third fan 131 respectively.
[0096] The specific implementation process of step S201 is similar to that of step S101 in the embodiment of Figure 4, and will not be described again here.
[0097] S202. Determine the target speed signal of the first fan 111 based on the speed control signals of the first fan 111, the second fan 121 and the third fan 131.
[0098] Specifically, the implementation of step S202 includes:
[0099] S2021. Adjust the speed control signal of the second fan 121 and the speed control signal of the third fan 131 according to the preset ratio.
[0100] S2022, Determine the maximum value among the speed control signal of the first fan 111, the adjusted speed control signal of the second fan 121, and the adjusted speed control signal of the third fan 131 as the target speed signal of the first fan 111.
[0101] For example, the target speed signal of the first fan 111 is max(speed control signal of the first fan 111, speed control signal of the second fan 121 × 0.8, speed control signal of the third fan 131 × 0.8).
[0102] S203. Control the first fan according to the target speed signal corresponding to the first fan.
[0103] Specifically, the first CPLD112 converts the target speed signal of the first fan 111 into a PWM waveform, and directly drives the power control pin of the first fan 111 according to the PWM waveform.
[0104] S204. Determine the target speed signal of the second fan 121 based on the target speed signal of the first fan 111 and the speed regulation signal of the second fan 121.
[0105] S205. Send the target speed signal corresponding to the second fan 121 to the second CPLD 122, so that the second CPLD 122 controls the second fan 121 according to the target speed signal corresponding to the second fan 121.
[0106] S206. Determine the target speed signal of the third fan 131 based on the target speed signal of the first fan 111 and the speed regulation signal of the third fan 131.
[0107] S207. Send the target speed signal corresponding to the third fan 131 to the third CPLD 132, so that the third CPLD 132 controls the third fan 131 according to the target speed signal corresponding to the third fan 131.
[0108] Optionally, the specific implementation method of steps S204 and S206 in this embodiment can be as follows:
[0109] S301. Calculate the product of the target speed signal of the first fan 111 and the preset ratio.
[0110] S302. Determine the larger of the product and the speed control signal of the second fan 121 as the target speed signal of the second fan 121.
[0111] For example, the target speed signal of the second fan 121 = max(target speed signal of the first fan 111 × 0.8, speed control signal of the second fan 121).
[0112] S303. Determine the larger of the product and the speed control signal of the third fan 131 as the target speed signal of the third fan 131.
[0113] For example, the target speed signal of the third fan 131 = max(target speed signal of the first fan 111 × 0.8, speed control signal of the third fan 131).
[0114] Based on the above steps, the example is as follows:
[0115] The speed control signals for the first fan 111, the second fan 121, and the third fan 131 are 30, 80, and 60, respectively.
[0116] The target speed signals for the first fan 111, the second fan 121, and the third fan 131 are 64, 80, and 60, respectively.
[0117] The fan control method provided in this embodiment processes the fan speed control signals of adjacent nodes uniformly through the first CPLD112 and dynamically constrains the speed difference between adjacent fans, fundamentally eliminating the airflow backflow problem caused by traditional independent control. At the same time, it avoids the additional cost and space occupation caused by physical baffles, and avoids the problem of unstable anti-backflow performance caused by the inconsistency of manually installed baffles. In addition, the "maximum value comparison" adjustment mechanism is adopted to prioritize the needs of high-load nodes while ensuring heat dissipation balance, improving the heat dissipation efficiency of the system under sudden load, and controlling the speed difference between adjacent fans within a safe threshold.
[0118] Figure 7 is a schematic diagram of a fan control device provided in this application. As shown in Figure 7, the fan control device 20 of this embodiment is used to implement the operation corresponding to the first CPLD in any of the above method embodiments. The fan control device 20 provided in this embodiment is applied to a fan control system 10. The fan control system 10 includes a first node 11, a second node 12, and a third node 13. The first node 11 is equipped with a first fan 111, the second node 12 is equipped with a second fan 121, and the third node 13 is equipped with a third fan 131. The fan control device 20 includes:
[0119] The acquisition module 21 is used to acquire the speed control signals of the first fan 111, the second fan 121 and the third fan 131 respectively;
[0120] Processing module 22 is used to adjust the speed control signal using an anti-backflow algorithm to obtain the target speed signals of the first fan 111, the second fan 121 and the third fan 131, wherein the difference between the target speed signals of adjacent fans is less than a preset threshold.
[0121] The control module 23 is used to control the first fan 111, the second fan 121 and the third fan 131 respectively according to the target speed signal.
[0122] In one possible implementation, the first node 11 is located between the second node 12 and the third node 13.
[0123] Processing module 22 is specifically used to determine the target speed signal of the first fan 111 based on the speed control signals of the first fan 111, the second fan 121 and the third fan 131;
[0124] The target speed signal of the second fan 121 is determined based on the target speed signal of the first fan 111 and the speed regulation signal of the second fan 121; the target speed signal of the third fan 131 is determined based on the target speed signal of the first fan 111 and the speed regulation signal of the third fan 131.
[0125] In one possible implementation, the processing module 22 is specifically used to adjust the speed control signal of the second fan 121 and the speed control signal of the third fan 131 according to a preset ratio.
[0126] The maximum value among the speed control signals of the first fan 111, the adjusted speed control signal of the second fan 121, and the adjusted speed control signal of the third fan 131 is determined as the target speed signal of the first fan 111.
[0127] In one possible implementation, the processing module 22 is specifically used to calculate the product of the target speed signal of the first fan 111 and a preset ratio;
[0128] The larger of the product and the speed control signal of the second fan 121 is determined to be the target speed signal of the second fan 121, and the larger of the product and the speed control signal of the third fan 131 is determined to be the target speed signal of the third fan 131.
[0129] In one possible implementation, the second node 12 is further configured with a second CPLD 122, and the third node 13 is further configured with a third CPLD 132.
[0130] The control module 23 is specifically used to control the first fan 111 according to the target speed signal corresponding to the first fan 111;
[0131] The target speed signal corresponding to the second fan 121 is sent to the second CPLD 122, so that the second CPLD 122 controls the second fan 121 according to the target speed signal corresponding to the second fan 121;
[0132] The target speed signal corresponding to the third fan 131 is sent to the third CPLD 132, so that the third CPLD 132 controls the third fan 131 according to the target speed signal corresponding to the third fan 131.
[0133] The fan control device 20 provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0134] Figure 8 is a schematic diagram of the structure of an electronic device provided in this application. As shown in Figure 8, the electronic device 30 provided in this embodiment includes a memory 31 and at least one processor 32. Optionally, the electronic device 30 further includes a communication component 33. The memory 31, the processor 32, and the communication component 33 are connected via a bus 34.
[0135] In a specific implementation, at least one processor 32 executes computer execution instructions stored in memory 31, causing at least one processor 32 to perform the above-described method.
[0136] The specific implementation process of processor 32 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0137] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0138] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0139] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0140] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0141] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0142] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0143] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0144] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0145] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0146] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0147] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0148] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0149] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A fan control method, characterized in that, A first complex programmable logic device is applied in a fan control system, the fan control system including a first node, a second node, and a third node, the first node being configured with a first fan and the first complex programmable logic device, the second node being configured with a second fan, and the third node being configured with a third fan, the method comprising: The speed control signals of the first fan, the second fan, and the third fan are acquired respectively; An anti-backflow algorithm is used to adjust the speed control signal to obtain the target speed signals of the first fan, the second fan, and the third fan. The difference between the target speed signals of adjacent fans is less than a preset threshold. Based on the target speed signal, the first fan, the second fan, and the third fan are controlled respectively.
2. The method according to claim 1, characterized in that, The first node is located between the second node and the third node; The step of employing an anti-backflow algorithm to adjust the speed control signal and obtain the target speed signals for the first fan, the second fan, and the third fan includes: The target speed signal of the first fan is determined based on the speed control signals of the first fan, the second fan, and the third fan. The target speed signal of the second fan is determined based on the target speed signal of the first fan and the speed control signal of the second fan. The target speed signal of the third fan is determined based on the target speed signal of the first fan and the speed control signal of the third fan.
3. The method according to claim 2, characterized in that, The step of determining the target speed signal of the first fan based on the speed control signals of the first fan, the second fan, and the third fan includes: Adjust the speed control signal of the second fan and the speed control signal of the third fan according to the preset ratio; The maximum value among the speed control signal of the first fan, the adjusted speed control signal of the second fan, and the adjusted speed control signal of the third fan is determined as the target speed signal of the first fan.
4. The method according to claim 3, characterized in that, The step of determining the target speed signal of the second fan based on the target speed signal of the first fan and the speed control signal of the second fan, and determining the target speed signal of the third fan based on the target speed signal of the first fan and the speed control signal of the third fan, includes: Calculate the product of the target speed signal of the first fan and the preset ratio; The larger of the product and the speed control signal of the second fan is determined to be the target speed signal of the second fan, and the larger of the product and the speed control signal of the third fan is determined to be the target speed signal of the third fan.
5. The method according to any one of claims 1-4, characterized in that, The second node is also configured with a second complex programmable logic device, and the third node is also configured with a third complex programmable logic device; Based on the target speed signal, control the first fan, the second fan, and the third fan respectively, including: Control the first fan according to the target speed signal corresponding to the first fan; The target speed signal corresponding to the second fan is sent to the second complex programmable logic device, so that the second complex programmable logic device controls the second fan according to the target speed signal corresponding to the second fan; The target speed signal corresponding to the third fan is sent to the third complex programmable logic device, so that the third complex programmable logic device controls the third fan according to the target speed signal corresponding to the third fan.
6. A fan control system, characterized in that, include: First node, second node, and third node; The first node is equipped with a first fan and a first complex programmable logic device, the second node is equipped with a second fan, and the third node is equipped with a third fan; The first complex programmable logic device is used to execute the fan control method as described in any one of claims 1-5.
7. The system according to claim 6, characterized in that, The first node is located between the second node and the third node.
8. A fan control device, characterized in that, An application is made in a fan control system, the fan control system comprising a first node, a second node, and a third node, wherein the first node is equipped with a first fan, the second node is equipped with a second fan, and the third node is equipped with a third fan; the device includes: The acquisition module is used to acquire the speed control signals of the first fan, the second fan, and the third fan respectively; The processing module is used to adjust the speed control signal using an anti-backflow algorithm to obtain the target speed signals of the first fan, the second fan, and the third fan, wherein the difference between the target speed signals of adjacent fans is less than a preset threshold. The control module is used to control the first fan, the second fan, and the third fan respectively according to the target speed signal.
9. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-5.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-5.
11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-5.
