WO2012068916A1 - Control method and device for full-automatic fan - Google Patents

Control method and device for full-automatic fan Download PDF

Info

Publication number
WO2012068916A1
WO2012068916A1 PCT/CN2011/079598 CN2011079598W WO2012068916A1 WO 2012068916 A1 WO2012068916 A1 WO 2012068916A1 CN 2011079598 W CN2011079598 W CN 2011079598W WO 2012068916 A1 WO2012068916 A1 WO 2012068916A1
Authority
WO
WIPO (PCT)
Prior art keywords
fan
mode
automatic
operating mode
current
Prior art date
Application number
PCT/CN2011/079598
Other languages
French (fr)
Chinese (zh)
Inventor
张鑫
江涌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012068916A1 publication Critical patent/WO2012068916A1/en

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D25/00Pumping installations or systems
    • F04D25/16Combinations of two or more pumps ; Producing two or more separate gas flows
    • F04D25/166Combinations of two or more pumps ; Producing two or more separate gas flows using fans
    • 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/005Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by changing flow path between different stages or between a plurality of compressors; Load distribution between compressors

Definitions

  • the present invention relates to the field of computers, and in particular, to a fully automatic fan control method and apparatus. Background technique
  • Method 1 The fan is fully powered on; Method 2: Manually controlling the fan, the operator opens and closes the fan through manual configuration; Mode 3, Temperature Control Fan, set the threshold of one or more manual configurations, and determine the opening and closing of the fan according to the relationship between the ambient temperature and the threshold.
  • the first method can keep the temperature in the chassis and the ambient temperature consistent, but it is relatively expensive; the second mode is troublesome and depends on labor; the third way is the most intelligent One way, however, this method only controls the opening and closing of the fan through the ambient temperature and the threshold. Since the threshold set by the operator has unreliability and uncertainty, it cannot be accurate according to the current environmental requirements. Controls the opening and closing of the fan. Summary of the invention
  • the present invention provides a fully automatic fan control method and apparatus to solve the problem that the fan control method in the prior art cannot accurately control the opening and closing of the fan according to current environmental requirements.
  • the invention provides a full-automatic fan control method, comprising:
  • the operation of the fan is controlled according to the determined number of fan runs and the fan operating mode.
  • the invention also provides a fully automatic fan control device, comprising:
  • a detection module configured to acquire a device temperature and a number of users who use the device
  • a processing module configured to determine a number of fan operations and a fan operation mode according to a device temperature, a number of users, and a pre-defined fan control table and a fan operation mode table;
  • the control module is configured to control the operation of the fan according to the determined number of fan runs and the fan operation mode.
  • the fan control method in the prior art cannot accurately control the fan according to current environmental requirements by determining the opening/closing of the multi-fan and determining the number of open fans according to the ambient temperature and the number of devices used by the device.
  • the problem of opening and closing can control the fan according to environmental requirements and improve the reliability and accuracy of the fan control.
  • FIG. 1 is a flow chart of a method for controlling a fully automatic fan according to an embodiment of the present invention
  • FIG. 2 is a detailed processing flowchart of a method for controlling a fully automatic fan according to an embodiment of the present invention
  • FIG. 3 is a flowchart of automatic fan operation and automatic switching according to an embodiment of the present invention
  • FIG. 4 is a flow chart of automatic switching of a fan abnormality according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a fan alarm detecting process 1 according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a fan alarm detection process 2 according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a fan alarm detection process 3 according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural view of a fully automatic fan control device according to an embodiment of the present invention. detailed description
  • the present invention provides a fully automatic fan control method and device, which is suitable for embedding for all multi-users.
  • Fan management of the device Mainly include: According to the hardware provided experimental data to develop the fan control table and fan mode; 2, according to the device temperature and the number of users to control the fan; 3, fan protection: a certain fan in a certain mode for a certain period of time will automatically switch the fan to open; Fan alarm; 5, providing switch control, providing manual and automatic switching.
  • FIG. 1 is a flowchart of a fully automatic fan control method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step 101 Obtain a device temperature and a number of users who use the device.
  • Step 102 Determine the number of fan operations and the fan operation mode according to the device temperature, the number of users, and the pre-defined fan control table and the fan operation mode table.
  • the fan control table includes: a number of users, a range of device temperatures, and And the correspondence between the number of fan runs;
  • the fan operation mode table includes: a correspondence between the number of fan operations and the fan operation mode.
  • the fan control table and the fan operation mode table it is first necessary to obtain relevant test data, and according to the test result, the distribution and change of the internal temperature of the device under different user usage numbers are determined, and the certain users are determined.
  • the number of fans is turned on in different temperature ranges under the number of uses.
  • it is necessary to determine the operating mode under different fan numbers that is, two parameters need to be determined: the number of fans running, and the operating mode under the number of fans running, that is, under the number of fans, different The combination of fan on.
  • the number of fan runs can be considered as a parent class, and there is a subclass of the running mode under each parent class.
  • the operation mode is a combination of 2 fans and 2 fans in 4 fans, a total of 6 modes.
  • tabulation is performed according to the corresponding fan mode of each fan number, and the fan should be stored in each mode.
  • the running situation, and the corresponding identifier is set.
  • Step 103 Control the operation of the fan according to the determined number of fan runs and the fan operation mode.
  • the automatic fan mode Before acquiring the device temperature and the number of users using the device (before step 101), you need to select the automatic fan mode from the manual fan mode and the automatic fan mode. Preferably, if the user does not make a selection, the default is the automatic fan mode.
  • the embodiment of the present invention provides two control modes: a manual fan mode and an automatic fan mode.
  • the automatic fan mode can be implemented by a user setting an automatic fan mode
  • the manual fan mode is a manual configuration to control the operation of the fan. Its main role is to achieve protection under abnormal conditions.
  • the fan operation is based on a cyclic task (or thread) timing operation, so that the state of the fan can be detected, thereby implementing mode switching and alarming.
  • the number of fans is mainly determined to determine whether the number of fans needs to be switched. If the number of fans is the same, it is determined whether the running time of the current mode exceeds the threshold. If the threshold is exceeded, the other modes under the number of fans are switched. The switching criterion is to select the mode other than the mode and the error flag. Run in the mode with the least total running time.
  • the switching rule for switching the fan operating mode is: Select the fan operating mode with the least total running time except the current fan operating mode and the fan operating mode with the error flag.
  • the automatic fan will automatically switch the mode, select the fan running mode with the least total running time except this mode and the mode with the wrong flag, and then give The previous fan operating mode setting error flag.
  • the technical solution of the embodiment of the present invention adopts an optimization process: if a certain fan state is abnormal, the mode is switched, and if other modes of the switch are operable, no alarm is generated; Until all modes are unavailable, first turn off the automatic fan function, switch to the manual fan, and turn on all fans, and then perform a unified alarm according to the fan ID.
  • the fan alarm is restored, and it is detected whether the manual switch is manual control or automatic control to manual control. If it is automatically switched to manual control, the automatic fan function is restored and all data is cleared. If the fan is running normally in the automatic fan mode, you need to perform the process shown in Figure 7 to detect the fan alarm recovery.
  • FIG. 2 is a detailed processing flowchart of a method for controlling a fully automatic fan according to an embodiment of the present invention. As shown in FIG. 2, the following processing is included:
  • Step 201 After the device is powered on, according to the needs of the project, the system delays by X seconds;
  • Step 202 Determine whether the device supports the fan. If the determination is yes, go to step 203. Otherwise, go to step 201.
  • Step 203 determining whether to select the automatic fan mode or the manual fan mode, if it is the automatic fan mode, step 204 is performed, if it is the manual fan mode, step 207 is performed;
  • Step 204 Perform an automatic fan operation and an automatic switching process as shown in FIG. 3;
  • Step 205 Perform an automatic switching process of the fan abnormality as shown in FIG. 4;
  • Step 206 the alarm detection process (fan alarm detection process 1) shown in Figure 5 is performed, and the process proceeds to step 209;
  • Step 207 Wait for the operator to configure the fan.
  • Step 208 after the fan is running, perform the alarm detection process (fan alarm detection process 2) as shown in FIG. 6, and go to step 209;
  • Step 209 Perform an alarm detection process (fan alarm detection process 3) as shown in FIG. 7.
  • 3 is a flow chart of automatic fan operation and automatic switching according to an embodiment of the present invention. As shown in FIG. 3, the following processing is included:
  • Step 301 Obtain a current device temperature and a number of users used
  • Step 302 Determine, according to the two-dimensional input parameter (device temperature, and the number of users used), the number of fans that should be turned on;
  • Step 303 Query the number of fans currently running and the current fan running mode. Style
  • Step 304 Determine whether the number of fans that should be turned on is the same as the number of fans currently running. If the determination is yes, go to step 305. Otherwise, go to step 311.
  • Step 305 checking a running time of the current fan running mode operation
  • Step 306 it is determined whether the single running time in the fan operating mode exceeds the set maximum value, if the determination is yes, then step 307 is performed, otherwise step 310 is performed;
  • Step 307 Acquire one of the fan modes in the fan mode except the mode and the mode with the error flag, and the running time is the least;
  • Step 308 open the fan according to the mode
  • Step 309 clearing the single running time of the fan running mode before switching, and accumulating the total running time
  • Step 310 Continue to execute the fan running mode, and accumulate the single running time of the fan running mode, and accumulate the total running time;
  • Step 311 Obtain one of the minimum cumulative operation time of the fan mode in the number of fans; Step 312, open the fan according to the mode.
  • FIG. 4 is a flowchart of automatic switching of a fan abnormality according to an embodiment of the present invention. As shown in FIG. 4, the following processing is included:
  • Step 401 Obtain the current number of fan operations and the current fan operating mode.
  • Step 402 Compare the fan opening condition in the current fan running mode with the current fan running condition. If yes, go to step 403. Otherwise, go to step 404. Step 403, continue to run in the current mode.
  • step 404 in order to prevent data abnormality, the operation again obtains the current fan running number and the current fan running mode. If they are the same, step 403 is performed; otherwise, step 405 is performed; step 405, the current fan operating mode is marked with a damage flag;
  • Step 406 querying the number of current fan operations, except for the mode and the mode with error identification.
  • Step 407 the fan is turned on in this mode.
  • FIG. 5 is a flowchart of a fan alarm detection process 1 according to an embodiment of the present invention. As shown in FIG. 5, the following processing is included:
  • Step 501 Obtain the current fan running number and the current fan running mode.
  • step 502 it is checked whether all the fan operating modes of the number of fans have an error identifier. If the determination is yes, step 503 is performed; otherwise, step 505 is performed;
  • Step 503 the number of the fan is marked with an error, indicating that the number of fans cannot be turned on; Step 504, automatically switching to the manual mode, and all fans are turned on by default;
  • Step 505 continue to run the current fan operating mode.
  • FIG. 6 is a flowchart of a fan alarm detection process 2 according to an embodiment of the present invention. As shown in FIG. 6, the following processing is included:
  • Step 601 According to the fan ID polling, compare the current state of the fan with the state that the locally saved fan should be running. If the comparison result is different, poll the fan ID again, and the fan current state and the locally saved fan should be running. Status comparison
  • Step 602 according to the fan ID polling, to determine whether the fan is abnormal, if the determination is yes, go to step 610, otherwise, go to step 603;
  • Step 603 obtain a local fan abnormal state table, check whether the fan has been marked with an abnormality, if the determination is yes, go to step 604, otherwise, go to step 609;
  • Step 604 recovering a fan alarm.
  • Step 605 polling all the fans for the number of errors, if there is only one error flag, step 606 is performed, if there is no error flag, step 608 is performed;
  • Step 606 Automatically switch to the manual fan mode, and then resume the automatic fan mode; Step 607, clear the local fan data;
  • Step 608 manually switching to the manual fan mode, and continuing to run; Step 609, continue to run;
  • Step 610 the local fan abnormal state table is obtained, and it is determined whether the fan has been marked with an abnormality. If the determination is yes, step 611 is performed; otherwise, step 612 is performed;
  • Step 611 continue to run
  • FIG. 7 is a flowchart of a fan alarm detection process 3 according to an embodiment of the present invention. As shown in FIG. 7, the following processing is included:
  • Step 701 polling the current state of the fan according to the number of fans, and checking whether the local fan has an error flag, if the fan is running normally and there is an error flag, step 702 is performed, otherwise step 703 is performed;
  • Step 702 recovering an alarm, and removing a local fan error identifier
  • Step 703, continue to run.
  • the embodiment of the present invention considers the manual operation to be turned off by default in terms of ease of use and reliability, and can also select to switch manually, and introduces the ambient temperature and the user's number of two-dimensional input parameters to automatically control the fan, and the fan rotates.
  • the rules table is completely developed by professional fan hardware designers after many environmental tests, so the fan can be automatically and professionally used correctly. It also provides fan protection, and the fan is turned on for a long time, giving timing switching.
  • the alarm detection function is provided to reduce the pressure caused by the fan alarm to the network management system.
  • FIG. 8 is a schematic structural view of a fully automatic fan control device according to an embodiment of the present invention.
  • the device includes: a detection module 80, a processing module 82, and a control module 84.
  • the modules of the embodiments of the present invention are described in detail below.
  • the processing module 82 is configured to determine the number of fan operations and the fan operating mode according to the device temperature, the number of the users, and the fan control table and the fan operating mode table.
  • the fan control table includes: The relationship between the temperature range of the device and the number of fans running.
  • the fan operation mode table includes: the correspondence between the number of fan operations and the fan operation mode.
  • the fan control table and the fan operation mode table it is first necessary to obtain relevant test data, and according to the test result, the distribution and change of the internal temperature of the device under different user usage numbers are determined, thereby determining a certain The number of fans that are turned on in different temperature ranges by the number of users.
  • the operating mode under different fan numbers that is, two parameters need to be determined: the number of fans running, and the operating mode under the number of fans running, that is, under the number of fans, A combination of different fan openings.
  • the number of fan runs can be considered a parent class, and there is a subclass of the run mode under each parent class.
  • the operation mode is a combination of 2 fans and 2 fans in 4 fans.
  • tabulation is performed according to the corresponding fan mode for each fan number, and the storage fan should be operated in each mode, and the corresponding identifier is set.
  • the control module 84 is configured to control the operation of the fan according to the determined number of fan runs and the fan operation mode.
  • the fully automatic fan control apparatus further includes: front, selecting the automatic fan mode from a manual fan mode and an automatic fan mode.
  • the default is the automatic fan mode.
  • the embodiments of the present invention provide two control modes: a manual fan mode and an automatic fan mode.
  • the automatic fan mode can be implemented by setting an automatic fan enable by the user.
  • the manual fan mode is a manual configuration of the fan to control the operation of the fan. Is to achieve an abnormal situation Protection.
  • the fan operation is based on a cyclic task (or thread) timing operation, thereby being capable of detecting the state of the fan, thereby implementing functions such as mode switching and alarming:
  • the switching module is configured to switch the number of fan operations and/or the fan operation mode according to the current device temperature, the number of users currently using the device, and the running time of the current fan operating mode (for detailed processing, refer to Figure 3); and in the case that one or more fans in the current fan operating mode are detected to be abnormal in operation, the fan operating mode is automatically switched, and the current fan operating mode is incorrectly identified (detailed processing) Refer to Figure 4).
  • the switching rule for switching the fan operating mode is: Select the fan operating mode with the least total running time except the current fan operating mode and the fan operating mode with the wrong flag.
  • the switching module mainly performs the number of fans to determine whether the number of fans needs to be switched. If the number of fans is the same, it is determined whether the running time of the current mode exceeds the threshold. If the threshold is exceeded, the other modes under the number of fans are switched.
  • the switching criterion is to select the mode other than the mode and the error flag. Run in the mode with the least total running time.
  • the automatic fan will automatically switch the mode, select the fan running mode with the least total running time except the mode and the mode with the wrong flag, and then run the previous fan.
  • the mode sets the error flag.
  • An alarm module configured to close the self when all fan operating modes are unavailable In the fan mode, switch to the manual fan mode, turn on all fans, and perform unified alarm according to the ID of the fan in the abnormal state; in the manual fan mode, it is detected that the operation of a certain fan changes from abnormal state to normal state. At the same time, the alarm of the fan is cancelled, and when it is detected that the automatic fan mode is automatically switched to the manual fan mode, the automatic fan mode is restored; the automatic fan mode is detected.
  • the fan in a certain fan operation mode changes from the abnormal state to the normal state, the fan alarm is cancelled and the error flag of the fan operation mode is removed (refer to FIG. 5, FIG. 6, and FIG. 7 for detailed processing).
  • the technical solution of the embodiment of the present invention adopts an optimization process: if a certain fan state is abnormal, the mode is switched, and if other modes of the switch are operable, no alarm is generated; Until all modes are unavailable, first turn off the automatic fan function, switch to the manual fan, and turn on all the fans, and then according to the ID of the fan, if it is detected after a period of time, it is found that a certain fan is running normally, then restore the The fan alarms and detects whether the switch is manually switched to manual control or automatically to manual control. If it is automatically switched to manual control, the automatic fan function is restored and all data is cleared.
  • the technical solution of the embodiment of the present invention solves the problem of determining the opening/closing of the multi-fan and determining the number of open fans according to the ambient temperature and the two-dimensional input of the device user.
  • the fan control method cannot accurately control the opening and closing of the fan according to the current environmental requirements, and can control the fan according to environmental requirements, thereby improving the reliability and accuracy of the fan control.

