CN111506174A - Fan control method and device, electronic equipment and readable storage medium - Google Patents

Fan control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111506174A
CN111506174A CN202010306856.7A CN202010306856A CN111506174A CN 111506174 A CN111506174 A CN 111506174A CN 202010306856 A CN202010306856 A CN 202010306856A CN 111506174 A CN111506174 A CN 111506174A
Authority
CN
China
Prior art keywords
air inlet
pwm value
current
cpu
temperature information
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
CN202010306856.7A
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 CN202010306856.7A priority Critical patent/CN111506174A/en
Publication of CN111506174A publication Critical patent/CN111506174A/en
Pending legal-status Critical Current

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
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/004Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by varying driving speed
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F05INDEXING SCHEMES RELATING TO ENGINES OR PUMPS IN VARIOUS SUBCLASSES OF CLASSES F01-F04
    • F05DINDEXING SCHEME FOR ASPECTS RELATING TO NON-POSITIVE-DISPLACEMENT MACHINES OR ENGINES, GAS-TURBINES OR JET-PROPULSION PLANTS
    • F05D2270/00Control
    • F05D2270/30Control parameters, e.g. input parameters
    • F05D2270/303Temperature
    • 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)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mechanical Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The application provides a fan control method, which comprises the following steps: reading current air inlet temperature information and current CPU temperature information; judging whether the ME has a fault according to the reading condition of the current CPU temperature information; if the ME has a fault, switching to a fault strategy to determine a current PWM value by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information; and controlling the rotating speed of the fan by using the current PWM value. When the BMC determines that the ME has a fault, the BMC switches to a heat dissipation strategy in a fault state, and determines a current PWM value according to current air inlet temperature information by using an adjustment relation between the air inlet temperature and the PWM value, so that the current PWM value is used for controlling the rotating speed of the fan, and the problems of high power consumption and noise caused by full-speed operation of the fan due to ME faults in the related art are solved. The application also provides a fan control device, an electronic device and a computer readable storage medium, which all have the beneficial effects.

Description

