Fan control method and device, storage medium and electronic device

CN115826707BActive Publication Date: 2026-09-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211372404.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2026-09-22
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

但是,这两个信号,在机器正常工作时,并无实际功能,占用额外线缆走线的同时,增加设计成本;同时走线数量的增加,降低了机器的可靠性

Benefits of technology

[0029]通过本申请,由于只需使用设备中主板的基板管理控制器与电源板的电源转换芯片进行交互时产生的信号控制设备中风扇的转速,不需使用主板发送的开机信号和看门狗定时器信号控制设备中风扇的转速。因此,可以解决使用设备中主板发送的开机信号和看门狗定时器信号控制设备中风扇的转速,导致设备的走线数量增加,进而导致设备的线缆成本较高和可靠性较低的问题,从而减少设备的走线数量,进而达到了降低设备的线缆成本和提高设备的可靠性的效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115826707B_ABST
    Figure CN115826707B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a fan control method and device, a storage medium and an electronic device, wherein the method comprises: obtaining a target signal in a target device, wherein the target device at least comprises a mainboard and a power board, and the target signal is generated when a baseboard management controller in the mainboard interacts with a power conversion chip in the power board; determining a working state of the baseboard management controller based on the target signal; determining a power-on / off state of the target device according to the working state of the baseboard management controller; and controlling the rotating speed of the fan based on the power-on / off state of the target device. Through the present application, the problem that the rotating speed of the fan in the device is controlled by using the power-on signal and the watchdog timer signal sent by the mainboard in the related art, which leads to an increase in the number of device wirings, and further leads to a higher cable cost and lower reliability of the device, is solved, and the effect of reducing the cable cost and improving the reliability of the device is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a fan control method and apparatus, a storage medium, and an electronic device. Background Technology

[0002] Currently, in the hardware design of equipment (such as servers), due to structural limitations, a fan power supply board is typically used. This board controls the power supply to the entire machine while also controlling the machine's fans. Furthermore, the Baseboard Manager Controller (BMC) accesses the fan power supply board to obtain power status information and control the fans.

[0003] In related technologies, the motherboard and fan power supply board are connected via cables. The motherboard's BMC (Browser Control Center) uses an I2C bus (a bidirectional two-wire synchronous serial bus, a communication bus) to access and control the fan power supply board. By accessing the VR chip (power conversion chip) on the fan power supply board, it obtains the current power consumption of the machine and sends fan speed information to the Complex Programmable Logic Device (CPLD) on the board to control the fan speed. Simultaneously, the BMC's watchdog timer circuit signal (WDT signal) is connected to the fan board; the CPLD detects whether the WDT signal periodically reverses to determine if the BMC is stuck. When the CPLD detects a BMC stuck, it takes over fan control and determines different fan speeds based on the power-on signal sent by the motherboard. Since the BMC does not participate in fan control when the machine is powered off, the CPLD takes over fan control during power-off conditions. All of the aforementioned BMC I2C signal, WDT signal, and power-on signal must be included in the cable between the motherboard and the fan power supply board.

[0004] Therefore, to ensure the fan power supply board functions properly, related technologies require not only a BMC I2C signal but also a BMC WDT signal sent from the motherboard to the fan power supply board and a motherboard power-on signal. However, these two signals have no actual function during normal machine operation, occupying additional cable routing and increasing design costs; at the same time, the increased number of cables reduces the machine's reliability.

[0005] There is currently no effective solution to the problem that the use of power-on signals and watchdog timer signals sent by the motherboard in related technologies to control the fan speed in the device increases the number of cables, resulting in higher cable costs and lower reliability. Summary of the Invention

[0006] This application provides a fan control method and apparatus, storage medium and electronic device to at least solve the problem in related technologies where the fan speed in a device is controlled by a power-on signal and a watchdog timer signal sent by the motherboard, which leads to an increase in the number of wires in the device, resulting in higher cable costs and lower reliability.

[0007] According to one embodiment of this application, a fan control method is provided, comprising: acquiring a target signal in a target device, wherein the target device includes at least a motherboard and a power board, the target signal being generated by interaction between a baseboard management controller in the motherboard and a power conversion chip in the power board, the power board including at least the power conversion chip and a fan; determining the operating state of the baseboard management controller based on the target signal; determining the power-on / off state of the target device based on the operating state of the baseboard management controller; and controlling the fan speed based on the power-on / off state of the target device.