Abstract

Disclosed is a control method and device for a full-automatic fan, the method comprises: obtaining apparatus temperature and the number of users using the apparatus; determining the number of running fans and a fan running mode according to the apparatus temperature, the number of users, a preestablished fan control table and fan running mode table; and controlling the running of the fans according to the determined number of running fans and the fan running mode. The control method and device can control the fans according to the environmental requirement, thereby improving the reliability and correctness of the fan control.

Description

全自动风扇控制方法及装置 技术领域  Automatic fan control method and device
本发明涉及计算机领域, 特别是涉及一种全自动风扇控制方法及装置。 背景技术  The present invention relates to the field of computers, and in particular, to a fully automatic fan control method and apparatus. Background technique
在相关技术中, 常见的风扇管理方式大体有以下几种: 方式一: 风扇 上电就全部打开; 方式二: 手控风扇, 操作员通过手动的配置来打开和关 闭风扇; 方式三, 温控风扇, 设置一个或多个手控配置的门限值, 根据环 境温度和门限值的关系来确定风扇的开启与关闭。  In the related art, the common fan management methods are generally as follows: Method 1: The fan is fully powered on; Method 2: Manually controlling the fan, the operator opens and closes the fan through manual configuration; Mode 3, Temperature Control Fan, set the threshold of one or more manual configurations, and determine the opening and closing of the fan according to the relationship between the ambient temperature and the threshold.
目前上述几种方式各有优缺点, 第一种方式能保持机箱内的温度和环 境温度一致, 但是比较费电; 第二种方式操作麻烦, 依赖于人工; 第三种 方式是最智能化的一种方式, 但是, 该方式只通过环境温度和门限值来控 制风扇的开启与关闭, 由于操作员设定的门限具有不可靠性和不确定性, 因此, 不能够根据当前的环境需求准确的控制风扇的开启和关闭。 发明内容  At present, the above several methods have their own advantages and disadvantages. The first method can keep the temperature in the chassis and the ambient temperature consistent, but it is relatively expensive; the second mode is troublesome and depends on labor; the third way is the most intelligent One way, however, this method only controls the opening and closing of the fan through the ambient temperature and the threshold. Since the threshold set by the operator has unreliability and uncertainty, it cannot be accurate according to the current environmental requirements. Controls the opening and closing of the fan. Summary of the invention
有鉴于此, 本发明提供一种全自动风扇控制方法及装置, 以解决现有 技术中的风扇控制方法不能够根据当前的环境需求准确的控制风扇的开启 和关闭的问题。  In view of this, the present invention provides a fully automatic fan control method and apparatus to solve the problem that the fan control method in the prior art cannot accurately control the opening and closing of the fan according to current environmental requirements.
本发明提供一种全自动风扇控制方法, 包括:  The invention provides a full-automatic fan control method, comprising:
获取设备温度以及使用设备的用户个数;  Get the temperature of the device and the number of users who use the device;
根据设备温度、 用户个数、 以及预先制定的风扇控制表和风扇运行模 式表, 确定风扇运行个数以及风扇运行模式;  Determine the number of fans running and the fan operating mode based on the device temperature, the number of users, and the pre-defined fan control table and fan operating mode table.
根据确定的风扇运行个数以及风扇运行模式, 对风扇的运行进行控制。 本发明还提供了一种全自动风扇控制装置, 包括: The operation of the fan is controlled according to the determined number of fan runs and the fan operating mode. The invention also provides a fully automatic fan control device, comprising:
检测模块, 用于获取设备温度以及使用设备的用户个数;  a detection module, configured to acquire a device temperature and a number of users who use the device;
处理模块, 用于根据设备温度、 用户个数、 以及预先制定的风扇控制 表和风扇运行模式表, 确定风扇运行个数以及风扇运行模式;  a processing module, configured to determine a number of fan operations and a fan operation mode according to a device temperature, a number of users, and a pre-defined fan control table and a fan operation mode table;
控制模块, 用于根据确定的风扇运行个数以及风扇运行模式, 对风扇 的运行进行控制。  The control module is configured to control the operation of the fan according to the determined number of fan runs and the fan operation mode.
本发明有益效果如下:  The beneficial effects of the present invention are as follows:
通过根据环境温度和设备用户使用数二维入参来确定对多风扇的打开 / 关闭以及确定打开的风扇数目, 解决了现有技术中的风扇控制方法不能够 根据当前的环境需求准确的控制风扇的开启和关闭的问题, 能够根据环境 需求控制风扇, 提高风扇控制的可靠性和准确性。 附图说明  The fan control method in the prior art cannot accurately control the fan according to current environmental requirements by determining the opening/closing of the multi-fan and determining the number of open fans according to the ambient temperature and the number of devices used by the device. The problem of opening and closing can control the fan according to environmental requirements and improve the reliability and accuracy of the fan control. DRAWINGS
图 1是本发明实施例的全自动风扇控制方法的流程图;  1 is a flow chart of a method for controlling a fully automatic fan according to an embodiment of the present invention;
图 2是本发明实施例的全自动风扇控制方法的详细处理流程图; 图 3是本发明实施例的自动风扇运行和自动切换的流程图;  2 is a detailed processing flowchart of a method for controlling a fully automatic fan according to an embodiment of the present invention; FIG. 3 is a flowchart of automatic fan operation and automatic switching according to an embodiment of the present invention;
图 4是本发明实施例的风扇异常的自动切换的流程图;  4 is a flow chart of automatic switching of a fan abnormality according to an embodiment of the present invention;
图 5是本发明实施例的风扇告警检测流程 1的流程图;  FIG. 5 is a flowchart of a fan alarm detecting process 1 according to an embodiment of the present invention;
图 6是本发明实施例的风扇告警检测流程 2的流程图;  6 is a flowchart of a fan alarm detection process 2 according to an embodiment of the present invention;
图 7是本发明实施例的风扇告警检测流程 3的流程图;  FIG. 7 is a flowchart of a fan alarm detection process 3 according to an embodiment of the present invention;
图 8是本发明实施例的全自动风扇控制装置的结构示意图。 具体实施方式  FIG. 8 is a schematic structural view of a fully automatic fan control device according to an embodiment of the present invention. detailed description
为了解决现有技术中的风扇控制方法不能够根据当前的环境需求准确 的控制风扇的开启和关闭的问题, 本发明提供了一种全自动风扇控制方法 及装置, 适用于所有多用户使用的嵌入式设备的风扇管理。 主要包括: 1、 根据硬件提供实验数据制定风扇控制表及风扇模式; 2、 根据设备温度以及 用户使用数控制风扇; 3、 风扇保护: 某一风扇在某种特定模式下巡行一定 时长会自动切换风扇开启; 4、 风扇告警; 5、 提供开关控制, 提供手动自 动两种方式的切换。 以下结合附图以及实施例, 对本发明进行进一步详细 说明。 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不限 定本发明。 In order to solve the problem that the fan control method in the prior art cannot accurately control the opening and closing of the fan according to current environmental requirements, the present invention provides a fully automatic fan control method and device, which is suitable for embedding for all multi-users. Fan management of the device. Mainly include: According to the hardware provided experimental data to develop the fan control table and fan mode; 2, according to the device temperature and the number of users to control the fan; 3, fan protection: a certain fan in a certain mode for a certain period of time will automatically switch the fan to open; Fan alarm; 5, providing switch control, providing manual and automatic switching. The present invention will be further described in detail below in conjunction with the drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
方法实施例  Method embodiment
根据本发明的实施例, 提供了一种全自动风扇控制方法, 图 1是本发 明实施例的全自动风扇控制方法的流程图, 如图 1 所示, 该方法包括以下 步驟:  According to an embodiment of the present invention, a fully automatic fan control method is provided. FIG. 1 is a flowchart of a fully automatic fan control method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步驟 101 , 获取设备温度以及使用设备的用户个数;  Step 101: Obtain a device temperature and a number of users who use the device.
步驟 102, 根据设备温度、 用户个数、 以及预先制定的风扇控制表和风 扇运行模式表, 确定风扇运行个数以及风扇运行模式; 其中, 风扇控制表 包括: 用户个数、 设备温度的范围、 以及风扇运行个数之间的对应关系; 风扇运行模式表包括: 风扇运行个数和风扇运行模式之间的对应关系。  Step 102: Determine the number of fan operations and the fan operation mode according to the device temperature, the number of users, and the pre-defined fan control table and the fan operation mode table. The fan control table includes: a number of users, a range of device temperatures, and And the correspondence between the number of fan runs; the fan operation mode table includes: a correspondence between the number of fan operations and the fan operation mode.
需要说明的是, 在制定风扇控制表和风扇运行模式表时, 首先需要获 取相关测试数据, 根据测试结果获取在不同的用户使用数下, 设备内部温 度的分布和变化情况, 确定在一定的用户使用数下, 在不同的温度范围内, 风扇打开个数。 另外还要确定在不同风扇数目下的运行模式, 也就是说, 需要确定两个参数: 风扇运行的个数, 以及在该风扇运行个数下的运行模 式, 即在该风扇个数下, 不同风扇开启的组合。  It should be noted that when formulating the fan control table and the fan operation mode table, it is first necessary to obtain relevant test data, and according to the test result, the distribution and change of the internal temperature of the device under different user usage numbers are determined, and the certain users are determined. The number of fans is turned on in different temperature ranges under the number of uses. In addition, it is necessary to determine the operating mode under different fan numbers, that is, two parameters need to be determined: the number of fans running, and the operating mode under the number of fans running, that is, under the number of fans, different The combination of fan on.
具体地, 风扇运行个数可以认为是个母类, 在每个母类下面又会有运 行模式的子类。 例如, 在总共 4个风扇, 开启 2个风扇的情况下, 运行模 式就是 4个风扇里面 2个风扇的两两组合, 一共 6种模式。 在实际应用中, 根据每个风扇个数下对应的风扇模式进行制表, 存储每种模式下风扇应该 运行的情况, 和设置相应的标识。 Specifically, the number of fan runs can be considered as a parent class, and there is a subclass of the running mode under each parent class. For example, in the case of a total of 4 fans and 2 fans, the operation mode is a combination of 2 fans and 2 fans in 4 fans, a total of 6 modes. In practical applications, tabulation is performed according to the corresponding fan mode of each fan number, and the fan should be stored in each mode. The running situation, and the corresponding identifier is set.
步驟 103,根据确定的风扇运行个数以及风扇运行模式对风扇的运行进 行控制。  Step 103: Control the operation of the fan according to the determined number of fan runs and the fan operation mode.
在获取设备温度以及使用设备的用户个数之前(执行步驟 101之前), 需要从手动风扇模式和自动风扇模式中选择自动风扇模式。 优选地, 如果 用户不进行选择, 则默认为自动风扇模式。  Before acquiring the device temperature and the number of users using the device (before step 101), you need to select the automatic fan mode from the manual fan mode and the automatic fan mode. Preferably, if the user does not make a selection, the default is the automatic fan mode.
也就是说, 本发明实施例提供了两种控制模式: 手动风扇模式和自动 风扇模式, 自动风扇模式可以通过用户设置自动风扇使能来实现, 手动风 扇模式是用户通过手动配置来控制风扇的运转, 其主要作用是为了实现异 常情况下的保护。  That is, the embodiment of the present invention provides two control modes: a manual fan mode and an automatic fan mode. The automatic fan mode can be implemented by a user setting an automatic fan mode, and the manual fan mode is a manual configuration to control the operation of the fan. Its main role is to achieve protection under abnormal conditions.
在本发明实施例的技术方案中, 风扇运行是基于循环任务(或线程) 定时的运行, 从而能够检测风扇的状态, 进而实现模式切换以及告警等功 In the technical solution of the embodiment of the present invention, the fan operation is based on a cyclic task (or thread) timing operation, so that the state of the fan can be detected, thereby implementing mode switching and alarming.
•6匕 •6匕
匕。  dagger.
具体地, 在根据确定的风扇运行个数以及风扇运行模式对风扇的运行 进行控制之后, 需要根据当前设备温度、 当前使用设备的用户个数、 以及 当前风扇运行模式的运行时间, 对风扇运行个数和 /或风扇运行模式进行切 换(详细处理可参照图 3 );  Specifically, after controlling the operation of the fan according to the determined number of fan operations and the fan operation mode, the fan operation needs to be performed according to the current device temperature, the number of users currently using the device, and the running time of the current fan operation mode. Number and / or fan operation mode to switch (refer to Figure 3 for detailed processing);
在自动风扇运行和自动切换流程中, 主要进行风扇个数判别, 确定是 否需要切换风扇个数。 如果风扇个数一致, 则判别获取当前模式的运行时 间是否超过阀值, 如果超过阈值, 则切换本风扇个数下的其他模式, 切换 标准是选择除了本模式以及带有错误标识的模式外, 运行总时间最少的模 式运行。  In the automatic fan operation and automatic switching process, the number of fans is mainly determined to determine whether the number of fans needs to be switched. If the number of fans is the same, it is determined whether the running time of the current mode exceeds the threshold. If the threshold is exceeded, the other modes under the number of fans are switched. The switching criterion is to select the mode other than the mode and the error flag. Run in the mode with the least total running time.
在检测到当前风扇运行模式中的一个或多个风扇出现运行异常的情况 下, 自动对风扇运行模式进行切换, 并将当前风扇运行模式进行错误标识 (详细处理可参照图 4 )。 其中, 对风扇运行模式进行切换的切换规则为: 选择除当前风扇运行模式、 以及带有错误标识的风扇运行模式外, 运行总 时间最少的风扇运行模式。 When it is detected that one or more fans in the current fan operating mode are abnormal, the fan operating mode is automatically switched, and the current fan operating mode is incorrectly identified (refer to FIG. 4 for detailed processing). The switching rule for switching the fan operating mode is: Select the fan operating mode with the least total running time except the current fan operating mode and the fan operating mode with the error flag.
也就是说, 如果系统检测出一个或多个风扇异常时, 自动风扇则会自 动的进行模式切换, 选择除了本模式以及带有错误标识的模式外, 运行总 时间最少的风扇运行模式, 然后给之前的风扇运行模式设置错误标识。  That is, if the system detects one or more fan abnormalities, the automatic fan will automatically switch the mode, select the fan running mode with the least total running time except this mode and the mode with the wrong flag, and then give The previous fan operating mode setting error flag.
此外, 需要说明的是, 本轮循环选择新模式后不管该模式下风扇是否 可以正常运行, 如果出现在新的模式下运行时仍有风扇异常的情况, 那么 下次循环时, 就会对该模式进行检测, 如此循环, 一直到获取可用的风扇 运行模式; 在所有风扇运行模式都不可用的情况下, 就需要执行下面将要 描述的告警检测流程以实现告警。  In addition, it should be noted that after the new mode is selected in this cycle, regardless of whether the fan can operate normally in this mode, if there is still a fan abnormality when running in the new mode, then the next cycle will be The mode is detected and cycled until the available fan operating mode is obtained; in the event that all fan operating modes are not available, an alarm detection process as will be described below is required to implement the alarm.
在所有风扇运行模式都不可用的情况下, 需要关闭自动风扇模式, 切 换为手动风扇模式, 并通过手动方式打开全部风扇, 根据处于异常状态下 的风扇的 ID进行统一告警; 在手动风扇模式下检测到某一风扇的运行由异 常状态变为正常状态时, 撤销该风扇的告警, 并在检测到本次是自动由自 动风扇模式切换为手动风扇模式的情况下, 恢复为自动风扇模式; 在自动 风扇模式下检测到某一风扇运行模式中的风扇由异常状态变为正常状态 时, ·ί敦销该风扇的告警, 并去除该风扇运行模式的错误标识 (详细处理可 参照图 5、 图 6、 图 7 )。  If all fan operating modes are unavailable, you need to turn off the automatic fan mode, switch to manual fan mode, and manually turn on all fans to perform unified alarm according to the ID of the fan in abnormal state. In manual fan mode When it is detected that the operation of a certain fan changes from the abnormal state to the normal state, the alarm of the fan is cancelled, and when it is detected that the current automatic mode is switched from the automatic fan mode to the manual fan mode, the automatic fan mode is restored; When the fan in a fan operation mode is detected in the automatic fan mode and changes from the abnormal state to the normal state, the fan alarm is issued and the error flag of the fan operation mode is removed (for detailed processing, refer to Figure 5 and Figure). 6, Figure 7).
具体地说, 为了避免网管的风扇告警的压力, 本发明实施例的技术方 案采用了一种优化流程: 如果某一风扇状态异常, 则切换模式, 如果切换 的其他模式可运行, 则不告警; 一直到所有模式都不可用时, 首先关闭自 动风扇功能, 切换为手控风扇, 并且打开全部风扇, 然后根据风扇的 ID进 行统一告警。  Specifically, in order to avoid the pressure of the fan alarm of the network management, the technical solution of the embodiment of the present invention adopts an optimization process: if a certain fan state is abnormal, the mode is switched, and if other modes of the switch are operable, no alarm is generated; Until all modes are unavailable, first turn off the automatic fan function, switch to the manual fan, and turn on all fans, and then perform a unified alarm according to the fan ID.
如果过一段时间后检测时发现某一风扇运转又正常了, 则恢复该风扇 告警, 并同时检测本次是人工切换为手动控制还是自动切换为手动控制, 如果是自动切换为手动控制, 则恢复自动风扇功能, 并清除所有数据。 如果在自动风扇模式下, 又有风扇运转正常了, 这时需要执行如图 7 所示的流程检测风扇告警恢复。 If the detection of a certain fan is normal after a period of time, the fan alarm is restored, and it is detected whether the manual switch is manual control or automatic control to manual control. If it is automatically switched to manual control, the automatic fan function is restored and all data is cleared. If the fan is running normally in the automatic fan mode, you need to perform the process shown in Figure 7 to detect the fan alarm recovery.
以下结合附图, 对本发明实施例的上述技术方案进行详细的说明。 图 2是本发明实施例的全自动风扇控制方法的详细处理流程图,如图 2 所示, 包括如下处理:  The above technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings. 2 is a detailed processing flowchart of a method for controlling a fully automatic fan according to an embodiment of the present invention. As shown in FIG. 2, the following processing is included:
步驟 201 , 在设备上电后, 根据项目需要, 系统延时 X秒;  Step 201: After the device is powered on, according to the needs of the project, the system delays by X seconds;
步驟 202,判定该设备是否支持风扇,如果判断为是, 则执行步驟 203 , 否则, 执行步驟 201 ;  Step 202: Determine whether the device supports the fan. If the determination is yes, go to step 203. Otherwise, go to step 201.
步驟 203 , 判断选择自动风扇模式还是手动风扇模式,如果为自动风扇 模式, 则执行步驟 204, 如果为手动风扇模式, 则执行步驟 207;  Step 203, determining whether to select the automatic fan mode or the manual fan mode, if it is the automatic fan mode, step 204 is performed, if it is the manual fan mode, step 207 is performed;
步驟 204, 执行如图 3所示的自动风扇运行和自动切换流程;  Step 204: Perform an automatic fan operation and an automatic switching process as shown in FIG. 3;
步驟 205 , 执行如图 4所示的风扇异常的自动切换流程;  Step 205: Perform an automatic switching process of the fan abnormality as shown in FIG. 4;
步驟 206, 执行如图 5所示的告警检测流程(风扇告警检测流程 1 ), 转到步驟 209;  Step 206, the alarm detection process (fan alarm detection process 1) shown in Figure 5 is performed, and the process proceeds to step 209;
步驟 207, 等待操作人员对风扇进行配置;  Step 207: Wait for the operator to configure the fan.
步驟 208 , 在风扇运行后, 执行如图 6所示的告警检测流程(风扇告警 检测流程 2 ), 转到步驟 209;  Step 208, after the fan is running, perform the alarm detection process (fan alarm detection process 2) as shown in FIG. 6, and go to step 209;
步驟 209, 执行如图 7所示的告警检测流程(风扇告警检测流程 3 )。 图 3是本发明实施例的自动风扇运行和自动切换的流程图, 如图 3所 示, 包括如下处理:  Step 209: Perform an alarm detection process (fan alarm detection process 3) as shown in FIG. 7. 3 is a flow chart of automatic fan operation and automatic switching according to an embodiment of the present invention. As shown in FIG. 3, the following processing is included:
步驟 301 , 获取当前的设备温度、 以及用户使用个数;  Step 301: Obtain a current device temperature and a number of users used;
步驟 302, 根据二维入参(设备温度、 以及用户使用个数)确定应该开 启的风扇数;  Step 302: Determine, according to the two-dimensional input parameter (device temperature, and the number of users used), the number of fans that should be turned on;
步驟 303 , 查询本地存贮的当前运行的风扇个数以及当前风扇运行模 式; Step 303: Query the number of fans currently running and the current fan running mode. Style
步驟 304,判断确定应该开启的风扇数和当前运行的风扇个数的数目是 否相同, 如果判断为是, 则执行步驟 305 , 否则, 执行步驟 311 ;  Step 304: Determine whether the number of fans that should be turned on is the same as the number of fans currently running. If the determination is yes, go to step 305. Otherwise, go to step 311.
步驟 305 , 检查当前风扇运行模式运行单次的运行时间;  Step 305, checking a running time of the current fan running mode operation;
步驟 306, 判断该风扇运行模式下单次运行时间是否超过设定的最大 值, 如果判断为是, 则执行步驟 307, 否则执行步驟 310;  Step 306, it is determined whether the single running time in the fan operating mode exceeds the set maximum value, if the determination is yes, then step 307 is performed, otherwise step 310 is performed;
步驟 307,获取该风扇个数下除本模式以及带有错误标识的模式以外的 其他风扇模式中, 运行累计时间最少的一个;  Step 307: Acquire one of the fan modes in the fan mode except the mode and the mode with the error flag, and the running time is the least;
步驟 308, 按照该模式打开风扇;  Step 308, open the fan according to the mode;
步驟 309, 将切换前风扇运行模式的单次运行时间清零, 总体运行时间 进行累加;  Step 309, clearing the single running time of the fan running mode before switching, and accumulating the total running time;
步驟 310, 继续执行该风扇运行模式, 并将该风扇运行模式单次运行时 间累加 , 总体运行时间累加;  Step 310: Continue to execute the fan running mode, and accumulate the single running time of the fan running mode, and accumulate the total running time;
步驟 311 , 获取该风扇个数下风扇模式运行累计时间最少的一个; 步驟 312, 按照该模式打开风扇。  Step 311: Obtain one of the minimum cumulative operation time of the fan mode in the number of fans; Step 312, open the fan according to the mode.
图 4是本发明实施例的风扇异常的自动切换的流程图, 如图 4所示, 包括如下处理:  FIG. 4 is a flowchart of automatic switching of a fan abnormality according to an embodiment of the present invention. As shown in FIG. 4, the following processing is included:
步驟 401 , 获取当前风扇运行的个数和当前风扇运行模式;  Step 401: Obtain the current number of fan operations and the current fan operating mode.
步驟 402,根据获取的当前风扇运行模式下风扇的开启情况与当前风扇 运转情况进行比较, 如果相同, 则执行步驟 403 , 否则, 执行步驟 404; 步驟 403 , 继续按当前模式运行;  Step 402: Compare the fan opening condition in the current fan running mode with the current fan running condition. If yes, go to step 403. Otherwise, go to step 404. Step 403, continue to run in the current mode.
步驟 404, 为了防止数据异常,再操作一次获取当前风扇运行的个数和 当前风扇运行模式, 如果相同, 则执行步驟 403 , 否则, 执行步驟 405; 步驟 405 , 将当前风扇运行模式打上损坏标志;  In step 404, in order to prevent data abnormality, the operation again obtains the current fan running number and the current fan running mode. If they are the same, step 403 is performed; otherwise, step 405 is performed; step 405, the current fan operating mode is marked with a damage flag;
步驟 406,查询当前风扇运行的个数下除本模式和有错误标识的模式外 其他可用模式中总体运行时间最小的模式; Step 406, querying the number of current fan operations, except for the mode and the mode with error identification. The mode with the lowest overall running time among other available modes;
步驟 407, 按该模式打开风扇。  Step 407, the fan is turned on in this mode.
图 5是本发明实施例的风扇告警检测流程 1的流程图, 如图 5所示, 包括如下处理:  FIG. 5 is a flowchart of a fan alarm detection process 1 according to an embodiment of the present invention. As shown in FIG. 5, the following processing is included:
步驟 501 , 获取当前风扇运行的个数和当前风扇运行模式;  Step 501: Obtain the current fan running number and the current fan running mode.
步驟 502, 检查该风扇个数下的所有风扇运行模式是否都有错误标识, 如果判断为是, 则执行步驟 503, 否则, 执行步驟 505;  In step 502, it is checked whether all the fan operating modes of the number of fans have an error identifier. If the determination is yes, step 503 is performed; otherwise, step 505 is performed;
步驟 503, 给该风扇个数打上错误标识, 表示该风扇个数不可开启; 步驟 504, 自动切换到手动模式, 默认打开所有风扇;  Step 503, the number of the fan is marked with an error, indicating that the number of fans cannot be turned on; Step 504, automatically switching to the manual mode, and all fans are turned on by default;
步驟 505, 继续运行当前风扇运行模式。  Step 505, continue to run the current fan operating mode.
图 6是本发明实施例的风扇告警检测流程 2的流程图, 如图 6所示, 包括如下处理:  FIG. 6 is a flowchart of a fan alarm detection process 2 according to an embodiment of the present invention. As shown in FIG. 6, the following processing is included:
步驟 601 , 按风扇 ID轮询, 对风扇当前状态与本地保存的风扇应该运 转的状态进行比较, 如果比较结果不同, 则再次按风扇 ID轮询, 对风扇当 前状态与本地保存的风扇应该运转的状态进行比较;  Step 601: According to the fan ID polling, compare the current state of the fan with the state that the locally saved fan should be running. If the comparison result is different, poll the fan ID again, and the fan current state and the locally saved fan should be running. Status comparison
步驟 602, 按风扇 ID轮询, 判断风扇是否异常, 如果判断为是, 则执 行步驟 610, 否则, 执行步驟 603;  Step 602, according to the fan ID polling, to determine whether the fan is abnormal, if the determination is yes, go to step 610, otherwise, go to step 603;
步驟 603 , 获取本地风扇异常状态表, 查看该风扇是否已经打上异常标 识, 如果判断为是, 则执行步驟 604, 否则, 执行步驟 609;  Step 603, obtain a local fan abnormal state table, check whether the fan has been marked with an abnormality, if the determination is yes, go to step 604, otherwise, go to step 609;
步驟 604, 恢复风扇告警;  Step 604, recovering a fan alarm.
步驟 605 ,轮询所有风扇个数下是否有错误标识,如果只有一个存在错 误标识, 则执行步驟 606, 如果全部没有错误标识, 则执行步驟 608;  Step 605, polling all the fans for the number of errors, if there is only one error flag, step 606 is performed, if there is no error flag, step 608 is performed;
步驟 606, 是自动切换到手动风扇模式, 则恢复自动风扇模式; 步驟 607, 清除本地风扇数据;  Step 606: Automatically switch to the manual fan mode, and then resume the automatic fan mode; Step 607, clear the local fan data;
步驟 608, 手动切换到手动风扇模式, 继续运行; 步驟 609, 继续运行; Step 608, manually switching to the manual fan mode, and continuing to run; Step 609, continue to run;
步驟 610, 获取本地风扇异常状态表, 查看该风扇是否已经打上异常标 识, 如果判断为是, 则执行步驟 611 , 否则, 执行步驟 612;  Step 610, the local fan abnormal state table is obtained, and it is determined whether the fan has been marked with an abnormality. If the determination is yes, step 611 is performed; otherwise, step 612 is performed;
步驟 611 , 继续运行;  Step 611, continue to run;
步驟 612, 发送风扇异常告警, 并将本地风扇状态打上异常标识。 图 7是本发明实施例的风扇告警检测流程 3的流程图, 如图 7所示, 包括如下处理:  Step 612, sending a fan abnormality alarm, and marking the local fan status with an abnormality identifier. FIG. 7 is a flowchart of a fan alarm detection process 3 according to an embodiment of the present invention. As shown in FIG. 7, the following processing is included:
步驟 701 ,按风扇个数轮询风扇当前状态, 并且查看本地风扇是否有错 误标识, 如果风扇运转正常且有错误标识, 则执行步驟 702, 否则执行步驟 703;  Step 701, polling the current state of the fan according to the number of fans, and checking whether the local fan has an error flag, if the fan is running normally and there is an error flag, step 702 is performed, otherwise step 703 is performed;
步驟 702, 恢复告警, 去除本地风扇错误标识;  Step 702, recovering an alarm, and removing a local fan error identifier;
步驟 703 , 继续运行。  Step 703, continue to run.
从上述处理可以看出, 本发明实施例从易用性和可靠性考虑, 默认关 闭手动操作, 也可以选择切换手动, 并引入环境温度和用户使用数二维入 参来自动控制风扇, 风扇转动规则表完全由专业的风扇硬件设计人员在经 过多次环境测试之后得出, 所以能够自动地专业的正确使用风扇。 并且提 供风扇保护功能, 风扇过长时间开启, 给予定时切换功能。 考虑到网管压 力问题, 本发明实施例还提供告警检测功能, 可以緩解由于风扇告警给网 管带来的压力。  It can be seen from the above processing that the embodiment of the present invention considers the manual operation to be turned off by default in terms of ease of use and reliability, and can also select to switch manually, and introduces the ambient temperature and the user's number of two-dimensional input parameters to automatically control the fan, and the fan rotates. The rules table is completely developed by professional fan hardware designers after many environmental tests, so the fan can be automatically and professionally used correctly. It also provides fan protection, and the fan is turned on for a long time, giving timing switching. In the embodiment of the present invention, the alarm detection function is provided to reduce the pressure caused by the fan alarm to the network management system.
装置实施例  Device embodiment
根据本发明的实施例, 提供了一种全自动风扇控制装置, 图 8是本发 明实施例的全自动风扇控制装置的结构示意图, 如图 8所示, 根据本发明 实施例的全自动风扇控制装置包括: 检测模块 80、 处理模块 82、 控制模块 84, 以下对本发明实施例的各个模块进行详细的说明。 处理模块 82用于根据所述设备温度、 所述用户个数、 以及预先制定的 风扇控制表和风扇运行模式表确定风扇运行个数以及风扇运行模式; 其中, 风扇控制表包括: 用户个数、 设备温度的范围、 以及风扇运行个数之间的 对应关系; 风扇运行模式表包括: 风扇运行个数和风扇运行模式之间的对 应关系。 According to an embodiment of the present invention, a fully automatic fan control device is provided, and FIG. 8 is a schematic structural view of a fully automatic fan control device according to an embodiment of the present invention. As shown in FIG. 8, a fully automatic fan control according to an embodiment of the present invention is shown. The device includes: a detection module 80, a processing module 82, and a control module 84. The modules of the embodiments of the present invention are described in detail below. The processing module 82 is configured to determine the number of fan operations and the fan operating mode according to the device temperature, the number of the users, and the fan control table and the fan operating mode table. The fan control table includes: The relationship between the temperature range of the device and the number of fans running. The fan operation mode table includes: the correspondence between the number of fan operations and the fan operation mode.
需要说明的是, 在制定风扇控制表和风扇运行模式表时, 首先需要获 取相关测试数据, 根据测试结果获取在不同的用户使用数下, 设备内部温 度的分布和变化情况, 从而确定在一定的用户使用数下, 在不同的温度范 围内, 风扇打开个数。 另外还要确定在不同风扇数目下的运行模式, 也就 是说, 需要确定两个参数: 风扇运行的个数, 以及在该风扇运行个数下的 运行模式, 即, 在该风扇个数下, 不同风扇开启的组合。  It should be noted that when formulating the fan control table and the fan operation mode table, it is first necessary to obtain relevant test data, and according to the test result, the distribution and change of the internal temperature of the device under different user usage numbers are determined, thereby determining a certain The number of fans that are turned on in different temperature ranges by the number of users. In addition, it is necessary to determine the operating mode under different fan numbers, that is, two parameters need to be determined: the number of fans running, and the operating mode under the number of fans running, that is, under the number of fans, A combination of different fan openings.
具体地说, 风扇运行个数可以认为是个母类, 在每个母类下面又会有 运行模式的子类。 例如, 在总共 4个风扇, 开启 2个风扇的情况下, 运行 模式就是 4个风扇里面 2个风扇的两两组合, 一共 6种模式。 在实际应用 中, 根据每个风扇个数下对应的风扇模式进行制表, 存储每种模式下风扇 应该运行的情况, 和设置相应的标识。  Specifically, the number of fan runs can be considered a parent class, and there is a subclass of the run mode under each parent class. For example, in the case of a total of 4 fans and 2 fans, the operation mode is a combination of 2 fans and 2 fans in 4 fans. There are 6 modes in total. In practical applications, tabulation is performed according to the corresponding fan mode for each fan number, and the storage fan should be operated in each mode, and the corresponding identifier is set.
控制模块 84用于根据确定的所述风扇运行个数以及所述风扇运行模式 对风扇的运行进行控制。  The control module 84 is configured to control the operation of the fan according to the determined number of fan runs and the fan operation mode.
优选地, 根据本发明实施例的全自动风扇控制装置还包括: 前, 从手动风扇模式和自动风扇模式中选择所述自动风扇模式。 优选地, 如果用户不进行选择, 则默认为自动风扇模式。  Preferably, the fully automatic fan control apparatus according to an embodiment of the present invention further includes: front, selecting the automatic fan mode from a manual fan mode and an automatic fan mode. Preferably, if the user does not make a selection, the default is the automatic fan mode.
本发明实施例提供了两种控制模式: 手动风扇模式和自动风扇模式, 自动风扇模式可以通过用户设置自动风扇使能来实现, 手动风扇模式是用 户通过手动配置来控制风扇的运转, 其主要作用是为了实现异常情况下的 保护。 The embodiments of the present invention provide two control modes: a manual fan mode and an automatic fan mode. The automatic fan mode can be implemented by setting an automatic fan enable by the user. The manual fan mode is a manual configuration of the fan to control the operation of the fan. Is to achieve an abnormal situation Protection.
在本发明实施例的技术方案中, 风扇运行是基于循环任务(或线程) 定时的运行, 从而能够检测风扇的状态, 进而实现模式切换以及告警等功 能:  In the technical solution of the embodiment of the present invention, the fan operation is based on a cyclic task (or thread) timing operation, thereby being capable of detecting the state of the fan, thereby implementing functions such as mode switching and alarming:
切换模块, 用于根据当前设备温度、 当前使用所述设备的用户个数、 以及当前风扇运行模式的运行时间对所述风扇运行个数和 /或所述风扇运行 模式进行切换(详细处理可参照图 3 ); 并在检测到当前风扇运行模式中的 一个或多个风扇出现运行异常的情况下, 自动对所述风扇运行模式进行切 换, 并将所述当前风扇运行模式进行错误标识(详细处理可参照图 4 )。 其 中, 对风扇运行模式进行切换的切换规则为: 选择除当前风扇运行模式、 以及带有错误标识的风扇运行模式外, 运行总时间最少的风扇运行模式。  The switching module is configured to switch the number of fan operations and/or the fan operation mode according to the current device temperature, the number of users currently using the device, and the running time of the current fan operating mode (for detailed processing, refer to Figure 3); and in the case that one or more fans in the current fan operating mode are detected to be abnormal in operation, the fan operating mode is automatically switched, and the current fan operating mode is incorrectly identified (detailed processing) Refer to Figure 4). The switching rule for switching the fan operating mode is: Select the fan operating mode with the least total running time except the current fan operating mode and the fan operating mode with the wrong flag.
也就是说, 切换模块在自动风扇运行和自动切换流程中, 主要进行风 扇个数判别, 确定是否需要切换风扇个数。 如果风扇个数一致, 则判别获 取当前模式的运行时间是否超过阀值, 如果超过阈值, 则切换本风扇个数 下的其他模式, 切换标准是选择除了本模式以及带有错误标识的模式外, 运行总时间最少的模式运行。  That is to say, in the automatic fan operation and automatic switching process, the switching module mainly performs the number of fans to determine whether the number of fans needs to be switched. If the number of fans is the same, it is determined whether the running time of the current mode exceeds the threshold. If the threshold is exceeded, the other modes under the number of fans are switched. The switching criterion is to select the mode other than the mode and the error flag. Run in the mode with the least total running time.
如果系统检测出一个或者多个风扇异常时, 自动风扇则会自动的进行 模式切换, 选择除了本模式以及带有错误标识的模式外, 运行总时间最少 的风扇运行模式, 然后给之前的风扇运行模式设置错误标识。  If the system detects one or more fan abnormalities, the automatic fan will automatically switch the mode, select the fan running mode with the least total running time except the mode and the mode with the wrong flag, and then run the previous fan. The mode sets the error flag.
此外, 需要说明的是, 本轮循环选择新模式后不管该模式下风扇是否 可以正常运行, 如果出现在新的模式下运行时仍有风扇异常的情况, 那么 下次循环时, 就会对该模式进行检测, 如此循环, 一直到获取可用的风扇 运行模式; 在所有风扇运行模式都不可用的情况下, 就需要告警模块实现 告警。  In addition, it should be noted that after the new mode is selected in this cycle, regardless of whether the fan can operate normally in this mode, if there is still a fan abnormality when running in the new mode, then the next cycle will be The mode is detected and cycled until the available fan operating mode is obtained; in case all fan operating modes are unavailable, the alarm module is required to implement the alarm.
告警模块, 用于在所有风扇运行模式都不可用的情况下, 关闭所述自 动风扇模式, 切换为所述手动风扇模式, 打开全部风扇, 根据处于异常状 态下的风扇的 ID进行统一告警; 在所述手动风扇模式下检测到某一风扇的 运行由异常状态变为正常状态时, 撤销该风扇的告警, 并在检测到本次是 自动由所述自动风扇模式切换为所述手动风扇模式的情况下, 恢复为所述 自动风扇模式; 在所述自动风扇模式下检测到某一风扇运行模式中的风扇 由异常状态变为正常状态时, 4敦销该风扇的告警, 并去除该风扇运行模式 的错误标识(详细处理可参照图 5、 图 6、 图 7 )。 An alarm module, configured to close the self when all fan operating modes are unavailable In the fan mode, switch to the manual fan mode, turn on all fans, and perform unified alarm according to the ID of the fan in the abnormal state; in the manual fan mode, it is detected that the operation of a certain fan changes from abnormal state to normal state. At the same time, the alarm of the fan is cancelled, and when it is detected that the automatic fan mode is automatically switched to the manual fan mode, the automatic fan mode is restored; the automatic fan mode is detected. When the fan in a certain fan operation mode changes from the abnormal state to the normal state, the fan alarm is cancelled and the error flag of the fan operation mode is removed (refer to FIG. 5, FIG. 6, and FIG. 7 for detailed processing).
具体地说, 为了避免网管的风扇告警的压力, 本发明实施例的技术方 案采用了一种优化流程: 如果某一风扇状态异常, 则切换模式, 如果切换 的其他模式可运行, 则不告警; 一直到所有模式都不可用时, 首先关闭自 动风扇功能, 切换为手控风扇, 并且打开全部风扇, 然后根据风扇的 ID进 如果过一段时间后检测时发现某一风扇运转又正常了, 则恢复该风扇 告警, 并同时检测本次是人工切换为手动控制还是自动切换为手动控制, 如果是自动切换为手动控制, 则恢复自动风扇功能, 并清除所有数据。  Specifically, in order to avoid the pressure of the fan alarm of the network management, the technical solution of the embodiment of the present invention adopts an optimization process: if a certain fan state is abnormal, the mode is switched, and if other modes of the switch are operable, no alarm is generated; Until all modes are unavailable, first turn off the automatic fan function, switch to the manual fan, and turn on all the fans, and then according to the ID of the fan, if it is detected after a period of time, it is found that a certain fan is running normally, then restore the The fan alarms and detects whether the switch is manually switched to manual control or automatically to manual control. If it is automatically switched to manual control, the automatic fan function is restored and all data is cleared.
如果在自动风扇模式下, 又有风扇运转正常了, 这时需要执行如图 7 所示的流程检测风扇告警恢复。  If the fan is running normally in the automatic fan mode, you need to perform the process shown in Figure 7 to detect the fan alarm recovery.
综上所述, 借助于本发明实施例的技术方案, 通过根据环境温度和设 备用户使用数二维入参来确定对多风扇的打开 /关闭以及确定打开的风扇数 目, 解决了现有技术中的风扇控制方法不能够根据当前的环境需求准确的 控制风扇的开启和关闭的问题, 能够根据环境需求控制风扇, 提高风扇控 制的可靠性和准确性。  In summary, the technical solution of the embodiment of the present invention solves the problem of determining the opening/closing of the multi-fan and determining the number of open fans according to the ambient temperature and the two-dimensional input of the device user. The fan control method cannot accurately control the opening and closing of the fan according to the current environmental requirements, and can control the fan according to environmental requirements, thereby improving the reliability and accuracy of the fan control.
尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人 员将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当 不限于上述实施例。  While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.