Fan control method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of fan control technologies, and in particular, to a fan control method, a fan control apparatus, an electronic device, and a computer-readable storage medium.
Background
In the running process of the server, if the environmental temperature is too high, the server can be caused to work in a high-temperature environment integrally, the temperature of the core component bodies such as a CPU (central processing unit) and the like is higher, and when the temperature of the CPU reaches a certain height, the server can generate frequency reduction, so that the computing performance of the server is seriously influenced; if the temperature continues to rise, the server is abnormally shut down, and the caused consequences are service interruption of the client, data loss and unpredictable loss.
A BMC (Baseboard management controller) is generally used in a server system to monitor and manage the health of a motherboard. Some important parameters such as voltage, temperature, power consumption and the like on the mainboard are monitored and recorded through the BMC, and the monitoring and the regulation of the rotating speed of the fan are also realized through a fan control module in the BMC. The monitoring and regulating link of the rotating speed of the server fan mainly comprises the following links: firstly, BMC collects temperature register information of key parts and key components of a mainboard through I2Cbus, and then performs register value conversion inside BMC to form 'centigrade' which can be identified by people; secondly, a heat dissipation regulation and control strategy is integrated into the BMC, and the current heat dissipation can be ensured only when the rotating speed of the fan reaches a certain number of revolutions when the collected temperature reaches a certain control point; thirdly, the fan control module in the BMC outputs a PWM (Pulse Width Modulation) signal for controlling the rotating speed of the fan according to the monitored temperature information and by combining a heat dissipation strategy; the monitored components contained in the heat dissipation strategy comprise a CPU, a memory, a hard disk, an air inlet, an air outlet and the like, wherein the temperature of the CPU and the temperature of the memory are not directly read by a BMC (baseboard management controller), but are directly monitored by an ME (management entity) in a south bridge, and the BMC reads information in the ME, so that the temperature of the CPU and the temperature of the memory cannot be read if the ME fails; in the current heat dissipation strategy, if the CPU and the memory temperature fan cannot be read, the fan can run at full speed, so that the problems of high power consumption and high noise are caused.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
An object of the present application is to provide a fan control method, a fan control apparatus, an electronic device, and a computer-readable storage medium, which can reduce power consumption while satisfying heat dissipation when an ME fails. The specific scheme is as follows:
the application provides a fan control method, which comprises the following steps:
reading current air inlet temperature information and current CPU temperature information;
judging whether the ME has a fault according to the reading condition of the current CPU temperature information;
if the ME has a fault, switching to a fault strategy to determine a current PWM value by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information;
and controlling the rotating speed of the fan by using the current PWM value.
Optionally, the process of establishing the adjustment relationship between the air inlet temperature and the PWM value includes:
obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature;
determining the maximum value of the PWM value of the standard air inlet, the PWM value of the standard CPU for pressurization and the PWM value of the standard CPU for non-pressurization as the PWM value at the temperature of the first air inlet;
determining a second air inlet temperature, replacing the first air inlet temperature with the second air inlet temperature, and executing the steps of obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature until the PWM values corresponding to all the air inlet temperatures are obtained;
and determining the adjustment relation between the air inlet temperature and the PWM value according to all the air inlet temperatures and the corresponding PWM values.
Optionally, the determining whether the ME has a fault according to the reading condition of the current CPU temperature information includes:
if the current CPU temperature information is not read, reading the current CPU temperature information again;
if the current CPU temperature information is not read for the continuous preset times, determining the ME fault;
and if the current CPU temperature information is read, determining that the ME is normal.
Optionally, if the ME is normal, the current PWM value is determined according to a conventional heat dissipation algorithm.
Optionally, if the ME is normal, determining the current PWM value according to a conventional heat dissipation algorithm includes:
obtaining a standard air inlet PWM value according to the current air inlet temperature information;
obtaining a standard CPU PWM value according to the current CPU temperature information;
and taking the maximum value of the standard air inlet PWM value and the standard CPU PWM value as the current PWM value.
Optionally, the reading of the current air inlet temperature information and the current CPU temperature information includes:
and reading the current air inlet temperature information and the current CPU temperature information by using an I2C BUS.
The application provides a fan control device, includes:
the temperature information reading module is used for reading the current air inlet temperature information and the current CPU temperature information;
the fault judgment module is used for judging whether the ME has a fault according to the reading condition of the current CPU temperature information;
the current PWM value determining module is used for switching to a fault strategy if the ME has a fault so as to determine a current PWM value by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information;
and the control module is used for controlling the rotating speed of the fan by utilizing the current PWM value.
Optionally, the method further includes:
the PWM value acquisition module is used for acquiring a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature;
the PWM value determining module is used for determining the maximum value of the standard air inlet PWM value, the standard CPU pressurization PWM value and the standard CPU non-pressurization PWM value as the PWM value at the first air inlet temperature;
the iteration module is used for determining a second air inlet temperature, replacing the first air inlet temperature with the second air inlet temperature, and executing the steps of obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature until the PWM values corresponding to all the air inlet temperatures are obtained;
and the adjustment relation acquisition module is used for determining the adjustment relation between the air inlet temperature and the PWM value according to all the air inlet temperatures and the corresponding PWM values.
The application provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the fan control method as described above when executing the computer program.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the fan control method as described above.
The application provides a fan control method, which comprises the following steps: reading current air inlet temperature information and current CPU temperature information; judging whether the ME has a fault according to the reading condition of the current CPU temperature information; if the ME has a fault, switching to a fault strategy to determine a current PWM value by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information; and controlling the rotating speed of the fan by using the current PWM value.
Therefore, the fan rotating speed regulation and control scheme under the ME fault state is provided, the fault of the ME is judged through the BMC, when the fault of the ME is determined, the ME is switched to a heat dissipation strategy under the fault state, the current PWM value is determined according to the current air inlet temperature information by utilizing the adjustment relation between the air inlet temperature and the PWM value, so that the rotating speed of the fan is controlled by utilizing the current PWM value, the influence on the aspects of power supply, noise and the like of a client due to the fact that the fan runs at full speed in the related technology because of the ME fault is avoided, and the operation and maintenance cost is saved.
The application also provides a fan control, an electronic device and a computer readable storage medium, all having the above beneficial effects, which are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a fan control method according to an embodiment of the present disclosure;
FIG. 2 is a graph according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a fan control device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but 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.
In the related technology, if the ME fails, the temperature of the CPU and the internal memory cannot be read; in the current heat dissipation strategy, if the CPU and the memory temperature fan cannot be read, the fan can run at full speed, so that the problems of high power consumption and high noise are caused. In view of the above technical problems, the present embodiment provides a fan control method, which can reduce power consumption while meeting heat dissipation requirements when an ME fails, specifically referring to fig. 1, where fig. 1 is a flowchart of a fan control method provided in the present embodiment, and specifically includes:
s110, reading the current air inlet temperature information and the current CPU temperature information;
in this embodiment, the main execution body for implementing the fan control method is BMC. The BMC monitors the temperature so as to control the rotating speed of the fan and realize heat dissipation. Specifically, the BMC can collect information in the temperature register through the I2C BUS to obtain current air inlet temperature information and current CPU temperature information. It can be understood that there is no positive correlation between the air inlet temperature information and the CPU temperature information, for example, when the air inlet temperature is 30 degrees celsius, the CPU temperature may be any of 30 degrees celsius, 20 degrees celsius, or 60 degrees celsius, the CPU temperature information is related to the CPU operating pressure, and generally, the CPU temperature is higher the operating pressure is.
Reading current air inlet temperature information and current CPU temperature information, wherein the first condition is that the current air inlet temperature information and the current CPU temperature information are read, and the ME is normal at the moment; the second situation is that only the current air inlet temperature information is read, and the ME is abnormal at the moment.
S120, judging whether the ME has a fault according to the reading condition of the current CPU temperature information;
in an implementation manner, the judging whether the ME has a fault according to the reading condition of the current CPU temperature information includes: if the current CPU temperature information is not read, reading the current CPU temperature information again; if the current CPU temperature information is not read for the continuous preset times, determining the ME fault; and if the current CPU temperature information is read, determining that the ME is normal.
When the BMC cannot obtain the air inlet temperature and the CPU temperature at the same time, retrying to read the preset times for 3 times, and if the preset times are not obtained, automatically switching to a fault strategy to execute S130; if the CPU temperature can be read, the heat dissipation is executed by adopting a conventional heat dissipation algorithm.
S130, if the ME has a fault, switching to a fault strategy to determine a current PWM value by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information;
the adjustment relation between the temperature of the air inlet and the PWM value in the step is a replaced fault strategy, and when the ME fails, the fault strategy is adopted to control the fan; and when the ME is normal, adopting a conventional heat dissipation strategy corresponding to a conventional heat dissipation algorithm. In the fault strategy, the CPU temperature information is continuously read, and if the CPU temperature information is recovered to be normal, the BMC controls to be switched to the conventional heat dissipation strategy corresponding to the conventional heat dissipation algorithm. This enables a reasonable monitoring in the ME fault state.
It is understood that both the original conventional heat dissipation strategy and the failure strategy may be contained within the BMC in a digital table from which the BMC may generate curves. Meanwhile, a switching condition is set in the BMC, and when the ME is judged to be abnormal, the BMC can automatically switch to a new heat dissipation strategy, namely a fault strategy. After switching, the BMC will regulate according to the ME abnormal PWM curve in the curve, where each temperature point corresponds to a new PWM value. For example, please refer to fig. 2, fig. 2 is a graph according to an embodiment of the present disclosure. Wherein, the abscissa is the temperature of the air inlet, and the ordinate is the PWM value. The first curve represents the adjustment relation between the air inlet temperature and the PWM value, and it can be understood that the PWM value can be obtained only according to the air inlet temperature when the ME is abnormal; the second curve is a PWM value obtained for the air inlet temperature in the conventional heat dissipation algorithm when the ME is normal, and it should be noted that the PWM value corresponding to the second curve is not necessarily the PWM value of the final control fan, and the actually controlled PWM value should be the maximum value of the standard air inlet PWM value obtained according to the air inlet temperature and the standard CPUPWM value obtained according to the CPU temperature.
The embodiment does not limit the adjusting relation between the air inlet temperature and the PWM value, and a user can set the adjusting relation according to actual requirements.
In an implementation mode, a standard air inlet PWM value is obtained at the temperature of the first air inlet, and the corresponding PWM value is determined according to a preset multiple of the standard air inlet PWM value; determining the temperature of a second air inlet, replacing the temperature of the first air inlet with the temperature of the second air inlet, and executing the step of determining the corresponding PWM value according to the preset multiple of the standard air inlet PWM value until the PWM values corresponding to all the air inlet temperatures are obtained; and determining the adjustment relation between the air inlet temperature and the PWM value according to all the air inlet temperatures and the corresponding PWM values. Please refer to the prior art, the detailed description of the algorithm corresponding to the standard air inlet PWM value obtained according to the first air inlet temperature is omitted.
In an implementation mode, the establishment process of the adjusting relation between the air inlet temperature and the PWM value comprises the following steps: obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature; determining the maximum value of the PWM value of the standard air inlet, the PWM value of the standard CPU for pressurization and the PWM value of the standard CPU for non-pressurization as the PWM value at the temperature of the first air inlet; determining the temperature of a second air inlet, and replacing the temperature of the first air inlet with the temperature of the second air inlet to perform the steps of obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the temperature of the first air inlet until the PWM values corresponding to all the temperatures of the air inlets are obtained; and determining the adjustment relation between the air inlet temperature and the PWM value according to all the air inlet temperatures and the corresponding PWM values. Please refer to the prior art, which is not described in detail in this embodiment, for obtaining an air inlet algorithm corresponding to the standard air inlet PWM value according to the first air inlet temperature. Specifically, reading a first temperature when the CPU is not pressurized at the first air inlet temperature, and obtaining a standard CPU non-pressurized PWM value by using a corresponding CPU algorithm according to the first temperature; reading a second temperature when the CPU is pressurized at the first air inlet temperature, and obtaining a standard CPU pressurization PWM value by using a corresponding CPU algorithm according to the second temperature, wherein the pressurization refers to that the CPU runs under the maximum pressure, and the specific CPU algorithm refers to the prior art, which is not repeated in the embodiment.
And S140, if the ME is normal, determining the current PWM value according to a conventional heat dissipation algorithm.
Further, if the ME is normal, determining a current PWM value according to a conventional heat dissipation algorithm, including: obtaining a standard air inlet PWM value according to the current air inlet temperature information; obtaining a standard CPU PWM value according to the current CPU temperature information; and taking the maximum value of the standard air inlet PWM value and the standard CPU PWM value as the current PWM value.
Specifically, when the ME is normal, the air inlet temperature corresponding to the current air inlet temperature information and the current CPU temperature corresponding to the current CPU temperature information are read, the standard air inlet PWM value is obtained according to the current air inlet temperature by using the air inlet algorithm, the standard CPU PWM value is obtained according to the current CPU temperature by using the CPU algorithm, and the maximum value is taken as the current PWM value, so that heat dissipation can be ensured.
And S150, controlling the rotating speed of the fan by using the current PWM value.
To sum up, the embodiment provides a fan rotation speed regulation and control scheme in the ME fault state, a fault strategy is set in the BMC, when the ME is abnormal, the fault strategy is used for regulating and controlling the system fan rotation speed, and the fault strategy is packaged in the BMC; secondly, setting a judgment logic in the BMC, retrying to read for 3 times when the CPU temperature information and the memory temperature cannot be acquired simultaneously, and automatically switching to a fault strategy if the CPU temperature information and the memory temperature cannot be acquired simultaneously; and finally, in the fault strategy, continuously reading the temperature of the CPU and the memory, and if the temperature is recovered to be normal, switching the BMC control to the conventional heat dissipation strategy again. Like this, just can guarantee when ME appears unusually, fan speed can normally be regulated and control, avoids because ME trouble leads to fan full speed operation, the influence that brings in aspects such as the power supply, the noise of giving the customer, simultaneously, if ME trouble resumes, can also carry out original scheme once more. The brand new regulation and control scheme reduces energy consumption and noise when the ME fails, saves operation and maintenance cost, and can improve satisfaction and product competitiveness.
Based on the technical scheme, the embodiment provides a fan rotating speed regulation and control scheme in the ME fault state, the fault of the ME is judged through the BMC, when the fault of the ME is determined, the ME is switched to a heat dissipation strategy in the fault state, and the current PWM value is determined by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information, so that the rotating speed of the fan is controlled by utilizing the current PWM value, the influence on the aspects of power supply, noise and the like of a client due to the fact that the fan runs at full speed due to the ME fault in the related technology is avoided, and the operation and maintenance cost is saved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a fan control device according to an embodiment of the present disclosure, which includes:
the temperature information reading module 310 is configured to read current air inlet temperature information and current CPU temperature information;
a fault judgment module 320, configured to judge whether the ME has a fault according to the reading condition of the current CPU temperature information;
the current PWM value determining module 330 is configured to switch to a fault strategy if the ME has a fault, so as to determine a current PWM value according to the current air inlet temperature information by using an adjustment relationship between the air inlet temperature and the PWM value;
and the control module 340 is configured to control the rotation speed of the fan by using the current PWM value.
In some specific embodiments, the method further comprises:
the PWM value acquisition module is used for acquiring a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature;
the PWM value determining module is used for determining the maximum value of the standard air inlet PWM value, the standard CPU pressurization PWM value and the standard CPU non-pressurization PWM value as the PWM value at the first air inlet temperature;
the iteration module is used for determining the temperature of the second air inlet, replacing the temperature of the first air inlet with the temperature of the second air inlet, and executing the steps of obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the temperature of the first air inlet until the PWM values corresponding to all the temperatures of the air inlets are obtained;
and the adjustment relation acquisition module is used for determining the adjustment relation between the air inlet temperature and the PWM value according to all the air inlet temperatures and the corresponding PWM values.
In some specific embodiments, the failure determining module 320 includes:
the re-reading unit is used for re-reading the current CPU temperature information if the current CPU temperature information is not read;
the fault determining unit is used for determining the ME fault if the current CPU temperature information is not read for the continuous preset times;
and the normal determining unit is used for determining that the ME is normal if the current CPU temperature information is read.
In some specific embodiments, the method further comprises:
and the current PWM value determining module is used for determining the current PWM value according to a conventional heat dissipation algorithm if the ME is normal.
In some specific embodiments, the module for determining the current PWM value when ME is normal includes:
the standard air inlet PWM value obtaining unit is used for obtaining a standard air inlet PWM value according to the current air inlet temperature information;
the standard CPU PWM value obtaining unit is used for obtaining a standard CPU PWM value according to the current CPU temperature information;
and the current PWM value obtaining unit is used for taking the maximum value of the standard air inlet PWM value and the standard CPU PWM value as the current PWM value.
In some specific embodiments, the temperature information reading module 310 includes:
and the temperature information reading unit is used for reading the current air inlet temperature information and the current CPU temperature information by using the I2C BUS.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
In the following, an electronic device provided by an embodiment of the present application is introduced, and the electronic device described below and the fan control method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, which includes:
a memory 100 for storing a computer program;
the processor 200 is configured to implement the steps of the fan control method when executing the computer program.
Since the embodiment of the electronic device portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the electronic device portion, which is not repeated here.
On the basis of the foregoing embodiment, as a preferred implementation, referring to fig. 5, fig. 5 is a structural diagram of another electronic device provided in an embodiment of the present application, where the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data transmitted by the processor 200. The display unit 400 may be a display screen on a PC, a liquid crystal display screen, or an electronic ink display screen.
The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as mobile high-definition link technology (MH L), a Universal Serial Bus (USB), a high-definition multimedia interface (HDMI), wireless fidelity (WiFi), a Bluetooth communication technology, a low-power Bluetooth communication technology, an IEEE802.11s-based communication technology and the like.
The following describes a computer-readable storage medium provided by embodiments of the present application, and the computer-readable storage medium described below and the method described above may be referred to correspondingly.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the fan control method as described above.
Since the embodiment of the computer-readable storage medium portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the computer-readable storage medium portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are 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 elements 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 various illustrative components and steps 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 implementation. 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 present disclosure provides a method, an apparatus, an electronic device, and a computer-readable storage medium for controlling a fan. 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, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A fan control method, comprising:
reading current air inlet temperature information and current CPU temperature information;
judging whether the ME has a fault according to the reading condition of the current CPU temperature information;
if the ME has a fault, switching to a fault strategy to determine a current PWM value by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information;
and controlling the rotating speed of the fan by using the current PWM value.
2. The fan control method according to claim 1, wherein the establishing of the adjustment relationship between the air inlet temperature and the PWM value comprises:
obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature;
determining the maximum value of the PWM value of the standard air inlet, the PWM value of the standard CPU for pressurization and the PWM value of the standard CPU for non-pressurization as the PWM value at the temperature of the first air inlet;
determining a second air inlet temperature, replacing the first air inlet temperature with the second air inlet temperature, and executing the steps of obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature until the PWM values corresponding to all the air inlet temperatures are obtained;
and determining the adjustment relation between the air inlet temperature and the PWM value according to all the air inlet temperatures and the corresponding PWM values.
3. The fan control method according to claim 1, wherein the determining whether the ME has a fault according to the reading of the current CPU temperature information includes:
if the current CPU temperature information is not read, reading the current CPU temperature information again;
if the current CPU temperature information is not read for the continuous preset times, determining the ME fault;
and if the current CPU temperature information is read, determining that the ME is normal.
4. The fan control method of claim 1, wherein if the ME is normal, determining a current PWM value according to a conventional thermal algorithm.
5. The fan control method of claim 4, wherein if the ME is normal, determining a current PWM value according to a conventional thermal algorithm comprises:
obtaining a standard air inlet PWM value according to the current air inlet temperature information;
obtaining a standard CPU PWM value according to the current CPU temperature information;
and taking the maximum value of the standard air inlet PWM value and the standard CPU PWM value as the current PWM value.
6. The fan control method according to claim 1, wherein the reading of the current inlet temperature information and the current CPU temperature information comprises:
and reading the current air inlet temperature information and the current CPU temperature information by using an I2C BUS.
7. A fan control apparatus, comprising:
the temperature information reading module is used for reading the current air inlet temperature information and the current CPU temperature information;
the fault judgment module is used for judging whether the ME has a fault according to the reading condition of the current CPU temperature information;
the current PWM value determining module is used for switching to a fault strategy if the ME has a fault so as to determine a current PWM value by utilizing the adjustment relation between the air inlet temperature and the PWM value according to the current air inlet temperature information;
and the control module is used for controlling the rotating speed of the fan by utilizing the current PWM value.
8. The fan control apparatus as claimed in claim 7, further comprising:
the PWM value acquisition module is used for acquiring a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature;
the PWM value determining module is used for determining the maximum value of the standard air inlet PWM value, the standard CPU pressurization PWM value and the standard CPU non-pressurization PWM value as the PWM value at the first air inlet temperature;
the iteration module is used for determining a second air inlet temperature, replacing the first air inlet temperature with the second air inlet temperature, and executing the steps of obtaining a standard air inlet PWM value, a standard CPU pressurization PWM value and a standard CPU non-pressurization PWM value at the first air inlet temperature until the PWM values corresponding to all the air inlet temperatures are obtained;
and the adjustment relation acquisition module is used for determining the adjustment relation between the air inlet temperature and the PWM value according to all the air inlet temperatures and the corresponding PWM values.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the fan control method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the fan control method according to any one of claims 1 to 6.
CN202010306856.7A 2020-04-17 2020-04-17 Fan control method and device, electronic equipment and readable storage medium Pending CN111506174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010306856.7A CN111506174A (en) 2020-04-17 2020-04-17 Fan control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010306856.7A CN111506174A (en) 2020-04-17 2020-04-17 Fan control method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111506174A true CN111506174A (en) 2020-08-07

Family

ID=71864154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010306856.7A Pending CN111506174A (en) 2020-04-17 2020-04-17 Fan control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111506174A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328033A (en) * 2020-11-25 2021-02-05 恒为科技(上海)股份有限公司 Automatic fan control method in BMC and related equipment
CN113311926A (en) * 2021-05-12 2021-08-27 曙光信息产业股份有限公司 Fan speed regulation method and device, electronic equipment and computer readable storage medium
CN114442766A (en) * 2021-12-24 2022-05-06 曙光信息产业股份有限公司 Heat dissipation system and method and single chip microcomputer

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598359A (en) * 2013-10-31 2015-05-06 鸿富锦精密工业(深圳)有限公司 Server monitoring system and method
EP3029571A1 (en) * 2014-10-15 2016-06-08 Fujitsu Limited Power measurement apparatus and power measurement method
CN105909545A (en) * 2016-04-12 2016-08-31 浪潮电子信息产业股份有限公司 Whole cabinet fan speed regulation method based on CPU Margin temperature
US9820405B1 (en) * 2013-09-25 2017-11-14 EMC IP Holding Company LLC Optimized server design using dense DIMM spacing, wide heatsink, improved routing channels, and improved air delivery to rear devices
CN108268360A (en) * 2018-01-19 2018-07-10 郑州云海信息技术有限公司 A kind of BMC obtains method, system, device and the storage medium of memory temperature
CN108427617A (en) * 2018-02-28 2018-08-21 郑州云海信息技术有限公司 BMC obtains the method, apparatus and equipment of cpu temperature
CN109253099A (en) * 2017-07-13 2019-01-22 中兴通讯股份有限公司 A kind of base station control method for fan and device
CN208752600U (en) * 2018-09-29 2019-04-16 上海华东电脑股份有限公司 A kind of multi-functional hard disk backboard system of rack-mount server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9820405B1 (en) * 2013-09-25 2017-11-14 EMC IP Holding Company LLC Optimized server design using dense DIMM spacing, wide heatsink, improved routing channels, and improved air delivery to rear devices
CN104598359A (en) * 2013-10-31 2015-05-06 鸿富锦精密工业(深圳)有限公司 Server monitoring system and method
EP3029571A1 (en) * 2014-10-15 2016-06-08 Fujitsu Limited Power measurement apparatus and power measurement method
CN105909545A (en) * 2016-04-12 2016-08-31 浪潮电子信息产业股份有限公司 Whole cabinet fan speed regulation method based on CPU Margin temperature
CN109253099A (en) * 2017-07-13 2019-01-22 中兴通讯股份有限公司 A kind of base station control method for fan and device
CN108268360A (en) * 2018-01-19 2018-07-10 郑州云海信息技术有限公司 A kind of BMC obtains method, system, device and the storage medium of memory temperature
CN108427617A (en) * 2018-02-28 2018-08-21 郑州云海信息技术有限公司 BMC obtains the method, apparatus and equipment of cpu temperature
CN208752600U (en) * 2018-09-29 2019-04-16 上海华东电脑股份有限公司 A kind of multi-functional hard disk backboard system of rack-mount server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328033A (en) * 2020-11-25 2021-02-05 恒为科技(上海)股份有限公司 Automatic fan control method in BMC and related equipment
CN113311926A (en) * 2021-05-12 2021-08-27 曙光信息产业股份有限公司 Fan speed regulation method and device, electronic equipment and computer readable storage medium
CN114442766A (en) * 2021-12-24 2022-05-06 曙光信息产业股份有限公司 Heat dissipation system and method and single chip microcomputer

Similar Documents

Publication Publication Date Title
CN111506174A (en) Fan control method and device, electronic equipment and readable storage medium
US7596705B2 (en) Automatically controlling processor mode of multi-core processor
US5504908A (en) Power saving control system for computer system
EP3570162B1 (en) System and method for thermally aware device booting
US9703336B2 (en) System and method for thermal management in a multi-functional portable computing device
US8595520B2 (en) System and method for determining thermal management policy from leakage current measurement
US9563254B2 (en) System, method and apparatus for energy efficiency and energy conservation by configuring power management parameters during run time
US20110225436A1 (en) Battery powered device with dynamic and performance management
CN105739668A (en) Power management method and power management system of notebook computers
EP2607987A1 (en) Computing apparatus and system for remote control of operating states
JP5193116B2 (en) Electronic device, power control method for electronic device, and program executed by computer
CN106371540B (en) System power management method, chip and electronic equipment
CN111120383A (en) Control method and control device for equipment fan, switch and storage medium
WO2016160224A1 (en) Thermal management in a computing device based on workload detection
CN113064479A (en) Power supply redundancy control system, method and medium of GPU server
US10168752B2 (en) Systems and methods for determining a sustained thermal power envelope comprising multiple heat sources
US20050086460A1 (en) Apparatus and method for wakeup on LAN
US9722414B2 (en) Power distribution and information handling
JP6800935B2 (en) How to control a fan in an electronic system
CN114911332B (en) Method and system for regulating and controlling server fan, electronic equipment and storage medium
CN111061356B (en) Power management system and power management method
CN116991221A (en) Power consumption adjusting method and device
JP6396185B2 (en) Electronic device and control method of electronic device
JPH10307635A (en) Computer system and temperature monitoring method applied to the same system
JP2001034370A (en) Power-saving controller, power-saving control method, and computer system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200807