Fan management method and device for multi-node domestic server, equipment and medium

By setting the priority of each node BMC in a multi-node domestic server, and adjusting the fan speed by the fan module MCU arbitration, the problem of fan management conflicts in the existing technology is solved, and the scalability and development simplicity of the server are improved.

CN120007616APending Publication Date: 2025-05-16SHANDONG CHAOYUE DATA CONTROL ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510205723.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The existing technology conflicts in fan management in multi-node domestic servers, resulting in increased development difficulty and limited server scalability.

Method used

By setting each node BMC to the same priority in automatic mode, a PWM command is periodically generated based on its own node temperature, and the fan speed is adjusted by the MCU of the fan module in chronological order.

Benefits of technology

It reduces the logical judgment complexity of the fan module MCU in arbitration, reduces the development difficulty, and improves the scalability of the server, so that any node BMC can manage the fan module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120007616A_ABST
    Figure CN120007616A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and provides a fan management method and device for a multi-node domestic server, equipment and a medium. The method comprises the following steps: in response to power-on of the whole multi-node domestic server, initializing a management mode of each node BMC on a fan module to be an automatic mode, and starting the fan module; setting the BMC of each node to be in the same command priority in the automatic mode, periodically generating a first PWM command based on the temperature of the node and sending the first PWM command to the MCU of the fan module; and the MCU of the fan module arbitrates the received latest first PWM command according to a time sequence, and adjusts the rotating speed of the fan module according to an arbitration result. According to the scheme, the development difficulty is reduced, meanwhile, any node BMC can manage the fan module, and the expandability of a domestic server is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a fan management method, device, equipment and medium for a multi-node domestic server. Background Art

[0002] The heat dissipation function in domestic servers is implemented by independent fan modules. The main controller of the fan module is MCU (Microcontroller Unit). The MCU of the fan module is used to receive PWM (Pulse Width Modulation) commands issued by the BMC (Baseboard Management Controller) of the domestic server, generate PWM signals and send them to the fan module to adjust the speed of the fan module, and obtain the actual speed feedback from the fan module. When there are multiple host nodes in the domestic server and multiple upstream BMCs, they are not connected to each other, and the temperature of each host node is different. If each BMC controls the current speed of the fan module according to its own temperature, conflicts are bound to occur.

[0003] In the prior art, in order to avoid conflicts when managing fan modules in multiple host nodes of domestic servers, a master BMC is generally selected from all BMCs to manage the fan modules as a whole. The problem with this approach is that, on the one hand, in order to ensure that the selected master BMC can represent the remaining other BMCs to the greatest extent to manage the fan modules, complex logical judgments are required based on multiple parameters such as the number of motherboards to determine the master BMC and its physical location, which increases the difficulty of development; on the other hand, the fan modules cannot be managed through any BMC, which limits the scalability of the server and results in a poor user experience.

[0004] Therefore, there is an urgent need for a fan management method for a multi-node domestic server that reduces development difficulty and does not limit server scalability. Summary of the invention

[0005] In view of this, the present disclosure provides a fan management method, device, equipment and medium for a multi-node domestic server.

[0006] According to a first aspect of the present invention, a fan management method for a multi-node domestic server is provided, comprising: In response to the power-on of the multi-node domestic server, the management mode of the fan module of each node BMC is initialized to automatic mode, and the fan module is started; Setting the BMC of each node to the same command priority in the automatic mode, periodically generating a first PWM command based on the temperature of the node itself and sending the command to the MCU of the fan module; The MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result.

[0007] In some embodiments, the method further comprises: In response to the management mode of any node being changed to manual mode, the BMC of any node sends a management mode modification command to the MCU of the fan module, so that the MCU of the fan module shields the remaining nodes except the any node based on the management mode modification command and then sends the first PWM command.

[0008] In some embodiments, the method further comprises: In the manual mode, the BMC of any node generates a second PWM command based on the set target fan speed, and sends it to the MCU of the fan module; The MCU of the fan module parses the target fan speed from the second PWM command and adjusts the speed of the fan module based on the target fan speed.