Claims

权利要求书 Claim
1、 一种全自动风扇控制方法, 其特征在于, 该方法包括:  A fully automatic fan control method, characterized in that the method comprises:
获取设备温度以及使用所述设备的用户个数;  Obtaining the temperature of the device and the number of users using the device;
根据所述设备温度、 所述用户个数、 以及预先制定的风扇控制表和风 扇运行模式表, 确定风扇运行个数以及风扇运行模式;  Determining the number of fan operations and the fan operating mode according to the device temperature, the number of users, and a pre-defined fan control table and a fan operating mode table;
根据确定的所述风扇运行个数以及所述风扇运行模式, 对风扇的运行 进行控制。  The operation of the fan is controlled according to the determined number of fan runs and the fan operating mode.
2、 如权利要求 1所述的方法, 其特征在于, 所述获取设备温度以及使 用所述设备的用户个数之前, 该方法还包括:  2. The method according to claim 1, wherein the method further comprises: before acquiring the device temperature and the number of users of the device, the method further comprising:
从手动风扇模式和自动风扇模式中选择所述自动风扇模式。  The automatic fan mode is selected from the manual fan mode and the automatic fan mode.
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据确定的所述 风扇运行个数以及所述风扇运行模式, 对风扇的运行进行控制之后, 该方 法还包括:  The method according to claim 1 or 2, wherein after the controlling the operation of the fan according to the determined number of fan runs and the fan operating mode, the method further comprises:
根据当前设备温度、 当前使用所述设备的用户个数、 以及当前风扇运 行模式的运行时间,对所述风扇运行个数和 /或所述风扇运行模式进行切换; 在检测到当前风扇运行模式中的一个或多个风扇出现运行异常的情况 下, 自动对所述风扇运行模式进行切换, 并将所述当前风扇运行模式进行 错误标识。  Switching the number of fan runs and/or the fan operating mode according to the current device temperature, the number of users currently using the device, and the running time of the current fan operating mode; when the current fan operating mode is detected In the case where one or more fans of the operation abnormality occur, the fan operation mode is automatically switched, and the current fan operation mode is erroneously identified.
4、 如权利要求 3所述的方法, 其特征在于, 所述对所述风扇运行模式 进行切换的切换规则为: 选择除当前风扇运行模式、 以及带有错误标识的 风扇运行模式外, 运行总时间最少的风扇运行模式。  The method according to claim 3, wherein the switching rule for switching the fan operating mode is: selecting a running mode other than a current fan operating mode and a fan operating mode with an error flag. The fan mode of operation with the least amount of time.
5、 如权利要求 3所述的方法, 其特征在于, 所述在所有风扇运行模式 都不可用的情况下, 该方法还包括:  The method according to claim 3, wherein, in a case that all fan operating modes are unavailable, the method further includes:
关闭所述自动风扇模式, 切换为所述手动风扇模式, 打开全部风扇, 根据处于异常状态下的风扇的 ID进行统一告警; 在所述手动风扇模式下检测到有风扇的运行由异常状态变为正常状态 时, 撤销该风扇的告警, 并在检测到本次是自动由所述自动风扇模式切换 为所述手动风扇模式的情况下, 恢复为所述自动风扇模式; Turning off the automatic fan mode, switching to the manual fan mode, turning on all fans, and performing unified alarm according to the ID of the fan in an abnormal state; When it is detected in the manual fan mode that the operation of the fan changes from the abnormal state to the normal state, the alarm of the fan is cancelled, and it is detected that the automatic fan mode is automatically switched to the manual fan mode. In case, return to the automatic fan mode;
在所述自动风扇模式下检测有某风扇运行模式中的风扇由异常状态变 为正常状态时, 撤销该风扇的告警, 并去除该风扇运行模式的错误标识。  When it is detected in the automatic fan mode that the fan in the fan operating mode changes from the abnormal state to the normal state, the alarm of the fan is cancelled, and the error identifier of the fan operating mode is removed.
6、 如权利要求 1所述的方法, 其特征在于,  6. The method of claim 1 wherein:
所述风扇控制表包括: 所述用户个数、 所述设备温度的范围、 以及风 扇运行个数之间的对应关系;  The fan control table includes: a correspondence between the number of users, a range of the device temperature, and a number of fan operations;
所述风扇运行模式表包括: 所述风扇运行个数和所述风扇运行模式之 间的对应关系。  The fan operation mode table includes: a correspondence between the number of fan operations and the fan operation mode.
7、 一种全自动风扇控制装置, 其特征在于, 该装置包括: 处理模块, 用于根据所述设备温度、 所述用户个数、 以及预先制定的 风扇控制表和风扇运行模式表, 确定风扇运行个数以及风扇运行模式; 控制模块, 用于根据确定的所述风扇运行个数以及所述风扇运行模式, 对风扇的运行进行控制。  A fully automatic fan control device, the device comprising: a processing module, configured to determine a fan according to the device temperature, the number of users, and a pre-defined fan control table and a fan operation mode table The running number and the fan operating mode; the control module is configured to control the running of the fan according to the determined number of fan runs and the fan operating mode.
8、 如权利要求 7所述的装置, 其特征在于, 该装置还包括: 前, 从手动风扇模式和自动风扇模式中选择所述自动风扇模式;  8. The apparatus according to claim 7, wherein the apparatus further comprises: front, selecting the automatic fan mode from a manual fan mode and an automatic fan mode;
切换模块, 用于根据当前设备温度、 当前使用所述设备的用户个数、 以及当前风扇运行模式的运行时间, 对所述风扇运行个数和 /或所述风扇运 行模式进行切换; 并在检测到当前风扇运行模式中的一个或多个风扇出现 运行异常的情况下, 自动对所述风扇运行模式进行切换, 并将所述当前风 扇运行模式进行错误标识。  a switching module, configured to switch the number of fan operations and/or the fan operating mode according to a current device temperature, a number of users currently using the device, and a running time of a current fan operating mode; In the event that one or more fans in the current fan operating mode are abnormal in operation, the fan operating mode is automatically switched, and the current fan operating mode is erroneously identified.
9、 如权利要求 8所述的装置, 其特征在于, 该装置还包括: 告警模块, 用于在所有风扇运行模式都不可用的情况下, 关闭所述自 动风扇模式, 切换为所述手动风扇模式, 打开全部风扇, 根据处于异常状 态下的风扇的 ID进行统一告警; 在所述手动风扇模式下检测到有风扇的运 行由异常状态变为正常状态时, 撤销该风扇的告警, 并在检测到本次是自 动由所述自动风扇模式切换为所述手动风扇模式的情况下, 恢复为所述自 动风扇模式; 在所述自动风扇模式下检测到有风扇运行模式中的风扇由异 常状态变为正常状态时, ·ί敦销该风扇的告警, 并去除该风扇运行模式的错 误标识。 9. The device according to claim 8, wherein the device further comprises: The alarm module is configured to: when all fan operating modes are unavailable, turn off the automatic fan mode, switch to the manual fan mode, turn on all fans, and perform unified alarm according to the ID of the fan in an abnormal state; When it is detected in the manual fan mode that the operation of the fan changes from the abnormal state to the normal state, the alarm of the fan is cancelled, and when it is detected that the automatic fan mode is automatically switched to the manual fan mode. And returning to the automatic fan mode; when the fan in the fan running mode is detected to change from the abnormal state to the normal state in the automatic fan mode, the fan alarm is cancelled, and the fan operating mode is removed. The wrong identifier.
10、 如权利要求 9所述的装置, 其特征在于,  10. Apparatus according to claim 9 wherein:
所述对所述风扇运行模式进行切换的切换规则为: 选择除当前风扇运 行模式、 以及带有错误标识的风扇运行模式外, 运行总时间最少的风扇运 行模式;  The switching rule for switching the fan operation mode is: selecting a fan operation mode with a minimum total running time except the current fan operation mode and a fan operation mode with an incorrect identifier;
所述风扇控制表包括: 所述用户个数、 所述设备温度的范围、 以及风 扇运行个数之间的对应关系;  The fan control table includes: a correspondence between the number of users, a range of the device temperature, and a number of fan operations;
所述风扇运行模式表包括: 所述风扇运行个数和所述风扇运行模式之 间的对应关系。  The fan operation mode table includes: a correspondence between the number of fan operations and the fan operation mode.
PCT/CN2011/079598 2010-11-22 2011-09-14 Control method and device for full-automatic fan WO2012068916A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010553074.X 2010-11-22
CN201010553074.XA CN102478004B (en) 2010-11-22 2010-11-22 Full-automatic fan control method and device

