CN115681190A - Fan wind direction control method and related equipment - Google Patents

Fan wind direction control method and related equipment Download PDF

Info

Publication number
CN115681190A
CN115681190A CN202211190598.6A CN202211190598A CN115681190A CN 115681190 A CN115681190 A CN 115681190A CN 202211190598 A CN202211190598 A CN 202211190598A CN 115681190 A CN115681190 A CN 115681190A
Authority
CN
China
Prior art keywords
fan
wind direction
control command
control
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211190598.6A
Other languages
Chinese (zh)
Inventor
谢路生
张秀波
曲勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211190598.6A priority Critical patent/CN115681190A/en
Publication of CN115681190A publication Critical patent/CN115681190A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Positive-Displacement Air Blowers (AREA)

Abstract

The application discloses a fan wind direction control method, which is applied to a substrate management controller and comprises the following steps: when a fan control command is received, determining a target wind direction according to the fan control command; reading a current wind direction from a preset storage address; judging whether the target wind direction is consistent with the current wind direction; if not, a reverse control instruction is issued to the fan driver so that the fan driver controls the fan to rotate reversely. By the aid of the technical scheme, the wind direction of the server fan can be controlled quickly and efficiently, and manpower cost and time cost are effectively reduced. The application also discloses a fan wind direction control device, electronic equipment and a computer readable storage medium, and the technical effects are also achieved.

Description