[0009] In some embodiments, the method further comprises: In response to the MCU of the fan module receiving the query command sent by the remaining node BMC, the MCU of the fan module sends the target fan speed to the remaining node BMC, so that the fan speed data of the remaining node BMC is modified to the target fan speed.

[0010] In some embodiments, the MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result, including: In response to the MCU of the fan module receiving multiple latest first PWM commands at the same time, the MCU of the fan module parses out the BMC slot numbers corresponding to the multiple latest first PWM commands, locates the physical positions of the corresponding BMCs according to the slot numbers to determine the hardware priorities of the corresponding BMCs, and adjusts the rotation speed of the fan module based on the first PWM command sent by the BMC corresponding to the highest hardware priority.

[0011] In some embodiments, the MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result, further comprising: In response to the MCU of the fan module receiving the only latest first PWM command, the rotation speed of the fan module is adjusted based on the only latest first PWM command.

[0012] In some embodiments, the step of periodically generating the first PWM command based on the own node temperature includes: The corresponding matching fan speed is calculated based on the temperature of the own node, and the first PWM command is generated based on the calculated fan speed.

[0013] According to a second aspect of the present invention, a fan management device for a multi-node domestic server is provided, the device comprising: The first module is used to respond to the power-on of the multi-node domestic server, initialize the management mode of the fan module of each node BMC to the automatic mode, and start the fan module; The second module is used to set the BMC of each node to the same command priority in the automatic mode, and periodically generate a first PWM command based on the temperature of its own node and send it to the MCU of the fan module; The third module is used for the MCU of the fan module to arbitrate the latest first PWM command received in chronological order, and adjust the rotation speed of the fan module according to the arbitration result.

[0014] According to a third aspect of the present invention, there is also provided an electronic device, comprising: at least one processor; and a memory, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the fan management method of the multi-node domestic server mentioned above is executed.

[0015] According to a fourth aspect of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the fan management method of the multi-node domestic server described above is executed.

[0016] The above-mentioned fan management method of a multi-node domestic server is as follows: when the domestic server is powered on, the management mode of the fan module of each node BMC is initialized to the automatic mode, and the fan module is started, and the BMC of each node is set to the same priority in the automatic mode, and the first PWM command is generated based on the temperature of its own node and sent to the MCU of the fan module. The MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the speed of the fan module according to the arbitration result. By setting the BMC of each node to the same priority in the automatic mode, it can be ensured that the MCU of the fan module receives the first PWM command of the same priority. The MCU only needs to consider the principle of time sequence to determine the first PWM command currently participating in the arbitration, which minimizes the number of first PWM commands currently participating in the arbitration, and adjusts the fan speed based on the arbitration result. The whole process does not need to determine the master BMC through complex logical judgment, which reduces the development difficulty. At the same time, the whole process does not limit the master and slave nodes, and the final arbitration result may come from any of the node BMCs. In other words, any node BMC can manage the fan module, which increases the scalability of the domestic server.

[0017] In addition, the present invention also provides a fan management device for a multi-node domestic server, an electronic device and a computer-readable storage medium, which can also achieve the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A flow chart of a fan management method for a multi-node domestic server provided by the first embodiment of the present invention; Figure 2 A schematic diagram of the fan management process of a four-node domestic server provided by the first embodiment of the present invention; Figure 3 A schematic structural diagram of a fan management device for a multi-node domestic server provided by another embodiment of the present invention; Figure 4 is an internal structure diagram of an electronic device in another embodiment of the present invention; Figure 5 This is a structural diagram of a computer-readable storage medium in another embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0021] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0022] In one embodiment, please refer to Figure 1 As shown, the present invention provides a fan management method 100 for a multi-node domestic server, specifically, comprising: Step 101, in response to the multi-node domestic server being powered on, initializing the management mode of the fan module of each node BMC to the automatic mode, and starting the fan module; Specifically, domestic servers include Inspur, Sugon, and Huawei. A multi-node domestic server has multiple host nodes in one server host. Each host node corresponds to a motherboard with a BMC on it. There is an independent fan module in a server machine, and each host node shares one fan module. The management modes of the fan modules of each node BMC of the domestic server include automatic mode and manual mode. After the multi-node server is powered on, the management mode of the fan module by the BMC of each node starts the automatic mode by default, and starts the fan module. When the user logs in to any node, the management mode of the fan module can be modified to manual mode through the BMC. In manual mode, the fan speed of the fan module is a fixed value based on the target fan speed set by the user when logging in to the BMC, and will not change with the temperature of each node like in automatic mode.

