A fan control method, system, electronic device and storage medium
By monitoring and dynamically adjusting the temperature of server hardware components in real time through a fan control system, the problem of energy efficiency and performance imbalance in server thermal management is solved, achieving stability and energy consumption optimization.
Patent Information
- Application Number
- CN202411397322.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2044-10-08
AI Technical Summary
Existing server thermal management methods struggle to balance energy efficiency, performance, and cost, leading to problems such as decreased server performance, system crashes, component damage, and increased energy consumption.
By monitoring the board temperature of server hardware components in real time through a fan control system and dynamically adjusting the fan speed using a PID control algorithm, the system avoids excessively high or low temperatures, thus achieving precise temperature control of the hardware components.
It effectively prevents hardware components from overheating, improves system stability and reliability, saves energy consumption, balances server energy consumption and performance, and simplifies thermal management structure.
Smart Images

Figure CN119393365B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of server devices, in particular to a fan control method and system, an electronic device and a storage medium. BACKGROUND
[0002] With the progress of technology and the acceleration of digital transformation, the demand and importance of computing power will continue to grow. As the carrier of computing power resources, servers are the key to achieving efficient and stable computing services. During operation, servers generate a large amount of heat, which, if not dissipated in time, will cause the server temperature to rise, thereby affecting its performance and stability.
[0003] High temperatures can cause server performance to decline, systems to crash, components to be damaged, and energy consumption to increase. Therefore, server thermal management is crucial to maintaining the healthy operation of data centers. Currently, server thermal management is mainly achieved through hardware optimization, dynamic power management, and adjusting server layout. However, the introduction of hardware can affect the compatibility and operability of the server, and adjusting the layout and dynamic management both have the problem of increased cost and maintenance complexity due to technical deployment. Although the existing thermal management methods have significantly improved energy consumption reduction, they have not achieved a balance between energy efficiency, performance, and cost. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide a fan control method and system, an electronic device and a storage medium, by setting up a fan control system, adjusting the fan according to the board temperature of the hardware components, effectively preventing the hardware components from overheating on the basis of balancing performance and energy consumption, improving the stability and reliability of the system, and the specific technical solutions are as follows:
[0005] In the first aspect of the present application, a fan control method is first provided, applied to a fan control system, the fan control system comprising a fan control board and a plurality of fans, the fan control board being connected to a server through a communication interface, the fan control board being in communication connection with each of the plurality of fans, the method comprising:
[0006] obtaining the board temperature of the hardware components in the server through the fan control board, and sending the board temperature to the server through the communication interface;
[0007] controlling the server to determine the target temperature interval in which the board temperature is located from the preset temperature interval, and obtaining a first control signal corresponding to the target temperature interval;
[0008] determining a target control signal based on the first control signal through the fan control board, and adjusting the rotational speed of the fan according to the target control signal.
[0009] Optionally, the fan control board comprises a multiplexer, the first control signal is sent to the multiplexer through the communication interface, the target control signal is determined based on the first control signal by the fan control board, and the average rotating speed of the fan is adjusted according to the target control signal, comprising:
[0010] In the case of detecting that the multiplexer receives the second control signal sent by the user end, the second control signal is taken as the target control signal;
[0011] In the case of detecting that the multiplexer does not receive the second control signal sent by the user end, the first control signal is taken as the target control signal;
[0012] The target control signal is output through the multiplexer, and the average rotating speed of the fan is adjusted according to the target control signal.
[0013] Optionally, the target control signal is output through the multiplexer, and the average rotating speed of the fan is adjusted according to the target control signal, comprising:
[0014] The high-voltage duty cycle of the target control signal is obtained;
[0015] The target average voltage applied between the motor of the fan is determined according to the high-voltage duty cycle, the target average voltage is obtained based on the first preset corresponding relationship between the high-voltage duty cycle and the average voltage;
[0016] The target average voltage is output to adjust the rotating speed of the fan.
[0017] Optionally, the target control signal is output through the multiplexer, and the average rotating speed of the fan is adjusted according to the target control signal, further comprising:
[0018] The target control signal is converted into an actual control signal by the control circuit of the fan;
[0019] The actual voltage applied between the motor of the fan is output according to the actual control signal to adjust the rotating speed of the fan.
[0020] Optionally, the preset temperature range comprises a first temperature range, a second temperature range, a third temperature range and a fourth temperature range, the server is controlled to determine the target temperature range in which the board card temperature is located from the preset temperature range, and the first control signal corresponding to the target temperature range is obtained, comprising:
[0021] In a case where it is detected that the board card temperature is greater than a first temperature threshold and less than or equal to a second temperature threshold, the first temperature interval is taken as a target temperature interval;
[0022] In a case where it is detected that the board card temperature is greater than a second temperature threshold and less than or equal to a third temperature threshold, the second temperature interval is taken as a target temperature interval;
[0023] In a case where it is detected that the board card temperature is greater than a third temperature threshold and less than or equal to a fourth temperature threshold, the third temperature interval is taken as a target temperature interval;
[0024] In a case where it is detected that the board card temperature is greater than a fourth temperature threshold, the fourth temperature interval is taken as a target temperature interval;
[0025] Based on a second preset correspondence relationship between the preset temperature intervals and the target temperature interval, a first control signal corresponding to the target temperature interval is determined.
[0026] Optionally, the determining of the first control signal corresponding to the target temperature interval based on the second preset correspondence relationship between the preset temperature intervals and the target temperature interval comprises:
[0027] In a case where it is detected that the target temperature interval is the first temperature interval, a control signal of a first duty cycle is taken as the first control signal;
[0028] In a case where it is detected that the target temperature interval is the second temperature interval, a control signal of a second duty cycle is taken as the first control signal;
[0029] In a case where it is detected that the target temperature interval is the third temperature interval, a control signal of a third duty cycle is taken as the first control signal;
[0030] In a case where it is detected that the target temperature interval is the fourth temperature interval, a control signal of a fourth duty cycle is taken as the first control signal.
[0031] Optionally, the fan control board further comprises a micro control unit, and the control of the fan control board to acquire the board card temperature of the hardware component in the server and the sending of the board card temperature to the server through the communication interface comprise:
[0032] The acquisition of the board card temperature by the micro control unit;
[0033] In a case where it is detected that the board card temperature changes, the sending of the board card temperature to the server through the communication interface.
[0034] In a second aspect of the embodiments of the present application, a fan control system is also provided, the system comprising a fan control board and a plurality of fans, the fan control board being connected with a server through a communication interface, the fan control board being communicatively connected with each of the plurality of fans, wherein
[0035] The fan control board is configured to acquire a board card temperature of a hardware component in the server, and send the board card temperature to the server through the communication interface.
[0036] The fan control board is configured to determine a target temperature interval in which the board card temperature is located from a preset temperature interval, and acquire a first control signal corresponding to the target temperature interval.
[0037] The fan control board is further configured to determine a target control signal based on the first control signal, and adjust a rotating speed of the fan according to the target control signal.
[0038] In a third aspect of the embodiments of the present application, an electronic device is also provided, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform any of the above-mentioned fan control methods.
[0039] In a fourth aspect of the embodiments of the present application, a non-volatile readable storage medium is also provided, when instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform any of the above-mentioned fan control methods.
[0040] The fan control method provided by the embodiment of the application controls the rotation speed of each fan in the server through a fan control system, acquires the board temperature of the hardware components through a fan control board, and sends the board temperature to the server through a universal serial bus; the control server determines the target temperature interval in which the board temperature is located from the preset temperature intervals, and acquires the first control signal corresponding to the target temperature interval; the fan control board determines the target control signal based on the first control signal, and adjusts the rotation speed of the fan according to the target control signal. The current board temperature of the hardware components in the server is acquired in real time through the fan control board in the fan control system, and the PID control is performed through the server, the rotation speed of the fan is dynamically adjusted according to the target temperature interval in which the board temperature is located, so that the accurate control of the temperature of the hardware components is realized, the damage of the hardware caused by the excessively high or low temperature is avoided, the corresponding control signal is sent based on the change of the board temperature of the hardware components, the rotation speed of each fan can be adjusted according to the actual temperature demand, the long-time operation of the fan at the highest rotation speed is avoided, so that the energy consumption is saved, the rotation speed of the fan is monitored and dynamically adjusted in real time, the system can quickly respond to the temperature change, the overheating of the hardware components is effectively prevented, the stability and reliability of the system are improved, and the thermal management of the server is realized on the basis of balancing the energy consumption and performance of the server through the relatively simple structure in the fan control system.
[0041] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory and are not restrictive of the application. BRIEF DESCRIPTION OF DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0043] Figure 1 is a step flow chart of a fan control method provided by the embodiment of the application;
[0044] Figure 2 is a schematic diagram of the server performing control in a fan control method provided by the embodiment of the application;
[0045] Figure 3 is a schematic diagram of data transmission in a fan control method provided by the embodiment of the application;
[0046] Figure 4 is a structural block diagram of a fan control system provided by the embodiment of the application;
[0047] Figure 5is a block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the above objectives, features and advantages of the present application more apparent, clear and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0049] In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, some technical features involved in the embodiments of the present application will be explained and described as follows:
[0050] USB (Universal Serial Bus, Universal Serial Bus) is a serial bus standard and a technical specification of an input / output interface, which is widely used in personal computers and mobile devices and other information communication products, and is extended to photographic equipment, digital television (set-top box), game consoles and other related fields.
[0051] PWM (Pulse Width Modulation, Pulse Width Modulation) is a technology widely used in electronic devices, especially in motor control, LED dimming, audio signal processing and other fields. PWM controls the average voltage or power of the output signal by adjusting the pulse width (i.e. the ratio of high level time to cycle time) of the signal.
[0052] Duty Cycle is an important parameter of PWM (Pulse Width Modulation) signal, which represents the proportion of time that the signal is in high level (or active state), and can be obtained by the ratio of high level time to cycle time. The higher the duty cycle, the higher the average voltage or power of the output signal.
[0053] PID (Proportional-Integral-Derivative) controller is a feedback control algorithm widely used in industrial automation and control systems. PID controller adjusts the control variable (such as motor speed, valve opening, etc.) to make the output (such as temperature, pressure, speed, etc.) of the controlled object reach the desired value.
[0054] MCU (Microcontroller Unit, Microcontroller Unit) is a chip that integrates microprocessor core, memory and peripheral interface functions. It is usually used to control the operation of embedded systems and is widely used in electronic products.
[0055] Multiplexer (MUX) is a device that can selectively transmit one of multiple input signals to a single output terminal, used to improve data transmission efficiency and save resources.
[0056] As an example, a server generates a large amount of heat during operation, if the heat cannot be dissipated in time, the temperature of the server will rise, and then affect its performance and stability, and the power consumption of processing the heat generated inside the server accounts for as high as 40% of the total power consumption, the server level heat management is the key optimization direction under the energy saving subject, at present, by introducing the ways of optimizing hardware, power dynamic management and adjusting the layout of the server to optimize the server heat management, there are problems of increasing cost and improving maintenance complexity, which cannot realize the balance between energy saving, performance maintenance and cost control.
[0057] To this end, in the embodiment of the application, the current board temperature of the hardware components in the server is obtained in real time through the fan control board in the fan control system, and the fan speed is dynamically adjusted according to the target temperature interval in which the board temperature is located through the PID control of the server, so as to realize accurate control of the temperature of the hardware components, avoid damage to the hardware caused by too high or too low temperature, and send corresponding control signals based on the board temperature of the hardware components, the speed of each fan can be adjusted according to the actual temperature demand, avoiding the long-time operation of the fan at the highest speed, thereby saving energy consumption, through real-time monitoring and dynamic adjustment of the fan speed, it is ensured that the system can quickly respond to temperature changes, effectively prevent the hardware components from overheating, and improve the stability and reliability of the system, through the relatively simple structure setting in the fan control system, the heat management of the server is realized on the basis of balancing the energy consumption and performance of the server.
[0058] Referring to Figure 1 , a step flow chart of a fan control method provided in the embodiment of the application is shown, the method is applied to a fan control system, the fan control system includes a fan control board and a plurality of fans, the fan control board is connected with a server through a communication interface, the fan control board is in communication connection with each of the plurality of fans, and specifically can include the following steps:
[0059] S101, obtain the board temperature of the hardware components in the server through the fan control board, and send the board temperature to the server through the communication interface.
[0060] The board card temperature is one of important indexes for measuring system performance, and the current running state of the system can be known through monitoring the board card temperature. The temperature of the hardware component in the server can be acquired through various ways. When the temperature sensor is integrated in the fan control board, the board card temperature of the hardware component can be monitored in real time through the temperature sensor. Preferably, the temperature monitoring of the hardware component in the embodiment of the application can be the monitoring of the CPU (Central Processing Unit, central processor) temperature and the fan adjustment. These temperature sensors are usually thermistors (such as NTC) or digital temperature sensors (such as DS18B20). The board card temperature is read in real time from the temperature sensor through a specific communication interface (such as I2C, SPI or GPIO) between the fan control board and the hardware component.
[0061] Optionally, the server can receive the temperature data from the fan control board through the USB interface, and subsequently analyze and process the board card temperature through the server side.
[0062] In S102, the control server determines the target temperature interval of the board card temperature from the preset temperature interval, and acquires the first control signal corresponding to the target temperature interval.
[0063] The control server determines the target temperature interval of the board card temperature from the preset temperature interval, and acquires the first control signal corresponding to the target temperature interval in combination with the PID control algorithm, so that more accurate and dynamic fan control can be realized. Figure 2 Fig. 1 shows a schematic diagram of the server execution function in the fan control method provided by the embodiment of the application. The board card temperature of the hardware component is acquired through the temperature sensor, and is used as the input data of the PID controller together with the preset set temperature of the hardware component. The set temperature can be a temperature set value or a temperature set interval. In the server, the PID controller is set. According to the received board card temperature of the hardware component and the set temperature, the PID control is executed through the operating system to obtain the output, i.e. the first control signal corresponding to the actual board card temperature. Preferably, in the embodiment of the application, 30-50℃ is set as the set temperature of the hardware component. When it is monitored that the board card temperature of the hardware component is in the temperature interval of 30-50℃, it is indicated that the hardware temperature of the server is in the normal range, and the fan does not need to be additionally adjusted. At this time, corresponding to the normal temperature interval, the fan of the server can run at a speed of 20%. The normal running speed of the fan can be set based on actual needs. The application is only used for illustration, and is not limited.
[0064] The first control signal can be a PWM signal, which represents the target speed or duty ratio of the fan.
[0065] S103, determining a target control signal based on the first control signal by the fan control board, and adjusting the rotating speed of the fan according to the target control signal.
[0066] The fan control board is installed on the server backplane and can receive the power supply and the first control signal sent by the server through the USB bus, wherein the first control signal is a PWM signal representing the target rotating speed or duty ratio of the fan. The duty ratio can be represented as the ratio of high level time to cycle time, usually expressed in percentage. The duty ratio can be calculated by the following formula:
[0067]
[0068] Wherein D represents the duty ratio, Ton represents the high point time, T represents the cycle time, and the cycle time T of the PWM signal is the sum of the high level time and the low level time.
[0069] Generally, the duty ratio of the first control signal is proportional to the rotating speed of the fan. The higher the duty ratio, the faster the rotating speed of the fan. By sending the first control signal by the server, the target control signal is determined by the fan control board and the corresponding target duty ratio is obtained, so as to realize accurate control of the rotating speed of the fan.
[0070] In a possible example, referring to Figure 3 , a schematic diagram of data transmission in a fan control method provided by an embodiment of the application is shown. The fan control board can include a micro control unit and a multiplexer. The micro control unit is used to read sensor data and run firmware between the server USB port and the fan interface. The signal source of the fan control board can also be specified by switching the multiplexer. In the embodiment of the application, the fan can be controlled by the user or automatically controlled by the server. Specifically, the user terminal sends a second control signal to control the fan, and the server sends a first control signal to control the fan. The control signal is decided by the multiplexer to determine the target control signal, which is output to the fan for rotating speed adjustment.
[0071] Specifically, in the case where the multiplexer receives the second control signal sent by the user terminal, the fan is controlled by the user, and the second control signal is determined as the target control signal. In the case where the multiplexer does not receive the second control signal sent by the user terminal, the fan is automatically controlled by the server, and the first control signal is determined as the target control signal. It can be understood that, by default, the fan is automatically controlled by the server, and only in the case where the control signal sent by the user terminal is received, the fan is controlled by the user.
[0072] The target control signal is determined from the acquired control signal through a switch multiplexer and outputted, and the average rotating speed of the fan is adjusted according to the target control signal. The adjustment of the rotating speed of the fan can be realized in various ways.
[0073] In an example, after the target control signal is confirmed, a high-voltage duty ratio of the target control signal can be acquired, which refers to the ratio of the high-level time to the cycle time in the PWM signal, usually expressed in percentage. For example, a 20% PWM signal means that the high level occupies 20% of the time and the low level occupies 80% of the time in each cycle. The target average voltage applied across the motor of the fan can be acquired according to the high-voltage duty ratio, which is obtained based on a first preset correspondence between the high-voltage duty ratio and the average voltage. Generally, the average voltage is proportional to the high-voltage duty ratio, such as: target average voltage = high-voltage duty ratio x power supply voltage. The first preset correspondence can be linear or nonlinear. For example, if the power supply voltage is 12V and the high-voltage duty ratio is 50%, the target average voltage is 6V. The fan is driven by the output target average voltage. When the target average voltage increases, the rotating speed of the fan increases, and when the target average voltage decreases, the rotating speed of the fan decreases accordingly.
[0074] In another example, a control circuit (such as MOSFET, H-bridge, etc.) is used as the core part of the fan control board, which is responsible for receiving the target control signal from the server or other control source and converting it into an actual control signal that can directly control the rotating speed of the fan motor. The actual control signal is a voltage signal applied directly across the fan motor. The power electronic elements (such as MOSFET, IGBT, etc.) in the control circuit adjust the voltage applied across the fan motor according to the PWM signal or directly according to the calculated voltage value. These elements can quickly switch to generate the required voltage waveform across the motor. The actual voltage signal is applied across the fan motor through the control circuit. When the voltage across the motor of the fan changes, the rotating speed of the motor adjusts accordingly. If the voltage increases, the rotating speed of the fan increases; if the voltage decreases, the rotating speed of the fan decreases.
[0075] In a possible embodiment, the control server analyzes and processes the current board temperature of the hardware component. Specifically, a plurality of temperature thresholds can be set in advance to divide the board temperature into a plurality of preset temperature intervals. For example, by setting a first temperature threshold, a second temperature threshold, a third temperature threshold, and a fourth temperature threshold, the entire board temperature is divided into a first temperature interval, a second temperature interval, a third temperature interval, and a fourth temperature interval. When the server receives the board temperature of the hardware component, the target temperature interval of the board temperature can be determined by comparing the board temperature with the temperature threshold. Specifically, the following steps can be implemented:
[0076] in a case where it is detected that the board temperature is greater than the first temperature threshold and less than or equal to the second temperature threshold, taking the first temperature interval as the target temperature interval;
[0077] in a case where it is detected that the board temperature is greater than the second temperature threshold and less than or equal to the third temperature threshold, taking the second temperature interval as the target temperature interval;
[0078] in a case where it is detected that the board temperature is greater than the third temperature threshold and less than or equal to the fourth temperature threshold, taking the third temperature interval as the target temperature interval;
[0079] in a case where it is detected that the board temperature is greater than the fourth temperature threshold, taking the fourth temperature interval as the target temperature interval;
[0080] based on the second preset correspondence relationship, determining a first control signal corresponding to the target temperature interval.
[0081] The temperature thresholds can be set according to actual needs, for example, the first temperature threshold can be set to 30 DEG C, the second temperature threshold can be set to 50 DEG C, the third temperature threshold can be set to 50 DEG C, and the fourth temperature threshold can be set to 85 DEG C. Correspondingly, the first temperature interval is 30 DEG C (not included) to 50 DEG C, the second temperature interval is 50 DEG C (not included) to 70 DEG C, the third temperature interval is 70 DEG C (not included) to 85 DEG C, and the fourth temperature interval is 85 DEG C or above, not including 85 DEG C. Specifically, different temperature thresholds can be set based on actual scenarios, and the application does not make specific limitations.
[0082] When the board temperature of the hardware component is in different temperature intervals, it can indicate the current server heat regulation demand, for example, when the board temperature is in the first temperature interval, it can represent that the server is in normal operation and does not generate a large amount of heat, and does not need additional fan adjustment, and when the board temperature is in the fourth temperature interval, it can represent that the server generates a large amount of heat at this time, and needs heat dissipation processing for protection of the hardware component and the system itself. Corresponding to the heat dissipation demand of different temperature intervals, the second preset correspondence relationship can be set in advance, and a control signal with different duty cycles is set for each temperature interval. Specifically, in a case where it is detected that the target temperature interval is the first temperature interval, a control signal with a first duty cycle can be taken as the first control signal; in a case where it is detected that the target temperature interval is the second temperature interval, a control signal with a second duty cycle can be taken as the first control signal; in a case where it is detected that the target temperature interval is the third temperature interval, a control signal with a third duty cycle can be taken as the first control signal; and in a case where it is detected that the target temperature interval is the fourth temperature interval, a control signal with a fourth duty cycle can be taken as the first control signal.
[0083] The duty cycle of the control signal corresponding to each temperature range can be set according to actual needs, for example, the first duty cycle can be set to 20%, the second duty cycle can be set to 50%, the third duty cycle can be set to 80%, and the fourth duty cycle can be set to 100%. When the duty cycle of the target control signal is 100%, it means that the high voltage is continuously output in the signal period. Different temperature thresholds can be set based on actual scenarios, and the application does not make specific limitations on this.
[0084] In a possible embodiment, the micro control unit in the fan control board is used to obtain the board card temperature of the hardware components from the temperature sensor, and the execution frequency of the PID controller is reduced for energy saving. The board card temperature sent to the server can be controlled by the micro control unit. Specifically, the board card temperature can be obtained by the micro control unit, and the board card temperature is sent to the server through the universal serial bus when it is detected that the board card temperature changes. If the board card temperature does not change, it can be monitored by the micro control unit only, and it can not be sent to the server.
[0085] The fan control system in the application obtains the current board card temperature of the hardware components in the server in real time through the fan control board in the fan control system, and controls the server to execute the PID control. According to the target temperature range in which the board card temperature is located, the rotating speed of the fan is dynamically adjusted, so as to realize accurate control of the temperature of the hardware components, avoid damage to the hardware caused by too high or too low temperature, and send corresponding control signals based on the changed board card temperature of the hardware components. The rotating speed of each fan can be adjusted according to actual temperature requirements, avoiding long-time operation of the fan at the highest rotating speed, thereby saving energy consumption. Through real-time monitoring and dynamic adjustment of the rotating speed of the fan, it is ensured that the system can quickly respond to temperature changes, effectively prevent the hardware components from overheating, and improve the stability and reliability of the system. Through the relatively simple structure in the fan control system, the heat management of the server is realized on the basis of balancing the energy consumption and performance of the server.
[0086] It should be noted that, for the method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the application are not limited by the action order described, because according to the embodiments of the application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily necessary for the embodiments of the application.
[0087] Referring to Figure 4 , a fan control system provided by an embodiment of the application is shown, the system includes a fan control board 410 and a plurality of fans 420. The fan control board 410 is connected with a server through a communication interface, and the fan control board 410 is in communication connection with each of the plurality of fans 420.
[0088] The fan control board 410 is configured to acquire the board temperature of the hardware component, and send the board temperature to the server through the universal serial bus;
[0089] The fan control board 410 is configured to control the server to determine a target temperature interval in which the board temperature is located from the preset temperature intervals, and acquire a first control signal corresponding to the target temperature interval.
[0090] The fan control board 410 is further configured to determine a target control signal based on the first control signal, and adjust the rotation speed of the fan according to the target control signal.
[0091] Further, the fan control board 410 includes a multiplexer, and the first control signal is sent to the multiplexer through the universal serial bus 440. The fan control board 410 is further configured to:
[0092] In a case where it is detected that the multiplexer receives a second control signal sent by the user end, the second control signal is taken as the target control signal.
[0093] In a case where it is detected that the multiplexer does not receive the second control signal sent by the user end, the first control signal is taken as the target control signal.
[0094] The target control signal is output through the multiplexer, and the average rotation speed of the fan is adjusted according to the target control signal.
[0095] Further, the fan control board 410 is specifically configured to:
[0096] Acquire a high-voltage duty ratio of the target control signal.
[0097] Determine a target average voltage applied between the motor of the fan according to the high-voltage duty ratio, the target average voltage being obtained based on a first preset corresponding relationship between the high-voltage duty ratio and an average voltage.
[0098] Output the target average voltage to adjust the rotation speed of the fan.
[0099] Further, the fan control board 410 can be specifically configured to:
[0100] Convert the target control signal into an actual control signal through the control circuit of the fan.
[0101] Output an actual voltage applied between the motor of the fan according to the actual control signal to adjust the rotation speed of the fan.
[0102] Further, the preset temperature range includes a first temperature range, a second temperature range, a third temperature range and a fourth temperature range, and the fan control board 410 is further configured to:
[0103] in a case where the board card temperature is greater than the first temperature threshold and less than or equal to the second temperature threshold, taking the first temperature range as a target temperature range;
[0104] in a case where the board card temperature is greater than the second temperature threshold and less than or equal to the third temperature threshold, taking the second temperature range as the target temperature range;
[0105] in a case where the board card temperature is greater than the third temperature threshold and less than or equal to the fourth temperature threshold, taking the third temperature range as the target temperature range;
[0106] in a case where the board card temperature is greater than the fourth temperature threshold, taking the fourth temperature range as the target temperature range;
[0107] based on the preset temperature range and a second preset correspondence relationship, determining a first control signal corresponding to the target temperature range.
[0108] Further, the fan control board 410 is specifically configured to:
[0109] in a case where the target temperature range is the first temperature range, taking a control signal of a first duty cycle as the first control signal;
[0110] in a case where the target temperature range is the second temperature range, taking a control signal of a second duty cycle as the first control signal;
[0111] in a case where the target temperature range is the third temperature range, taking a control signal of a third duty cycle as the first control signal;
[0112] in a case where the target temperature range is the fourth temperature range, taking a control signal of a fourth duty cycle as the first control signal.
[0113] Further, the fan control board 410 further includes a micro control unit, and the fan control board 410 can be specifically configured to:
[0114] acquiring the board card temperature by the micro control unit;
[0115] in a case where the board card temperature changes, sending the board card temperature to a server through the universal serial bus.
[0116] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the part of the method embodiment.
[0117] Reference Figure 5 The embodiment of the present application also provides an electronic device, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
[0118] The memory 503 is used for storing a computer program.
[0119] The processor 501 is used for executing the program stored in the memory 503, and the following steps are realized.
[0120] The fan control board is used for acquiring the board temperature of the hardware component, and the board temperature is sent to the server through the universal serial bus.
[0121] The server is controlled to determine a target temperature interval in which the board temperature is located from a preset temperature interval, and a first control signal corresponding to the target temperature interval is acquired.
[0122] The fan control board is used for determining a target control signal based on the first control signal, and the rotating speed of the fan is adjusted according to the target control signal.
[0123] The memory can include a random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0124] The aforementioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP) and the like; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0125] The embodiment of the present application further provides a non-volatile readable storage medium, when instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, the electronic device can execute each process of the fan control method embodiment and achieve the same technical effects, and for the sake of avoiding repetition, details are not described herein. The computer readable storage medium, such as a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, etc.
[0126] It should be noted that in this paper, the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0127] In the specification provided herein, a large number of specific details are described. However, it can be understood that the embodiments of the present application can be practiced without these specific details. In some examples, well-known methods, structures and techniques are not shown in detail in order not to obscure the understanding of the present specification.
[0128] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner or network device, etc.) execute the method described in each embodiment of the present application.
[0129] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the embodiments of the present application can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0130] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A fan control method characterized by, The application is applied to a fan control system, the fan control system comprises a fan control board and a plurality of fans, the fan control board is connected with a server through a communication interface, the fan control board is connected with each of the plurality of fans, and the method comprises: The fan control board obtains a board card temperature of a hardware component in the server, and sends the board card temperature to the server through the communication interface; the fan control board comprises a micro control unit, the micro control unit is used for obtaining the board card temperature; in the case that the board card temperature is detected to change, the board card temperature is sent to the server; in the case that the board card temperature is detected not to change, the board card temperature is monitored by the micro control unit, and is not sent to the server; The server determines a target temperature interval in which the board card temperature is located from a preset temperature interval, and obtains a first control signal corresponding to the target temperature interval; The fan control board determines a target control signal based on the first control signal, and adjusts the rotating speed of the fan according to the target control signal; The fan control board comprises a multiplexer, the first control signal is sent to the multiplexer through the communication interface, the fan control board determines the target control signal based on the first control signal, and adjusts the rotating speed of the fan according to the target control signal, which comprises: In the case that the multiplexer receives a second control signal sent by the user terminal, the second control signal is taken as the target control signal; In the case that the multiplexer does not receive the second control signal sent by the user terminal, the first control signal is taken as the target control signal; The multiplexer outputs the target control signal, and adjusts the average rotating speed of the fan according to the target control signal. The multiplexer outputs the target control signal, and adjusts the average rotating speed of the fan according to the target control signal, which comprises: Obtain the high voltage duty cycle of the target control signal; the high voltage duty cycle is the ratio of the high level time to the cycle time in the target control signal; Determine the target average voltage applied between the motor of the fan according to the high voltage duty cycle, the target average voltage is obtained based on a first preset corresponding relationship between the high voltage duty cycle and the average voltage; the first preset relationship at least comprises a linear relationship and a nonlinear relationship; Output the target average voltage to adjust the rotating speed of the fan.
2. The method of claim 1, wherein, The multiplexer outputs the target control signal, and adjusts the average rotating speed of the fan according to the target control signal, which further comprises: The target control signal is converted into an actual control signal by the control circuit of the fan; According to the actual control signal, an actual voltage applied between the motor of the fan is outputted to adjust the rotating speed of the fan.
3. The method of claim 1, wherein, The preset temperature interval includes a first temperature interval, a second temperature interval, a third temperature interval, and a fourth temperature interval. The control of the server to determine a target temperature interval in which the board card temperature is located from the preset temperature interval and to obtain a first control signal corresponding to the target temperature interval includes: In a case where the board card temperature is greater than a first temperature threshold and less than or equal to a second temperature threshold, the first temperature interval is taken as the target temperature interval; In a case where the board card temperature is greater than the second temperature threshold and less than or equal to a third temperature threshold, the second temperature interval is taken as the target temperature interval; In a case where the board card temperature is greater than the third temperature threshold and less than or equal to a fourth temperature threshold, the third temperature interval is taken as the target temperature interval; In a case where the board card temperature is greater than the fourth temperature threshold, the fourth temperature interval is taken as the target temperature interval; The first control signal corresponding to the target temperature interval is determined based on a second preset correspondence relationship between the preset temperature interval and the target temperature interval.
4. The method of claim 3, wherein, The first control signal corresponding to the target temperature interval is determined based on a second preset correspondence relationship between the preset temperature interval and the target interval, including: In a case where the target temperature interval is the first temperature interval, a control signal of a first duty cycle is taken as the first control signal; In a case where the target temperature interval is the second temperature interval, a control signal of a second duty cycle is taken as the first control signal; In a case where the target temperature interval is the third temperature interval, a control signal of a third duty cycle is taken as the first control signal; In a case where the target temperature interval is the fourth temperature interval, a control signal of a fourth duty cycle is taken as the first control signal.
5. The method of claim 1, wherein, The fan control board further includes a micro control unit. The board card temperature of the hardware component in the server is obtained by the fan control board, and the board card temperature is sent to the server through the communication interface, including: The board card temperature is obtained by the micro control unit; In a case where the board card temperature changes, the board card temperature is sent to the server through the communication interface.
6. A fan control system characterized by, The system includes a fan control board and a plurality of fans. The fan control board is connected with a server through a communication interface. The fan control board is in communication connection with each of the plurality of fans. The fan control board is configured to obtain a board card temperature of a hardware component in the server and send the board card temperature to the server through the communication interface. The fan control board includes a micro control unit. The micro control unit is configured to obtain the board card temperature. In a case where the board card temperature changes, the board card temperature is sent to the server. In a case where the board card temperature does not change, the board card temperature is monitored by the micro control unit and is not sent to the server. The fan control board is configured to control the server to determine a target temperature interval in which the board card temperature is located from a preset temperature interval and to obtain a first control signal corresponding to the target temperature interval. The fan control board is further configured to determine a target control signal based on the first control signal, and adjust the rotation speed of the fan according to the target control signal. The fan control board comprises a multiplexer, and the first control signal is sent to the multiplexer through the communication interface. The fan control board is further configured to: in a case where it is detected that the multiplexer receives a second control signal sent by the user terminal, take the second control signal as the target control signal; in a case where it is detected that the multiplexer does not receive a second control signal sent by the user terminal, take the first control signal as the target control signal; output the target control signal through the multiplexer, and adjust the average rotation speed of the fan according to the target control signal; The outputting of the target control signal through the multiplexer and the adjusting of the average rotation speed of the fan according to the target control signal comprise: obtaining a high-voltage duty cycle of the target control signal; the high-voltage duty cycle is a ratio of a high-level time to a cycle time in the target control signal; determining a target average voltage applied between the motor of the fan according to the high-voltage duty cycle, the target average voltage being obtained based on a first preset correspondence between the high-voltage duty cycle and the average voltage; the first preset correspondence at least comprises a linear relationship and a nonlinear relationship; outputting the target average voltage to adjust the rotation speed of the fan.
7. An electronic device, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the fan control method according to any one of claims 1 to 5.
8. A computer readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the fan control method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Fan control system and fan control method
CN103115014A
Fan control circuit and system
CN109236714A
Noise reduction control method and device for fan in projector
CN115539423A