[0008] Further, determining the operating state of the substrate management controller based on the target signal includes: determining a preset time period; determining whether the target signal changes within the preset time period; if the target signal changes within the preset time period, it indicates that the substrate management controller is in an operating state; if the target signal does not change within the preset time period, it indicates that the substrate management controller is in a non-operating state.

[0009] Further, determining the power-on / off state of the target device based on the operating state of the baseboard management controller includes: obtaining the current power consumption of the target device based on the operating state of the baseboard management controller; and determining the power-on / off state of the target device based on the current power consumption of the target device.

[0010] Further, determining the power-on / off state of the target device based on its current power consumption includes: obtaining a preset power consumption threshold, wherein the preset power consumption threshold represents the power consumption generated by the target device when it is powered on; determining whether the current power consumption of the target device is less than the preset power consumption threshold; if the current power consumption of the target device is less than the preset power consumption threshold, then the target device is in a power-off state; if the current power consumption of the target device is not less than the preset power consumption threshold, then the target device is in a power-on state.

[0011] Further, based on the operating state of the baseboard management controller, obtaining the current power consumption of the target device includes: if the baseboard management controller is in an operating state, acquiring the communication data between the baseboard management controller and the power conversion chip; parsing the communication data between the baseboard management controller and the power conversion chip to obtain the current power consumption of the target device; if the baseboard management controller is in a non-operating state, accessing the power conversion chip to obtain the current power consumption of the target device.

[0012] Furthermore, if the baseboard management controller is in an active state, controlling the fan speed based on the power-on / off state of the target device includes: if the target device is in an active state, acquiring target data sent by the baseboard management controller, wherein the target data is used to adjust the fan speed; controlling the fan speed according to the target data; and if the target device is in an active state, adjusting the fan speed to a first speed.

[0013] Furthermore, controlling the fan speed based on the target data includes: parsing the target data to obtain a parsing result; and controlling the fan speed based on the parsing result.

[0014] Furthermore, if the baseboard management controller is in a non-operating state, controlling the fan speed based on the power-on / off state of the target device includes: if the target device is in a power-on state, adjusting the fan speed to a second speed, wherein the second speed is greater than the first speed; if the target device is in a power-off state, adjusting the fan speed to a first speed.

[0015] Furthermore, before acquiring the target signal in the target device, the method further includes: the baseboard management controller interacting with the power conversion chip to obtain an interaction result; and obtaining the target signal in the target device based on the interaction result.

[0016] Furthermore, after controlling the fan speed based on the power-on / off state of the target device, the method further includes: obtaining a control result of controlling the fan speed; and controlling the internal temperature of the target device based on the control result.

[0017] According to another embodiment of this application, a fan control device is provided, comprising: a first acquisition unit, configured to acquire a target signal from a target device, wherein the target device includes at least a motherboard and a power board, the target signal being generated by interaction between a baseboard management controller in the motherboard and a power conversion chip in the power board, the power board including at least the power conversion chip and a fan; a first determination unit, configured to determine the operating state of the baseboard management controller based on the target signal; a second determination unit, configured to determine the power-on / off state of the target device based on the operating state of the baseboard management controller; and a first control unit, configured to control the fan speed based on the power-on / off state of the target device.

[0018] Further, the first determining unit includes: a first determining module, used to determine a preset time period; a first judging module, used to judge whether the target signal changes within the preset time period; a second determining module, used to indicate that the substrate management controller is in a working state if the target signal changes within the preset time period; and a third determining module, used to indicate that the substrate management controller is in a non-working state if the target signal does not change within the preset time period.

[0019] Furthermore, the second determining unit includes: a fourth determining module, used to obtain the current power consumption of the target device based on the working state of the baseboard management controller; and a fifth determining module, used to determine the power-on / off state of the target device based on the current power consumption of the target device.

[0020] Further, the fifth determining module includes: a first acquiring submodule, used to acquire a preset power consumption threshold, wherein the preset power consumption threshold is used to represent the power consumption generated by the target device when it is powered on; a first judging submodule, used to judge whether the current power consumption of the target device is less than the preset power consumption threshold; a first determining submodule, used to indicate that the target device is in a powered-off state if the current power consumption of the target device is less than the preset power consumption threshold; and a second determining submodule, used to indicate that the target device is in a powered-on state if the current power consumption of the target device is not less than the preset power consumption threshold.

[0021] Furthermore, the fourth determining module includes: a second acquisition submodule, configured to acquire communication data between the baseboard management controller and the power conversion chip if the baseboard management controller is in a working state; a first parsing submodule, configured to parse the communication data between the baseboard management controller and the power conversion chip to obtain the current power consumption of the target device; and a first processing submodule, configured to access the power conversion chip and obtain the current power consumption of the target device if the baseboard management controller is in a non-working state.