Fan wind direction control method and related equipment
Technical Field
The present disclosure relates to the field of device control technologies, and in particular, to a fan direction control method, and further relates to a fan direction control device, an electronic device, and a computer-readable storage medium.
Background
With the development of novel technologies such as cloud computing and big data, the operation requirements of a user on a server are greatly different in different service scenes and different use environments, and particularly, the requirements of different configurations and different environments, even the same configuration and different environments, for forward rotation and reverse rotation of a fan are met in the heat dissipation part. However, in the prior art, different mechanisms or chassis opening adjustments are adopted to adjust the chassis, which is time-consuming and labor-consuming, and has low efficiency, thereby greatly increasing the labor cost and time cost.
Therefore, how to perform fast and efficient wind direction control on the server fan and reduce the waste of labor cost and time cost are problems to be urgently solved by those skilled in the art.
Disclosure of Invention
The fan wind direction control method can be used for quickly and efficiently controlling the wind direction of a server fan, and effectively reduces the waste of labor cost and time cost; another object of the present application is to provide a fan wind direction control device, an electronic device, and a computer-readable storage medium, all of which have the above advantages.
In a first aspect, the present application provides a method for controlling a wind direction of a fan, applied to a baseboard management controller, including:
when a fan control command is received, determining a target wind direction according to the fan control command;
reading a current wind direction from a preset storage address;
judging whether the target wind direction is consistent with the current wind direction;
if not, a reverse control instruction is issued to the fan driver so that the fan driver controls the fan to rotate reversely.
Optionally, the determining a target wind direction according to the fan control command includes:
judging the type of the fan control command;
if the fan control command is an automatic control command, acquiring equipment configuration information according to the automatic control command, and determining the target wind direction according to the equipment configuration information;
and if the fan control command is a manual control command, performing field analysis on the manual control command to obtain the target wind direction.
Optionally, the issuing a reverse control command to the fan driver so that the fan driver controls the fan to rotate in the reverse direction further includes:
and updating the current wind direction in the preset storage address to the target wind direction.
Optionally, before the updating the current wind direction in the preset storage address to the target wind direction, the method further includes:
judging whether response information fed back by the fan driver is received;
and if so, executing the step of updating the current wind direction in the preset storage address to the target wind direction.
Optionally, the determining whether response information fed back by the fan driver is received includes:
judging whether the response information fed back by the fan driver is received within a preset time;
if not, the reverse control instruction is issued to the fan driver again.
Optionally, the fan direction control method further includes:
counting the number of times of no response;
and outputting alarm information when the non-response times reach preset times.
Optionally, the issuing a reverse control command to the fan driver to enable the fan driver to control the fan to rotate in the reverse direction further includes:
acquiring the actual wind direction of the fan;
judging whether the actual wind direction is consistent with the target wind direction;
if not, alarm information is output.
In a second aspect, the present application further discloses a fan wind direction control device, applied to a baseboard management controller, including:
the determining module is used for determining a target wind direction according to a fan control command when the fan control command is received;
the reading module is used for reading the current wind direction from a preset storage address;
the judging module is used for judging whether the target wind direction is consistent with the current wind direction;
and the issuing module is used for issuing a reverse control instruction to the fan driver if the target wind direction is not consistent with the current wind direction so as to enable the fan driver to control the fan to rotate reversely.
In a third aspect, the present application further discloses an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of any one of the above-mentioned fan direction control methods when executing the computer program.
In a fourth aspect, the present application further discloses a computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the fan wind direction control methods described above.
The application provides a fan wind direction control method, which is applied to a substrate management controller and comprises the following steps: when a fan control command is received, determining a target wind direction according to the fan control command; reading a current wind direction from a preset storage address; judging whether the target wind direction is consistent with the current wind direction; if not, a reverse control instruction is issued to the fan driver so that the fan driver controls the fan to rotate reversely.
By applying the technical scheme provided by the application, the wind direction control of the fan in the server is realized through a Baseboard Management Controller (BMC), the required target wind direction in the current state can be determined according to the received fan control command, and whether the fan needs to be reversely controlled or not is determined by comparing the target wind direction with the current wind direction of the fan, so that the wind direction control of the server fan is realized.
The fan wind direction control device, the electronic device and the computer readable storage medium provided by the application also have the technical effects, and are not repeated herein.
Drawings
In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings that are needed to be used in the description of the prior art and the embodiments of the present application will be briefly described below. Of course, the following description of the drawings related to the embodiments of the present application is only a part of the embodiments of the present application, and it will be obvious to those skilled in the art that other drawings can be obtained from the provided drawings without any creative effort, and the obtained other drawings also belong to the protection scope of the present application.
Fig. 1 is a schematic flow chart illustrating a method for controlling a wind direction of a fan according to the present disclosure;
fig. 2 is a schematic structural diagram of a fan wind direction control device provided in the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The core of the application is to provide a fan wind direction control method, the fan wind direction control method can be used for quickly and efficiently controlling the wind direction of a server fan, and the waste of labor cost and time cost is effectively reduced; another core of the present application is to provide a fan wind direction control apparatus, an electronic device, and a computer-readable storage medium, all having the above-mentioned advantages.
In order to more clearly and completely describe the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method for controlling the wind direction of a fan.
Referring to fig. 1, fig. 1 is a schematic flow chart of a fan direction control method provided in the present application, where the fan direction control method is applied to a baseboard management controller and may include the following steps S101 to S104.
S101: when a fan control command is received, determining a target wind direction according to the fan control command;
this step is intended to enable the reception of fan control commands and the determination of the target wind direction. The fan control command is a command for controlling the wind direction of the server fan, and the obtaining manner does not affect the implementation of the technical scheme, for example, the fan control command may be directly input from the front end by a user according to the current demand, or may automatically respond according to a preset trigger condition, which is not limited in this application. In addition, the target wind direction is the fan wind direction required by the server in the current running state, and comprises a forward direction and a reverse direction.
In the implementation process, when a fan control command is received, the target wind direction may be determined according to the fan control command, and it may be understood that, because the obtaining manner of the fan control command is not unique, the implementation manners of determining the target wind direction according to the fan control command may also be different, which is not limited in this application.
Further, after the target wind direction of the server fan is obtained, the target wind direction may be temporarily stored in the preset storage space, so as to be directly called for use in the subsequent wind direction comparison process (S103). Similarly, the specific type of the preset storage space does not affect the implementation of the present technical solution, for example, the target wind direction may be temporarily stored in an eeprogram (Electrically Erasable Programmable read only memory) of the baseboard management controller.
S102: reading a current wind direction from a preset storage address;
the step aims to realize the acquisition of the current wind direction, wherein the current wind direction is the current wind direction provided by the server fan, namely the running wind direction before the fan wind direction control is not carried out. Specifically, the current wind direction of the server fan is pre-stored in a preset storage address, so that after a fan control command is received, the current wind direction can be directly read from the preset storage address.
The preset storage address may specifically be a certain register address of the fan control chip, such as the register address 0x32, and in the implementation process, the information about the current wind direction fed back by the preset storage address may be obtained by directly sending a data reading command to the register address 0x 32.
Furthermore, after the current wind direction of the server fan is obtained, the current wind direction of the server fan may be temporarily stored in a preset storage space, so as to be directly called and used in the subsequent wind direction comparison process (S103). Similarly, the specific type of the preset storage space does not affect the implementation of the present technical solution, for example, the current wind direction may be temporarily stored in the virtual memory of the baseboard management controller. Of course, the temporary storage positions of the target wind direction and the current wind direction can be the same or different, and the temporary storage positions are not limited in the application.
S103: judging whether the target wind direction is consistent with the current wind direction; if not, executing S104;
this step aims to achieve a wind direction comparison to determine whether the target wind direction of the server fan is consistent with the current wind direction. It can be understood that when the two are consistent, the current wind direction is indicated to meet the current actual requirement, and the wind direction adjustment of the server fan is not needed.
The wind direction of the fan can be represented by a preset flag bit, when the flag bit is 1, the wind direction of the fan is represented as a forward direction, and when the flag bit is 0, the wind direction of the fan is represented as a reverse direction, so that whether the target wind direction is consistent with the current wind direction or not is judged, that is, whether the flag bits of the target wind direction and the current wind direction are consistent or not is judged.
S104: and issuing a reverse control command to the fan driver so that the fan driver controls the fan to rotate reversely.
This step is intended to achieve reverse control of the server fans. It can be understood that the rotation of the fan is realized by the fan driver, and therefore, in order to realize the control of the wind direction of the fan, a control instruction needs to be issued to the fan driver. On the basis, when it is determined that the target wind direction of the server fan is inconsistent with the current wind direction, it may be determined that a current wind direction adjustment needs to be performed, that is, the wind direction of the server fan needs to be adjusted to a wind direction opposite to the current wind direction, at this time, a reverse control instruction may be issued to the fan driver, where the reverse control instruction is used to control the fan driver to perform reverse rotation, and therefore, after obtaining the reverse control instruction, the fan driver may respond to the reverse control instruction to perform reverse rotation, so as to drive the server fan to perform reverse rotation, so as to provide a wind direction opposite to the current wind direction. Thus, the wind direction control of the server fan is realized.
Obviously, according to the fan wind direction control method provided by the embodiment of the application, the wind direction control of the fan in the server is realized through the substrate management controller, the target wind direction required in the current state can be determined according to the received fan control command, and whether the fan needs to be reversely controlled or not is determined by comparing the target wind direction with the current wind direction of the fan, so that the wind direction control of the server fan is realized.
In an embodiment of the application, the determining the target wind direction according to the fan control command may include:
judging the type of the fan control command;
if the fan control command is an automatic control command, acquiring equipment configuration information according to the automatic control command, and determining a target wind direction according to the equipment configuration information;
and if the fan control command is a manual control command, performing field analysis on the manual control command to obtain the target wind direction.
As described above, the obtaining manner of the fan control command is not unique, and further, the implementation manners of determining the target wind direction according to the fan control command may be different, and embodiments of the present application provide two different types of obtaining methods of the fan control command and corresponding implementation methods of determining the target wind direction according to the fan control command.
Specifically, the fan control command may be divided into two types, one is an automatic control command and the other is a manual control command, where the automatic control command is used to determine a target wind direction of the fan according to the actual situation of the server, and the manual control command is used to directly specify the target wind direction of the fan by the user, so that before the target wind direction is determined according to the fan control command, the type of the fan control command may be determined, and then a corresponding operation may be performed according to the command type to determine the target wind direction of the server fan.
In the implementation process, after a fan control command is received, firstly judging the command type, further, if the command is an automatic control command, responding to the automatic control command to acquire equipment configuration information of a server, and then determining a target wind direction according to the equipment configuration information; in the case of a manual control command, since the target wind direction is directly specified by the user, the field analysis can be directly performed on the manual control command to obtain the relevant fields contained therein with respect to the target wind direction, and the target wind direction can be determined.
The device configuration information is used for determining the target wind direction, and may include, but is not limited to, an installation location of each hardware device in the server, a temperature environment required in an operation process, and the like, for example, the target wind direction may be determined according to temperature values in temperature sensors at different locations in the server, or may be determined according to installation locations of a network card, a RAID (redundant arrays of independent Disks) card, and the like.
In an embodiment of the application, after issuing the reverse control command to the fan driver to enable the fan driver to control the fan to rotate in the reverse direction, the method may further include: and updating the current wind direction in the preset storage address to be the target wind direction.
The method for controlling the wind direction of the fan provided by the embodiment of the application can further realize the updating of the current wind direction, so that the wind direction control can be continuously carried out when a new fan control command is received in the following process. Specifically, after the fan driver controls the fan to rotate in the reverse direction, that is, after the current fan wind direction control is completed, the current wind direction in the preset memory address may be further updated to the target wind direction, so that the target wind direction is taken as a new current wind direction. Therefore, when a new fan control command is received subsequently, the new current wind direction can be read to continue the wind direction control.
In an embodiment of the application, before the current wind direction in the preset storage address is updated to the target wind direction, the method may further include the following steps:
judging whether response information fed back by the fan driver is received;
and if so, executing the step of updating the current wind direction in the preset storage address to the target wind direction.
The embodiment of the application provides a method for updating a current wind direction in a preset storage address. Specifically, after the fan driver controls the fan to rotate in the reverse direction, before the current wind direction in the preset storage address is updated, it may be determined whether a response message fed back by the fan driver is received, where it is to be noted that the response message is a response message fed back to the bmc by the fan driver after the fan driver completes the reverse rotation, if the fan driver does not complete the reverse rotation, the response message will not be fed back to the bmc, and only after the fan driver completes the reverse rotation, the response message will be fed back. On the basis, if the baseboard management controller receives the response information fed back by the fan driver, the baseboard management controller can determine that the fan wind direction control is finished and the fan wind direction control is successful, and can execute the step of updating the current wind direction in the preset storage address to the target wind direction; otherwise, if the response information fed back by the fan driver is not received, it can be determined that the fan wind direction control is not completed or the control fails, and the step of updating the current wind direction in the preset storage address to the target wind direction is not executed.
In an embodiment of the application, the determining whether the response message fed back by the fan driver is received may include the following steps:
judging whether response information fed back by the fan driver is received within preset time;
if not, the reverse control instruction is issued to the fan driver again.
The embodiment of the application provides a method for realizing judgment of whether response information fed back by a fan driver is received. In the implementation process, the determining whether the response information fed back by the fan driver is received may specifically be determining whether the response information fed back by the fan driver is received within a preset time, that is, the response time may be preset, that is, the preset time is the above-mentioned time, if the corresponding time fed back by the fan driver is not received within the preset time, the default wind direction control fails, and at this time, the reverse control instruction may be issued to the fan driver again to implement the reverse control of the server fan. Of course, if the response information fed back by the fan driver can be received within the preset time, it may be determined that the wind direction control is successful this time, and the step of updating the current wind direction in the preset storage address to the target wind direction may be continuously performed. The specific value of the preset time does not affect the implementation of the technical scheme, and the specific value is set by a technician according to the actual requirement and can be set to be 2-3 seconds, which is not limited by the application.
In one embodiment of the present application, the fan wind direction control method may further include the steps of:
counting the number of times of no response;
and outputting alarm information when the non-response times reach the preset times.
In order to avoid a judgment error, the embodiment of the application may further determine whether the fan wind direction control is successful by performing statistics of the number of times of non-response. Specifically, when response information fed back by the fan driver is not received within a preset time, the number of non-response times is increased by 1, and if the number of non-response times reaches the preset number, it may be directly determined that the server is currently abnormal (including but not limited to fan abnormality, fan driver abnormality, and the like), and the wind direction control of the server fan cannot be realized, and at this time, an alarm information may be output to prompt the user to perform exception handling in time. Of course, if the non-response times do not reach the preset times, that is, if the response information fed back by the fan driver is received, the step of updating the current wind direction in the preset storage address to the target wind direction may be continuously performed, and the accumulated non-response times are cleared. Similarly, the specific value of the preset times does not affect the implementation of the technical scheme, and the specific value is set by a technician according to the actual requirement and can be set for 3 times, which is not limited by the application.
In an embodiment of the application, after issuing the reverse control command to the fan driver to enable the fan driver to control the fan to rotate in the reverse direction, the method may further include the following steps:
acquiring the actual wind direction of the fan;
judging whether the actual wind direction is consistent with the target wind direction;
if not, alarm information is output.
The fan wind direction control method provided by the embodiment of the application can further realize secondary verification about wind direction control so as to confirm whether the current fan wind direction control is successful. Specifically, after the fan driver controls the fan to rotate reversely, the actual wind direction of the server fan may be further obtained, and whether the actual wind direction is consistent with the target wind direction or not may be further determined, if the actual wind direction is consistent with the target wind direction, the wind direction control of this time is successful, otherwise, if the actual wind direction is inconsistent with the target wind direction, the wind direction control of this time is failed, and meanwhile, the current server abnormality (including but not limited to fan abnormality, fan driver abnormality, and the like) may be also determined, at this time, an alarm message may be output to prompt the user to perform abnormality processing in time.
On the basis of the above embodiments:
the application provides another fan wind direction control method, which comprises the following implementation processes:
(1) The BMC can determine the fan wind flow direction (namely target wind direction) required by the current server according to temperature sensors at the front end and the rear end of the server or components (such as a network card, a RAID card and the like) inserted into the current server by identifying the configuration of the server, and stores the fan wind flow direction in the EEprom of the BMC;
(2) The BMC may also manually set a fan airflow direction (i.e., a target airflow direction) required by the current server in a manual configuration manner, and generally may set the current fan airflow direction by sending an IPMI (Intelligent Platform Management Interface) command to the BMC and store the current fan airflow direction in an EEprom of the BMC;
(3) The BMC sends a reading command to a register address 0x32 (a preset storage address) of the fan control chip to obtain the current fan airflow direction (current wind direction) configured in the current fan control chip, and stores the current fan airflow direction into a virtual memory of the BMC;
(4) The BMC compares the fan airflow direction required to be set in the EEprom with the fan airflow direction in the current fan control chip, and checks whether the fan airflow direction and the current fan airflow direction are consistent;
(5) If the fan airflow direction in the BMC EEprom is consistent with the fan airflow direction in the current fan control chip, the BMC directly outputs a PWM (Pulse width modulation) signal to the fan control chip to continue to control the fan;
(6) If the fan air flow direction in the BMC EEprom is not consistent with the fan air flow direction in the current fan control chip, the BMC sends a control instruction to the address 0x34 of the fan control chip to control the fan blade to rotate so as to adapt to the air flow direction after the fan reverses;
(7) Waiting for 2-3 s, and changing the airflow direction value in the fan control chip after the fan blades finish direction conversion;
(8) The BMC confirms whether the wind flow direction in the fan control chip is consistent with the wind flow direction value in the EEprom in the BMC again;
(9) If the PWM signals are consistent with the PWM signals, the BMC outputs the PWM signals to the fan control chip, and fan control is continued.
Obviously, according to the fan wind direction control method provided by the embodiment of the application, the wind direction control of the fan in the server is realized through the substrate management controller, the target wind direction required in the current state can be determined according to the received fan control command, and whether the fan needs to be reversely controlled or not is determined by comparing the target wind direction with the current wind direction of the fan, so that the wind direction control of the server fan is realized.
The embodiment of the application provides a fan wind direction control device.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a fan direction control device according to the present disclosure, where the fan direction control device is applied to a baseboard management controller, and includes:
the determining module 1 is used for determining a target wind direction according to a fan control command when the fan control command is received;
the reading module 2 is used for reading a current wind direction from a preset storage address;
the judging module 3 is used for judging whether the target wind direction is consistent with the current wind direction;
and the issuing module 4 is used for issuing a reverse control instruction to the fan driver if the target wind direction is not consistent with the current wind direction so as to enable the fan driver to control the fan to rotate reversely.
It can be seen that the fan direction control device provided by the embodiment of the application realizes the direction control of the fan in the server through the baseboard management controller, can determine the target direction required in the current state according to the received fan control command, and determines whether the fan needs to be reversely controlled by comparing the target direction with the current direction of the fan, thereby realizing the direction control of the server fan.
In an embodiment of the present application, the determining module 1 may include:
the judging unit is used for judging the type of the fan control command;
the first determining unit is used for acquiring equipment configuration information according to the automatic control command and determining a target wind direction according to the equipment configuration information if the fan control command is the automatic control command;
and the second determining unit is used for carrying out field analysis on the manual control command to obtain the target wind direction if the fan control command is the manual control command.
In an embodiment of the application, the fan direction control device may further include an updating module, configured to update a current direction in a preset storage address to a target direction after the reverse control instruction is issued to the fan driver to enable the fan driver to control the fan to rotate in the reverse direction.
In an embodiment of the present application, the fan direction control apparatus may further include a response determining module, configured to determine whether response information fed back by the fan driver is received before the current wind direction in the preset storage address is updated to the target wind direction; if so, executing the step of updating the current wind direction in the preset storage address to the target wind direction.
In an embodiment of the application, the response determining module may be specifically configured to determine whether response information fed back by the fan driver is received within a preset time; if not, the reverse control instruction is issued to the fan driver again.
In an embodiment of the present application, the fan wind direction control device may further include a counting module, configured to count the number of times of non-response; and outputting alarm information when the non-response times reach the preset times.
In an embodiment of the present application, the fan direction control device may further include an alarm module, configured to issue a reverse control instruction to the fan driver, so that after the fan driver controls the fan to rotate in the reverse direction, the actual direction of the fan is obtained; judging whether the actual wind direction is consistent with the target wind direction; if not, alarm information is output.
For the introduction of the apparatus provided in the embodiment of the present application, please refer to the method embodiment described above, which is not described herein again.
The embodiment of the application provides electronic equipment.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device provided in the present application, where the electronic device may include:
a memory for storing a computer program;
the processor, when executing the computer program, may implement the steps of any of the above-described methods for controlling a direction of a wind of a fan.
As shown in fig. 3, which is a schematic diagram of a structure of an electronic device, the electronic device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through a communication bus 13.
In the embodiment of the present application, the processor 10 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device.
The processor 10 may call a program stored in the memory 11, and in particular, the processor 10 may perform the operations in the embodiment of the fan direction control method.
The memory 11 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, the memory 11 stores at least the program for implementing the following functions:
when a fan control command is received, determining a target wind direction according to the fan control command;
reading a current wind direction from a preset storage address;
judging whether the target wind direction is consistent with the current wind direction;
if not, a reverse control instruction is issued to the fan driver so that the fan driver controls the fan to rotate reversely.
In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created during use.
Further, the memory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The communication interface 12 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 3 does not constitute a limitation to the electronic device in the embodiment of the present application, and in practical applications, the electronic device may include more or less components than those shown in fig. 3, or some components in combination.
The embodiment of the application provides a computer readable storage medium.
The computer-readable storage medium provided in the embodiments of the present application stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above methods for controlling a fan wind direction may be implemented.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For introduction of the computer-readable storage medium provided in the embodiment of the present application, please refer to the above method embodiment, which is not described herein again.
The embodiments are described in a progressive mode in the specification, the emphasis of each embodiment is on the difference from the other embodiments, and the same and similar parts among the embodiments can be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The technical solutions provided in the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, without departing from the principle of the present application, the present application can also make several improvements and modifications, and those improvements and modifications also fall into the protection scope of the present application.

