Fan control system, method, computer program product, device and storage medium
Through the fan control system, the voltage acquisition and closed-loop feedback control modes are used to solve the problems of startup failure and overcurrent burning caused by excessive reversal speed during the fan hot swapping process, and the fan start safety and speed control accuracy are improved. Ensures the cooling efficiency of the server.
Patent Information
- Application Number
- CN202411187212.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-28
AI Technical Summary
In the server, during the fan hot swapping process, the fan reverse speed is too large, which leads to failure of startup, which may cause the problem of overcurrent burning of the board. The prior art lacks accuracy and robustness of fan speed control, which affects the heat dissipation efficiency .
Design a fan control system, including power supply, voltage acquisition circuit, discharge circuit, fan controller and substrate management controller, obtain fan information through voltage acquisition circuit, generate control commands, control the discharge circuit to turn on or off, and adjust the fan The speed is dynamically adjusted according to the fan pressure difference value and speed through the closed-loop feedback control mode and the conventional control mode to ensure the safe start and stable operation of the fan.
It improves the start safety and reliability of the fan during hot-swap process, enhances the accuracy and robustness of fan speed control, avoids overcurrent burning, and ensures the heat dissipation efficiency of the server.
Smart Images

Figure CN118705205B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a fan control system, method, computer program product, device and storage medium. Background Art
[0002] During the operation of the server, key components such as the CPU and GPU will generate a lot of heat. Therefore, multiple fans are needed to dissipate heat to ensure the normal operation of the server. When a single fan fails, in order to ensure the normal operation of the system, the server is usually powered on and the fan is replaced by hot-swappable method.
[0003] The server contains multiple cooling fans. After unplugging one of the fans, the other fans are still running normally, and the current usually flows to the place with low impedance, which increases the back pressure at the location where the fan is unplugged, causing the plugged-in fan to reverse. When the reversal speed is too large and exceeds the fan's anti-reversal ability, the fan cannot start, which in turn affects the server's heat dissipation performance. If the fan is forced to brake and start, the motor will generate a large back electromotive force, causing the fan to burn out due to overcurrent. Therefore, during the hot-swap process of the server fan, how to improve the safety and reliability of the replaced fan is an important technical issue. Summary of the invention
[0004] Based on this, it is necessary to provide a fan control system, method, computer program product, device and storage medium that can improve the safety and reliability of fan operation in response to the above technical problems.
[0005] In order to solve the above technical problems, in a first aspect, a fan control system is provided, the system comprising: a power supply, a voltage acquisition circuit, a discharge circuit, a fan controller and a baseboard management controller; wherein a first end of the voltage acquisition circuit is connected to an output end of the power supply, and a second end of the voltage acquisition circuit is grounded; the discharge circuit comprises at least a first resistor, a discharge switch and a second resistor, wherein a first end of the first resistor is connected to an output end of the power supply, a second end of the first resistor is connected to a drain of the discharge switch, a source of the discharge switch is grounded, a first end of the second resistor is connected to a gate of the discharge switch, a second end of the second resistor is connected to a source of the discharge switch, and a gate of the discharge switch is connected to a second end of the fan controller; the baseboard management controller is located on a server motherboard, the baseboard management controller is connected to a first end of the fan controller, the baseboard management controller obtains target fan information acquired by the voltage acquisition circuit through the fan controller, and generates a control instruction according to the target fan information; the fan controller receives the control instruction, and controls the discharge circuit to be turned on / off according to the control instruction, and controls the speed of the fan.
[0006] In one embodiment, the voltage acquisition circuit includes at least a third resistor, a fourth resistor and an ADC conversion unit, the first end of the third resistor is connected to the output end of the power supply, the second end of the third resistor is connected to the first end of the fourth resistor, the second end of the fourth resistor is grounded, the first end of the ADC conversion unit is connected to the first end of the fourth resistor, and the second end of the ADC conversion unit is connected to the fan controller.
[0007] In one embodiment, the second end of the fan controller includes a first pin and a second pin, the first pin is connected to the second end of the ADC conversion unit, the first pin is used to obtain the target fan information collected by the voltage acquisition circuit, the second pin is connected to the gate of the discharge switch, and the second pin is used to transmit the target control signal according to the transmission instruction of the fan controller to control the discharge circuit to be turned on / off.
[0008] In one embodiment, the first end of the fan controller includes a first signal line, a second signal line and a third signal line. The first end of the fan controller is connected to the second end of the baseboard management controller through the first signal line, the second signal line and the third signal line. The first signal line is used to transmit a pulse width modulation signal, the second signal line is used to transmit a fan speed feedback signal, and the third signal line is used to transmit a fan pressure difference signal.
[0009] In one embodiment, the voltage detection circuit also includes an isolation amplifier, a differential amplifier and a fifth resistor, the first interface of the first end of the isolation amplifier is connected to the second end of the third resistor, the second interface of the first end of the isolation amplifier is connected to the second end of the fifth resistor, the first end of the fifth resistor is connected to the second end of the third resistor, the first interface of the second end of the isolation amplifier is connected to the first interface of the first end of the differential amplifier, the second interface of the second end of the isolation amplifier is connected to the second interface of the first end of the differential amplifier, and the second end of the differential amplifier is connected to the first end of the ADC conversion unit.
[0010] In one embodiment, the system further includes an adjusting resistor group and a comparator, wherein a first end of the adjusting resistor group is connected to a second end of the differential amplifier, a second end of the adjusting resistor group is connected to a first end of the comparator, and a second end of the comparator is connected to the fan controller.
[0011] In order to solve the above technical problems, in a second aspect, a fan control method is provided, which is applied to the fan control system of the first aspect, and the method includes: obtaining a target fan pressure difference signal of the target fan, and obtaining a target fan pressure difference value according to the target fan pressure difference signal; judging whether the target fan pressure difference value is greater than a preset threshold value; if the target fan pressure difference value is greater than the preset threshold value, the target fan stops starting, and the target fan pressure difference value is transmitted to a baseboard management controller, and the baseboard management controller controls the speed of the non-target fan according to a closed-loop feedback control mode; if the target fan pressure difference value is less than or equal to the preset threshold value, the target fan starts normally, and the baseboard management controller controls the speed of the target fan according to a conventional control mode.
[0012] In one of the embodiments, a target fan pressure difference signal of a target fan is obtained, and obtaining a target fan pressure difference value according to the target fan pressure difference signal includes: obtaining the pressure difference signal of the target fan, parsing the pressure difference signal of the target fan, and obtaining a target fan voltage; obtaining a target fan standard voltage; subtracting the target fan voltage from the target fan standard voltage to obtain an absolute value of the difference between the target fan voltage and the target fan standard voltage, and using the absolute value of the difference between the target fan voltage and the target fan standard voltage as the target fan pressure difference value.
[0013] In one of the embodiments, the baseboard management controller controls the speed of the target fan according to the conventional control mode, including: in response to the baseboard management controller acquiring the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the first calculation formula;
[0014] In response to obtaining the target duty cycle, the speed of the target fan is regulated according to the target duty cycle, and the target duty cycle is proportional to the speed of the target fan; wherein the first calculation formula is:
[0015] ;
[0016] in, The target duty cycle , is a constant term, is the target fan speed control factor, is the target fan temperature.
[0017] In one embodiment, the baseboard management controller controls the rotation speed of the non-target fan according to the closed-loop feedback control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the second calculation formula; in response to obtaining the target duty cycle, the rotation speed of the non-target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the rotation speed of the non-target fan; wherein the second calculation formula is:
[0018] ;
[0019] in, The target duty cycle , is a constant, is the target fan speed control factor, is the target fan temperature, is a constant term, is the target fan pressure difference speed control factor, is the target fan pressure difference value.
[0020] In one of the embodiments, if the target fan pressure difference value is greater than a preset threshold value, the target fan stops starting, and transmitting the target fan pressure difference value to the baseboard management controller includes: when the target fan pressure difference value is greater than the preset threshold value, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a first control instruction, and transmits the first control instruction to the fan controller; in response to the fan controller receiving the first control instruction, generating a first transmission instruction, and transmitting a first target control signal according to the first transmission instruction, the first target control signal being a low level signal; in response to the discharge circuit receiving the first target control signal, turning off the discharge switch, and the target fan stops starting.
[0021] In one of the embodiments, after the speed of the non-target fan is regulated according to the closed-loop feedback control mode, the following steps are included: re-determining whether the target fan pressure difference value is greater than a preset threshold value; if the target fan pressure difference value is less than or equal to the preset threshold value, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a second control instruction, and transmits the second control instruction to the fan controller; in response to the fan controller receiving the second control instruction, generating a second transmission instruction, and transmitting a second target control signal according to the second transmission instruction, the second target control signal being a high-level signal; in response to the discharge circuit receiving the second target control signal, turning on the discharge switch, and restarting the target fan.
[0022] In order to solve the above technical problem, a third aspect provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0023] In order to solve the above technical problems, in the fourth aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the following steps are implemented: when the processor executes the computer program, the steps of the method described in the above first aspect are implemented.
[0024] In order to solve the above technical problems, in a fifth aspect, the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0025] Different from the prior art, the present application includes a system including: a power supply, a voltage acquisition circuit, a discharge circuit, a fan controller and a baseboard management controller; wherein the first end of the voltage acquisition circuit is connected to the output end of the power supply, and the second end of the voltage acquisition circuit is grounded; the discharge circuit at least includes a first resistor, a discharge switch and a second resistor, the first end of the first resistor is connected to the output end of the power supply, the second end of the first resistor is connected to the drain of the discharge switch, the source of the discharge switch is grounded, the first end of the second resistor is connected to the gate of the discharge switch, the second end of the second resistor is connected to the source of the discharge switch, and the gate of the discharge switch is connected to the fan controller; the baseboard management controller is connected to the fan controller, the baseboard management controller obtains the target fan information collected by the voltage acquisition circuit through the fan controller, and generates a control instruction according to the target fan information; the fan controller receives the control instruction, controls the discharge circuit to be turned on / off, and controls the speed of the fan. In the present application, the discharge circuit is controlled to be turned on or off according to the target fan information collected by the voltage acquisition circuit, and the speed of the fan is controlled. The use of this system can improve the safety and reliability of fan operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flow chart of a fan control method in the prior art;
[0027] Figure 2 is a flow chart of a fan control method in one embodiment;
[0028] Figure 3 A schematic diagram of the structure of a fan control system in one embodiment;
[0029] Figure 4 is a schematic structural diagram of a fan control system in another embodiment;
[0030] Figure 5 is a flow chart of a fan control method according to another embodiment;
[0031] Figure 6 is a structural block diagram of a fan control device in one embodiment;
[0032] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] See also Figure 1 In the prior art, by real-time monitoring of the hot-plug status of the server cooling fan, it is determined whether a cooling fan is unplugged. When it is determined that a cooling fan is not unplugged, no processing is performed. When it is determined that a cooling fan is unplugged, the baseboard management controller controls to reduce the rotation speed of other cooling fans, and sets a certain waiting time to determine whether a cooling fan is inserted into the server within the set waiting time. If a cooling fan is inserted into the server within the set waiting time, the target rotation speed of the inserted fan is set higher than the rotation speed of other fans to start running. If the cooling fan is not detected to be inserted into the server after exceeding the set waiting time, the speed reduction control of other fans is cancelled and switched to the fan automatic control mode. Through the control method of reducing the rotation speed of other fans, setting the hot-plug waiting time and increasing the target rotation speed of the inserted fan, the back pressure and reversal speed of the inserted fan are reduced as much as possible, and the starting current of the inserted fan is increased to ensure the normal startup of the hot-plug fan.
[0035] However, by reducing the speed of other fans and setting the hot-swap waiting time to reduce the back pressure and reversal speed of the target fan, there is a lack of conditional judgment and protection for whether the hot-swap target fan can be reversed and started. If the reverse speed of the target fan is too high and does not meet the starting conditions, the target speed is still increased and the current is increased to start, which will cause the risk of overcurrent and burnout of the fan. In addition, by controlling the speed of other non-target fans by presetting the target speed and waiting time, the set target speed value and time value cannot be accurately determined, and the robustness is poor. If the target speed value is too high or the time value is too low, the reverse speed of the inserted target fan will be too high and fail to meet the safe starting conditions. If the target speed value is too low or the time value is too long, the heat dissipation efficiency will be too low, affecting the normal operation of the system.
[0036] In order to solve the problem that when the fan is started during the hot plugging process, there is a lack of conditional judgment and protection on whether the hot plugging target fan can be reversely started, and the speed control method for other non-target fans is inaccurate and has poor robustness.
[0037] The present application provides a fan control system, method, computer program product, device and storage medium, such as Figure 2 As shown, in the present application, a fan reversal brake protection feedback function is added to realize the judgment and protection of the target fan reversal condition, and the baseboard management controller realizes closed-loop feedback control of other non-target fan speeds in combination with the fan feedback signal.
[0038] In one embodiment, if Figure 3 As shown, the present application provides a fan control system, which specifically includes: a power supply, a voltage acquisition circuit, a discharge circuit, a fan controller and a baseboard management controller.
[0039] Wherein, a first end of the voltage collection circuit is connected to the output end of the power supply, and a second end of the voltage collection circuit is grounded.
[0040] Specifically, the voltage acquisition circuit at least includes a third resistor R3, a fourth resistor R4 and an ADC conversion unit, the first end of the third resistor R3 is connected to the output end of the power supply, the second end of the third resistor R3 is connected to the first end of the fourth resistor R4, the second end of the fourth resistor R4 is grounded, the first end of the ADC conversion unit is connected to the first end of the fourth resistor R4, and the second end of the ADC conversion unit is connected to the fan controller (MCU).
[0041] The voltage acquisition circuit acquires the bus voltage of the power supply. The power supply is VBUS shown in the figure, which represents the power supply connected to the host and the collector, and transmits power to the connected device through the USB power transmission cable. The device of this application is a fan, specifically a cooling fan on the server. The voltage acquisition circuit in this application is designed as a resistor divider circuit, including a third resistor R3 and a fourth resistor R4. Since the bus voltage is very large and the fan controller input voltage is relatively small, the series resistor is connected to set the resistance value of the series resistor to achieve voltage division, so as to prevent the excessive current in the circuit from affecting the electric meter and protect the circuit.
[0042] The first end of the ADC conversion unit is arranged between the third resistor R3 and the fourth resistor R4. The second end of the ADC conversion unit is connected to the fan controller (MCU) for transmitting the bus voltage to the fan controller. The fan controller can perform subsequent decision processing according to the bus voltage.
[0043] The discharge circuit at least includes a first resistor R1 , a discharge switch (N-MOS) and a second resistor R2 .
[0044] Specifically, the discharge switch may be an N-MOS switch. When the gate voltage of the N-MOS switch is lower than its source voltage, the source and drain of the discharge circuit are connected and discharged to the ground. When the gate voltage of the discharge circuit is equal to its source voltage, the source and drain of the discharge circuit are disconnected.
[0045] The first end of the first resistor R1 is connected to the output end of the power supply, the second end of the first resistor R1 is connected to the drain of the discharge switch (D end of N-MOS), the source of the discharge switch (S end of N-MOS) is grounded, the first end of the second resistor R2 is connected to the gate of the discharge switch (G end of N-MOS), the second end of the second resistor R2 is connected to the source of the discharge switch (S end of N-MOS), and the gate of the discharge switch (G end of N-MOS) is connected to the second end of the fan controller. By controlling the on / off of the discharge switch, the discharge circuit is controlled to be on / off, thereby controlling the start and shut down of the fan.
[0046] The second resistor has a relatively high resistance value and is used to release the voltage between the gate of the discharge switch and the source of the discharge switch.
[0047] The baseboard management controller is located on the server motherboard and is connected to the first end of the fan controller. The baseboard management controller obtains the target fan information collected by the voltage collection circuit through the fan controller and generates a control instruction according to the target fan information. The fan controller receives the control instruction and controls the discharge circuit to turn on / off according to the control instruction, and controls the speed of the fan.
[0048] Specifically, the second end of the fan controller includes a first pin and a second pin, the first pin is connected to the second end of the ADC conversion unit, the first pin is used to obtain the target fan information collected by the voltage acquisition circuit, the second pin is connected to the gate of the discharge switch, and the second pin is used to transmit the target control signal according to the transmission instruction of the fan controller to control the discharge circuit to be turned on / off.
[0049] The target control signal here may include a high-level signal and a low-level signal, and the discharge switch is controlled to be turned on and off according to the high-level signal and the low-level signal.
[0050] The first end of the fan controller includes a first signal line, a second signal line and a third signal line. The first end of the fan controller is connected to the second end of the baseboard management controller through the first signal line, the second signal line and the third signal line.
[0051] Please continue reading Figure 3 , the PWM shown in the figure is the first signal line, and the first signal line is used to transmit the pulse width modulation signal; the TACH shown in the figure is the second signal line, and the second signal line is used to transmit the fan speed feedback signal; the pressure difference D shown in the figure is the third signal line, and the third signal line is used to transmit the fan pressure difference signal.
[0052] The baseboard management controller obtains the fan pressure difference signal through the third signal line, calculates the fan duty cycle according to the fan pressure difference signal, and sends the calculated fan duty cycle to the fan controller, and the climbing controller adjusts the fan speed according to the fan duty cycle. The fan speed is monitored in real time and the fan speed is fed back according to the second signal line.
[0053] like Figure 4 As shown, in one embodiment, the voltage detection circuit also includes an isolation amplifier, a differential amplifier and a fifth resistor, the first interface of the first end of the isolation amplifier is connected to the second end of the third resistor, the second interface of the first end of the isolation amplifier is connected to the second end of the fifth resistor, the first end of the fifth resistor is connected to the second end of the third resistor, the first interface of the second end of the isolation amplifier is connected to the first interface of the first end of the differential amplifier, the second interface of the second end of the isolation amplifier is connected to the second interface of the first end of the differential amplifier, and the second end of the differential amplifier is connected to the first end of the ADC conversion unit.
[0054] Specifically, the first ends of the third resistor and the fifth resistor are connected to the power supply, the second ends of the third resistor and the fifth resistor are respectively connected to the first interface (Vin+) and the second interface (Vin-) of the first end of the isolation amplifier, and the bus voltage is input to the isolation amplifier, the first interface (Vout+) and the second interface (Vout-) of the second end of the isolation amplifier are respectively connected to the first interface (positive pin) and the second interface (negative pin) of the first end of the differential amplifier, and the second end of the differential amplifier is connected to the fan controller.
[0055] In one embodiment, the fan control system further includes an adjusting resistor group and a comparator, wherein the first end of the adjusting resistor group is connected to the second end of the differential amplifier, the second end of the adjusting resistor group is connected to the first end of the comparator, and the second end of the comparator is connected to the fan controller.
[0056] In this embodiment, the third resistor and the fifth resistor are used as voltage-dividing resistors to divide the voltage at the power input end, and the voltage after the voltage-dividing process is transmitted to the isolation amplifier and the differential amplifier to form a small voltage signal, and the small voltage signal is input to the comparator, and an adjustment resistor group is set between the differential amplifier and the comparator. The adjustment resistor group may include multiple resistors connected in series. The voltage transmitted to the fan controller can be more accurately adjusted by the adjustment resistor group. The comparator is used to compare the small voltage signal passing through the isolation amplifier and the differential amplifier with the voltage required by the fan controller, judge the overvoltage and undervoltage of the power supply voltage, and promptly feedback to the fan controller, so as to ensure the normal operation of the entire circuit through subsequent software and hardware operations.
[0057] In one embodiment, the fan control system also includes an absorption circuit, a first end of the absorption circuit is connected to the source of the discharge switch, a second end of the absorption circuit is connected to the drain of the discharge switch, the absorption circuit includes a sixth resistor, a diode and a capacitor, the sixth resistor and the diode are connected in series, and the sixth resistor and the capacitor are connected in parallel.
[0058] In this embodiment, by setting the first end of the absorption circuit to be connected to the source of the electric switch and the second end of the absorption circuit to be connected to the drain of the discharge switch, it can be used to absorb the peak voltage of the discharge switch to protect the discharge switch, thereby further improving the safety of line operation.
[0059] In this application, a voltage acquisition circuit, a discharge circuit, a baseboard management controller, and a fan controller are set up, and the bus voltage is collected through the voltage acquisition circuit, and the bus voltage is fed back to the fan management controller. The fan management controller and the baseboard management controller make decisions based on the collected bus voltage to control the conduction or closing of the discharge circuit, so that sudden failures of the fan can be responded to in time and the fan can be adjusted. In this application, isolation amplifiers, differential amplifiers, comparators, and adjustment resistor groups and other components are also set in the voltage acquisition circuit, which can timely detect undervoltage and overvoltage phenomena in the circuit and ensure the normal operation of the entire circuit through subsequent software and hardware operations, which is conducive to improving the safety and reliability of fan operation.
[0060] In one embodiment, Figure 5 As shown, the present application provides a fan control method, which is applied to the above-mentioned fan control system. The method specifically includes the following steps: Step 101, obtaining a target fan pressure difference signal of a target fan, and obtaining a target fan pressure difference value according to the target fan pressure difference signal.
[0061] Step 102, determining whether the target fan pressure difference value is greater than a preset threshold.
[0062] During the hot-swap process, the target fan will reverse after being inserted. Before the reverse start, the target fan brake must be controlled first. The brake voltage of the target fan is collected by the voltage collection circuit to obtain the target fan pressure difference signal. The target fan pressure difference signal is further used to determine whether the target fan pressure difference value is less than the protection threshold. In other words, the target fan can be reversed and started.
[0063] Specifically, obtain the pressure difference signal of the target fan, analyze the pressure difference signal of the target fan, and obtain the target fan voltage; obtain the target fan standard voltage; subtract the target fan voltage from the target fan standard voltage to obtain the absolute value of the difference between the target fan voltage and the target fan standard voltage, and use the absolute value of the difference between the target fan voltage and the target fan standard voltage as the target fan pressure difference value.
[0064] The target fan standard voltage here refers to the voltage when the target fan is operating normally. The target fan voltage is subtracted from the target fan standard voltage, and the absolute value of the difference between the target fan voltage and the target fan standard voltage is used as the target fan pressure difference. The preset threshold is the range of the target fan pressure difference set in advance. The preset threshold here can be set by the operator based on actual experience. This application does not limit the specific value of the preset threshold. When it is judged that the target fan pressure difference is greater than the preset threshold, it indicates that the target fan does not meet the conditions for reverse start-up, and the fan needs to be turned off to adjust the fan speed. When it is judged that the target fan pressure difference is less than or equal to the preset threshold, it indicates that the target fan meets the conditions for reverse start-up and can operate normally.
[0065] Step 103, if the target fan pressure difference value is greater than a preset threshold, the target fan stops starting, and the target fan pressure difference value is transmitted to the baseboard management controller, and the baseboard management controller regulates the speed of the non-target fan according to the closed-loop feedback control mode.
[0066] When it is determined that the target fan pressure difference is greater than the preset threshold, that is, the target fan does not have the conditions for reverse start-up, at this time, if the speed of the target fan is still increased and the starting current is increased, the risk of fan overcurrent burning the board will increase. Therefore, this application is set to control the target fan to stop starting when the target fan pressure difference is greater than the preset threshold.
[0067] Specifically, when the target fan pressure difference value is greater than a preset threshold, the target fan pressure difference value is transmitted to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a first control instruction, and transmits the first control instruction to the fan controller; in response to the fan controller receiving the first control instruction, a first transmission instruction is generated, and a first target control signal is transmitted according to the first transmission instruction, and the first target control signal is a low-level signal; in response to the discharge circuit receiving the first target control signal, the discharge switch is turned off, and the target fan stops starting.
[0068] In the voltage acquisition circuit of the present application, the bus voltage is divided to 0-3.3V by matching the resistance of the first resistor R1 and the second resistor R2 to meet the voltage acquisition range of the fan controller; in the discharge circuit, the fan controller controls the output pin ( Figure 3The high and low levels of CONTROL are shown in the figure to control the opening and closing of the discharge circuit. If the discharge circuit needs to be turned on, the pin CONTROL is set high, the gate voltage of the discharge switch (N-MOS) is higher than the source voltage and the voltage difference is greater than the discharge switch opening threshold, the discharge switch is turned on, the drain and source of the discharge switch are turned on, and the current flows from the power supply (VBUS) to the first resistor, and further flows from the drain of the discharge switch to the source and then to the ground, wherein the first resistor is the discharge resistor, and the second resistor is used to release the voltage between the gate and the source of the discharge switch. If the discharge circuit needs to be turned off, the pin CONTROL is set low, that is, a low-level signal is output, the discharge switch is turned off, the drain and source of the discharge switch are not turned on, that is, the discharge circuit is turned off, and the target fan is turned off.
[0069] When the target fan is turned off, the target fan pressure difference value may be transmitted to the baseboard management controller, and the baseboard management controller regulates the rotation speed of the non-target fan according to the closed-loop feedback regulation mode.
[0070] Specifically, in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the second calculation formula; in response to obtaining the target duty cycle, the speed of the non-target fan is regulated according to the target duty cycle, and the target duty cycle is proportional to the speed of the non-target fan.
[0071] Among them, the second calculation formula is:
[0072] ;
[0073] in, The target duty cycle , is a constant, is the target fan speed control factor, is the target fan temperature, is a constant term, is the target fan pressure difference speed control factor, is the target fan pressure difference value.
[0074] During the hot-swap process of the target fan, the faster the speed of other non-target fans is, the greater the back pressure on the inserted target fan is, that is, the greater the reversal speed is. Furthermore, the greater the back electromotive force generated when the target fan brakes and starts, that is, the greater the pressure difference value of the target fan is. Therefore, the pressure difference value of the target fan is proportional to the speed of the non-target fan.
[0075] To ensure the normal start of the target fan, the target fan pressure difference value needs to be less than or equal to the preset threshold. After the target duty cycle is calculated by the above formula, the PWM under the duty cycle can be sent to each non-target fan. The fan controller adjusts the fan speed by receiving PWM with different target duty cycles. For example, PWM with a target duty cycle of 100% controls the corresponding fan speed to 20,000 rpm, and PWM with a target duty cycle of 50% controls the corresponding fan speed to 10,000 rpm. Among them, PWM (Pulse-width modulation) is the abbreviation of pulse width modulation. Pulse width modulation is a digital encoding method for analog signal levels. Pulse width modulation PWM is a way to reduce the average power transmitted by the electrical signal by dispersing the effective electrical signal into discrete forms. Therefore, according to the area equivalence rule, the waveform of the corresponding amplitude and frequency required for synthesis can be equivalently obtained by changing the time width of the pulse. Realizing digital control of analog circuits can significantly reduce system cost and power consumption.
[0076] After the speed of the non-target fan is regulated according to the closed-loop feedback control mode, it includes: re-determining whether the target fan pressure difference value is greater than a preset threshold; if the target fan pressure difference value is less than or equal to the preset threshold, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a second control instruction, and transmits the second control instruction to the fan controller; in response to the fan controller receiving the second control instruction, a second transmission instruction is generated, and a second target control signal is transmitted according to the second transmission instruction, and the second target control signal is a high-level signal; in response to the discharge circuit receiving the second target control signal, the discharge switch is turned on, and the target fan is restarted.
[0077] After the speed of the non-target fan is regulated according to the closed-loop feedback mode, it can be re-determined whether the target fan meets the reverse start condition after adjustment, until it is determined that the pressure difference value of the target fan is less than or equal to the preset threshold value, the baseboard management controller generates a second control instruction, and transmits the second control instruction to the fan controller; in response to the fan controller receiving the second control instruction, a second transmission instruction is generated, and a second target control signal is transmitted according to the second transmission instruction, and the second target control signal is a high-level signal; in response to the discharge circuit receiving the second target control signal, the discharge switch is turned on, and the target fan is restarted.
[0078] Step 104: If the target fan pressure difference value is smaller than or equal to the preset threshold value, the target fan is started normally, and the baseboard management controller regulates the speed of the target fan according to the conventional regulation mode.
[0079] Specifically, the baseboard management controller controls the speed of the target fan according to the conventional control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the first calculation formula; in response to obtaining the target duty cycle, the speed of the target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the speed of the target fan; wherein the first calculation formula is:
[0080] ;
[0081] in, The target duty cycle , is a constant term, is the target fan speed control factor, is the target fan temperature.
[0082] The conventional control mode is that the baseboard management controller controls the output of the PWM corresponding to the duty cycle through various components and the ambient temperature. The higher the temperature, the higher the required fan speed, and the larger the corresponding PWM duty cycle.
[0083] It can be understood that each fan and baseboard management controller in the server has a PWM signal line (first signal line). The first signal line is used to transmit the PWM signal sent by the baseboard management controller to the fan. The baseboard management controller obtains the target duty cycle by calculation, and sends the PWM corresponding to the target duty cycle to the target fan and each non-target fan. The fan controller adjusts the speed of the corresponding fan by receiving PWM with different duty cycles. For example, a PWM with a duty cycle of 100% controls the fan speed to 20,000 rpm, and a PWM with a duty cycle of 50% controls the fan speed to 10,000 rpm.
[0084] In the present application, the bus voltage is collected through the voltage collection circuit when the fan is in reverse braking, and the target fan pressure difference value is obtained by subtracting it from the reference voltage. Furthermore, the fan controller judges the target fan pressure difference value. If the target fan pressure difference value is less than or equal to the preset threshold, the target fan starts normally, and the baseboard management controller switches to the normal speed regulation mode, that is, the baseboard management controller calculates the target duty cycle through the first calculation formula, and sends the PWM of the target duty cycle to the target fan and each non-target fan, and each fan is controlled by PWM.
[0085] If the target fan pressure difference value is greater than the preset threshold, the fan stops starting, and controls the start-up discharge circuit at the same time, and feeds back the target fan pressure difference value to the baseboard management controller. Further, if the baseboard management controller receives the target fan pressure difference value, it switches from the conventional speed regulation mode to the speed closed-loop feedback control mode of the non-target fan, that is, the baseboard management controller calculates the target duty cycle through the second calculation formula, and sends the PWM of the target duty cycle to each non-target fan, and each non-target fan is controlled by PWM. Until the target fan pressure difference value is less than or equal to the preset threshold, the fan starts normally, and the baseboard management controller switches to the normal speed regulation mode.
[0086] In this way, in the present application, by setting the speed closed-loop feedback control of the target fan pressure difference value, the accuracy, robustness and efficiency of the speed control of other fans during the hot plug process are improved, and the problem of inaccurate and poor robustness of the speed control method for other non-target fans in the existing fan hot plug startup technology can be solved.
[0087] It should be understood that although Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0088] In one embodiment, Figure 6 As shown, a fan control device is provided, including: an acquisition module 20, a judgment module 21 and a control module 22, wherein: the acquisition module 20 is used to obtain a target fan pressure difference signal of a target fan, and obtain a target fan pressure difference value according to the target fan pressure difference signal; the judgment module 21 is used to judge whether the target fan pressure difference value is greater than a preset threshold; the control module 22 is used to stop starting the target fan if the target fan pressure difference value is greater than the preset threshold, and transmit the target fan pressure difference value to a baseboard management controller, and the baseboard management controller controls the rotation speed of the non-target fan according to a closed-loop feedback control mode; if the target fan pressure difference value is less than or equal to the preset threshold, the target fan starts normally, and the baseboard management controller controls the rotation speed of the target fan according to a conventional control mode.
[0089] In one embodiment, the above-mentioned device can implement another implementation method of the fan control method, and the specific steps are as follows: obtaining a target fan pressure difference signal of the target fan, and obtaining a target fan pressure difference value according to the target fan pressure difference signal includes: obtaining the pressure difference signal of the target fan, parsing the pressure difference signal of the target fan, and obtaining a target fan voltage; obtaining a target fan standard voltage; subtracting the target fan voltage from the target fan standard voltage to obtain the absolute value of the difference between the target fan voltage and the target fan standard voltage, and using the absolute value of the difference between the target fan voltage and the target fan standard voltage as the target fan pressure difference value.
[0090] In one embodiment, the above device can implement another implementation method of the fan control method, and the specific steps are as follows: the baseboard management controller controls the speed of the target fan according to the conventional control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the first calculation formula; in response to obtaining the target duty cycle, the speed of the target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the speed of the target fan; wherein the first calculation formula is:
[0091] ;
[0092] in, The target duty cycle , is a constant term, is the target fan speed control factor, is the target fan temperature.
[0093] In one embodiment, the above device can implement another implementation method of the fan control method, and the specific steps are as follows: the baseboard management controller controls the speed of the non-target fan according to the closed-loop feedback control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the second calculation formula; in response to obtaining the target duty cycle, the speed of the non-target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the speed of the non-target fan; wherein the second calculation formula is:
[0094] ;
[0095] in, The target duty cycle , is a constant, is the target fan speed control factor, is the target fan temperature, is a constant term, is the target fan pressure difference speed control factor, is the target fan pressure difference value.
[0096] In one embodiment, the above-mentioned device can implement another implementation method of the fan control method, and the specific steps are as follows: if the target fan pressure difference value is greater than a preset threshold value, the target fan stops starting, and transmitting the target fan pressure difference value to the baseboard management controller includes: when the target fan pressure difference value is greater than the preset threshold value, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a first control instruction, and transmits the first control instruction to the fan controller; in response to the fan controller receiving the first control instruction, a first transmission instruction is generated, and a first target control signal is transmitted according to the first transmission instruction, and the first target control signal is a low-level signal; in response to the discharge circuit receiving the first target control signal, the discharge switch is turned off, and the target fan stops starting.
[0097] In one embodiment, the above-mentioned device can implement another implementation method of the fan control method, and the specific steps are as follows: after regulating the speed of the non-target fan according to the closed-loop feedback control mode, it includes: re-determining whether the target fan pressure difference value is greater than a preset threshold; if the target fan pressure difference value is less than or equal to the preset threshold, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a second control instruction, and transmits the second control instruction to the fan controller; in response to the fan controller receiving the second control instruction, a second transmission instruction is generated, and a second target control signal is transmitted according to the second transmission instruction, and the second target control signal is a high-level signal; in response to the discharge circuit receiving the second target control signal, the discharge switch is turned on, and the target fan is restarted.
[0098] For the specific definition of the fan control device, please refer to the definition of the fan control method above, which will not be repeated here. Each module in the above fan control device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0099] In one embodiment, the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the fan control methods provided by the above methods.
[0100] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a fan control method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0101] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0102] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: Step 101, obtaining a target fan pressure difference signal of a target fan, and obtaining a target fan pressure difference value according to the target fan pressure difference signal.
[0103] Step 102, determining whether the target fan pressure difference value is greater than a preset threshold.
[0104] Step 103, if the target fan pressure difference value is greater than a preset threshold, the target fan stops starting, and the target fan pressure difference value is transmitted to the baseboard management controller, and the baseboard management controller regulates the speed of the non-target fan according to the closed-loop feedback control mode.
[0105] Step 104: If the target fan pressure difference value is smaller than or equal to the preset threshold value, the target fan is started normally, and the baseboard management controller regulates the speed of the target fan according to the conventional regulation mode.
[0106] In one embodiment, the processor also implements the following steps when executing the computer program: obtaining a target fan pressure difference signal of the target fan, and obtaining a target fan pressure difference value according to the target fan pressure difference signal, including: obtaining the target fan pressure difference signal, parsing the target fan pressure difference signal to obtain a target fan voltage; obtaining a target fan standard voltage; subtracting the target fan voltage from the target fan standard voltage to obtain the absolute value of the difference between the target fan voltage and the target fan standard voltage, and using the absolute value of the difference between the target fan voltage and the target fan standard voltage as the target fan pressure difference value.
[0107] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the baseboard management controller controls the rotation speed of the target fan according to the conventional control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the first calculation formula; in response to obtaining the target duty cycle, the rotation speed of the target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the rotation speed of the target fan; wherein the first calculation formula is:
[0108] ;
[0109] in, The target duty cycle , is a constant term, is the target fan speed control factor, is the target fan temperature.
[0110] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the baseboard management controller controls the rotation speed of the non-target fan according to the closed-loop feedback control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the second calculation formula; in response to obtaining the target duty cycle, the rotation speed of the non-target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the rotation speed of the non-target fan; wherein the second calculation formula is:
[0111] ;
[0112] in, The target duty cycle , is a constant, is the target fan speed control factor, is the target fan temperature, is a constant term, is the target fan pressure difference speed control factor, is the target fan pressure difference value.
[0113] In one embodiment, the processor also implements the following steps when executing the computer program: if the target fan pressure difference value is greater than a preset threshold, the target fan stops starting, and transmitting the target fan pressure difference value to the baseboard management controller includes: when the target fan pressure difference value is greater than the preset threshold, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a first control instruction, and transmits the first control instruction to the fan controller; in response to the fan controller receiving the first control instruction, generating a first transmission instruction, and transmitting a first target control signal according to the first transmission instruction, the first target control signal is a low level signal; in response to the discharge circuit receiving the first target control signal, turning off the discharge switch, and the target fan stops starting.
[0114] In one embodiment, the processor also implements the following steps when executing the computer program: after regulating the speed of the non-target fan according to the closed-loop feedback control mode, it includes: re-determining whether the target fan pressure difference value is greater than a preset threshold; if the target fan pressure difference value is less than or equal to the preset threshold, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a second control instruction, and transmits the second control instruction to the fan controller; in response to the fan controller receiving the second control instruction, a second transmission instruction is generated, and a second target control signal is transmitted according to the second transmission instruction, and the second target control signal is a high-level signal; in response to the discharge circuit receiving the second target control signal, the discharge switch is turned on, and the target fan is restarted.
[0115] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: Step 101, obtain a target fan pressure difference signal of a target fan, and obtain a target fan pressure difference value according to the target fan pressure difference signal.
[0116] Step 102, determining whether the target fan pressure difference value is greater than a preset threshold.
[0117] Step 103, if the target fan pressure difference value is greater than a preset threshold, the target fan stops starting, and the target fan pressure difference value is transmitted to the baseboard management controller, and the baseboard management controller regulates the speed of the non-target fan according to the closed-loop feedback control mode.
[0118] Step 104: If the target fan pressure difference value is smaller than or equal to the preset threshold value, the target fan is started normally, and the baseboard management controller regulates the speed of the target fan according to the conventional regulation mode.
[0119] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a target fan pressure difference signal of the target fan, and obtaining a target fan pressure difference value according to the target fan pressure difference signal, including: obtaining the pressure difference signal of the target fan, parsing the pressure difference signal of the target fan, and obtaining a target fan voltage; obtaining a target fan standard voltage; subtracting the target fan voltage from the target fan standard voltage to obtain the absolute value of the difference between the target fan voltage and the target fan standard voltage, and using the absolute value of the difference between the target fan voltage and the target fan standard voltage as the target fan pressure difference value.
[0120] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the baseboard management controller controls the rotation speed of the target fan according to the conventional control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the first calculation formula; in response to obtaining the target duty cycle, the rotation speed of the target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the rotation speed of the target fan; wherein the first calculation formula is:
[0121] ;
[0122] in, The target duty cycle , is a constant term, is the target fan speed control factor, is the target fan temperature.
[0123] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the baseboard management controller controls the rotation speed of the non-target fan according to the closed-loop feedback control mode, including: in response to the baseboard management controller obtaining the target fan pressure difference value, the baseboard management controller calculates the target duty cycle of the target fan based on the second calculation formula; in response to obtaining the target duty cycle, the rotation speed of the non-target fan is controlled according to the target duty cycle, and the target duty cycle is proportional to the rotation speed of the non-target fan; wherein the second calculation formula is:
[0124] ;
[0125] in, The target duty cycle , is a constant, is the target fan speed control factor, is the target fan temperature, is a constant term, is the target fan pressure difference speed control factor, is the target fan pressure difference value.
[0126] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the target fan pressure difference value is greater than a preset threshold value, the target fan stops starting, and transmitting the target fan pressure difference value to the baseboard management controller includes: when the target fan pressure difference value is greater than the preset threshold value, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a first control instruction, and transmits the first control instruction to the fan controller; in response to the fan controller receiving the first control instruction, a first transmission instruction is generated, and a first target control signal is transmitted according to the first transmission instruction, and the first target control signal is a low level signal; in response to the discharge circuit receiving the first target control signal, the discharge switch is turned off, and the target fan stops starting.
[0127] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: after the speed of the non-target fan is regulated according to the closed-loop feedback control mode, the following steps are included: re-determining whether the target fan pressure difference value is greater than a preset threshold; if the target fan pressure difference value is less than or equal to the preset threshold, transmitting the target fan pressure difference value to the baseboard management controller; in response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a second control instruction, and transmits the second control instruction to the fan controller; in response to the fan controller receiving the second control instruction, a second transmission instruction is generated, and a second target control signal is transmitted according to the second transmission instruction, and the second target control signal is a high-level signal; in response to the discharge circuit receiving the second target control signal, the discharge switch is turned on, and the target fan is restarted.
[0128] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0130] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A fan control system, characterized in that: include: Power supply, voltage acquisition circuit, discharge circuit, fan controller and baseboard management controller; Wherein, the first end of the voltage collection circuit is connected to the output end of the power supply, and the second end of the voltage collection circuit is grounded; The discharge circuit at least includes a first resistor, a discharge switch and a second resistor, wherein a first end of the first resistor is connected to an output end of the power supply, a second end of the first resistor is connected to a drain of the discharge switch, a source of the discharge switch is grounded, a first end of the second resistor is connected to a gate of the discharge switch, a second end of the second resistor is connected to a source of the discharge switch, and the gate of the discharge switch is connected to a second end of the fan controller; The baseboard management controller is located on the server mainboard, the baseboard management controller is connected to the first end of the fan controller, the baseboard management controller obtains the target fan information collected by the voltage collection circuit through the fan controller, and generates a control instruction according to the target fan information; The fan controller receives the control instruction, and controls the discharge circuit to be turned on / off according to the control instruction, and controls the speed of the fan; Wherein, the target fan information includes a target fan pressure difference signal, and the baseboard management controller obtains a target fan pressure difference value according to the target fan pressure difference signal; Determine whether the target fan pressure difference value is greater than a preset threshold; If the target fan pressure difference value is greater than a preset threshold, the target fan stops starting, and the target fan pressure difference value is transmitted to the baseboard management controller, and the baseboard management controller regulates the speed of the non-target fan according to a closed-loop feedback control mode; If the target fan pressure difference value is less than or equal to the preset threshold value, the target fan is started normally, and the baseboard management controller regulates the speed of the target fan according to the conventional regulation mode; The baseboard management controller controls the rotation speed of the target fan according to the conventional control mode, including: In response to the baseboard management controller acquiring the target fan pressure difference value, the baseboard management controller calculates a target duty cycle of the target fan based on a first calculation formula, and generates a control instruction according to the target duty cycle; In response to the fan controller receiving the control instruction, a target duty cycle is acquired, and a rotation speed of a target fan is regulated according to the target duty cycle, wherein the target duty cycle is proportional to the rotation speed of the target fan; Among them, the first calculation formula is: ; in, is the target duty cycle, , is a constant term, is the target fan speed control factor, is the target fan temperature.
2. The fan control system according to claim 1, characterized in that: The voltage acquisition circuit at least includes a third resistor, a fourth resistor and an ADC conversion unit, the first end of the third resistor is connected to the output end of the power supply, the second end of the third resistor is connected to the first end of the fourth resistor, the second end of the fourth resistor is grounded, the first end of the ADC conversion unit is connected to the first end of the fourth resistor, and the second end of the ADC conversion unit is connected to the fan controller.
3. The fan control system according to claim 1, characterized in that: The second end of the fan controller includes a first pin and a second pin, the first pin is connected to the second end of the ADC conversion unit, the first pin is used to obtain the target fan information collected by the voltage acquisition circuit, the second pin is connected to the gate of the discharge switch, and the second pin is used to transmit the target control signal according to the transmission instruction of the fan controller to control the discharge circuit to be turned on / off.
4. The fan control system according to claim 1, characterized in that: The first end of the fan controller includes a first signal line, a second signal line and a third signal line. The first end of the fan controller is connected to the second end of the baseboard management controller through the first signal line, the second signal line and the third signal line. The first signal line is used to transmit a pulse width modulation signal, the second signal line is used to transmit a fan speed feedback signal, and the third signal line is used to transmit a fan pressure difference signal.
5. The fan control system according to claim 2, characterized in that: The voltage acquisition circuit also includes an isolation amplifier, a differential amplifier and a fifth resistor, wherein the first interface of the first end of the isolation amplifier is connected to the second end of the third resistor, the second interface of the first end of the isolation amplifier is connected to the second end of the fifth resistor, the first end of the fifth resistor is connected to the second end of the third resistor, the first interface of the second end of the isolation amplifier is connected to the first interface of the first end of the differential amplifier, the second interface of the second end of the isolation amplifier is connected to the second interface of the first end of the differential amplifier, and the second end of the differential amplifier is connected to the fan controller.
6. The fan control system according to claim 5, characterized in that: The system further includes an adjusting resistor group and a comparator, wherein a first end of the adjusting resistor group is connected to a second end of the differential amplifier, a second end of the adjusting resistor group is connected to a first end of the comparator, and a second end of the comparator is connected to the fan controller.
7. A fan control method, characterized in that: The fan control method is applied to the fan control system according to any one of claims 1 to 6, and the method comprises: Obtaining a target fan pressure difference signal of a target fan, and obtaining a target fan pressure difference value according to the target fan pressure difference signal; Determine whether the target fan pressure difference value is greater than a preset threshold; If the target fan pressure difference value is greater than a preset threshold, the target fan stops starting, and the target fan pressure difference value is transmitted to the baseboard management controller, and the baseboard management controller regulates the speed of the non-target fan according to a closed-loop feedback control mode; If the target fan pressure difference value is less than or equal to the preset threshold value, the target fan is started normally, and the baseboard management controller regulates the rotation speed of the target fan according to the conventional regulation mode.
8. The method according to claim 7, characterized in that The step of obtaining a target fan pressure difference signal of a target fan and obtaining a target fan pressure difference value according to the target fan pressure difference signal comprises: Acquire a pressure difference signal of a target fan, where the pressure difference signal of the target fan is a brake voltage of the target fan acquired by a voltage acquisition circuit; Analyzing the pressure difference signal of the target fan to obtain a target fan voltage; Get the target fan standard voltage; The target fan voltage is subtracted from the target fan standard voltage to obtain an absolute value of the difference between the target fan voltage and the target fan standard voltage, and the absolute value of the difference between the target fan voltage and the target fan standard voltage is used as a target fan pressure difference value.
9. The method according to claim 7, characterized in that: The baseboard management controller controls the rotation speed of the non-target fan according to the closed-loop feedback control mode, including: In response to the baseboard management controller acquiring the target fan pressure difference value, the baseboard management controller calculates a target duty cycle of the target fan based on a second calculation formula; In response to obtaining the target duty cycle, regulating the rotation speed of the non-target fan according to the target duty cycle, wherein the target duty cycle is proportional to the rotation speed of the non-target fan; Among them, the second calculation formula is: ; in, is the target duty cycle, , is a constant, is the target fan speed control factor, is the target fan temperature, is a constant term, is the target fan pressure difference speed control factor, is the target fan pressure difference value.
10. The method according to claim 7, characterized in that If the target fan pressure difference value is greater than a preset threshold, the target fan stops starting, and transmitting the target fan pressure difference value to the baseboard management controller includes: When the target fan pressure difference value is greater than a preset threshold, transmitting the target fan pressure difference value to a baseboard management controller; In response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a first control instruction and transmits the first control instruction to the fan controller; In response to the fan controller receiving a first control instruction, generating a first transmission instruction, and transmitting a first target control signal according to the first transmission instruction, wherein the first target control signal is a low level signal; In response to the discharge circuit receiving the first target control signal, the discharge switch is turned off and the target fan stops starting.
11. The method according to claim 7, characterized in that The method of regulating the rotation speed of the non-target fan according to the closed-loop feedback control mode includes: Re-determine whether the target fan pressure difference value is greater than a preset threshold; If the target fan pressure difference value is less than or equal to a preset threshold, transmitting the target fan pressure difference value to a baseboard management controller; In response to the baseboard management controller receiving the target fan pressure difference value, the baseboard management controller generates a second control instruction and transmits the second control instruction to the fan controller; In response to the fan controller receiving a second control instruction, generating a second transmission instruction, and transmitting a second target control signal according to the second transmission instruction, wherein the second target control signal is a high level signal; In response to the discharge circuit receiving the second target control signal, the discharge switch is turned on and the target fan is restarted.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 7 to 11 are implemented.
13. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 7 to 11 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 7 to 11 are implemented.