[0022] Furthermore, if the baseboard management controller is in operation, the first control unit includes: a first acquisition module, configured to acquire target data sent by the baseboard management controller if the target device is in a powered-on state, wherein the target data is used to adjust the fan speed; a first control module, configured to control the fan speed according to the target data; and a first adjustment module, configured to adjust the fan speed to a first speed if the target device is in a powered-off state.

[0023] Furthermore, the first control module includes: a second parsing submodule, used to parse the target data to obtain a parsing result; and a first control submodule, used to control the fan speed based on the parsing result.

[0024] Furthermore, if the baseboard management controller is in a non-operating state, the first control unit includes: a second adjustment module, used to adjust the fan speed to a second speed if the target device is in a powered-on state, wherein the second speed is greater than the first speed; and a third adjustment module, used to adjust the fan speed to a first speed if the target device is in a powered-off state.

[0025] Furthermore, the device further includes: a first interaction unit, used to interact with the power conversion chip before acquiring the target signal in the target device, and obtain an interaction result; and a third determination unit, used to obtain the target signal in the target device based on the interaction result.

[0026] Furthermore, the device further includes: a second acquisition unit, configured to acquire a control result of controlling the fan speed after controlling the fan speed based on the power-on / off state of the target device; and a second control unit, configured to control the internal temperature of the target device based on the control result.

[0027] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0028] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0029] This application solves the problem that controlling the fan speed in a device only requires using the signal generated by the interaction between the motherboard's baseboard management controller and the power conversion chip on the power board, eliminating the need for the power-on signal and watchdog timer signal sent by the motherboard. Therefore, it resolves the issue of increased wiring, higher cable costs, and lower reliability caused by using the motherboard's power-on signal and watchdog timer signal to control the fan speed. This reduces the number of wiring steps, thereby lowering cable costs and improving device reliability. Attached Figure Description

[0030] Figure 1 This is a hardware structure block diagram of a mobile terminal for a fan control method according to an embodiment of this application;

[0031] Figure 2 This is a flowchart of a fan control method according to an embodiment of this application;

[0032] Figure 3 This is a schematic diagram of the structure of a fan control system according to an embodiment of this application;

[0033] Figure 4 This is a flowchart of a fan control method according to an embodiment of this application. Figure 1 ;

[0034] Figure 5 This is a flowchart of a fan control method according to an embodiment of this application. Figure 2 ;

[0035] Figure 6 This is a flowchart of a fan control method according to an embodiment of this application. Figure 3 ;

[0036] Figure 7 This is a flowchart of a fan control method according to an embodiment of this application. Figure 4 ;

[0037] Figure 8 This is a structural block diagram of a fan control device according to an embodiment of this application. Detailed Implementation

[0038] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0039] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0040] The methods and embodiments provided in this application can be executed on mobile terminals, computer terminals, or similar computing devices. Figure 1 This is a hardware structure block diagram of a mobile terminal for a fan control method according to an embodiment of this application. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0041] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0042] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the fan control method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned fan control method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0043] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0044] This embodiment provides a method that runs on the aforementioned mobile terminal. Figure 2 This is a flowchart of a fan control method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0045] Step S201: Obtain the target signal from the target device, wherein the target device includes at least a motherboard and a power board, and the target signal is generated when the baseboard management controller in the motherboard interacts with the power conversion chip in the power board, and the power board includes at least a power conversion chip and a fan.

[0046] For example, the target device mentioned above could be a server. Furthermore, Figure 3 This is a schematic diagram of the structure of a fan control system according to an embodiment of this application, as shown below. Figure 3 As shown, the system includes: a Baseboard Manager Controller (BMC) on the motherboard of the server, a Complex Programmable Logic Device (CPLD) and a power conversion chip (VR chip) on the fan power supply board of the server, and a fan (FAN). Furthermore, the BMC and CPLD in the system are connected via an I2C bus (a bidirectional two-wire synchronous serial bus, a type of communication bus), and the CPLD and VR chip are also connected via an I2C bus. Moreover, the aforementioned target signal can be the signal generated during the interaction between the BMC and the VR chip.

[0047] In addition, such as Figure 3 As shown, the BMC I2C signal is connected to the CPLD, and then the CPLD sends it to the VR chip on the fan power supply board. The CPLD internally includes the following modules:

[0048] (1) I2C detect module: used to detect whether the BMC is interacting with I2C and to parse the communication data between the BMC and the VR;

[0049] (2) Bypass module and Switch module: used for bidirectional pass-through of BMC I2C data to the backend VR chip;

[0050] (3) I2C Master module (host module): used to access the backend VR chip and obtain the current machine power consumption data.

[0051] (4) I2C slave module: used to parse the fan speed control data sent by the BMC;

[0052] (5) PWM module (Pulse width modulation): It is used to receive the fan speed control data parsed by the I2Cslave module and output the PWM signal to control the fan (FAN) through the output PWM signal (Pulse width modulation signal).

[0053] Step S202: Determine the operating state of the baseboard management controller based on the target signal.

[0054] For example, the status of the BMC can be determined by the changes in signals generated during the interaction between the BMC and the VR chip.

[0055] Step S203: Determine the power-on / off state of the target device based on the operating state of the baseboard management controller.

[0056] For example, determine whether the BMC is in a working state, and if it is, determine whether the server is powered on or powered off. Conversely, if the BMC is determined to be in a non-working state, then determine whether the server is powered on or powered off.

[0057] Step S204: Control the fan speed based on the power-on / off status of the target device.

[0058] For example, it can determine whether the server is powered on or powered off, and if it determines that the server is powered on, it controls the fan to run at a higher speed; if it determines that the server is powered off, it controls the fan to run at a lower speed.

[0059] The above steps solve the problem of using the power-on signal and watchdog timer signal sent by the motherboard to control the fan speed in the device, which increases the number of cables, leading to higher cable costs and lower reliability. By reducing the number of cables, the problem is solved, thereby reducing cable costs and improving device reliability.

[0060] The entities that perform the above steps can be servers, terminals, etc., but are not limited to these.

[0061] In order to quickly and accurately obtain the target signal in the target device, the fan control method provided in this application embodiment can also obtain the target signal in the target device through the following steps: the baseboard management controller interacts with the power conversion chip to obtain the interaction result; based on the interaction result, the target signal in the target device is obtained.

[0062] For example, the Baseboard Management Controller (BMC) on the motherboard of the control server interacts with the VR chip (power conversion chip) on the fan power supply board of the server and obtains the signal generated when the Baseboard Management Controller (BMC) interacts with the VR chip (power conversion chip) (the aforementioned target signal).

[0063] The above method can quickly and accurately obtain the signals generated when the Baseboard Management Controller (BMC) interacts with the VR chip (Power Conversion Chip).

[0064] like Figure 4 As shown, Figure 4 This is a flowchart of a fan control method according to an embodiment of this application. Figure 1 Based on the target signal, the operating state of the baseboard management controller is determined as follows:

[0065] Step S401: Determine the preset time period;

[0066] Step S402: Determine whether the target signal has changed within a preset time period;

[0067] Step S403: If the target signal changes within a preset time period, it indicates that the substrate management controller is in working state.

[0068] Step S404: If the target signal does not change within a preset time period, it indicates that the substrate management controller is in a non-working state.

[0069] For example, within a set time threshold (the aforementioned preset time period), the CPLD I2C detect module detects whether there is a change in the I2C signal (the aforementioned target signal, i.e., the signal generated when the BMC interacts with the VR chip). If the CPLD I2C detect module detects that the I2C signal does not change after the set time threshold has been exceeded, it is determined that the BMC has not completed initialization or the BMC is stuck (the aforementioned substrate management controller BMC is in a non-working state). If the CPLD I2C detect module detects that the I2C signal changes within the set time threshold, it is determined that the BMC is working normally (the aforementioned substrate management controller BMC is in a working state).

[0070] The above scheme utilizes a CPLD to detect BMC I2C data, and the CPLD can quickly and accurately determine the working status of the Baseboard Management Controller (BMC) based on the I2C data.

[0071] like Figure 5 As shown, Figure 5 This is a flowchart of a fan control method according to an embodiment of this application. Figure 2 Based on the operating status of the baseboard management controller, the power-on / off status of the target device is determined, including:

[0072] Step S501: Obtain the current power consumption of the target device based on the operating status of the baseboard management controller;

[0073] Step S502: Determine the power-on / off state of the target device based on its current power consumption.

[0074] For example, based on the operating status of the baseboard management controller, the current power consumption of the server can be obtained in different ways, and based on the obtained current power consumption of the server, it can be determined whether the server is in a powered-on state or a powered-off state.

[0075] Using the above method, the power-on / off status of the machine can be quickly and accurately determined based on the server's current power consumption.