[0023] Step 102, setting the BMC of each node to the same command priority in automatic mode, periodically generating a first PWM command based on the temperature of its own node and sending it to the MCU of the fan module; Specifically, the automatic mode means that the node calculates the PWM duty cycle suitable for the fan module according to its own node temperature and generates the first PWM command, which is then sent to the MCU through the reserved communication interface between the node BMC and the MCU of the fan module. The communication interface includes an I2C (Inter-Integrated Circuit) interface, a UART (Universal Asynchronous Receiver / Transmitter) interface, etc. The MCU parses the PWM duty cycle data from the first PWM command and generates a PWM signal based on it and sends it to the fan module to adjust the speed of the fan module. In the automatic mode, the BMC commands of each node have the same priority, and the first PWM commands issued by the BMC of each node do not have the problem of importance sorting, which greatly reduces the logical judgment process of the MCU on the received first PWM command. The MCU of the fan module only outputs the corresponding PWM signal by receiving the latest first PWM command (carrying PWM duty cycle data), without considering whether the management mode of the node BMC for the fan module is automatic mode or manual mode. Only when the new PWM duty cycle data is parsed will the PWM signal issued by it be modified, that is, the fan speed is adjusted.

[0024] Step 103 : The MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result.

[0025] Specifically, the MUC of the fan module receives the first PWM command issued by each node BMC in chronological order, and arbitrates the latest PWM command received. Since the frequencies of the fan speeds matched by the fan module calculated by each node BMC based on its own node temperature are different, the MCU of the fan module may receive the first PWM command or may not receive the first PWM command at a certain moment. Therefore, as long as each node BMC is in automatic mode, the MCU manages the fan module speed adjustment based on the latest received first PWM command. If only the latest first PWM command is currently received, the latest first PWM command is the arbitration result, and the PWM duty cycle data is parsed from the latest PWM command, and the speed of the fan module is adjusted based on it. If multiple latest first PWM commands are currently received at the same time, the MUC of the fan module parses these multiple latest first PWM commands respectively, obtains the corresponding BMC slot numbers, locates the physical location according to the slot number, and then determines the hardware priority according to the physical location, and takes the first PWM command sent by the BMC corresponding to the highest hardware priority as the arbitration result, and adjusts the speed of the fan module based on it. Hardware priority is the hardware priority determined at the beginning of the hardware design of domestic servers. The hardware priority of each hardware in the server is determined based on its importance and the function it performs. The specific location of the hardware is determined by the slot number, such as the specific slot in the server rack, to determine the corresponding hardware priority. For example, the hardware priority of key equipment is higher than that of auxiliary equipment.

[0026] The above-mentioned fan management method for a multi-node domestic server can ensure that the MCU of the fan module receives the first PWM command of the same priority by setting each node BMC to the same priority in automatic mode. The MCU only needs to consider the principle of time sequence to determine the first PWM command currently participating in the arbitration, thereby minimizing the number of first PWM commands currently participating in the arbitration, and adjusting the fan speed based on the arbitration result. The entire process does not require complex logical judgment to determine the main BMC, thereby reducing the development difficulty. At the same time, the entire process does not limit the master and slave nodes, and the final arbitration result may come from any node BMC. In other words, any node BMC can manage the fan module, thereby increasing the scalability of the domestic server.

[0027] According to several embodiments of the present invention, the method also includes: in response to the management mode of any node being modified to manual mode, the BMC of any node sends a management mode modification command to the MCU of the fan module, so that the MCU of the fan module shields the remaining nodes except the any node based on the management mode modification command and then sends the first PWM command.