Publications (1)

Publication Number Publication Date
WO2012068916A1 true WO2012068916A1 (en) 2012-05-31

Family

ID=46090743

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079598 WO2012068916A1 (en) 2010-11-22 2011-09-14 Control method and device for full-automatic fan

Country Status (2)

Country Link
CN (1) CN102478004B (en)
WO (1) WO2012068916A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104154023A (en) * 2014-08-18 2014-11-19 深圳市杰和科技发展有限公司 Intelligent control system and method for multiple fans of display card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1854528A (en) * 2005-04-26 2006-11-01 台达电子工业股份有限公司 Fan module and its controller
US20060266510A1 (en) * 2005-05-24 2006-11-30 Kabushiki Kaisha Toshiba Information processing apparatus and a method of controlling the same
CN101192065A (en) * 2006-11-20 2008-06-04 中兴通讯股份有限公司 Heat radiating fan control device and method
US20090116189A1 (en) * 2007-11-06 2009-05-07 Compucase Enterprise Co., Ltd. (Taiwan) Cooling System for a Computer Power Supply Unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979432A (en) * 2005-12-01 2007-06-13 新巨企业股份有限公司 Fan rotation-speed control method and its frame
CN101097452A (en) * 2006-06-30 2008-01-02 乐金电子(昆山)电脑有限公司 Method for controlling heat radiating driven and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1854528A (en) * 2005-04-26 2006-11-01 台达电子工业股份有限公司 Fan module and its controller
US20060266510A1 (en) * 2005-05-24 2006-11-30 Kabushiki Kaisha Toshiba Information processing apparatus and a method of controlling the same
CN101192065A (en) * 2006-11-20 2008-06-04 中兴通讯股份有限公司 Heat radiating fan control device and method
US20090116189A1 (en) * 2007-11-06 2009-05-07 Compucase Enterprise Co., Ltd. (Taiwan) Cooling System for a Computer Power Supply Unit