[0076] like Figure 6 As shown, Figure 6 This is a flowchart of a fan control method according to an embodiment of this application. Figure 3 Based on the current power consumption of the target device, the power-on / off state of the target device is determined, including:

[0077] Step S601: Obtain a preset power consumption threshold, wherein the preset power consumption threshold is used to represent the power consumption generated by the target device when it is powered on;

[0078] Step S602: Determine whether the current power consumption of the target device is less than a preset power consumption threshold;

[0079] Step S603: If the current power consumption of the target device is less than the preset power consumption threshold, it means that the target device is in a power-off state.

[0080] Step S604: If the current power consumption of the target device is not less than the preset power consumption threshold, it means that the target device is in the power-on state.

[0081] For example, determine whether the server's actual power consumption is lower than the power-on power consumption threshold (the preset power consumption threshold mentioned above). If the server's actual power consumption is lower than the power-on power consumption threshold, then the server is determined to be in a powered-off state; if the server's actual power consumption is higher than or equal to the power-on power consumption threshold, then the server is determined to be in a powered-on state.

[0082] In summary, CPLD can detect and judge power consumption data in BMC I2C data. That is, by comparing the actual power consumption of the machine with the power-on power consumption threshold, the power-on and power-off status of the machine can be quickly and accurately determined.

[0083] like Figure 7 As shown, Figure 7 This is a flowchart of a fan control method according to an embodiment of this application. Figure 4 Based on the operating status of the baseboard management controller, the current power consumption of the target device is obtained, including:

[0084] Step S701: If the baseboard management controller is in working state, then acquire the communication data between the baseboard management controller and the power conversion chip.

[0085] Step S702: Analyze the communication data between the baseboard management controller and the power conversion chip to obtain the current power consumption of the target device;

[0086] In step S703, if the baseboard management controller is in a non-working state, the power conversion chip is accessed to obtain the current power consumption of the target device.

[0087] For example, when the BMC is working normally, the CPLD uses the Bypass and Switch modules to pass through the BMC I2C to the VR chip. At this time, it's equivalent to a direct I2C connection between the BMC and the VR chip, and the CPLD does not affect their communication. Then, the I2Cdetect module in the CPLD detects the data accessed by the BMC to the VR chip and filters out the actual power consumption data. When the BMC has not completed initialization or is suspended (the aforementioned baseboard management controller BMC is in a non-working state), the I2C connection between the BMC and the VR chip switches to the CPLD's internal I2C master, and the CPLD polls the actual power consumption data in the VR chip.

[0088] Using the above method, the actual power consumption of the machine can be obtained quickly and accurately based on the working status of the Baseboard Management Controller (BMC).

[0089] To quickly and accurately control the fan speed, the fan control method provided in this application embodiment can also control the fan speed through the following steps: if the baseboard management controller is in working state and the target device is in power-on state, then the target data sent by the baseboard management controller is obtained, wherein the target data is used to adjust the fan speed; the fan speed is controlled according to the target data; if the target device is in power-off state, then the fan speed is adjusted to a first speed.

[0090] For example, when the BMC is working normally and the server is powered on, the BMC sends fan speed control data to the CPLD, and the CPLD then controls the fan according to the fan speed control data sent by the BMC. When the BMC is working normally and the server is powered off, the CPLD takes over fan control and adjusts the fan speed to a lower speed (the first speed mentioned above).

[0091] Using the above method, the CPLD can control the fan speed based on the power-on / off status, the BMC's operating status, and the debugging data sent by the BMC.

[0092] In order to quickly and accurately control the fan speed, the fan control method provided in this application embodiment can also control the fan speed through the following steps: parsing the target data to obtain the parsing result; and controlling the fan speed based on the parsing result.

[0093] For example, the CPLD's internal I2C slave module parses the fan speed control data sent by the BMC and controls the fan speed based on the parsed data.

[0094] In summary, by analyzing the fan speed control data sent by the BMC, the fan speed can be easily controlled.

[0095] In order to quickly and accurately control the fan speed, the fan control method provided in this application embodiment can also control the fan speed through the following steps: if the baseboard management controller is in a non-working state and the target device is in a powered-on state, the fan speed is adjusted to a second speed, wherein the second speed is greater than the first speed; if the target device is in a powered-off state, the fan speed is adjusted to the first speed.

[0096] For example, when the BMC has not completed initialization or is stuck (the aforementioned Baseboard Management Controller (BMC) is in a non-working state), different fan speeds can be set according to the server's current power-on / off state. For instance, when the server is powered on, the fan speed is adjusted to a higher speed (the aforementioned second speed); when the server is powered off, the fan speed is adjusted to a lower speed (the aforementioned first speed).

[0097] With the above solution, when the BMC has not completed initialization or the BMC is stuck (the aforementioned baseboard management controller BMC is in a non-working state), the fan speed can be quickly and accurately controlled according to the server's power-on / off status.

[0098] In order to quickly and accurately control the internal temperature of the target device, the fan control method provided in this application embodiment can also control the internal temperature of the target device through the following steps: obtaining the control result of controlling the fan speed; and controlling the internal temperature of the target device based on the control result.

[0099] For example, when the server is powered on, the fan needs to be controlled to run at a higher speed to lower the internal temperature of the server because the server's heat dissipation is poor; when the server is powered off, the server's heat dissipation is better, so the fan needs to be controlled to run at a lower speed to raise the internal temperature of the server.

[0100] The above method can quickly and accurately control the internal temperature of the machine, thereby enabling the server to achieve better heat dissipation.

[0101] The method provided in this embodiment includes, for example, the following steps:

[0102] (1) When the BMC is working normally, the CPLD uses the Bypass module and the Switch module to pass through the BMC I2C to the VR chip. At this time, it is equivalent to the BMC and the VR chip being directly connected through I2C. The CPLD does not affect the communication between the two.

[0103] (2) The I2C detect module in the CPLD detects the data accessed by the BMC to the VR, filters out the actual power consumption data, and compares it with the set power-on power consumption threshold.

[0104] (3) When the actual power consumption is lower than the power-on power consumption threshold, the machine is judged to be in the off state and the CPLD takes over the fan control; when the actual power consumption is higher than the power-on power consumption threshold, the machine is judged to be in the on state and the CPLD performs fan control according to the fan grouping data sent by the BMC.

[0105] (4) When the CPLD I2C detect module detects that the I2C signal has not changed for more than the set time threshold, it is determined that the BMC has not completed initialization or the BMC is stuck, and the CPLD takes over the fan control. At the same time, the I2C connected to the VR switches to the CPLD's internal I2C master. The CPLD polls the actual power consumption data in the VR to determine the current power-on / off state, and sets different fan speeds according to different power-on / off states;

[0106] (5) When the CPLD I2C detect module detects a change in the I2C signal, it determines that the BMC is working normally, and then jumps back to steps (1), (2), and (3).

[0107] Therefore, a CPLD can be used to detect I2C data and determine the working status of the BMC and the machine's power-on / off state. Simultaneously, fan control can be performed based on the debugging data sent by the BMC. The overall control logic only uses the I2C data signal itself, eliminating the need for power-on and WDT signals from the motherboard, thus achieving a complete fan control solution. This simplifies the connection between the motherboard and the fan power board, saves wiring resources occupied by WDT and power-on signals, thereby reducing cable costs and improving the reliability of machine interconnection.

[0108] In summary, the fan control method provided in this application obtains a target signal from a target device, wherein the target device includes at least a motherboard and a power board. The target signal is generated when the baseboard management controller in the motherboard interacts with the power conversion chip in the power board, and the power board includes at least a power conversion chip and a fan. Based on the target signal, the operating state of the baseboard management controller is determined; based on the operating state of the baseboard management controller, the power-on / off state of the target device is determined; and based on the power-on / off state of the target device, the fan speed is controlled. This solves the problem in related technologies where the fan speed is controlled by the power-on signal and watchdog timer signal sent by the motherboard, leading to an increase in the number of traces, resulting in higher cable costs and lower reliability. By using the signal generated when the baseboard management controller of the motherboard interacts with the power conversion chip of the power board to control the fan speed, the power-on signal and watchdog timer signal sent by the motherboard are no longer used to control the fan speed, thereby reducing the number of traces and achieving the effects of reducing cable costs and improving device reliability.

[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0110] This embodiment also provides a fan control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0111] Figure 8 This is a structural block diagram of a fan control device according to an embodiment of this application, such as... Figure 8 As shown, the device includes: a first acquisition unit 801, a first determination unit 802, a second determination unit 803, and a first control unit 804.

[0112] Specifically, the first acquisition unit 801 is used to acquire the target signal in the target device, wherein the target device includes at least: a motherboard and a power board, and the target signal is generated when the baseboard management controller in the motherboard interacts with the power conversion chip in the power board, and the power board includes at least: a power conversion chip and a fan.

[0113] The first determining unit 802 is used to determine the operating state of the baseboard management controller based on the target signal;

[0114] The second determining unit 803 is used to determine the power-on / off state of the target device based on the operating state of the baseboard management controller;

[0115] The first control unit 804 is used to control the fan speed based on the on / off state of the target device.

[0116] In summary, the fan control device provided in this application embodiment acquires a target signal from a target device through a first acquisition unit 801. The target device includes at least a motherboard and a power board. The target signal is generated when the baseboard management controller in the motherboard interacts with the power conversion chip in the power board. The power board includes at least a power conversion chip and a fan. A first determination unit 802 determines the operating state of the baseboard management controller based on the target signal. A second determination unit 803 determines the power-on / off state of the target device based on the operating state of the baseboard management controller. A first control unit 804 controls the fan speed based on the power-on / off state of the target device. This solves the problem in related technologies where the fan speed is controlled by the power-on signal and watchdog timer signal sent by the motherboard, leading to an increase in the number of traces, resulting in higher cable costs and lower reliability. By using the signal generated when the baseboard management controller of the motherboard interacts with the power conversion chip on the power board to control the fan speed, the power-on signal and watchdog timer signal sent by the motherboard are no longer used, thereby reducing the number of traces and achieving the effects of reducing cable costs and improving device reliability.

[0117] Optionally, in the fan control device provided in the embodiments of this application, the first determining unit includes: a first determining module, used to determine a preset time period; a first judging module, used to judge whether the target signal changes within the preset time period; a second determining module, used to indicate that the substrate management controller is in a working state if the target signal changes within the preset time period; and a third determining module, used to indicate that the substrate management controller is in a non-working state if the target signal does not change within the preset time period.

[0118] Optionally, in the fan control device provided in the embodiments of this application, the second determining unit includes: a fourth determining module, used to obtain the current power consumption of the target device based on the working state of the baseboard management controller; and a fifth determining module, used to determine the power on / off state of the target device based on the current power consumption of the target device.

[0119] Optionally, in the fan control device provided in the embodiments of this application, the fifth determining module includes: a first acquiring submodule, used to acquire a preset power consumption threshold, wherein the preset power consumption threshold is used to represent the power consumption generated by the target device when it is powered on; a first judging submodule, used to judge whether the current power consumption of the target device is less than the preset power consumption threshold; a first determining submodule, used to indicate that the target device is in a powered-off state if the current power consumption of the target device is less than the preset power consumption threshold; and a second determining submodule, used to indicate that the target device is in a powered-on state if the current power consumption of the target device is not less than the preset power consumption threshold.

[0120] Optionally, in the fan control device provided in the embodiments of this application, the fourth determining module includes: a second acquisition submodule, used to acquire communication data between the baseboard management controller and the power conversion chip if the baseboard management controller is in a working state; a first parsing submodule, used to parse the communication data between the baseboard management controller and the power conversion chip to obtain the current power consumption of the target device; and a first processing submodule, used to access the power conversion chip and obtain the current power consumption of the target device if the baseboard management controller is in a non-working state.

[0121] Optionally, in the fan control device provided in the embodiments of this application, if the baseboard management controller is in a working state, the first control unit includes: a first acquisition module, used to acquire target data sent by the baseboard management controller if the target device is in a powered-on state, wherein the target data is used to adjust the fan speed; a first control module, used to control the fan speed according to the target data; and a first adjustment module, used to adjust the fan speed to a first speed if the target device is in a powered-off state.

[0122] Optionally, in the fan control device provided in the embodiments of this application, the first control module includes: a second parsing submodule, used to parse the target data to obtain the parsing result; and a first control submodule, used to control the fan speed according to the parsing result.

[0123] Optionally, in the fan control device provided in the embodiments of this application, if the baseboard management controller is in a non-working state, the first control unit includes: a second adjustment module, used to adjust the fan speed to a second speed if the target device is in a powered-on state, wherein the second speed is greater than the first speed; and a third adjustment module, used to adjust the fan speed to a first speed if the target device is in a powered-off state.

[0124] Optionally, in the fan control device provided in the embodiments of this application, the device further includes: a first interaction unit, used to interact with the power conversion chip before acquiring the target signal in the target device, and obtain the interaction result; and a third determination unit, used to obtain the target signal in the target device based on the interaction result.

[0125] Optionally, in the fan control device provided in the embodiments of this application, the device further includes: a second acquisition unit, used to acquire the control result of controlling the fan speed after controlling the fan speed based on the on / off state of the target device; and a second control unit, used to control the internal temperature of the target device according to the control result.

[0126] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0127] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0128] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0129] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0130] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0131] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0132] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0133] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A fan control method, characterized in that, include: Acquire a target signal from a target device, wherein the target device includes at least a motherboard and a power board, and the target signal is generated when the baseboard management controller in the motherboard interacts with the power conversion chip in the power board, wherein the power board includes at least the power conversion chip and a fan; Based on the target signal, the operating state of the baseboard management controller is determined; The power on / off state of the target device is determined based on the operating state of the baseboard management controller; The fan speed is controlled based on the on / off status of the target device; Specifically, the status of the substrate management controller is determined based on whether the target signal changes within a preset time period. Determining the power-on / off state of the target device based on the operating state of the baseboard management controller includes: obtaining the current power consumption of the target device based on the operating state of the baseboard management controller; and determining the power-on / off state of the target device based on the current power consumption of the target device.

2. The method according to claim 1, characterized in that, Determining the operating state of the baseboard management controller based on the target signal includes: Determine whether the target signal changes within the preset time period; If the target signal changes within the preset time period, it indicates that the substrate management controller is in working condition. If the target signal does not change within the preset time period, it indicates that the substrate management controller is in a non-working state.

3. The method according to claim 1, characterized in that, Determining the power-on / off state of the target device based on its current power consumption includes: Obtain a preset power consumption threshold, wherein the preset power consumption threshold is used to represent the power consumption generated by the target device when it is powered on; Determine whether the current power consumption of the target device is less than the preset power consumption threshold; If the current power consumption of the target device is less than the preset power consumption threshold, it indicates that the target device is in a powered-off state. If the current power consumption of the target device is not less than the preset power consumption threshold, it indicates that the target device is powered on.

4. The method according to claim 1, characterized in that, Based on the operating state of the baseboard management controller, the current power consumption of the target device is obtained, including: If the baseboard management controller is in working state, then the communication data between the baseboard management controller and the power conversion chip is acquired; The current power consumption of the target device is obtained by parsing the communication data between the baseboard management controller and the power conversion chip. If the baseboard management controller is in a non-operating state, the power conversion chip is accessed to obtain the current power consumption of the target device.

5. The method according to claim 1, characterized in that, If the baseboard management controller is in an active state, controlling the fan speed based on the power-on / off state of the target device includes: If the target device is powered on, the target data sent by the baseboard management controller is acquired, wherein the target data is used to adjust the fan speed; Based on the target data, the fan speed is controlled; If the target device is powered off, the fan speed is adjusted to the first speed.

6. The method according to claim 5, characterized in that, Controlling the fan speed based on the target data includes: The target data is parsed to obtain the parsing results; Based on the analysis results, the fan speed is controlled.

7. The method according to claim 5, characterized in that, If the baseboard management controller is in a non-operating state, controlling the fan speed based on the power-on / off state of the target device includes: If the target device is powered on, the fan speed is adjusted to a second speed, wherein the second speed is greater than the first speed; If the target device is powered off, the fan speed is adjusted to the first speed.

8. The method according to claim 1, characterized in that, Before acquiring the target signal from the target device, the method further includes: The baseboard management controller interacts with the power conversion chip to obtain the interaction result; Based on the interaction results, the target signal in the target device is obtained.

9. The method according to claim 1, characterized in that, After controlling the fan speed based on the power-on / off state of the target device, the method further includes: Obtain the control result of controlling the fan speed; Based on the control results, the internal temperature of the target device is controlled.

10. A fan control device, characterized in that, include: The first acquisition unit is used to acquire a target signal in a target device, wherein the target device includes at least a motherboard and a power board, and the target signal is generated when the baseboard management controller in the motherboard interacts with the power conversion chip in the power board, and the power board includes at least the power conversion chip and a fan. The first determining unit is used to determine the operating state of the baseboard management controller based on the target signal; The second determining unit is used to determine the power-on / off state of the target device based on the operating state of the baseboard management controller. The first control unit is used to control the fan speed based on the power-on / off state of the target device; The device is further configured to determine whether the substrate management controller is in operation based on whether the target signal changes within a preset time period. The second determining unit includes: a fourth determining module, used to obtain the current power consumption of the target device based on the working state of the baseboard management controller; and a fifth determining module, used to determine the power-on / off state of the target device based on the current power consumption of the target device.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the fan control method according to any one of claims 1 to 9.

12. An electronic 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, it implements the steps of the fan control method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Server fan control device and method based on control chip

    CN111927809A

  • Power panel

    CN209560479U