[0028] Specifically, the manual mode is when a user logs in to any node BMC and sends a management mode modification command to the MCU of the fan module. After receiving the management mode modification command, the MCU changes the speed regulation mode of the fan module to the manual mode, and shields the first PWM command sent by the remaining node BMCs except the node BMC. At the same time, the node BMC generates a second PWM command according to the target fan speed entered by the user during login and sends it to the MCU. The MCU adjusts the speed of the fan module according to the target fan speed data in the second PWM command. That is to say, the MCU of the fan module only receives the second PWM command sent by the node BMC.

[0029] According to several embodiments of the present invention, the method also includes: in manual mode, the BMC of any node generates a second PWM command based on the input target fan speed, and sends it to the MCU of the fan module; the MCU of the fan module parses the target fan speed from the second PWM command and adjusts the speed of the fan module based on it.

[0030] Specifically, the first PWM command sent by the BMC of the remaining nodes is shielded and only the second PWM command sent by the BMC in the automatic mode is received, ensuring that the manual mode of fan module management takes precedence over the automatic mode. The fan speed is set based on user needs if there is a user setting, and the user can log in to any node based on his or her own choice, which enhances the scalability of the server and improves the user experience.

[0031] According to several embodiments of the present invention, the method further includes: in response to the MCU of the fan module receiving a query command sent by the remaining node BMCs, the MCU of the fan module sends the target fan speed to the remaining node BMCs, so that the fan speed data of the remaining node BMCs are modified to the target fan speed.

[0032] Specifically, if the remaining node BMCs in automatic mode send a query command to the fan module, the MCU of the fan module sends the target fan speed set by the user and corrects the fan data of its own node based on it, thereby ensuring that the fan data of the BMCs of each node in the server are consistent. This ensures that even if there is no communication between the nodes within the server, the fan data of the BMCs of each node are consistent.

[0033] According to several embodiments of the present invention, the MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result, including: in response to the MCU of the fan module receiving multiple latest first PWM commands at the same time, the MCU of the fan module parses the BMC slot numbers corresponding to the multiple latest first PWM commands respectively, locates the physical positions of the corresponding BMCs according to the slot numbers to determine the hardware priorities of the corresponding BMCs respectively, and adjusts the rotation speed of the fan module based on the first PWM command sent by the BMC corresponding to the highest hardware priority.

[0034] Specifically, in automatic mode, the MCU of the fan module only arbitrates the latest first PWM command received, which reduces the number of first PWM commands involved in MCU arbitration and greatly reduces the complexity of arbitration. Based on this, if multiple first PWM commands are received at the same time at the current moment, a first PWM command is further determined based on the hardware priority to adjust the fan speed. If only one first PWM command is received at the current moment, the fan module speed can be adjusted directly based on it, reducing the overall difficulty of server development.

[0035] According to some embodiments of the present invention, the MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotational speed of the fan module according to the arbitration result, and also includes: in response to the MCU of the fan module receiving the only latest first PWM command, adjusting the rotational speed of the fan module based on the only latest first PWM command.

[0036] According to some embodiments of the present invention, the step of periodically generating the first PWM command based on the own node temperature includes: calculating the corresponding matching fan speed based on the own node temperature, and generating the first PWM command based on the calculated fan speed.

[0037] In order to further understand the fan management method of a multi-node domestic server of the present invention, it is further elaborated in another specific embodiment below. Figure 2 A schematic diagram of the fan management process of a four-node domestic server is shown.

[0038] Taking the four-node domestic server as an example, the server is composed of four independent and detachable core boards. There is a BMC on each core board. Each BMC is connected to the MCU of the fan module in the server through four different UARTs. The BMC serves as the communication host and the MCU serves as the communication slave. The communication between the BMC and the MCU is initiated by the BMC, and the MCU will not initiate it actively.