Claims (10)

1. A fan wind direction control method is applied to a baseboard management controller and comprises the following steps:
when a fan control command is received, determining a target wind direction according to the fan control command;
reading a current wind direction from a preset storage address;
judging whether the target wind direction is consistent with the current wind direction;
if not, a reverse control instruction is issued to the fan driver so that the fan driver controls the fan to rotate reversely.
2. The fan direction control method of claim 1, wherein the determining a target direction of the wind based on the fan control command comprises:
judging the type of the fan control command;
if the fan control command is an automatic control command, acquiring equipment configuration information according to the automatic control command, and determining the target wind direction according to the equipment configuration information;
and if the fan control command is a manual control command, performing field analysis on the manual control command to obtain the target wind direction.
3. The method as claimed in claim 1, wherein the step of issuing a reverse control command to the fan driver to make the fan driver control the fan to rotate in reverse further comprises:
and updating the current wind direction in the preset storage address to the target wind direction.
4. The fan wind direction control method according to claim 3, wherein before the updating the current wind direction in the preset storage address to the target wind direction, the method further comprises:
judging whether response information fed back by the fan driver is received;
and if so, executing the step of updating the current wind direction in the preset storage address to the target wind direction.
5. The fan direction control method according to claim 4, wherein the determining whether the response information fed back by the fan driver is received comprises:
judging whether the response information fed back by the fan driver is received within a preset time;
if not, the reverse control instruction is issued to the fan driver again.
6. The fan wind direction control method according to claim 5, characterized by further comprising:
counting the number of times of no response;
and outputting alarm information when the non-response times reach preset times.
7. The method as claimed in claim 1, wherein the step of issuing a reverse control command to the fan driver to make the fan driver control the fan to rotate in reverse further comprises:
acquiring the actual wind direction of the fan;
judging whether the actual wind direction is consistent with the target wind direction;
if not, alarm information is output.
8. A fan wind direction control apparatus, for use in a baseboard management controller, the apparatus comprising:
the determining module is used for determining a target wind direction according to a fan control command when the fan control command is received;
the reading module is used for reading the current wind direction from a preset storage address;
the judging module is used for judging whether the target wind direction is consistent with the current wind direction;
and the issuing module is used for issuing a reverse control instruction to the fan driver if the target wind direction is not consistent with the current wind direction so as to enable the fan driver to control the fan to rotate reversely.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the fan direction control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the fan direction control method according to any one of claims 1 to 7.
CN202211190598.6A 2022-09-28 2022-09-28 Fan wind direction control method and related equipment Pending CN115681190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211190598.6A CN115681190A (en) 2022-09-28 2022-09-28 Fan wind direction control method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211190598.6A CN115681190A (en) 2022-09-28 2022-09-28 Fan wind direction control method and related equipment

