CN111090319B - Method, device and medium for controlling server fan based on thermistor - Google Patents

Method, device and medium for controlling server fan based on thermistor Download PDF

Info

Publication number
CN111090319B
CN111090319B CN201911149322.1A CN201911149322A CN111090319B CN 111090319 B CN111090319 B CN 111090319B CN 201911149322 A CN201911149322 A CN 201911149322A CN 111090319 B CN111090319 B CN 111090319B
Authority
CN
China
Prior art keywords
fan
output signal
pulse signal
controlling
response
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.)
Active
Application number
CN201911149322.1A
Other languages
Chinese (zh)
Other versions
CN111090319A (en
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 CN201911149322.1A priority Critical patent/CN111090319B/en
Publication of CN111090319A publication Critical patent/CN111090319A/en
Application granted granted Critical
Publication of CN111090319B publication Critical patent/CN111090319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Control Of Positive-Displacement Air Blowers (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The invention discloses a method for controlling a server fan based on a thermistor, which comprises the following steps: reading a first voltage at two ends of a thermistor arranged in a server, and creating a periodic pulse signal; comparing the pulse signal with the first voltage, and outputting an output signal of a high level in response to the pulse signal being greater than the first voltage; judging whether the heartbeat state of the BMC can be received; responding to the heartbeat state of the BMC, and judging whether the output signal is in a high level; and controlling the fan to rotate according to the output signal in response to the output signal being at a high level. The invention also discloses a computer device and a readable storage medium. The method, the equipment and the medium for controlling the server fan based on the thermistor collect the temperature in the case through the thermistor, and realize automatic control of the fan according to the temperature, so that the case temperature can not be overhigh when the BMC fails, and the power consumption can be reduced.

Description

Method, device and medium for controlling server fan based on thermistor
Technical Field
The present invention relates to the field of servers, and more particularly, to a method, an apparatus, and a readable medium for controlling a server fan based on a thermistor.
Background
A BMC (Baseboard Management Controller) is a Management Controller specific to a server, and one of main functions of the BMC is to automatically monitor an operation state of the server and record an event in a System Event Log (SEL). The Complex Programmable Logic Device (CPLD) is developed from PAL and GAL devices, and is relatively large in scale and complex in structure, belonging to the field of large scale integrated circuit. The CPLD is a digital integrated circuit in which a user constructs logic functions according to his or her own needs.
At present, the fan rotating speed is controlled by a server based on BMC (baseboard management controller) to acquire the temperature of each component, the fan rotating speed is controlled according to a preset control scheme to realize heat dissipation, and a CPLD (complex programmable logic device) controls the fan to run at full speed when the BMC fails.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, an apparatus, and a medium for controlling a server fan based on a thermistor, in which a temperature in a chassis is collected by the thermistor, and the fan is automatically controlled according to the temperature, so that when a BMC fails, it is ensured that the temperature of the chassis is not too high, and power consumption can be reduced.
In view of the above, an aspect of the embodiments of the present invention provides a method for controlling a server fan based on a thermistor, including the following steps: reading a first voltage across a thermistor arranged inside a server, and creating a periodic pulse signal; comparing the pulse signal with the first voltage, and outputting an output signal of a high level in response to the pulse signal being greater than the first voltage; judging whether the heartbeat state of the BMC can be received; responding to the heartbeat state of the BMC, and judging whether the output signal is in a high level; and responding to the high level of the output signal, and controlling the fan to rotate according to the output signal.
In some embodiments, further comprising: and adjusting the duty ratio of the output signal according to the first voltage.
In some embodiments, further comprising: and adjusting the rotating speed of the fan according to the duty ratio of the output signal.
In some embodiments, the adjusting the rotation speed of the fan according to the duty cycle of the output signal comprises: judging whether the duty ratio is smaller than a first threshold value; in response to the duty cycle being less than a first threshold, controlling the fan to a first rotational speed; in response to the duty cycle not being less than a first threshold, determining whether the duty cycle is greater than a second threshold; in response to the duty cycle not being greater than a second threshold, controlling the fan to a second speed; and controlling the fan to a third rotation speed in response to the duty ratio being greater than a second threshold value.
In some embodiments, the creating a pulse signal comprises: a triangular wave pulse signal or a sawtooth wave pulse signal is created.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: reading a first voltage at two ends of a thermistor arranged in a server, and creating a periodic pulse signal; comparing the pulse signal with the first voltage, and outputting an output signal of a high level in response to the pulse signal being greater than the first voltage; judging whether the heartbeat state of the BMC can be received; responding to the heartbeat state of the BMC, and judging whether the output signal is in a high level; and responding to the high level of the output signal, and controlling the fan to rotate according to the output signal.
In some embodiments, the steps further comprise: and adjusting the duty ratio of the output signal according to the first voltage.
In some embodiments, the steps further comprise: and adjusting the rotating speed of the fan according to the duty ratio of the output signal.
In some embodiments, the adjusting the rotation speed of the fan according to the duty cycle of the output signal comprises: judging whether the duty ratio is smaller than a first threshold value; in response to the duty cycle being less than a first threshold, controlling the fan to a first rotational speed; in response to the duty cycle not being less than a first threshold, determining whether the duty cycle is greater than a second threshold; in response to the duty cycle not being greater than a second threshold, controlling the fan to a second speed; and controlling the fan to a third rotation speed in response to the duty ratio being greater than a second threshold value.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the temperature in the case is acquired through the thermistor, and the fan is automatically controlled according to the temperature, so that the case temperature can not be overhigh when the BMC fails, and the power consumption can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for controlling a server fan based on a thermistor according to the present invention;
FIG. 2 is a flow chart of an embodiment of a thermistor-based method of controlling a server fan provided by the present invention;
fig. 3 is a schematic hardware structure diagram of an embodiment of a method for controlling a server fan based on a thermistor according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above objects, a first aspect of embodiments of the present invention proposes an embodiment of a method for controlling a server fan based on a thermistor. Fig. 1 is a schematic diagram illustrating an embodiment of a method for controlling a server fan based on a thermistor according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, reading a first voltage at two ends of a thermistor arranged in the server, and creating a periodic pulse signal;
s2, comparing the pulse signal with the first voltage, and responding to the pulse signal larger than the first voltage to output a high-level output signal;
s3, judging whether the heartbeat state of the BMC can be received;
s4, responding to the condition that the heartbeat of the BMC cannot be received, and judging whether the output signal is in a high level; and
and S5, responding to the high level of the output signal, and controlling the fan to rotate according to the output signal.
PWM (Pulse width modulation) is an analog control method, and modulates the bias of the base of a transistor or the gate of a MOS transistor according to the change of a corresponding load to change the conduction time of the transistor or the MOS transistor, thereby changing the output of a switching regulator.
A first voltage across the thermistor is read and a pulse signal is created. A thermistor: the temperature measurement is carried out based on the thermal effect of the resistor, namely, the resistance value of the resistor changes along with the change of the temperature. In this embodiment, the resistance of the thermistor may be set to be smaller as the temperature increases, and thus, the first voltage across the thermistor is also set to be smaller as the temperature increases. In some embodiments, the creating a pulse signal comprises: a triangular wave pulse signal or a sawtooth wave pulse signal is created. In some embodiments, a simple voltage divider circuit can be implemented according to the characteristics of the thermistor, so that the voltage can be changed along with the resistance value, i.e., the temperature.
The pulse signal is compared with the first voltage, and a high level signal is output in response to the pulse signal being greater than the first voltage. Under the condition of constant temperature, the resistance value of the thermistor is constant, and the magnitude of the first voltage is also constant. In the present embodiment, a triangular pulse signal is used as an example, but this is not a limitation of the pulse signal, and a pulse signal that can achieve the technical effects of the present application is within the scope of the present application. And comparing the triangular wave pulse signal with the first voltage, outputting a high level signal when the triangular wave pulse signal is greater than the first voltage, and outputting a low level signal when the triangular wave is less than or equal to the first voltage. In some embodiments, a triangular wave generator and a comparator can be built by a hardware circuit, and the square wave generator can be formed by connecting the thermistor voltage dividing circuit with the triangular wave generator through the comparator.
Judging whether the heartbeat state of the BMC can be received, responding to the heartbeat state that the BMC cannot be received, judging whether the output signal is at a high level, and responding to the high level of the output signal to control the fan to rotate. The heartbeat state of the BMC can be received at preset time intervals, and if the heartbeat state of the BMC cannot be received, the BMC is abnormal or is directly down. And judging whether the output signal is at a high level or not, and controlling the fan to rotate if the output signal is at the high level. Of course, in other embodiments, the resistance of the thermistor may be set to increase as the temperature increases, and then it may be determined whether the output signal is low, and if so, the fan may be controlled to rotate. In other embodiments, the first voltage may be set to be greater than the pulse signal, and a high level signal may be output.
In some embodiments, further comprising: and adjusting the duty ratio of the output signal according to the first voltage. Duty cycle refers to the proportion of the time that power is applied to the total time in a pulse cycle. The duty cycle of the output signal may be set according to a specific value of the first voltage (i.e., temperature).
In some embodiments, further comprising: and adjusting the rotating speed of the fan according to the duty ratio of the output signal. In some embodiments, the adjusting the rotation speed of the fan according to the duty cycle of the output signal comprises: judging whether the duty ratio is smaller than a first threshold value; in response to the duty cycle being less than a first threshold, controlling the fan to a first rotational speed; in response to the duty cycle not being less than a first threshold, determining whether the duty cycle is greater than a second threshold; in response to the duty cycle not being greater than a second threshold, controlling the fan to a second speed; and controlling the fan to a third rotation speed in response to the duty ratio being greater than a second threshold value. For example, the first threshold value may be set to 50%, the second threshold value may be set to 80%, the first rotation speed may be 1000r/min, the second rotation speed may be 2000r/min, and the third rotation speed may be 3000r/min, and then the rotation speed of the fan may be controlled to 1000r/min if the duty ratio is less than 50%, the rotation speed of the fan may be controlled to 2000r/min if the duty ratio is greater than or equal to 50% and less than or equal to 80%, and the rotation speed of the fan may be controlled to 3000r/min if the duty ratio is greater than 80%.
Fig. 2 is a flowchart illustrating an embodiment of a method for controlling a server fan based on a thermistor according to the present invention. Starting at block 101 and proceeding to block 102, as shown in FIG. 2, a first voltage across a thermistor is read and a pulse signal is created; proceeding next to block 103, the pulse signal is compared to the first voltage; proceeding to block 104, determining whether the pulse signal is greater than a first voltage, if so, proceeding to block 105, outputting a high level signal, and if not, proceeding to block 106, outputting a low level signal; then, the step goes to a block 107 to judge whether the heartbeat state of the BMC can be received, if so, the step returns to the block 107, and if not, the step goes to a block 108; block 108 determines whether the output signal is high, if not, the process continues to block 109, and the fan is controlled to rotate. And then proceeds to block 110 to end.
It should be particularly noted that, the steps in the embodiments of the method for controlling a server fan based on a thermistor can be mutually intersected, replaced, added, and deleted, so that these reasonable permutations and combinations are also included in the scope of the present invention, and the scope of the present invention should not be limited to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, reading a first voltage at two ends of a thermistor arranged in the server, and creating a periodic pulse signal; s2, comparing the pulse signal with the first voltage, and responding to the pulse signal larger than the first voltage to output a high-level output signal; s3, judging whether the heartbeat state of the BMC can be received; s4, responding to the condition that the heartbeat of the BMC cannot be received, and judging whether the output signal is in a high level; and S5, responding to the high level of the output signal, and controlling the fan to rotate according to the output signal.
In some embodiments, further comprising: and adjusting the duty ratio of the output signal according to the first voltage.
In some embodiments, further comprising: and adjusting the rotating speed of the fan according to the duty ratio of the output signal.
In some embodiments, the adjusting the rotation speed of the fan according to the duty cycle of the output signal comprises: judging whether the duty ratio is smaller than a first threshold value; in response to the duty cycle being less than a first threshold, controlling the fan to a first rotational speed; in response to the duty cycle not being less than a first threshold, determining whether the duty cycle is greater than a second threshold; in response to the duty cycle not being greater than a second threshold, controlling the fan to a second speed; and controlling the fan to a third rotation speed in response to the duty ratio being greater than a second threshold value.
In some embodiments, the creating a pulse signal comprises: a triangular wave pulse signal or a sawtooth wave pulse signal is created.
Fig. 3 is a schematic hardware structure diagram of an embodiment of the method for controlling a server fan based on a thermistor according to the present invention.
Taking the apparatus shown in fig. 3 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the thermistor-based method for controlling the server fan in the embodiments of the present application. The processor 301 executes various functional applications and data processing of the server, i.e., implementing the method for controlling a server fan based on thermistors of the above-described method embodiments, by running non-volatile software programs, instructions and modules stored in the memory 302.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the thermistor-based method of controlling the server fan, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to the one or more thermistor-based methods of controlling server fans are stored in the memory 302 and, when executed by the processor 301, perform the thermistor-based methods of controlling server fans in any of the above-described method embodiments.
Any embodiment of a computer apparatus implementing the thermistor-based method of controlling a server fan described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for controlling a server fan based on a thermistor can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure 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 RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (9)

1. A method for controlling a server fan based on a thermistor is characterized by comprising the following steps:
reading a first voltage across a thermistor arranged inside a server, and creating a periodic pulse signal;
comparing the pulse signal with the first voltage, and outputting an output signal of a high level in response to the pulse signal being greater than the first voltage;
judging whether the heartbeat state of the BMC can be received;
responding to the condition that the heartbeat state of the BMC cannot be received, and judging whether the output signal is in a high level or not; and
in response to the output signal being at a high level, controlling the fan to rotate according to the output signal,
wherein the creating a periodic pulse signal comprises: a triangular wave pulse signal or a sawtooth wave pulse signal is created.
2. The method of claim 1, further comprising:
and adjusting the duty ratio of the output signal according to the first voltage.
3. The method of claim 2, further comprising:
and adjusting the rotating speed of the fan according to the duty ratio of the output signal.
4. The method of claim 3, wherein the adjusting the speed of the fan according to the duty cycle of the output signal comprises:
judging whether the duty ratio is smaller than a first threshold value;
in response to the duty cycle being less than a first threshold, controlling the fan to a first rotational speed;
in response to the duty cycle not being less than a first threshold, determining whether the duty cycle is greater than a second threshold;
in response to the duty cycle not being greater than a second threshold, controlling the fan to a second speed; and
and controlling the fan to be at a third rotating speed in response to the duty ratio being larger than a second threshold value.
5. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of:
reading a first voltage across a thermistor arranged inside a server, and creating a periodic pulse signal;
comparing the pulse signal with the first voltage, and outputting an output signal of a high level in response to the pulse signal being greater than the first voltage;
judging whether the heartbeat state of the BMC can be received;
responding to the condition that the heartbeat state of the BMC cannot be received, and judging whether the output signal is in a high level or not; and
in response to the output signal being at a high level, controlling the fan to rotate according to the output signal,
wherein the creating a periodic pulse signal comprises: a triangular wave pulse signal or a sawtooth wave pulse signal is created.
6. The computer device of claim 5, wherein the steps further comprise:
and adjusting the duty ratio of the output signal according to the first voltage.
7. The computer device of claim 6, wherein the steps further comprise:
and adjusting the rotating speed of the fan according to the duty ratio of the output signal.
8. The computer device of claim 7, wherein the adjusting the rotational speed of the fan according to the duty cycle of the output signal comprises:
judging whether the duty ratio is smaller than a first threshold value;
in response to the duty cycle being less than a first threshold, controlling the fan to a first rotational speed;
in response to the duty cycle not being less than a first threshold, determining whether the duty cycle is greater than a second threshold;
in response to the duty cycle not being greater than a second threshold, controlling the fan to a second speed; and
and controlling the fan to be at a third rotating speed in response to the duty ratio being larger than a second threshold value.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201911149322.1A 2019-11-21 2019-11-21 Method, device and medium for controlling server fan based on thermistor Active CN111090319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911149322.1A CN111090319B (en) 2019-11-21 2019-11-21 Method, device and medium for controlling server fan based on thermistor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911149322.1A CN111090319B (en) 2019-11-21 2019-11-21 Method, device and medium for controlling server fan based on thermistor

Publications (2)

Publication Number Publication Date
CN111090319A CN111090319A (en) 2020-05-01
CN111090319B true CN111090319B (en) 2021-07-30

Family

ID=70394043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911149322.1A Active CN111090319B (en) 2019-11-21 2019-11-21 Method, device and medium for controlling server fan based on thermistor

Country Status (1)

Country Link
CN (1) CN111090319B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858427B (en) * 2020-06-15 2022-07-08 苏州浪潮智能科技有限公司 Circuit, method and server for realizing hot plug based on high-speed connector
CN111858235B (en) * 2020-06-21 2022-08-19 苏州浪潮智能科技有限公司 Method, device, computer device and medium for enhancing reliability of MOSFET
CN111857314B (en) * 2020-07-14 2022-06-14 苏州浪潮智能科技有限公司 Method, device and medium for controlling server power-on based on power supply installation stroke
CN112162621B (en) * 2020-09-11 2022-06-10 苏州浪潮智能科技有限公司 Method, system, equipment and medium for forced current sharing of server power supply
CN112431779A (en) * 2020-11-06 2021-03-02 苏州浪潮智能科技有限公司 Rotation control method and system of server fan
CN112506739B (en) * 2020-12-04 2023-01-06 苏州浪潮智能科技有限公司 Method, system, equipment and medium for solving fan reversion problem
CN113849056B (en) * 2021-09-22 2024-03-22 新华三技术有限公司 Fan control method and server
CN114296995B (en) * 2021-11-30 2023-11-03 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for server to autonomously repair BMC

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105501A (en) * 2006-07-14 2008-01-16 鸿富锦精密工业(深圳)有限公司 Fan rotary speed test system and method
CN103835978A (en) * 2012-11-26 2014-06-04 鸿富锦精密工业(深圳)有限公司 Fan control circuit
CN104895817A (en) * 2015-04-27 2015-09-09 浪潮集团有限公司 Method for controlling server fan based on SNMP
CN106527633A (en) * 2016-10-24 2017-03-22 郑州云海信息技术有限公司 Server fan control device and system, and method
US9866239B1 (en) * 2016-11-29 2018-01-09 Nxp B.V. Method and system for bi-phase mark coding (BMC) decoding
CN107835001A (en) * 2017-10-27 2018-03-23 上海辰竹仪表有限公司 Processing method, system, signal processing apparatus and the medium of pulse width modulation wave
CN110399024A (en) * 2019-07-19 2019-11-01 苏州浪潮智能科技有限公司 A kind of control method and relevant apparatus of server fan rotating speed
CN110469529A (en) * 2018-05-11 2019-11-19 佛山市顺德区顺达电脑厂有限公司 Server fan control system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7791301B2 (en) * 2008-01-02 2010-09-07 Nuvoton Technology Corporation Apparatus and method for fan auto-detection
TW201425733A (en) * 2012-12-28 2014-07-01 Hon Hai Prec Ind Co Ltd System and method for protecting a fan of a computing device
CN109488627A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of system and method for remote control server radiator fan working condition

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105501A (en) * 2006-07-14 2008-01-16 鸿富锦精密工业(深圳)有限公司 Fan rotary speed test system and method
CN103835978A (en) * 2012-11-26 2014-06-04 鸿富锦精密工业(深圳)有限公司 Fan control circuit
CN104895817A (en) * 2015-04-27 2015-09-09 浪潮集团有限公司 Method for controlling server fan based on SNMP
CN106527633A (en) * 2016-10-24 2017-03-22 郑州云海信息技术有限公司 Server fan control device and system, and method
US9866239B1 (en) * 2016-11-29 2018-01-09 Nxp B.V. Method and system for bi-phase mark coding (BMC) decoding
CN107835001A (en) * 2017-10-27 2018-03-23 上海辰竹仪表有限公司 Processing method, system, signal processing apparatus and the medium of pulse width modulation wave
CN110469529A (en) * 2018-05-11 2019-11-19 佛山市顺德区顺达电脑厂有限公司 Server fan control system
CN110399024A (en) * 2019-07-19 2019-11-01 苏州浪潮智能科技有限公司 A kind of control method and relevant apparatus of server fan rotating speed

Also Published As

Publication number Publication date
CN111090319A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN111090319B (en) Method, device and medium for controlling server fan based on thermistor
CN101477391B (en) Control circuit for computer fan
CN110778517A (en) Fan control method, device and storage medium
CN110764715B (en) Bandwidth control method, device and storage medium
CN111090324B (en) Method, equipment and medium for off-peak power-up of server hard disk
CN111352014B (en) Method, system, equipment and medium for detecting and positioning abnormal MOSFET
CN112506739B (en) Method, system, equipment and medium for solving fan reversion problem
CN110990199A (en) Server fan redundancy control method and device
CN111030892B (en) Method, equipment and medium for testing network function in BMC NCSI adaptive mode
CN111258856A (en) Method, system, equipment and medium for monitoring running state of solid state disk
CN111124722B (en) Method, equipment and medium for isolating fault memory
DE102010061647A1 (en) Electronic device that can be put into operation at low ambient temperature, and method for putting the electronic device into operation
CN114415454B (en) Projection device heat dissipation control method and device, projection device and storage medium
CN110674003A (en) Early warning method and device for server hardware and storage medium
CN111291427A (en) Server hard disk security measurement method and device
CN110049380B (en) BMC-based switch temperature control method, system and readable medium
CN111342443A (en) Method, system, equipment and medium for synchronous power supply of multiple power supplies
CN110990069A (en) Automatic updating method and device for server BMC configuration
JP6409864B2 (en) Termination device, termination control method, and storage medium storing termination control program
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN113448421A (en) Equipment power failure management method and device
CN101789751A (en) Speed regulation circuit for fan
CN116498592A (en) Fan rotating speed stable regulation and control method, system, terminal and storage medium
US8640968B2 (en) Temperature gain control device and method thereof
CN111124504A (en) Startup control method and equipment of switch system and storage medium

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
GR01 Patent grant
GR01 Patent grant