[0039] When the server is powered on, the BMC and MCU of each node start working. The management mode of the fan module of each node BMC is automatically set by default. The BMC of each node calculates the PWM duty cycle corresponding to the appropriate speed of the current fan module through the temperature of its own core board, and generates the first PWM command. The data frame format of the first PWM command is shown in Table 1: Table 1

[0040] After the MCU of the fan module receives the first PWM command, it compares the PWM duty cycle in the received first PWM command with the PWM duty cycle of the current fan module. If they are inconsistent, the speed of the fan module is adjusted according to the PWM duty cycle in the received first PWM command. The four BMCs have the same priority. The MCU of the fan module takes the most recently received first PWM command as the basis and arbitrates the most recently received first PWM command. When the MCU currently only receives the only latest first PWM command, it directly adjusts the speed of the fan module based on it. If multiple latest first PWM commands are received at the same time, the BMC slot numbers of these multiple latest first PWM commands are parsed, the physical locations are located according to the slot numbers, the hardware priority is determined according to the physical locations, and the fan speed is adjusted according to the first PWM command sent by the BMC with the highest hardware priority. In automatic mode, each node BMC sends a query command to the MCU of the fan module at a fixed frequency to query the fan speed at a fixed frequency. The data frame format of the query command is shown in Table 2: Table 2

[0041] After receiving the query command, the MCU of the fan module returns the current speed of the fan module and the current management mode of the fan module, outputs the PWM duty cycle and the slot number of the server where the BMC is located. The hardware serial ports of the MCU and the four BMCs are different, and the MCU can rely on the serial port to distinguish the slot number of the server where the current BMC is located. Among them, the data frame format of the query command fed back by the MCU is shown in Table 3: Table 3

[0042] When a user logs in to a BMC and changes the management mode of the fan module to manual mode, the BMC sends a management mode change command to the MCU of the fan module. The data frame format of the management mode change command is shown in Table 4: Table 4

[0043] When the MCU receives the speed control mode modification command, it changes the speed control mode to manual mode. At this time, since the other three BMCs are still in automatic speed control mode, they will still send the first PWM command in automatic mode to the MCU. After receiving it, the MCU compares the field and considers that the first PWM command they sent is invalid, that is, the first PWM command sent by the remaining three BMCs is shielded to ensure that the manual management mode of the fan module takes precedence over the automatic management mode. At the same time, the node BMC sends the second PWM command to the MCU of the fan module based on the target fan speed set by the user. The data frame format of the second PWM command is the same as that of the first PWM command, as shown in Table 1 above, except that the PWM duty cycle is a fixed value set by the user, rather than a variable value calculated by the node BMC based on its own node temperature. At the same time, if the other three remaining BMCs send a query command to the MCU, and the data frame format of the query command they send is shown in Table 2 above, then the MCU in fan mode will feed back the target fan speed to the remaining three node BMCs, and the data frame format of the MCU's response to the query command is shown in Table 3. The remaining three node BMCs correct their own calculated fan data through the target fan speed to be consistent with the target fan speed data set by the user. As long as the user logs in to any BMC and changes the automatic mode to manual mode, the remaining BMCs that are still in automatic mode will correct their own fan data according to the target fan speed returned by the MCU, thereby ensuring that the fan speed data of each node BMC of the server is kept consistent.

[0044] In the above-mentioned multi-node domestic server fan management method, the master-slave relationship between BMC and MCU remains unchanged, the overall software architecture remains unchanged, and only part of the communication protocol format needs to be modified. The logic modification is simple to achieve the purpose of multi-node BMC management of fan modules. The data of each BMC node is unified through simple modification of the internal logic, the user experience is improved, and the fan data of each node BMC is consistent. The user can log in to any node to manage the fan module, and the scalability of the server is enhanced.

[0045] In some embodiments, please refer to Figure 3 As shown, the present invention also provides a fan management device 200 for a multi-node domestic server, the device comprising: a first module 201, for responding to the power-on of the multi-node domestic server, initializing the management mode of the fan module of each node BMC to the automatic mode, and starting the fan module; a second module 202, for setting the BMC of each node to the same command priority in the automatic mode, periodically generating a first PWM command based on its own node temperature and sending it to the MCU of the fan module; a third module 203, for the MCU of the fan module to arbitrate the latest first PWM command received in chronological order, and adjust the rotation speed of the fan module according to the arbitration result.

[0046] It should be noted that each module in the fan management device of the multi-node domestic server 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 electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0047] According to another aspect of the present invention, an electronic device is provided. The electronic device may be a server. Figure 4 As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the fan management method of the multi-node domestic server described above is implemented.

[0048] According to another aspect of the present invention, a computer readable storage medium is provided. Figure 5 As shown, a computer program is stored thereon, and when the computer program is executed by the processor, the fan management method for the multi-node domestic server described above is implemented.

[0049] 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.

[0050] 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.

[0051] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A fan management method for a multi-node domestic server, characterized in that: include: In response to the power-on of the multi-node domestic server, the management mode of the fan module of each node BMC is initialized to automatic mode, and the fan module is started; Setting the BMC of each node to the same command priority in the automatic mode, periodically generating a first PWM command based on the temperature of the node itself and sending the command to the MCU of the fan module; The MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result.

2. The fan management method for a multi-node domestic server according to claim 1 is characterized in that: The method further comprises: In response to the management mode of any node being changed to manual mode, the BMC of any node sends a management mode modification command to the MCU of the fan module, so that the MCU of the fan module shields the remaining nodes except the any node based on the management mode modification command and then sends the first PWM command.

3. The fan management method for a multi-node domestic server according to claim 2 is characterized in that: The method further comprises: In the manual mode, the BMC of any node generates a second PWM command based on the set target fan speed, and sends it to the MCU of the fan module; The MCU of the fan module parses the target fan speed from the second PWM command and adjusts the speed of the fan module based on the target fan speed.

4. The fan management method for a multi-node domestic server according to claim 3 is characterized in that: The method further comprises: In response to the MCU of the fan module receiving the query command sent by the remaining node BMC, the MCU of the fan module sends the target fan speed to the remaining node BMC, so that the fan speed data of the remaining node BMC is modified to the target fan speed.

5. The fan management method for a multi-node domestic server according to claim 1, characterized in that: The MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result, including: In response to the MCU of the fan module receiving multiple latest first PWM commands at the same time, the MCU of the fan module parses out the BMC slot numbers corresponding to the multiple latest first PWM commands, locates the physical positions of the corresponding BMCs according to the slot numbers to determine the hardware priorities of the corresponding BMCs, and adjusts the rotation speed of the fan module based on the first PWM command sent by the BMC corresponding to the highest hardware priority.

6. The fan management method for a multi-node domestic server according to claim 5, characterized in that: The MCU of the fan module arbitrates the latest first PWM command received in chronological order, and adjusts the rotation speed of the fan module according to the arbitration result, further comprising: In response to the MCU of the fan module receiving the only latest first PWM command, the rotation speed of the fan module is adjusted based on the only latest first PWM command.

7. The fan management method for a multi-node domestic server according to claim 1, characterized in that: The step of periodically generating the first PWM command based on the own node temperature includes: The corresponding matching fan speed is calculated based on the temperature of the own node, and the first PWM command is generated based on the calculated fan speed.

8. A fan management device for a multi-node domestic server, characterized in that: The device comprises: The first module is used to respond to the power-on of the multi-node domestic server, initialize the management mode of the fan module of each node BMC to the automatic mode, and start the fan module; The second module is used to set the BMC of each node to the same command priority in the automatic mode, and periodically generate a first PWM command based on the temperature of its own node and send it to the MCU of the fan module; The third module is used for the MCU of the fan module to arbitrate the latest first PWM command received in chronological order, and adjust the rotation speed of the fan module according to the arbitration result.

9. An electronic device, characterized in that: include: at least one processor; as well as A memory, wherein the memory stores a computer program that can be executed in the processor, and when the processor executes the program, the fan management method for a multi-node domestic server described in any one of claims 1-7 is executed.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the fan management method for a multi-node domestic server described in any one of claims 1-7 is executed.