Also Published As

Publication number Publication date
CN102478004B (en) 2015-09-16
CN102478004A (en) 2012-05-30

Similar Documents

Publication Publication Date Title
CN105783198B (en) Air conditioner and its fault display method
WO2017198025A1 (en) Method, apparatus for processing power consumption of an application programme, calculation device and machine readable storage medium
CN109992600B (en) Response method and device for equipment fault
CN104699589B (en) Fan fault detection system and method
CN102681909B (en) A kind of server method for early warning based on EMS memory error
WO2016000624A1 (en) Protection method and apparatus used for air-conditioning air guide plate
CN106440278A (en) Air conditioner and air conditioner electrical heating protection method and device
US20120136970A1 (en) Computer system and method for managing computer device
US9399997B2 (en) Method for detecting heat-dissipating air flow and electronic device using the same
WO2014169869A1 (en) Alarm processing method and alarm system
CN103185015A (en) Fan abnormity alarm system and method
CN110750413A (en) Multi-machine room temperature alarm method and device and storage medium
CN109582536B (en) Application program non-response reporting method and device and computer equipment
US10496128B2 (en) Method for obtaining timestamp and computer device using the same
EP2135144A1 (en) Machine condition monitoring using pattern rules
WO2018103185A1 (en) Fault processing method, computer system, baseboard management controller and system
WO2012068916A1 (en) Control method and device for full-automatic fan
CN110579674B (en) Fault detection circuit with simplified structure, fault judgment method and equipment
WO2024060699A1 (en) Method and apparatus for controlling dehumidifier, and dehumidifier and storage medium
WO2024041005A1 (en) Method and apparatus for detecting refrigerant anomaly, air conditioner, and storage medium
US8060332B2 (en) Method for testing sensor function and computer program product thereof
CN107179911A (en) A kind of method and apparatus for restarting management engine
CN115016329A (en) Control method, control device and electronic equipment
CN115080132A (en) Information processing method, information processing apparatus, server, and storage medium
CN110940032A (en) Power module temperature detection control method and device, storage medium and air conditioner

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11843778

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11843778

Country of ref document: EP

Kind code of ref document: A1