Publications (1)

Publication Number Publication Date
CN115681190A true CN115681190A (en) 2023-02-03

Family

ID=85064774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211190598.6A Pending CN115681190A (en) 2022-09-28 2022-09-28 Fan wind direction control method and related equipment

Country Status (1)

Country Link
CN (1) CN115681190A (en)

Similar Documents

Publication Publication Date Title
US10120676B2 (en) Method of updating baseboard management controller firmware for fan speed control
US20080168434A1 (en) Apparatus and method to update multiple devices disposed in a computing system
CN111209030A (en) Firmware configuration method and device
CN113672270A (en) Upgrading method, computer system and remote upgrading device
KR20150050810A (en) Apparatus and method for controlling power relay assembly
CN115681190A (en) Fan wind direction control method and related equipment
US7475164B2 (en) Apparatus, system, and method for automated device configuration and testing
US10791032B2 (en) Method and apparatus for determining a physical position of a device
US9779831B1 (en) Electronic apparatus and data verification method using the same
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
US11137995B2 (en) Updating firmware of a microcontroller
US20190020548A1 (en) Method and apparatus for setting location information
CN106843768B (en) Hard disk data erasing method and device
CN105706103A (en) Correlated display of biometric identity, feedback and user interaction state
US20090172234A1 (en) Apparatus and method for identifying system style
CN114328080A (en) Firmware state detection method and device and electronic equipment
CN113218042A (en) Air conditioner outdoor unit parameter modification method and device, storage medium and air conditioning system
US7075518B2 (en) Method for updating a keyboard controller in a notebook computer
CN108896068B (en) Step counting method, server, mobile terminal and storage medium
CN111858109A (en) Mutually exclusive logic verification method, device, equipment and storage medium
CN115097879B (en) Temperature regulation and control method, device, equipment and medium
CN113807635B (en) Service operation data monitoring method and device, electronic equipment and storage medium
CN113434163B (en) Online calibration method, system, device and medium suitable for electronic control unit
CN112269583B (en) Method for processing equipment operation abnormal file upgrade, server and storage medium
CN111124962B (en) TF (Transflash) card slot multiplexing method and system based on server PCH (physical channel) and BMC (baseboard management controller)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination