CN115898932A - Fan, operation method thereof, electronic device and readable storage medium - Google Patents

Fan, operation method thereof, electronic device and readable storage medium Download PDF

Info

Publication number
CN115898932A
CN115898932A CN202310001390.3A CN202310001390A CN115898932A CN 115898932 A CN115898932 A CN 115898932A CN 202310001390 A CN202310001390 A CN 202310001390A CN 115898932 A CN115898932 A CN 115898932A
Authority
CN
China
Prior art keywords
controller
signal
fan
pwm
rotor
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
CN202310001390.3A
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 CN202310001390.3A priority Critical patent/CN115898932A/en
Publication of CN115898932A publication Critical patent/CN115898932A/en
Priority to CN202311837497.8A priority patent/CN118391289A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/02Units comprising pumps and their driving means
    • F04D25/08Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K7/00Arrangements for handling mechanical energy structurally associated with dynamo-electric machines, e.g. structural association with mechanical driving motors or auxiliary dynamo-electric machines
    • H02K7/14Structural association with mechanical loads, e.g. with hand-held machine tools or fans
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K7/00Constructional details common to different types of electric apparatus
    • H05K7/20Modifications to facilitate cooling, ventilating, or heating
    • H05K7/20009Modifications to facilitate cooling, ventilating, or heating using a gaseous coolant in electronic enclosures
    • H05K7/20209Thermal management, e.g. fan control
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K7/00Constructional details common to different types of electric apparatus
    • H05K7/20Modifications to facilitate cooling, ventilating, or heating
    • H05K7/20709Modifications to facilitate cooling, ventilating, or heating for server racks or cabinets; for data centers, e.g. 19-inch computer racks
    • H05K7/20836Thermal management, e.g. server temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Mechanical Engineering (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Electric Motors In General (AREA)
  • Information Transfer Systems (AREA)

Abstract

The embodiment of the invention provides a fan and an operation method thereof, electronic equipment and a readable storage medium, wherein the fan comprises a driving circuit, a controller and a motor, the driving circuit drives a rotor of the motor to rotate, the controller is connected with an upper end, a fan management bus control protocol is arranged at the controller and the upper end, a working mode is arranged on the fan management bus control protocol, and the working mode comprises a PWM (pulse-width modulation) control mode and a command control mode; when the working mode of the controller and the upper end is a PWM control mode, the rotor rotating speed of the rotor is controlled by a PWM signal sent to the controller by the upper end, and the rotor rotating speed of the rotor corresponding to the controller is fed back by a TACH signal output to the upper end by the controller; and when the working mode of the controller and the upper terminal is a command control mode, the CLK signal and the DAT signal are sent to the controller through the upper terminal, so that the controller executes a control command formed by the CLK signal and the DAT signal.

Description

一种风扇及其运行方法、电子设备及可读存储介质A fan and its operating method, electronic device and readable storage medium

技术领域technical field

本发明实施例涉及通信技术领域,特别是涉及一种风扇及其运行方法、一种电子设备以及一种计算机可读存储介质。The embodiments of the present invention relate to the field of communication technologies, and in particular, relate to a fan and its operating method, an electronic device, and a computer-readable storage medium.

背景技术Background technique

目前,服务器结构紧凑且发热量大,内部有多个散热风扇进行主动散热,风扇的稳定工作对服务器的正常运行至关重要,常见的服务器散热风扇由主板12V电源供电,并通过主板上的BMC(Baseboard Management Controller 基板管理控制器)或CPLD(ComplexProgrammable Logic Device 可编程逻辑器件)进行调速控制和转速读取。At present, the server is compact in structure and generates a lot of heat. There are multiple cooling fans inside for active cooling. The stable operation of the fans is crucial to the normal operation of the server. Common server cooling fans are powered by the 12V power supply of the motherboard and are powered by the BMC on the motherboard. (Baseboard Management Controller Baseboard Management Controller) or CPLD (Complex Programmable Logic Device Programmable Logic Device) for speed control and speed reading.

随着服务器管理系统的不断升级,对服务器运行状态的监测不断细化,但目前使用的服务器散热风扇大多只有转速信息的反馈,通常是上位端通过TACH(Tachometer 转速计)信号以获取风扇的转速信息,因此,只能通过转速间接判断风扇的工作状态,无法满足服务器越来越精细的运行状态监测需求。另外,部分风扇通过增加信号线的方式来指示风扇运行状态,例如增加“故障信号”用于指示风扇工作是否有异常,增加“调速完成信号”用于指示风扇转速达到设定值。但是增加信号线需要改变现有硬件接口,无法与现有系统兼容。With the continuous upgrade of the server management system, the monitoring of the server's operating status is continuously refined, but most of the server cooling fans currently used only have the feedback of the speed information, usually the upper end obtains the fan speed through the TACH (Tachometer tachometer) signal Therefore, the working status of the fan can only be judged indirectly through the rotational speed, which cannot meet the more and more sophisticated monitoring requirements of the server's running status. In addition, some fans indicate the running status of the fan by adding signal lines, such as adding a "fault signal" to indicate whether the fan is working abnormally, and adding a "speed adjustment completion signal" to indicate that the fan speed has reached the set value. However, adding a signal line requires changing the existing hardware interface, which cannot be compatible with the existing system.

发明内容Contents of the invention

本发明实施例是提供一种风扇及其运行方法、电子设备以及计算机可读存储介质,以解决现有技术中只能通过转速间接判断风扇的工作状态,无法满足服务器越来越精细的运行状态监测需求,且改变现有硬件接口,无法与现有系统兼容的问题。Embodiments of the present invention provide a fan and its operating method, electronic equipment, and a computer-readable storage medium to solve the problem that in the prior art, the working state of the fan can only be judged indirectly through the rotational speed, which cannot satisfy the increasingly finer operating state of the server. Monitoring requirements, and changing the existing hardware interface, can not be compatible with the existing system.

本发明实施例公开了一种风扇,包括驱动电路、控制器和电机,所述驱动电路驱动所述电机的转子转动,所述控制器与上位端连接,所述控制器和所述上位端设置有风扇管理总线控制协议,所述风扇管理总线控制协议设置有工作模式,所述工作模式包括PWM控制模式和命令控制模式;The embodiment of the present invention discloses a fan, including a drive circuit, a controller and a motor, the drive circuit drives the rotor of the motor to rotate, the controller is connected to the upper end, and the controller and the upper end are set There is a fan management bus control protocol, the fan management bus control protocol is set with a working mode, and the working mode includes a PWM control mode and a command control mode;

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,通过所述上位端向所述控制器发送的PWM信号以控制所述转子的转子转速,并且,通过所述控制器向所述上位端输出的TACH信号以反馈所述控制器对应的所述转子的转子转速;When the working mode of the controller and the upper end is the PWM control mode, the PWM signal sent by the upper end to the controller is used to control the rotor speed of the rotor, and the controller outputting the TACH signal to the upper end to feed back the rotor speed of the rotor corresponding to the controller;

当所述控制器和所述上位端的工作模式为所述命令控制模式时,通过所述上位端向所述控制器发送的CLK信号和DAT信号,以使所述控制器执行所述CLK信号和所述DAT信号形成的控制命令。When the working mode of the controller and the upper end is the command control mode, the CLK signal and the DAT signal are sent to the controller through the upper end, so that the controller executes the CLK signal and the DAT signal. The DAT signal forms the control command.

可选地,包括:Optionally, include:

所述上位端通过PWM/CLK信号线接入所述控制器的PWM输入检测接口和双线串行通信的CLK接口,并且,所述上位端通过TACH/DAT信号线接入所述控制器的TACH信号输出接口和双线串行通信的DAT接口。The upper end is connected to the PWM input detection interface of the controller and the CLK interface of the two-wire serial communication through the PWM/CLK signal line, and the upper end is connected to the controller through the TACH/DAT signal line. TACH signal output interface and DAT interface for two-wire serial communication.

可选地,包括:Optionally, include:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,通过所述控制器的PWM输入检测接口接收所述上位端通过所述PWM/CLK信号线发送的PWM信号,以使所述控制器根据所述PWM信号控制所述转子的转子转速,并通过所述控制器的TACH信号输出接口向所述上位端的TACH/DAT信号线输出TACH信号,以向所述上位端反馈所述控制器对应的所述转子的转子转速;When the working mode of the controller and the upper end is the PWM control mode, the PWM signal sent by the upper end through the PWM/CLK signal line is received through the PWM input detection interface of the controller, so that The controller controls the rotor speed of the rotor according to the PWM signal, and outputs the TACH signal to the TACH/DAT signal line of the upper end through the TACH signal output interface of the controller, so as to feed back the TACH signal to the upper end. The rotor speed of the rotor corresponding to the controller;

当所述控制器和所述上位端的工作模式为所述命令控制模式时,所述控制器通过所述控制器的双线串行通信的CLK接口接收所述上位端通过所述PWM/CLK信号线发送的CLK信号,以及,所述控制器通过所述控制器的双线串行通信的DAT接口接收所述上位端通过所述TACH/DAT信号线发送的DAT信号,以使所述控制器执行所述CLK信号和所述DAT信号形成的控制命令。When the working mode of the controller and the upper end is the command control mode, the controller receives the PWM/CLK signal from the upper end through the CLK interface of the two-wire serial communication of the controller The CLK signal sent by the line, and the controller receives the DAT signal sent by the upper end through the TACH/DAT signal line through the DAT interface of the two-wire serial communication of the controller, so that the controller Execute the control command formed by the CLK signal and the DAT signal.

可选地,所述控制器用于根据所述转子的转子位置和采样信号,生成所述电机的驱动信号,以根据所述驱动信号控制所述驱动电路驱动所述电机转动所述转子;其中,所述采样信号至少为电压和/或电流信号。Optionally, the controller is configured to generate a drive signal of the motor according to the rotor position of the rotor and a sampling signal, so as to control the drive circuit to drive the motor to rotate the rotor according to the drive signal; wherein, The sampling signal is at least a voltage and/or current signal.

可选地,所述PWM信号包含PWM信号占空比,所述PWM信号占空比用于控制所述转子的转子转速。Optionally, the PWM signal includes a duty ratio of the PWM signal, and the duty ratio of the PWM signal is used to control the rotor speed of the rotor.

可选地,所述通过所述上位端向所述控制器发送的PWM信号以控制所述转子的转子转速,包括:Optionally, the PWM signal sent to the controller through the upper end to control the rotor speed of the rotor includes:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,所述上位端向所述控制器发送PWM信号;When the working mode of the controller and the upper end is the PWM control mode, the upper end sends a PWM signal to the controller;

根据所述PWM信号中的PWM信号占空比,控制所述控制器对应的转子的转子转速。According to the duty ratio of the PWM signal in the PWM signal, the rotor speed of the rotor corresponding to the controller is controlled.

可选地,所述通过所述控制器向所述上位端输出的TACH信号以反馈所述控制器对应的所述转子的转子转速,包括:Optionally, the TACH signal output by the controller to the upper end to feed back the rotor speed of the rotor corresponding to the controller includes:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,所述控制器向所述上位端发送TACH信号;When the working mode of the controller and the upper end is the PWM control mode, the controller sends a TACH signal to the upper end;

测量所述TACH信号的TACH信号频率,得到所述转子的转子转速。The frequency of the TACH signal of the TACH signal is measured to obtain the rotor speed of the rotor.

可选地,包括:Optionally, include:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,在预设单位时间内,所述上位端向所述控制器发送PWM信号;其中,多个PWM信号中的PWM信号占空比构成PWM信号占空比序列;When the working mode of the controller and the upper end is the PWM control mode, within the preset unit time, the upper end sends a PWM signal to the controller; wherein, the PWM signal among the plurality of PWM signals The duty cycle constitutes a PWM signal duty cycle sequence;

所述控制器监听所述PWM信号占空比序列是否为第一预设PWM信号占空比序列;The controller monitors whether the PWM signal duty ratio sequence is the first preset PWM signal duty ratio sequence;

若所述PWM信号占空比序列是第一预设PWM信号占空比序列,则确定所述PWM信号包含握手信息;If the PWM signal duty cycle sequence is a first preset PWM signal duty cycle sequence, then determine that the PWM signal contains handshake information;

所述控制器针对所述握手信息向所述上位端返回应答信息;其中,所述应答信息包含验证信息,所述验证信息用于验证所述应答信息是否正确;The controller returns response information to the upper end for the handshake information; wherein the response information includes verification information, and the verification information is used to verify whether the response information is correct;

若验证所述应答信息为正确,则所述上位端向所述控制器发送模式切换信号;If it is verified that the response information is correct, the upper end sends a mode switching signal to the controller;

根据所述模式切换信号,将所述PWM控制模式切换至命令控制模式。The PWM control mode is switched to a command control mode according to the mode switching signal.

可选地,所述应答信息为预设的TACH信号频率序列,所述模式切换信号为预设的第二PWM信号占空比序列。Optionally, the response information is a preset TACH signal frequency sequence, and the mode switching signal is a preset second PWM signal duty cycle sequence.

可选地,包括:Optionally, include:

若所述控制器针对所述PWM信号无返回应答信息,则所述上位端再次向所述控制器发送PWM信号;If the controller does not return response information for the PWM signal, the upper end sends the PWM signal to the controller again;

若所述控制器对再次发送的所述PWM信号无返回应答信息,则所述控制器不支持所述命令控制模式,并且,所述控制器和所述上位端保持所述PWM控制模式。If the controller does not return response information to the resent PWM signal, the controller does not support the command control mode, and the controller and the upper end maintain the PWM control mode.

可选地,包括:Optionally, include:

在预设单位时间内,若所述控制器未接收到包含所述握手信息的PWM信号,则所述上位端不支持所述命令控制模式,并且,所述控制器和所述上位端保持所述PWM控制模式。Within a preset unit time, if the controller does not receive the PWM signal containing the handshake information, the upper end does not support the command control mode, and the controller and the upper end maintain the The PWM control mode described above.

可选地,在所述根据所述模式切换信号,将所述PWM控制模式切换至命令控制模式之后,还包括:Optionally, after switching the PWM control mode to the command control mode according to the mode switching signal, the method further includes:

当所述控制器和所述上位端的工作模式为所述命令控制模式时,所述上位端以预设单位时间间隔向所述控制器发送查询命令;其中,所述查询命令用于检查数据通信是否畅通;When the working mode of the controller and the upper end is the command control mode, the upper end sends a query command to the controller at a preset unit time interval; wherein the query command is used to check data communication Whether it is smooth;

若所述控制器向所述上位端发送应答信息所对应的应答时间超过预设应答时间,则所述上位端再次向所述控制器发送查询命令;If the response time corresponding to the response information sent by the controller to the upper end exceeds the preset response time, the upper end sends a query command to the controller again;

若所述控制器针对所述查询命令的应答时间再次超过预设应答时间,则所述上位端切换为所述PWM控制模式。If the response time of the controller to the query command exceeds the preset response time again, the upper end switches to the PWM control mode.

可选地,在所述若所述控制器针对所述查询命令的应答时间再次超过预设应答时间,则所述上位端切换为所述PWM控制模式之后,还包括:Optionally, after the controller switches to the PWM control mode if the response time of the controller to the query command exceeds the preset response time again, the method further includes:

若所述控制器仍处于所述命令控制模式,在超过预设单位时间后,所述控制器自动切换至所述PWM控制模式,并以所述PWM信号占空比对所述控制器对应的转子进行调速。If the controller is still in the command control mode, after exceeding the preset unit time, the controller will automatically switch to the PWM control mode, and use the duty cycle of the PWM signal to control the corresponding Rotor speed regulation.

可选地,所述控制命令用于获取风扇的基础信息,所述风扇的基础信息至少包括:风扇型号、制造商代码、风扇ID、硬软件版本、最高转速、最低转速、额定电压、额定功率、额定风量以及额定静压。Optionally, the control command is used to obtain the basic information of the fan, and the basic information of the fan includes at least: fan model, manufacturer code, fan ID, hardware and software version, maximum speed, minimum speed, rated voltage, rated power , rated air volume and rated static pressure.

可选地,所述控制命令还用于获取风扇的实时运行数据,所述风扇的实时运行数据至少包括:目标转速、实际转速、转向、调速完成标志、电压、电流、功率、风压以及运行时长。Optionally, the control command is also used to obtain real-time operation data of the fan, the real-time operation data of the fan at least includes: target speed, actual speed, steering direction, speed adjustment completion flag, voltage, current, power, wind pressure and Run time.

可选地,所述控制命令还用于获取风扇的故障信息,所述风扇的故障信息至少包括:霍尔故障、MOS故障、过压、欠压、过流以及堵转。Optionally, the control command is further used to obtain fan fault information, and the fan fault information includes at least: Hall fault, MOS fault, overvoltage, undervoltage, overcurrent and locked rotor.

可选地,所述控制命令还用于修改风扇参数,所述风扇参数至少包括:自定义的最高转速、最低转速、最大电流、占空比转速系数以及无控制信号时的默认转速。Optionally, the control command is also used to modify fan parameters, and the fan parameters at least include: a user-defined maximum rotation speed, a minimum rotation speed, a maximum current, a duty ratio rotation speed coefficient, and a default rotation speed when there is no control signal.

本发明实施例还公开了一种风扇运行的方法,所述风扇包括驱动电路、控制器和电机,所述驱动电路驱动所述电机的转子转动,所述控制器与上位端连接,所述控制器和所述上位端设置有风扇管理总线控制协议,所述风扇管理总线控制协议设置有工作模式,所述工作模式包括PWM控制模式和命令控制模式,所述方法包括:The embodiment of the invention also discloses a fan operation method, the fan includes a drive circuit, a controller and a motor, the drive circuit drives the rotor of the motor to rotate, the controller is connected to the upper end, the control The controller and the upper end are provided with a fan management bus control protocol, and the fan management bus control protocol is provided with a working mode, the working mode includes a PWM control mode and a command control mode, and the method includes:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,通过所述上位端向所述控制器发送的PWM信号以控制所述转子的转子转速,并且,通过所述控制器向所述上位端输出TACH信号以反馈所述控制器对应的所述转子的转子转速;When the working mode of the controller and the upper end is the PWM control mode, the PWM signal sent by the upper end to the controller is used to control the rotor speed of the rotor, and the controller Outputting a TACH signal to the upper end to feed back the rotor speed of the rotor corresponding to the controller;

当所述控制器和所述上位端的工作模式为所述命令控制模式时,通过所述上位端向所述控制器发送的CLK信号和DAT信号,以使所述控制器执行所述CLK信号和所述DAT信号形成的控制命令。When the working mode of the controller and the upper end is the command control mode, the CLK signal and the DAT signal are sent to the controller through the upper end, so that the controller executes the CLK signal and the DAT signal. The DAT signal forms the control command.

本发明实施例还公开了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口以及所述存储器通过所述通信总线完成相互间的通信;The embodiment of the present invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;

所述存储器,用于存放计算机程序;The memory is used to store computer programs;

所述处理器,用于执行存储器上所存放的程序时,实现如本发明实施例所述的方法。The processor is configured to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

本发明实施例还公开了一种计算机可读存储介质,其上存储有指令,当由一个或多个处理器执行时,使得所述处理器执行如本发明实施例所述的方法。The embodiment of the present invention also discloses a computer-readable storage medium, on which instructions are stored, and when executed by one or more processors, the processors execute the method described in the embodiment of the present invention.

本发明实施例包括以下优点:Embodiments of the present invention include the following advantages:

在本发明实施例中,提供了一种风扇,包括驱动电路、控制器和电机,驱动电路驱动电机的转子转动,控制器与上位端连接,其中,控制器和上位端设置有风扇管理总线控制协议,风扇管理总线控制协议设置有工作模式,工作模式包括PWM控制模式和命令控制模式;当控制器和上位端的工作模式为PWM控制模式时,通过上位端向控制器发送的PWM信号以控制转子的转子转速,并且,通过控制器向上位端输出的TACH信号以反馈控制器对应的转子的转子转速;当控制器和上位端的工作模式为命令控制模式时,通过上位端向控制器发送的CLK信号和DAT信号,以使控制器执行CLK信号和DAT信号形成的控制命令。通过上述本发明实施例提供的风扇,无需改变现有上位端的硬件电路和接口,通过复用现有信号线以开发风扇管理总线控制协议,增加上位端与风扇的控制器间的通信控制功能,保证了与现有系统的兼容性,另外,通过控制器执行CLK信号和DAT信号形成的控制命令,可以获取风扇的详细运行数据,能够更好地监测风扇的运行状态。In an embodiment of the present invention, a fan is provided, including a drive circuit, a controller and a motor, the drive circuit drives the rotor of the motor to rotate, the controller is connected to the upper end, wherein the controller and the upper end are provided with a fan management bus control Protocol, the fan management bus control protocol is set with a working mode, the working mode includes PWM control mode and command control mode; when the working mode of the controller and the upper end is PWM control mode, the PWM signal sent to the controller by the upper end to control the rotor The rotor speed of the rotor, and the TACH signal output by the controller to the upper end is used to feed back the rotor speed of the rotor corresponding to the controller; when the working mode of the controller and the upper end is command control mode, the CLK sent to the controller by the upper end signal and DAT signal, so that the controller executes the control command formed by CLK signal and DAT signal. The fan provided by the above-mentioned embodiments of the present invention does not need to change the hardware circuit and interface of the existing upper end, and develops the fan management bus control protocol by multiplexing the existing signal lines, increasing the communication control function between the upper end and the controller of the fan, Compatibility with the existing system is guaranteed. In addition, the detailed operation data of the fan can be obtained through the controller to execute the control command formed by the CLK signal and the DAT signal, and the operation status of the fan can be better monitored.

附图说明Description of drawings

图1是本发明实施例中提供的一种现有风扇控制方案示意图;FIG. 1 is a schematic diagram of an existing fan control scheme provided in an embodiment of the present invention;

图2是本发明实施例中提供的一种现有风扇内部结构示意图;Fig. 2 is a schematic diagram of the internal structure of a conventional fan provided in an embodiment of the present invention;

图3是本发明实施例中提供的一种风扇的结构示意图;Fig. 3 is a schematic structural diagram of a fan provided in an embodiment of the present invention;

图4是本发明实施例中提供的一种风扇内部结构示意图;Fig. 4 is a schematic diagram of the internal structure of a fan provided in an embodiment of the present invention;

图5是本发明实施例中提供的一种风扇控制模式的切换流程示意图;FIG. 5 is a schematic diagram of a switching flow of a fan control mode provided in an embodiment of the present invention;

图6是本发明实施例中提供的一种风扇的运行方法的步骤流程图;Fig. 6 is a flowchart of steps of a method for operating a fan provided in an embodiment of the present invention;

图7是本发明实施例中提供的一种计算机可读存储介质的结构示意图;FIG. 7 is a schematic structural diagram of a computer-readable storage medium provided in an embodiment of the present invention;

图8是实现本发明各个实施例的一种电子设备的硬件结构示意图。Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.

附图标记:1、风扇;2、驱动电路;3、控制器;4、电机; 5、上位端。Reference signs: 1. fan; 2. drive circuit; 3. controller; 4. motor; 5. upper end.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

为了使本领域技术人员更好地理解本发明实施例的技术方案,下面对本发明实施例中涉及的部分技术特征进行解释、说明:In order to enable those skilled in the art to better understand the technical solutions of the embodiments of the present invention, some technical features involved in the embodiments of the present invention are explained below:

BMC(Baseboard Management Controller 基板管理控制器),其为嵌入在计算机(通常是服务器)主板上的专用微控制器,BMC负责管理系统管理软件和平台硬件之间的接口。BMC (Baseboard Management Controller Baseboard Management Controller), which is a dedicated microcontroller embedded on the motherboard of a computer (usually a server), BMC is responsible for managing the interface between the system management software and the platform hardware.

CPLD(Complex Programmable Logic Device 可编程逻辑器件),其为一种用户根据各自需要而自行构造逻辑功能的数字集成电路,其基本设计方法是借助集成开发软件平台,用原理图、硬件描述语言等方法,生成相应的目标文件,通过下载电缆将代码传送到目标芯片中,以实现设计的数字系统。CPLD (Complex Programmable Logic Device Programmable Logic Device), which is a digital integrated circuit in which users can construct logic functions according to their own needs, and its basic design method is to use integrated development software platforms, schematic diagrams, hardware description languages, etc. , generate the corresponding target file, and transfer the code to the target chip through the download cable to realize the designed digital system.

作为一种示例,随着服务器管理系统的不断升级,对服务器运行状态的监测不断细化,但目前使用的服务器散热风扇大多只有转速信息的反馈,通常是上位端通过TACH(Tachometer 转速计)信号以获取风扇的转速信息,因此,只能通过转速间接判断风扇的工作状态,无法满足服务器越来越精细的运行状态监测需求。另外,部分风扇通过增加信号线的方式来指示风扇运行状态,例如增加“故障信号”用于指示风扇工作是否有异常,增加“调速完成信号”用于指示风扇转速达到设定值。但是增加信号线需要改变现有硬件接口,无法与现有系统兼容。As an example, with the continuous upgrade of the server management system, the monitoring of the server running status is continuously refined, but most of the server cooling fans currently used only have the feedback of the speed information, usually through the TACH (Tachometer tachometer) signal at the upper end Therefore, the working status of the fan can only be judged indirectly through the rotating speed, which cannot meet the more and more sophisticated monitoring requirements of the server's running status. In addition, some fans indicate the running status of the fan by adding signal lines, such as adding a "fault signal" to indicate whether the fan is working abnormally, and adding a "speed adjustment completion signal" to indicate that the fan speed has reached the set value. However, adding a signal line requires changing the existing hardware interface, which cannot be compatible with the existing system.

在现有的服务器系统中,服务器系统通常包含多个风扇,根据不同的散热需求,散热风扇可以选用单转子风扇或双转子风扇,双转子风扇结构上是由两个背对的单转子风扇组成,前后转子在工作原理上一致。In the existing server system, the server system usually includes multiple fans. According to different heat dissipation requirements, the cooling fan can be a single-rotor fan or a dual-rotor fan. The structure of the dual-rotor fan is composed of two back-to-back single-rotor fans. , the front and rear rotors work in the same principle.

参照图1,示出了本发明实施例中提供的一种现有风扇控制方案示意图,由图可知,在现有的方案中,风扇电源由主板的12V电源提供,在主板的风扇供电接口处设有eFuse(电子保险丝)进行过流保护,从而可以避免风扇出现过流、短路故障进而影响到主板的12V电源。图中的上位端可以表示为BMC/CPLD,BMC/CPLD与每个转子风扇间可以通过PWM(PWM(Pulse Width Modulation 脉冲宽度调制)信号线和TACH(Tachometer 转速计)信号线进行连接,其中,对于双转子风扇,前后转子的PWM信号线并联,TACH信号线各自独立,BMC/CPLD通过发送不同的PWM信号占空比给风扇以控制风扇的设定转速,同时BMC/CPLD通过读取风扇返回的TACH信号的频率,换算可以得到风扇的实际转速。Referring to Fig. 1, it shows a schematic diagram of an existing fan control scheme provided in an embodiment of the present invention. It can be seen from the figure that in the existing scheme, the fan power supply is provided by the 12V power supply of the motherboard, and at the fan power supply interface of the motherboard Equipped with eFuse (electronic fuse) for over-current protection, which can prevent the fan from over-current and short-circuit faults that will affect the 12V power supply of the motherboard. The upper end in the figure can be expressed as BMC/CPLD, and BMC/CPLD and each rotor fan can be connected through PWM (PWM (Pulse Width Modulation) signal line and TACH (Tachometer tachometer) signal line, among them, For a dual-rotor fan, the PWM signal lines of the front and rear rotors are connected in parallel, and the TACH signal lines are independent. The BMC/CPLD sends different PWM signal duty ratios to the fans to control the set speed of the fans. At the same time, the BMC/CPLD returns The frequency of the TACH signal can be converted to get the actual speed of the fan.

具体地,以现有的单转子风扇为例,散热风扇由扇叶及框体结构、电机以及控制电路组成,风扇电机通常采用的是无刷直流电机,驱动电路为三相半桥结构,由控制器进行控制。参照图2,示出了本发明实施例中提供的一种现有风扇内部结构示意图,如图中所示,控制器可以根据测算的转子位置和采样的电压电流等信号,计算并生成电机的驱动信号,从而控制风扇转动;其中,可以通过控制器的PWM输入引脚用于获取风扇的设定转速,控制器可以测量输入的PWM信号的PWM信号占空比,TACH信号可以用于输出风扇的实际转速,TACH信号的频率正比于风扇实际转速,上位端的BMC/CPLD可以通过测量TACH信号的频率即可换算得到风扇的实际转速。Specifically, taking the existing single-rotor fan as an example, the cooling fan is composed of fan blades and a frame structure, a motor, and a control circuit. The fan motor is usually a brushless DC motor, and the driving circuit is a three-phase half-bridge structure. controller to control. Referring to Fig. 2, it shows a schematic diagram of the internal structure of an existing fan provided in the embodiment of the present invention. As shown in the figure, the controller can calculate and generate Drive signal to control the rotation of the fan; among them, the PWM input pin of the controller can be used to obtain the set speed of the fan, the controller can measure the duty cycle of the PWM signal of the input PWM signal, and the TACH signal can be used to output the fan The actual speed of the TACH signal is proportional to the actual speed of the fan. The BMC/CPLD at the upper end can convert the actual speed of the fan by measuring the frequency of the TACH signal.

由上述可知,在现有风扇的控制方式中,上位端BMC/CPLD通过TACH信号获取风扇的转速信息,只能通过转速间接判断风扇的工作状态,无法满足服务器越来越精细的运行状态监测需求;另外,部分风扇通过增加信号线需要改变现有硬件接口,无法与现有系统兼容。It can be seen from the above that in the existing fan control mode, the upper-end BMC/CPLD obtains the speed information of the fan through the TACH signal, and can only indirectly judge the working status of the fan through the speed, which cannot meet the more and more refined running status monitoring requirements of the server. ; In addition, some fans need to change the existing hardware interface by adding signal lines, which cannot be compatible with the existing system.

对此,本发明的核心发明点之一在于,提供了一种风扇,包括控制器和电机,驱动电路驱动电机的转子转动,控制器与上位端连接,其中,控制器和上位端设置有风扇管理总线控制协议,风扇管理总线控制协议设置有工作模式,工作模式包括PWM控制模式和命令控制模式;当控制器和上位端的工作模式为PWM控制模式时,通过上位端向控制器发送的PWM信号以控制转子的转子转速,并且,通过控制器向上位端输出的TACH信号以反馈控制器对应的转子的转子转速;当控制器和上位端的工作模式为命令控制模式时,通过上位端向控制器发送的CLK信号和DAT信号,以使控制器执行CLK信号和DAT信号形成的控制命令。通过上述本发明实施例提供的风扇,无需改变现有上位端的硬件电路和接口,通过复用现有信号线以开发风扇管理总线控制协议,增加上位端与风扇的控制器间的通信控制功能,保证了与现有系统的兼容性,另外,通过控制器执行CLK信号和DAT信号形成的控制命令,可以获取风扇的详细运行数据,能够更好地监测风扇的运行状态。In this regard, one of the core inventive points of the present invention is to provide a fan, including a controller and a motor, the drive circuit drives the rotor of the motor to rotate, and the controller is connected to the upper end, wherein the controller and the upper end are provided with a fan Management bus control protocol, the fan management bus control protocol is set with working modes, the working modes include PWM control mode and command control mode; when the working mode of the controller and the upper end is PWM control mode, the PWM signal sent to the controller through the upper end To control the rotor speed of the rotor, and, through the TACH signal output by the controller to the upper end, feedback the rotor speed of the rotor corresponding to the controller; when the working mode of the controller and the upper end is command control mode, through the upper end to the controller Send the CLK signal and DAT signal to make the controller execute the control command formed by the CLK signal and DAT signal. The fan provided by the above-mentioned embodiments of the present invention does not need to change the hardware circuit and interface of the existing upper end, and develops the fan management bus control protocol by multiplexing the existing signal lines, increasing the communication control function between the upper end and the controller of the fan, Compatibility with the existing system is guaranteed. In addition, the detailed operation data of the fan can be obtained through the controller to execute the control command formed by the CLK signal and the DAT signal, and the operation status of the fan can be better monitored.

参照图3,示出了本发明实施例中提供的一种风扇的结构示意图,风扇包括驱动电路、控制器和电机,所述驱动电路驱动所述电机的转子转动,所述控制器与上位端连接,所述控制器和所述上位端设置有风扇管理总线控制协议,所述风扇管理总线控制协议设置有工作模式,所述工作模式包括PWM控制模式和命令控制模式;Referring to FIG. 3 , it shows a schematic structural diagram of a fan provided in an embodiment of the present invention. The fan includes a drive circuit, a controller, and a motor. The drive circuit drives the rotor of the motor to rotate. The controller and the upper end connection, the controller and the upper end are provided with a fan management bus control protocol, and the fan management bus control protocol is provided with a working mode, and the working mode includes a PWM control mode and a command control mode;

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,通过所述上位端向所述控制器发送的PWM信号以控制所述转子的转子转速,并且,通过所述控制器向所述上位端输出的TACH信号以反馈所述控制器对应的所述转子的转子转速;When the working mode of the controller and the upper end is the PWM control mode, the PWM signal sent by the upper end to the controller is used to control the rotor speed of the rotor, and the controller outputting the TACH signal to the upper end to feed back the rotor speed of the rotor corresponding to the controller;

当所述控制器和所述上位端的工作模式为所述命令控制模式时,通过所述上位端向所述控制器发送的CLK信号和DAT信号,以使所述控制器执行所述CLK信号和所述DAT信号形成的控制命令。When the working mode of the controller and the upper end is the command control mode, the CLK signal and the DAT signal are sent to the controller through the upper end, so that the controller executes the CLK signal and the DAT signal. The DAT signal forms the control command.

其中,对于风扇管理总线控制协议的命令控制模式,其可以使用双线串行通信,其中,对于通信中所使用的数据传输格式,其可以使用I2C(Inter-Integrated Circuit)协议定义的格式,也可以使用自定义格式,本领域技术人员可以根据实际情况进行调整,本发明实施例对此不作限制。Among them, for the command control mode of the fan management bus control protocol, it can use two-wire serial communication, and for the data transmission format used in the communication, it can use the format defined by the I2C (Inter-Integrated Circuit) protocol, or A custom format can be used, and those skilled in the art can make adjustments according to actual conditions, which is not limited in this embodiment of the present invention.

对于驱动电路,其可以通过驱动信号以驱动电机转动转子;其中,转子为风扇中的一个零件,其与风扇的扇叶相连接,即转子转动则表示风扇开始转动;对于转子转速,其可以表示为风扇的风扇转速;对于转子位置,其可以通过转子位置传感器获取,需要说明的是,对于转子位置的获取方式,本领域技术人员可以根据实际需要选择恰当的设备进行获取,本发明实施例对此不作限制。For the driving circuit, it can drive the motor to rotate the rotor through the driving signal; wherein, the rotor is a part of the fan, which is connected with the blade of the fan, that is, the rotation of the rotor indicates that the fan starts to rotate; for the rotor speed, it can indicate is the fan speed of the fan; for the rotor position, it can be obtained by a rotor position sensor. It should be noted that, for the method of obtaining the rotor position, those skilled in the art can select an appropriate device to obtain it according to actual needs. This is not limited.

其中,风扇的控制器与上位端连接,上位端通过PWM/CLK信号线接入控制器的PWM输入检测接口和双线串行通信的CLK(时钟)接口,并且,上位端通过TACH/DAT信号线接入控制器的TACH信号输出接口和双线串行通信的DAT(数据)接口。Among them, the controller of the fan is connected to the upper end, and the upper end is connected to the PWM input detection interface of the controller and the CLK (clock) interface of the two-wire serial communication through the PWM/CLK signal line, and the upper end is connected through the TACH/DAT signal The line is connected to the TACH signal output interface of the controller and the DAT (data) interface of the two-wire serial communication.

对于上位端,其可以为服务器的上位端,服务器的上位端通常采用的是BMC或CPLD来对风扇进行控制;需要说明的是,对于上位端,其可以为服务器的上位端,也可以为其他终端的上位端,本发明实施例对此不作限制。For the upper end, it can be the upper end of the server, and the upper end of the server usually uses BMC or CPLD to control the fan; it should be noted that, for the upper end, it can be the upper end of the server, or other The upper end of the terminal, which is not limited in this embodiment of the present invention.

对于控制器,其可以为MCU(Microcontroller Unit微控制器),其可以根据测算的转子位置和采样信号,计算并生成电机对应的驱动信号,同时,控制器还可以测量PWM信号的PWM信号占空比;其中,采样信号可以为电压和/或电流信号;对于PWM信号,其为上位端向风扇的控制器发送的一种风扇调速控制信号,PWM信号包含PWM信号占空比,PWM信号占空比可以用于控制转子的转子转速,即风扇的风扇转速;其中,占空比为一个脉冲循环内,通电时间相对于总时间所占的比例。For the controller, it can be MCU (Microcontroller Unit microcontroller), which can calculate and generate the corresponding driving signal of the motor according to the measured rotor position and sampling signal. At the same time, the controller can also measure the PWM signal duty of the PWM signal Ratio; wherein, the sampling signal can be a voltage and/or current signal; for the PWM signal, it is a fan speed control signal sent from the upper end to the fan controller, the PWM signal includes the PWM signal duty cycle, and the PWM signal duty cycle The duty ratio can be used to control the rotor speed of the rotor, that is, the fan speed of the fan; wherein, the duty ratio is the ratio of the power-on time to the total time in a pulse cycle.

对于PWM输入检测接口,其可以用于获取上位端发送给控制器的PWM信号,即获取转子的设定转速,进而可以由控制器根据该设定转速控制风扇中转子的转速,即风扇的风扇转速。For the PWM input detection interface, it can be used to obtain the PWM signal sent from the upper end to the controller, that is, to obtain the set speed of the rotor, and then the controller can control the speed of the rotor in the fan according to the set speed, that is, the fan of the fan Rotating speed.

其中,TACH信号可以用于输出转子的实际转速,即风扇的实际转速,具体地,当风扇中的控制器向上位端发送TACH信号后,上位端可以通过测量TACH信号的信号频率,进而对信号频率进行换算得到风扇的实际转速。Among them, the TACH signal can be used to output the actual speed of the rotor, that is, the actual speed of the fan. Specifically, when the controller in the fan sends the TACH signal to the upper end, the upper end can measure the signal frequency of the TACH signal, and then the signal Convert the frequency to get the actual speed of the fan.

需要说明的是,对于TACH信号的信号频率换算方法,本领域技术人员可以根据实际需要调整,本发明实施例对此不作限制。It should be noted that, the method for converting the signal frequency of the TACH signal can be adjusted by those skilled in the art according to actual needs, which is not limited in this embodiment of the present invention.

对于CLK信号和DAT信号,其可以为用于进行数据通信的信号。As for the CLK signal and the DAT signal, it may be a signal for data communication.

需要说明的是,对于上位端主板的电路设计,若上位端为CPLD,则无需进行硬件的修改;若上位端为BMC,则需要确保上位端连接PWM/CLK和TACH/DAT的引脚可实现通信功能。It should be noted that for the circuit design of the upper-end motherboard, if the upper-end is CPLD, no hardware modification is required; if the upper-end is BMC, it is necessary to ensure that the upper-end is connected to the PWM/CLK and TACH/DAT pins. communication function.

在具体实现中,当控制器和上位端的工作模式为PWM控制模式时,服务器中的上位端向风扇中的控制器发送PWM信号,风扇可以通过控制器的PWM输入检测接口接收上位端通过PWM/CLK信号线发送的PWM信号,以使控制器可以根据PWM信号控制转子的转子转速,即控制风扇的风扇转速,并通过控制器的TACH信号输出接口向上位端的TACH/DAT信号线输出TACH信号,以向上位端反馈控制器对应的转子的转子转速,即可以通过控制器反馈的TACH信号获取风扇的转速;当控制器和上位端的工作模式为命令控制模式时,连接上位端的PWM/CLK信号线中的信号由PWM信号切换为CLK信号,连接上位端的TACH/DAT信号线中的信号由TACH信号切换为DAT信号,从而控制器可以通过控制器的双线串行通信的CLK接口接收上位端通过PWM/CLK信号线发送的CLK信号,以及,控制器通过控制器的双线串行通信的DAT接口接收上位端通过TACH/DAT信号线发送的DAT信号,其中,CLK信号和DAT信号可以用于数据通信,以使控制器执行CLK信号和DAT信号形成的控制命令。通过上述本发明实施例提供的风扇,无需改变现有上位端的硬件电路和接口,通过复用现有信号线以开发风扇管理总线控制协议,增加上位端与风扇的控制器间的通信控制功能,保证了与现有系统的兼容性,另外,通过控制器执行CLK信号和DAT信号形成的控制命令,可以获取风扇的详细运行数据,能够更好地监测风扇的运行状态。In a specific implementation, when the working mode of the controller and the upper end is PWM control mode, the upper end in the server sends a PWM signal to the controller in the fan, and the fan can receive the upper end through the PWM/ The PWM signal sent by the CLK signal line, so that the controller can control the rotor speed of the rotor according to the PWM signal, that is, control the fan speed of the fan, and output the TACH signal to the TACH/DAT signal line of the upper end through the TACH signal output interface of the controller. Feedback the rotor speed of the rotor corresponding to the controller to the upper end, that is, the fan speed can be obtained through the TACH signal fed back by the controller; when the working mode of the controller and the upper end is command control mode, connect the PWM/CLK signal line of the upper end The signal in the switch is switched from PWM signal to CLK signal, and the signal in the TACH/DAT signal line connected to the upper end is switched from TACH signal to DAT signal, so that the controller can receive the upper end through the CLK interface of the two-wire serial communication of the controller. The CLK signal sent by the PWM/CLK signal line, and the controller receives the DAT signal sent by the upper end through the TACH/DAT signal line through the DAT interface of the two-wire serial communication of the controller, wherein the CLK signal and the DAT signal can be used for Data communication, so that the controller executes the control command formed by the CLK signal and the DAT signal. The fan provided by the above-mentioned embodiments of the present invention does not need to change the hardware circuit and interface of the existing upper end, and develops the fan management bus control protocol by multiplexing the existing signal lines, increasing the communication control function between the upper end and the controller of the fan, Compatibility with the existing system is guaranteed. In addition, the detailed operation data of the fan can be obtained through the controller to execute the control command formed by the CLK signal and the DAT signal, and the operation status of the fan can be better monitored.

参照图4,示出了本发明实施例中提供的一种风扇内部结构示意图,图中的风扇的内部结构为支持风扇管理总线控制协议的风扇电路结构,如图中所示,风扇电源由服务器主板的12V电源提供,上位端通过PWM/CLK信号线接入控制器的PWM输入检测接口和双线串行通信的CLK接口,并且,上位端通过TACH/DAT信号线接入控制器的TACH信号输出接口和双线串行通信的DAT接口。在PWM控制模式下,两根信号线分别可以为PWM输入和TACH输出,即PWM/CLK信号线输入PWM信号,TACH/DAT信号线输出TACH信号,与上述现有的传统风扇工作原理相同;但本发明实施例中的工作模式还存在命令控制模式,当风扇工作在命令控制模式时,两根信号线用作数据通信,控制器通过控制器的双线串行通信的DAT接口接收上位端通过TACH/DAT信号线发送的DAT信号,可以通过控制器执行CLK信号和DAT信号形成的控制命令,从而可以获取风扇的详细运行数据,能够更好地监测风扇的运行状态。Referring to FIG. 4 , it shows a schematic diagram of the internal structure of a fan provided in an embodiment of the present invention. The internal structure of the fan in the figure is a fan circuit structure that supports the fan management bus control protocol. As shown in the figure, the power supply of the fan is provided by the server The 12V power supply of the motherboard is provided, and the upper end is connected to the PWM input detection interface of the controller and the CLK interface of the two-wire serial communication through the PWM/CLK signal line, and the upper end is connected to the TACH signal of the controller through the TACH/DAT signal line Output interface and DAT interface for two-wire serial communication. In the PWM control mode, the two signal lines can be PWM input and TACH output respectively, that is, the PWM/CLK signal line inputs the PWM signal, and the TACH/DAT signal line outputs the TACH signal, which is the same as the above-mentioned existing traditional fan; but The working mode in the embodiment of the present invention also has a command control mode. When the fan works in the command control mode, the two signal lines are used for data communication, and the controller receives the upper end through the DAT interface of the two-wire serial communication of the controller. The DAT signal sent by the TACH/DAT signal line can execute the control command formed by the CLK signal and the DAT signal through the controller, so that detailed operating data of the fan can be obtained, and the operating status of the fan can be better monitored.

在一种示例中,假设服务器系统接入的是双转子风扇,上位端为BMC/CPLD,在PWM控制模式下,上位端BMC/CPLD可以向控制器发出一路PWM信号,同时可以采集控制器反馈的前后转子的两路TACH信号,其中,风扇的前后转子可以共用一个PWM信号,可以通过PWM信号中的占空比控制转子的转速,即控制风扇的转速,但风扇的前后转子的TACH信号需要各自反馈给上位端,即可以通过控制器反馈的TACH信号以获取风扇的转速;当风扇切换为命令控制模式时,PWM信号和TACH信号将切换为CLK信号和DAT信号,同时可定义前后转子的通信地址分别为1和2,前后转子将共用一个CLK信号,两个TACH信号线切换为两个DAT信号,上位端可以将命令通过CLK信号同时发送给前后转子,其中,命令中包含有地址信息,对应的风扇的控制器进行响应,通过DAT信号向上位端返回数据,上位端在接收数据的同时会监测两个DAT信号,读取返回数据。In one example, assume that the server system is connected to a dual-rotor fan, and the upper end is a BMC/CPLD. In the PWM control mode, the upper end BMC/CPLD can send a PWM signal to the controller, and at the same time collect feedback from the controller. The two TACH signals of the front and rear rotors of the fan, where the front and rear rotors of the fan can share a PWM signal, and the speed of the rotor can be controlled through the duty cycle of the PWM signal, that is, the speed of the fan is controlled, but the TACH signals of the front and rear rotors of the fan need Each feeds back to the upper end, that is, the TACH signal fed back by the controller can be used to obtain the fan speed; when the fan is switched to command control mode, the PWM signal and TACH signal will be switched to CLK signal and DAT signal, and the front and rear rotors can be defined at the same time. The communication addresses are 1 and 2 respectively, the front and rear rotors will share one CLK signal, the two TACH signal lines are switched to two DAT signals, and the upper end can send commands to the front and rear rotors at the same time through the CLK signal, and the command contains address information , the controller of the corresponding fan responds, and returns data to the upper end through the DAT signal, and the upper end will monitor the two DAT signals while receiving the data, and read the returned data.

需要说明的是,在双转子风扇中,由于DAT信号是独立的,可能会存在数据不同步的情况,因此,当只风扇的控制器向服务器的上位端发送数据时,上位端的通信接口需要同时读取双转子风扇的前后转子所对应的DAT信号线的DAT信号,即需要对DAT信号进行检测,以确保DAT的来源信息。It should be noted that in the dual-rotor fan, since the DAT signal is independent, data may not be synchronized. Therefore, when only the controller of the fan sends data to the upper end of the server, the communication interface of the upper end needs to be simultaneously To read the DAT signal of the DAT signal line corresponding to the front and rear rotors of the dual-rotor fan, it is necessary to detect the DAT signal to ensure the source information of the DAT.

值得一提的是,根据应用需要,风扇管理总线控制协议可以支持多个风扇归置于同一总线上,此类应用需增加地址解析协议,用于实现动态地址分配,但多个风扇归置于同一总线时将无法兼容PWM控制模式,将以命令控制模式进行。It is worth mentioning that, according to application requirements, the fan management bus control protocol can support multiple fans to be placed on the same bus. Such applications need to add an address resolution protocol to achieve dynamic address allocation, but multiple fans are placed on the same bus. The same bus will not be compatible with PWM control mode, and will be in command control mode.

对于控制命令,其可以用于获取风扇的基础信息,其中,风扇的基础信息至少可以包括:风扇型号、制造商代码、风扇ID、硬软件版本、最高转速、最低转速、额定电压、额定功率、额定风量以及额定静压。另外,控制命令还可以用于获取风扇的实时运行数据,其中,风扇的实时运行数据至少可以包括:目标转速、实际转速、转向、调速完成标志、电压、电流、功率、风压以及运行时长。For the control command, it can be used to obtain the basic information of the fan, wherein the basic information of the fan can at least include: fan model, manufacturer code, fan ID, hardware and software version, maximum speed, minimum speed, rated voltage, rated power, Rated air volume and rated static pressure. In addition, the control command can also be used to obtain the real-time operation data of the fan, wherein the real-time operation data of the fan can at least include: target speed, actual speed, steering direction, sign of completion of speed regulation, voltage, current, power, wind pressure and running time .

在一种示例中,假设需要获取的是风扇的风扇型号和制造商代码,可以通过上位端通过CLK信号向风扇的控制器发送控制命令,风扇的控制器根据该控制命令可以向上位端发送DAT信号,即返回上位端所需要获取的风扇的风扇型号和制造商代码;同理可得,假设需要获取的风扇的目标转速和实际转速,可以通过上位端通过CLK信号向风扇的控制器发送控制命令,风扇的控制器根据该控制命令可以向上位端发送DAT信号,即返回上位端所需要获取的风扇的目标转速和实际转速。In one example, assuming that what needs to be obtained is the fan model and manufacturer code of the fan, a control command can be sent to the controller of the fan through the CLK signal through the upper end, and the controller of the fan can send DAT to the upper end according to the control command Signal, that is, return the fan model and manufacturer code of the fan that needs to be obtained from the upper end; in the same way, assuming the target speed and actual speed of the fan that needs to be obtained, you can send control to the fan controller through the upper end through the CLK signal command, the controller of the fan can send a DAT signal to the upper end according to the control command, that is, return the target speed and the actual speed of the fan that the upper end needs to obtain.

在本发明实施例中,在控制器执行CLK信号和DAT信号形成的控制命令得到转子对应的风扇的基础信息和风扇的实时运行数据后,可以上位端返回转子对应的风扇的基础信息和风扇的实时运行数据,通过CLK信号和DAT信号的共同作用下可以实现数据通信,上位端可以通过获取到的风扇的基础信息和风扇的实时运行数据以判断风扇的运行状态,通过增加上位端BMC/CPLD与风扇控制器间的通信控制功能,基于该通信控制功能可以实现风扇的基础信息和风扇的实时运行数据功能,能够更好地判断风扇的实时运行状态。In the embodiment of the present invention, after the controller executes the control command formed by the CLK signal and the DAT signal to obtain the basic information of the fan corresponding to the rotor and the real-time operation data of the fan, the upper end can return the basic information of the fan corresponding to the rotor and the fan’s Real-time operation data, data communication can be realized under the joint action of CLK signal and DAT signal, the upper end can judge the operation status of the fan through the acquired basic information of the fan and the real-time operation data of the fan, by adding the upper end BMC/CPLD The communication control function with the fan controller, based on the communication control function, can realize the basic information of the fan and the real-time operation data function of the fan, and can better judge the real-time operation status of the fan.

对于控制命令,其还可以用于修改风扇参数,所述风扇参数至少包括:自定义的最高转速、最低转速、最大电流、占空比转速系数以及无控制信号时的默认转速。As for the control command, it can also be used to modify fan parameters, and the fan parameters at least include: user-defined maximum speed, minimum speed, maximum current, duty cycle speed coefficient and default speed when there is no control signal.

在一种示例中,假设需要获取修改风扇的最大电流,可以通过上位端通过CLK信号和DAT信号向风扇的控制器发送控制命令,风扇的控制器根据该控制命令对风扇的最大电流进行设置或修改。In an example, assuming that the maximum current of the fan needs to be modified, a control command can be sent to the controller of the fan through the CLK signal and the DAT signal through the upper terminal, and the controller of the fan can set or set the maximum current of the fan according to the control command. Revise.

在本发明实施例中,在控制器执行CLK信号和DAT信号形成的控制命令后,可以对转子对应的风扇进行参数设置,通过复用现有信号线开发控制协议,增加上位端BMC/CPLD与风扇控制器间的通信控制功能,基于该通信控制功能可以提供参数设置调试的功能,上位端可根据需要进行修改,以适配不同服务器的散热需求。In the embodiment of the present invention, after the controller executes the control command formed by the CLK signal and the DAT signal, the parameters of the fan corresponding to the rotor can be set, and the control protocol is developed by multiplexing the existing signal line, and the upper end BMC/CPLD and The communication control function between the fan controllers, based on the communication control function, can provide the function of parameter setting and debugging, and the upper end can be modified as needed to adapt to the heat dissipation requirements of different servers.

对于控制命令,其还可以用于获取风扇的故障信息,其中,风扇的故障信息至少可以包括:霍尔故障、MOS故障、过压、欠压、过流以及堵转。As for the control command, it can also be used to obtain fan fault information, wherein the fan fault information can at least include: Hall fault, MOS fault, overvoltage, undervoltage, overcurrent and locked rotor.

其中,对于风扇的历史运行数据,即风扇发生故障前的实时运行数据,其可以存储于控制器中集成的带电可擦可编程只读存储器中。Wherein, the historical operation data of the fan, that is, the real-time operation data before the failure of the fan, can be stored in the charged erasable programmable read-only memory integrated in the controller.

在一种示例中,假设当前出现了霍尔故障,风扇可以收集该故障信息通过DAT信号反馈给上位端,上位端可以读取带电可擦可编程只读存储器中风扇的历史运行数据,以根据风扇的历史运行数据分析风扇的故障原因,从而制定有效的解决方案。In one example, assuming that there is currently a Hall fault, the fan can collect the fault information and feed it back to the upper end through the DAT signal, and the upper end can read the historical operation data of the fan in the chargeable erasable programmable The fan's historical operation data analyzes the cause of the fan's failure, so as to formulate an effective solution.

在具体实现中,当控制器和上位端的工作模式为命令控制模式时,若风扇发生故障,则控制器收集风扇运行时的故障信息,根据故障信息得到告警信息,并将故障信息和所述告警信息发送至上位端,上位端可以通过读取带电可擦可编程只读存储器中风扇的历史运行数据,以根据风扇的历史运行数据分析风扇的故障原因,从而制定有效的解决方案。In a specific implementation, when the working mode of the controller and the upper end is the command control mode, if the fan fails, the controller collects the fault information when the fan is running, obtains the alarm information according to the fault information, and combines the fault information with the alarm The information is sent to the upper end, and the upper end can analyze the cause of the failure of the fan based on the historical operation data of the fan by reading the historical operation data of the fan in the electrically erasable programmable read-only memory, so as to formulate an effective solution.

在本发明实施例中,提供了一种风扇,包括驱动电路、控制器和电机,驱动电路驱动电机的转子转动,控制器与上位端连接,其中,上位端通过PWM/CLK信号线接入控制器的PWM输入检测接口和双线串行通信的CLK接口,并且,上位端通过TACH/DAT信号线接入控制器的TACH信号输出接口和双线串行通信的DAT接口;其中,控制器和上位端设置有风扇管理总线控制协议,风扇管理总线控制协议设置有工作模式,工作模式包括PWM控制模式和命令控制模式;当控制器和上位端的工作模式为PWM控制模式时,通过控制器的PWM输入检测接口接收上位端通过PWM/CLK信号线发送的PWM信号,以使控制器根据PWM信号控制转子的转子转速,并通过控制器的TACH信号输出接口向上位端的TACH/DAT信号线输出TACH信号,以向上位端反馈控制器对应的转子的转子转速;当控制器和上位端的工作模式为命令控制模式时,控制器通过控制器的双线串行通信的CLK接口接收上位端通过PWM/CLK信号线发送的CLK信号,以及,控制器通过控制器的双线串行通信的DAT接口接收上位端通过TACH/DAT信号线发送的DAT信号,以使控制器执行CLK信号和DAT信号形成的控制命令。通过上述本发明实施例提供的风扇,无需改变现有上位端的硬件电路和接口,通过复用现有信号线以开发风扇管理总线控制协议,增加上位端与风扇的控制器间的通信控制功能,保证了与现有系统的兼容性,另外,通过控制器执行CLK信号和DAT信号形成的控制命令,可以获取风扇的详细运行数据,能够更好地监测风扇的运行状态。In an embodiment of the present invention, a fan is provided, including a drive circuit, a controller and a motor. The drive circuit drives the rotor of the motor to rotate. The PWM input detection interface of the controller and the CLK interface of the two-wire serial communication, and the upper end is connected to the TACH signal output interface of the controller and the DAT interface of the two-wire serial communication through the TACH/DAT signal line; among them, the controller and The upper end is set with a fan management bus control protocol, and the fan management bus control protocol is set with a working mode, the working mode includes PWM control mode and command control mode; when the working mode of the controller and the upper end is PWM control mode, through the PWM of the controller The input detection interface receives the PWM signal sent by the upper end through the PWM/CLK signal line, so that the controller can control the rotor speed of the rotor according to the PWM signal, and output the TACH signal to the TACH/DAT signal line of the upper end through the TACH signal output interface of the controller , to feed back the rotor speed of the rotor corresponding to the controller to the upper end; when the working mode of the controller and the upper end is command control mode, the controller receives the upper end through the CLK interface of the two-wire serial communication of the controller through PWM/CLK The CLK signal sent by the signal line, and the controller receives the DAT signal sent by the upper end through the TACH/DAT signal line through the DAT interface of the two-wire serial communication of the controller, so that the controller performs the control formed by the CLK signal and the DAT signal Order. The fan provided by the above-mentioned embodiments of the present invention does not need to change the hardware circuit and interface of the existing upper end, and develops the fan management bus control protocol by multiplexing the existing signal lines, increasing the communication control function between the upper end and the controller of the fan, Compatibility with the existing system is guaranteed. In addition, the detailed operating data of the fan can be obtained through the controller executing the control command formed by the CLK signal and the DAT signal, and the operating status of the fan can be better monitored.

具体地,基于增加上位端与风扇的控制器间的通信控制功能,上位端可读取风扇规格参数等基础信息、实时运行数据、故障告警信息,以及可以修改和调试风扇参数,通过风扇读取运行数据得到的风扇功耗可以比现有方案更精确,便于进行服务器功耗控制,通过读取风扇运行时间,可对风扇进行寿命管理,通过对运行数据的分析进行故障诊断和预判,可以做到提前预警,以及通过修改风扇的最高转速、最低转速、最大电流等参数,可以适配不同服务器的散热需求。Specifically, based on increasing the communication control function between the upper end and the controller of the fan, the upper end can read basic information such as fan specification parameters, real-time operating data, fault alarm information, and can modify and debug fan parameters. The fan power consumption obtained by the running data can be more accurate than the existing scheme, which is convenient for server power consumption control. By reading the fan running time, the life of the fan can be managed, and the fault diagnosis and prediction can be carried out by analyzing the running data. To achieve early warning, and by modifying the fan's maximum speed, minimum speed, maximum current and other parameters, it can adapt to the heat dissipation requirements of different servers.

在本发明的一种可选实施例中,所述通过所述上位端向所述控制器发送的PWM信号以控制所述转子的转子转速,包括:In an optional embodiment of the present invention, the PWM signal sent to the controller through the upper terminal to control the rotor speed of the rotor includes:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,所述上位端向所述控制器发送PWM信号;When the working mode of the controller and the upper end is the PWM control mode, the upper end sends a PWM signal to the controller;

根据所述PWM信号中的PWM信号占空比,控制所述控制器对应的转子的转子转速。According to the duty ratio of the PWM signal in the PWM signal, the rotor speed of the rotor corresponding to the controller is controlled.

在具体实现中,当控制器和上位端的工作模式为PWM控制模式时,服务器中的上位端向风扇中的控制器发送PWM信号,风扇可以通过控制器的PWM输入检测接口接收上位端通过PWM/CLK信号线发送的PWM信号,根据PWM信号中的PWM信号占空比,可以使控制器根据PWM信号控制转子的转子转速,即控制风扇的风扇转速。In a specific implementation, when the working mode of the controller and the upper end is PWM control mode, the upper end in the server sends a PWM signal to the controller in the fan, and the fan can receive the upper end through the PWM/ The PWM signal sent by the CLK signal line can make the controller control the rotor speed of the rotor according to the PWM signal according to the duty ratio of the PWM signal in the PWM signal, that is, control the fan speed of the fan.

在一种示例中,假设0%-100%的占空比对应风扇最低转速到最高转速,则风扇中的控制器可以根据测量到的PWM信号占空比以对风扇进行风扇转速的调整,若接收到的PWM信号中的信号占空比为70%。则控制器可以根据预设的占空比所对应的风扇设定转速进行调整。In one example, assuming that the duty cycle of 0%-100% corresponds to the minimum speed of the fan to the maximum speed, the controller in the fan can adjust the fan speed of the fan according to the measured duty cycle of the PWM signal. The signal duty cycle in the received PWM signal is 70%. Then the controller can adjust according to the set speed of the fan corresponding to the preset duty ratio.

在本发明的一种可选实施例中,所述通过所述控制器向所述上位端输出的TACH信号以反馈所述控制器对应的所述转子的转子转速,包括:In an optional embodiment of the present invention, the TACH signal output by the controller to the upper end to feed back the rotor speed of the rotor corresponding to the controller includes:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,所述控制器向所述上位端发送TACH信号;When the working mode of the controller and the upper end is the PWM control mode, the controller sends a TACH signal to the upper end;

测量所述TACH信号的TACH信号频率,得到所述转子的转子转速。The frequency of the TACH signal of the TACH signal is measured to obtain the rotor speed of the rotor.

在具体实现中,在风扇的控制器接收到上位端发送的PWM信号并对转子的转速进行调整后,控制器通过TACH信号输出接口向上位端的TACH/DAT信号线输出TACH信号,以向上位端反馈控制器对应的转子的转子转速,即可以通过控制器反馈的TACH信号获取风扇的转速,具体地,当风扇中的控制器向上位端发送TACH信号后,上位端可以通过测量TACH信号的信号频率,进而对信号频率进行换算得到风扇的实际转速。In the specific implementation, after the controller of the fan receives the PWM signal sent by the upper end and adjusts the speed of the rotor, the controller outputs the TACH signal to the TACH/DAT signal line of the upper end through the TACH signal output interface to the upper end. Feedback the rotor speed of the rotor corresponding to the controller, that is, the fan speed can be obtained through the TACH signal fed back by the controller. Specifically, after the controller in the fan sends the TACH signal to the upper end, the upper end can measure the signal of the TACH signal Frequency, and then convert the signal frequency to get the actual speed of the fan.

在本发明的一种可选实施例中,包括:In an optional embodiment of the present invention, comprising:

当所述控制器和所述上位端的工作模式为所述PWM控制模式时,在预设单位时间内,所述上位端向所述控制器发送PWM信号;其中,多个PWM信号中的PWM信号占空比构成PWM信号占空比序列;When the working mode of the controller and the upper end is the PWM control mode, within the preset unit time, the upper end sends a PWM signal to the controller; wherein, the PWM signal among the plurality of PWM signals The duty cycle constitutes a PWM signal duty cycle sequence;

所述控制器监听所述PWM信号占空比序列是否为第一预设PWM信号占空比序列;The controller monitors whether the PWM signal duty ratio sequence is the first preset PWM signal duty ratio sequence;

若所述PWM信号占空比序列是第一预设PWM信号占空比序列,则确定所述PWM信号包含握手信息;If the PWM signal duty cycle sequence is a first preset PWM signal duty cycle sequence, then determine that the PWM signal contains handshake information;

所述控制器针对所述握手信息向所述上位端返回应答信息;其中,所述应答信息包含验证信息,所述验证信息用于验证所述应答信息是否正确;The controller returns response information to the upper end for the handshake information; wherein the response information includes verification information, and the verification information is used to verify whether the response information is correct;

若验证所述应答信息为正确,则所述上位端向所述控制器发送模式切换信号;If it is verified that the response information is correct, the upper end sends a mode switching signal to the controller;

根据所述模式切换信号,将所述PWM控制模式切换至命令控制模式。The PWM control mode is switched to a command control mode according to the mode switching signal.

对于握手信息,其为第一预设PWM信号占空比序列;其中,PWM信号占空比序列由多个PWM信号中的PWM信号占空比构成;对于应答信息,其为预设的TACH信号频率序列;对于模式切换信号,其为预设的第二PWM信号占空比序列。需要说明的是,第一预设PWM信号占空比序列和第二PWM信号占空比序列的数值不同。For the handshake information, it is the first preset PWM signal duty cycle sequence; wherein, the PWM signal duty cycle sequence is composed of PWM signal duty cycles in multiple PWM signals; for the response information, it is the preset TACH signal Frequency sequence; for the mode switching signal, it is a preset duty ratio sequence of the second PWM signal. It should be noted that the values of the first preset PWM signal duty ratio sequence and the second PWM signal duty ratio sequence are different.

值得一提的是,对于热插拔更换风扇的情况,上位端可以在检测到风扇的在位信号后的预定时间段内向风扇发送握手信息,在风扇在上电后的预定的时间段内可以监听风扇的握手信息。It is worth mentioning that in the case of hot-swappable fan replacement, the upper end can send handshake information to the fan within a predetermined period of time after detecting the fan’s in-position signal, and the fan can be powered on within a predetermined period of time. Monitor the handshake information of the fan.

参照图5,示出了本发明实施例中提供的一种风扇控制模式的切换流程示意图,如图中所示,当控制器和上位端的工作模式为PWM控制模式时,在预设单位时间内,上位端向控制器发送PWM信号,其中,多个PWM信号中的PWM信号占空比构成PWM信号占空比序列,此时风扇的控制器需要监听PWM信号占空比序列是否为第一预设PWM信号占空比序列,假设握手信息为[30%,10%,50%],握手信号识别间隔是100ms,当风扇收到30%的PWM信号占空比后需要等待100ms,若在100ms内检测到10%的PWM信号占空比,则再等待100ms,若收到50%的PWM信号占空比,则风扇可以认为接收到了上位端所发送的PWM信号中包含了握手信息,需要说明的是,若任何一次等待的时间超过100ms,则可以认为是普通的PWM信号,不包含握手信息,若PWM信号占空比序列能够和第一预设PWM信号占空比序列匹配时,则确定当前所收到的PWM信号中包含有上位端所发送的握手信息,进而控制器可以针对握手信息向上位端返回应答信息,其中,应答信息包含验证信息,验证信息可以用于验证应答信息是否正确,若上位端验证控制器所反馈的应答信息为正确时,则上位端可以向控制器发送模式切换信号,从而风扇可以根据模式切换信号,将PWM控制模式切换至命令控制模式。Referring to FIG. 5 , it shows a schematic diagram of a switching process of a fan control mode provided in an embodiment of the present invention. As shown in the figure, when the working mode of the controller and the upper end is the PWM control mode, within the preset unit time , the upper end sends a PWM signal to the controller, wherein the PWM signal duty cycle in multiple PWM signals forms a PWM signal duty cycle sequence. At this time, the controller of the fan needs to monitor whether the PWM signal duty cycle sequence is the first preset Set the PWM signal duty cycle sequence, assuming that the handshake information is [30%, 10%, 50%], the handshake signal recognition interval is 100ms, when the fan needs to wait for 100ms after receiving 30% of the PWM signal duty cycle, if it is within 100ms If a 10% duty cycle of the PWM signal is detected within a period of time, wait for another 100ms. If a 50% duty cycle of the PWM signal is received, the fan can consider that the PWM signal sent by the upper end contains handshake information, which needs to be explained. What’s more, if any waiting time exceeds 100ms, it can be considered as a normal PWM signal without handshake information. If the PWM signal duty cycle sequence can match the first preset PWM signal duty cycle sequence, it is determined The currently received PWM signal contains the handshake information sent by the upper end, and then the controller can return a response message to the upper end for the handshake information, wherein the response information contains verification information, and the verification information can be used to verify whether the response information is correct , if the upper end verifies that the response information fed back by the controller is correct, the upper end can send a mode switching signal to the controller, so that the fan can switch the PWM control mode to the command control mode according to the mode switching signal.

在本发明实施例中,当控制器和上位端的工作模式为PWM控制模式时,在预设单位时间内,上位端向控制器发送PWM信号,其中,多个PWM信号中的PWM信号占空比构成PWM信号占空比序列,然后控制器监听PWM信号占空比序列是否为第一预设PWM信号占空比序列,若PWM信号占空比序列是第一预设PWM信号占空比序列,则确定PWM信号包含握手信息,接着,控制器针对握手信息向上位端返回应答信息,其中,应答信息包含验证信息,验证信息用于验证应答信息是否正确,若根据验证信息验证当前的应答信息为正确时,则上位端向控制器发送模式切换信号,控制器根据模式切换信号,将PWM控制模式切换至命令控制模式。In the embodiment of the present invention, when the working mode of the controller and the upper end is PWM control mode, within the preset unit time, the upper end sends a PWM signal to the controller, wherein the duty cycle of the PWM signal among the multiple PWM signals A PWM signal duty ratio sequence is formed, and then the controller monitors whether the PWM signal duty ratio sequence is the first preset PWM signal duty ratio sequence, if the PWM signal duty ratio sequence is the first preset PWM signal duty ratio sequence, Then it is determined that the PWM signal contains handshake information, and then, the controller returns response information to the upper end for the handshake information, wherein the response information contains verification information, and the verification information is used to verify whether the response information is correct. If the current response information is verified according to the verification information is When it is correct, the upper end sends a mode switching signal to the controller, and the controller switches the PWM control mode to the command control mode according to the mode switching signal.

需要说明的是,在本发明实施例中,只有上位端和风扇均支持命令控制模式时,才可以进入命令控制模式,可以理解的是,若任何一方不支持命令控制模式,则不能由PWM控制模式切换至命令控制模式,即继续保持PWM控制模式进行风扇控制,确保对现有方案的兼容。It should be noted that, in the embodiment of the present invention, the command control mode can only be entered when both the upper end and the fan support the command control mode. It can be understood that if either party does not support the command control mode, it cannot be controlled by PWM. The mode is switched to the command control mode, that is, the PWM control mode is maintained for fan control to ensure compatibility with existing solutions.

在本发明的一种可选实施例中,包括:In an optional embodiment of the present invention, comprising:

若所述控制器针对所述PWM信号无返回应答信息,则所述上位端再次向所述控制器发送PWM信号;If the controller does not return response information for the PWM signal, the upper end sends the PWM signal to the controller again;

若所述控制器对再次发送的所述PWM信号无返回应答信息,则所述控制器不支持所述命令控制模式,并且,所述控制器和所述上位端保持所述PWM控制模式。If the controller does not return response information to the resent PWM signal, the controller does not support the command control mode, and the controller and the upper end maintain the PWM control mode.

在具体实现中,若上位端BMC/CPLD支持命令控制模式,风扇不支持命令控制模式,则控制器和上位端均需要保持PWM控制模式。In specific implementation, if the upper-end BMC/CPLD supports the command control mode, but the fan does not support the command-control mode, both the controller and the upper end need to maintain the PWM control mode.

在本发明实施例中,当控制器和上位端的工作模式为PWM控制模式时,在预设单位时间内,上位端向控制器发送PWM信号,若控制器针对PWM信号无返回应答信息时,则上位端再次向控制器发送PWM信号,若控制器对再次发送的PWM信号仍无返回应答信息,则可以认为控制器不支持命令控制模式,并且,由于控制器不支持命令控制模式,则不能由PWM控制模式切换至命令控制模式,即控制器和上位端保持PWM控制模式,进而对风扇的转速进行控制,确保对现有方案的兼容。In the embodiment of the present invention, when the working mode of the controller and the upper end is PWM control mode, within the preset unit time, the upper end sends a PWM signal to the controller, if the controller does not return response information for the PWM signal, then The upper end sends the PWM signal to the controller again, if the controller still does not respond to the re-sent PWM signal, it can be considered that the controller does not support the command control mode, and since the controller does not support the command control mode, it cannot be The PWM control mode is switched to the command control mode, that is, the controller and the upper end maintain the PWM control mode, and then control the fan speed to ensure compatibility with existing solutions.

在本发明的一种可选实施例中,包括:In an optional embodiment of the present invention, comprising:

在预设单位时间内,若所述控制器未接收到包含所述握手信息的PWM信号,则所述上位端不支持所述命令控制模式,并且,所述控制器和所述上位端保持所述PWM控制模式。Within a preset unit time, if the controller does not receive the PWM signal containing the handshake information, the upper end does not support the command control mode, and the controller and the upper end maintain the The PWM control mode described above.

在具体实现中,若风扇支持命令控制模式,上位端BMC/CPLD不支持命令控制模式,则控制器和上位端均需要保持PWM控制模式。In a specific implementation, if the fan supports the command control mode, but the upper end BMC/CPLD does not support the command control mode, both the controller and the upper end need to maintain the PWM control mode.

在本发明实施例中,当控制器和上位端的工作模式为PWM控制模式时,在预设单位时间内,上位端向控制器发送PWM信号,在预设的应答时间内,若控制器未接收到包含握手信息的PWM信号,则可以认为上位端不支持命令控制模式,并且,由于控制器不支持命令控制模式,则不能由PWM控制模式切换至命令控制模式,即控制器和上位端保持PWM控制模式,进而对风扇的转速进行控制,确保对现有方案的兼容。In the embodiment of the present invention, when the working mode of the controller and the upper end is PWM control mode, within the preset unit time, the upper end sends a PWM signal to the controller, and within the preset response time, if the controller does not receive If the PWM signal contains handshake information, it can be considered that the upper end does not support the command control mode, and since the controller does not support the command control mode, it cannot be switched from the PWM control mode to the command control mode, that is, the controller and the upper end maintain the PWM Control mode, and then control the speed of the fan to ensure compatibility with existing solutions.

在本发明的一种可选实施例中,在所述根据所述模式切换信号,将所述PWM控制模式切换至命令控制模式之后,还包括:In an optional embodiment of the present invention, after switching the PWM control mode to the command control mode according to the mode switching signal, further comprising:

当所述控制器和所述上位端的工作模式为所述命令控制模式时,所述上位端以预设单位时间间隔向所述控制器发送查询命令;其中,所述查询命令用于检查数据通信是否畅通;When the working mode of the controller and the upper end is the command control mode, the upper end sends a query command to the controller at a preset unit time interval; wherein the query command is used to check data communication Whether it is smooth;

若所述控制器向所述上位端发送应答信息所对应的应答时间超过预设应答时间,则所述上位端再次向所述控制器发送查询命令;If the response time corresponding to the response information sent by the controller to the upper end exceeds the preset response time, the upper end sends a query command to the controller again;

若所述控制器针对所述查询命令的应答时间再次超过预设应答时间,则所述上位端切换为所述PWM控制模式。If the response time of the controller to the query command exceeds the preset response time again, the upper end switches to the PWM control mode.

其中,对于查询命令,其可以用于检查数据通信是否畅通;对于预设应答时间,本领域技术人员可以根据实际需要进行调整,本发明实施例对此不作限制。Wherein, for the query command, it can be used to check whether the data communication is smooth; for the preset response time, those skilled in the art can adjust it according to actual needs, which is not limited in the embodiment of the present invention.

在具体实现中,在PWM控制模式切换至命令控制模式之后,当控制器和上位端的工作模式为命令控制模式时,上位端以预设单位时间间隔向控制器发送查询命令,若控制器向上位端发送应答信息所对应的应答时间超过预设应答时间,则通信可能存在异常,上位端将再次向控制器发送查询命令,若控制器针对查询命令的应答时间再次超过预设应答时间,则上位端切换为PWM控制模式。In a specific implementation, after the PWM control mode is switched to the command control mode, when the working mode of the controller and the upper end is the command control mode, the upper end sends a query command to the controller at a preset unit time interval. If the response time corresponding to the response information sent by the terminal exceeds the preset response time, there may be an abnormality in the communication, and the upper end will send the query command to the controller again. If the response time of the controller to the query command exceeds the preset response time again, the upper switch to PWM control mode.

在本发明的一种可选实施例中,在所述若所述控制器针对所述查询命令的应答时间再次超过预设应答时间,则所述上位端切换为所述PWM控制模式之后,还包括:In an optional embodiment of the present invention, if the response time of the controller to the query command exceeds the preset response time again, after the upper end switches to the PWM control mode, include:

若所述控制器仍处于所述命令控制模式,在超过预设单位时间后,所述控制器自动切换至所述PWM控制模式,并以所述PWM信号占空比对所述控制器对应的转子进行调速。If the controller is still in the command control mode, after exceeding the preset unit time, the controller will automatically switch to the PWM control mode, and use the duty cycle of the PWM signal to control the corresponding Rotor speed regulation.

在具体实现中,在PWM控制模式切换至命令控制模式之后,当控制器和上位端的工作模式为命令控制模式时,上位端以预设单位时间间隔向控制器发送查询命令,若控制器向上位端发送应答信息所对应的应答时间超过预设应答时间,则通信可能存在异常,上位端将再次向控制器发送查询命令,若控制器针对查询命令的应答时间再次超过预设应答时间,则上位端切换为PWM控制模式,若此时控制器仍处于命令控制模式,风扇可以检测到PWM/CLK信号线的高低电平发生变化,但TACH/DAT信号线无电平变化,在超过预定时间后,风扇将自动切换回PWM模式,并以PWM信号占空比对控制器对应的转子进行调速,即控制风扇的转速。In a specific implementation, after the PWM control mode is switched to the command control mode, when the working mode of the controller and the upper end is the command control mode, the upper end sends a query command to the controller at a preset unit time interval. If the response time corresponding to the response information sent by the terminal exceeds the preset response time, there may be an abnormality in the communication, and the upper end will send the query command to the controller again. If the response time of the controller to the query command exceeds the preset response time again, the upper If the controller is still in the command control mode at this time, the fan can detect that the high and low levels of the PWM/CLK signal line have changed, but the TACH/DAT signal line has no level change. After a predetermined time , the fan will automatically switch back to PWM mode, and adjust the speed of the rotor corresponding to the controller with the PWM signal duty cycle, that is, control the fan speed.

本发明实施例还提供了一种风扇的运行方法,所述风扇包括驱动电路、控制器和电机,所述驱动电路驱动所述电机的转子转动,所述控制器与上位端连接,其中,所述控制器和所述上位端设置有风扇管理总线控制协议,所述风扇管理总线控制协议设置有工作模式,所述工作模式包括PWM控制模式和命令控制模式;参照图6,示出了本发明实施例中提供的一种风扇的运行方法的步骤流程图,具体可以包括如下步骤:The embodiment of the present invention also provides a fan operation method, the fan includes a drive circuit, a controller and a motor, the drive circuit drives the rotor of the motor to rotate, the controller is connected to the upper end, wherein the The controller and the upper end are provided with a fan management bus control protocol, and the fan management bus control protocol is provided with a working mode, and the working mode includes a PWM control mode and a command control mode; with reference to Fig. 6, the present invention is shown The step flowchart of a method for operating a fan provided in the embodiment may specifically include the following steps:

步骤601,当所述控制器和所述上位端的工作模式为所述PWM控制模式时,通过所述上位端向所述控制器发送的PWM信号以控制所述转子的转子转速,并且,通过所述控制器向所述上位端输出的TACH信号以反馈所述控制器对应的所述转子的转子转速;Step 601, when the working mode of the controller and the upper end is the PWM control mode, control the rotor speed of the rotor through the PWM signal sent by the upper end to the controller, and, through the The controller outputs the TACH signal to the upper end to feed back the rotor speed of the rotor corresponding to the controller;

对于驱动电路,其可以通过驱动信号以驱动电机转动转子;其中,转子为风扇中的一个零件,其与风扇的扇叶相连接,即转子转动则表示风扇开始转动;对于转子转速,其可以表示为风扇的风扇转速;对于转子位置,其可以通过转子位置传感器获取,需要说明的是,对于转子位置的获取方式,本领域技术人员可以根据实际需要选择恰当的设备进行获取,本发明实施例对此不作限制。For the driving circuit, it can drive the motor to rotate the rotor through the driving signal; wherein, the rotor is a part of the fan, which is connected with the blade of the fan, that is, the rotation of the rotor indicates that the fan starts to rotate; for the rotor speed, it can indicate is the fan speed of the fan; for the rotor position, it can be obtained by a rotor position sensor. It should be noted that, for the method of obtaining the rotor position, those skilled in the art can select an appropriate device to obtain it according to actual needs. This is not limited.

其中,风扇的控制器与上位端连接,上位端通过PWM/CLK信号线接入控制器的PWM输入检测接口和双线串行通信的CLK接口,并且,上位端通过TACH/DAT信号线接入控制器的TACH信号输出接口和双线串行通信的DAT接口。Among them, the controller of the fan is connected to the upper end, and the upper end is connected to the PWM input detection interface of the controller and the CLK interface of the two-wire serial communication through the PWM/CLK signal line, and the upper end is connected to the CLK interface through the TACH/DAT signal line. The TACH signal output interface of the controller and the DAT interface of the two-wire serial communication.

对于上位端,通常采用的是BMC或CPLD来对风扇进行控制;对于控制器,其可以根据测算的转子位置和采样信号,计算并生成电机对应的驱动信号,同时,控制器还可以测量PWM信号的PWM信号占空比;其中,采样信号可以为电压和/或电流信号;对于PWM信号,其为上位端向风扇的控制器发送的一种风扇调速控制信号,PWM信号包含PWM信号占空比,PWM信号占空比可以用于控制转子的转子转速,即风扇的风扇转速;其中,占空比为一个脉冲循环内,通电时间相对于总时间所占的比例。For the upper end, BMC or CPLD is usually used to control the fan; for the controller, it can calculate and generate the corresponding drive signal of the motor according to the measured rotor position and sampling signal, and at the same time, the controller can also measure the PWM signal The duty cycle of the PWM signal; wherein, the sampling signal can be a voltage and/or current signal; for the PWM signal, it is a fan speed control signal sent from the upper end to the fan controller, and the PWM signal includes the duty cycle of the PWM signal The duty cycle of the PWM signal can be used to control the rotor speed of the rotor, that is, the fan speed of the fan; wherein, the duty cycle is the ratio of the power-on time to the total time in a pulse cycle.

对于PWM输入检测接口,其可以用于获取上位端发送给控制器的PWM信号,即获取转子的设定转速,进而可以由控制器根据该设定转速控制风扇中转子的转速,即风扇的风扇转速。For the PWM input detection interface, it can be used to obtain the PWM signal sent from the upper end to the controller, that is, to obtain the set speed of the rotor, and then the controller can control the speed of the rotor in the fan according to the set speed, that is, the fan of the fan Rotating speed.

其中,TACH信号可以用于输出转子的实际转速,即风扇的实际转速,具体地,当风扇中的控制器向上位端发送TACH信号后,上位端可以通过测量TACH信号的信号频率,进而对信号频率进行换算得到风扇的实际转速。Among them, the TACH signal can be used to output the actual speed of the rotor, that is, the actual speed of the fan. Specifically, when the controller in the fan sends the TACH signal to the upper end, the upper end can measure the signal frequency of the TACH signal, and then the signal Convert the frequency to get the actual speed of the fan.

需要说明的是,对于TACH信号的信号频率换算方法,本领域技术人员可以根据实际需要调整,本发明实施例对此不作限制。It should be noted that, the method for converting the signal frequency of the TACH signal can be adjusted by those skilled in the art according to actual needs, which is not limited in this embodiment of the present invention.

在具体实现中,当控制器和上位端的工作模式为PWM控制模式时,服务器中的上位端向风扇中的控制器发送PWM信号,风扇可以通过控制器的PWM输入检测接口接收上位端通过PWM/CLK信号线发送的PWM信号,以使控制器可以根据PWM信号控制转子的转子转速,即控制风扇的风扇转速,并通过控制器的TACH信号输出接口向上位端的TACH/DAT信号线输出TACH信号,以向上位端反馈控制器对应的转子的转子转速,即可以通过控制器反馈的TACH信号获取风扇的转速。In a specific implementation, when the working mode of the controller and the upper end is PWM control mode, the upper end in the server sends a PWM signal to the controller in the fan, and the fan can receive the upper end through the PWM/ The PWM signal sent by the CLK signal line, so that the controller can control the rotor speed of the rotor according to the PWM signal, that is, control the fan speed of the fan, and output the TACH signal to the TACH/DAT signal line of the upper end through the TACH signal output interface of the controller. By feeding back the rotor speed of the rotor corresponding to the controller to the upper end, that is, the fan speed can be obtained through the TACH signal fed back by the controller.

步骤602,当所述控制器和所述上位端的工作模式为所述命令控制模式时,通过所述上位端向所述控制器发送的CLK信号和DAT信号,以使所述控制器执行所述CLK信号和所述DAT信号形成的控制命令。Step 602, when the working mode of the controller and the upper end is the command control mode, send the CLK signal and the DAT signal to the controller through the upper end, so that the controller executes the CLK signal and the DAT signal form the control command.

在具体实现中,当控制器和上位端的工作模式为命令控制模式时,连接上位端的PWM/CLK信号线中的信号由PWM信号切换为CLK信号,连接上位端的TACH/DAT信号线中的信号由TACH信号切换为DAT信号,从而控制器可以通过控制器的双线串行通信的CLK接口接收上位端通过PWM/CLK信号线发送的CLK信号,以及,控制器通过控制器的双线串行通信的DAT接口接收上位端通过TACH/DAT信号线发送的DAT信号,其中,CLK信号和DAT信号可以用于数据通信,以使控制器执行CLK信号和DAT信号形成的控制命令。In a specific implementation, when the working mode of the controller and the upper end is the command control mode, the signal in the PWM/CLK signal line connected to the upper end is switched from the PWM signal to the CLK signal, and the signal in the TACH/DAT signal line connected to the upper end is changed by The TACH signal is switched to the DAT signal, so that the controller can receive the CLK signal sent by the upper end through the PWM/CLK signal line through the CLK interface of the two-wire serial communication of the controller, and the controller can receive the CLK signal sent by the upper end through the two-wire serial communication of the controller. The DAT interface of the DAT interface receives the DAT signal sent by the upper end through the TACH/DAT signal line, wherein the CLK signal and the DAT signal can be used for data communication, so that the controller executes the control command formed by the CLK signal and the DAT signal.

在本发明实施例中,当控制器和上位端的工作模式为PWM控制模式时,通过控制器的PWM输入检测接口接收上位端通过PWM/CLK信号线发送的PWM信号,以使控制器根据PWM信号控制转子的转子转速,并通过控制器的TACH信号输出接口向上位端的TACH/DAT信号线输出TACH信号,以向上位端反馈控制器对应的转子的转子转速;当控制器和上位端的工作模式为命令控制模式时,控制器通过控制器的双线串行通信的CLK接口接收上位端通过PWM/CLK信号线发送的CLK信号,以及,控制器通过控制器的双线串行通信的DAT接口接收上位端通过TACH/DAT信号线发送的DAT信号,以使控制器执行CLK信号和DAT信号形成的控制命令。通过上述本发明实施例提供的风扇,无需改变现有上位端的硬件电路和接口,通过复用现有信号线以开发风扇管理总线控制协议,增加上位端与风扇的控制器间的通信控制功能,保证了与现有系统的兼容性,另外,通过控制器执行CLK信号和DAT信号形成的控制命令,可以获取风扇的详细运行数据,能够更好地监测风扇的运行状态。In the embodiment of the present invention, when the working mode of the controller and the upper end is PWM control mode, the PWM signal sent by the upper end through the PWM/CLK signal line is received through the PWM input detection interface of the controller, so that the controller Control the rotor speed of the rotor, and output the TACH signal to the TACH/DAT signal line of the upper end through the TACH signal output interface of the controller, so as to feed back the rotor speed of the rotor corresponding to the controller to the upper end; when the working mode of the controller and the upper end is In the command control mode, the controller receives the CLK signal sent by the upper end through the PWM/CLK signal line through the CLK interface of the two-wire serial communication of the controller, and the controller receives the CLK signal through the DAT interface of the two-wire serial communication of the controller. The DAT signal sent by the upper end through the TACH/DAT signal line enables the controller to execute the control command formed by the CLK signal and the DAT signal. The fan provided by the above-mentioned embodiments of the present invention does not need to change the hardware circuit and interface of the existing upper end, and develops the fan management bus control protocol by multiplexing the existing signal lines, increasing the communication control function between the upper end and the controller of the fan, Compatibility with the existing system is guaranteed. In addition, the detailed operation data of the fan can be obtained through the controller to execute the control command formed by the CLK signal and the DAT signal, and the operation status of the fan can be better monitored.

需要说明的是,对于方法实施例,由于其与上述实施例基本相似,所以描述的比较简单,相关之处参见上述实施例的部分说明即可。为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, as for the method embodiment, since it is basically similar to the above-mentioned embodiment, the description is relatively simple, and for related parts, please refer to part of the description of the above-mentioned embodiment. For the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention, some steps can be in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

另外,本发明实施例还提供了一种电子设备,包括:处理器,存储器,存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述风扇的运行方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。In addition, an embodiment of the present invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, the above fan operation method is implemented. The various processes of the embodiment can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.

图7为本发明实施例中提供的一种计算机可读存储介质的结构示意图。Fig. 7 is a schematic structural diagram of a computer-readable storage medium provided in an embodiment of the present invention.

本发明实施例还提供了一种计算机可读存储介质701,计算机可读存储介质701上存储有计算机程序,计算机程序被处理器执行时实现上述风扇的运行方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质701,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium 701. A computer program is stored on the computer-readable storage medium 701. When the computer program is executed by the processor, each process of the above-mentioned fan operation method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition. Wherein, the computer-readable storage medium 701 is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

图8为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.

该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components. Those skilled in the art can understand that the structure of the electronic device shown in Figure 8 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than shown in the illustration, or combine some components, or different components layout. In the embodiment of the present invention, electronic devices include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.

应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 810 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 802, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与电子设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 can also provide audio output related to a specific function performed by the electronic device 800 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.

输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used for receiving audio or video signals. The input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 is used for still pictures or video images obtained by an image capture device (such as a camera) in video capture mode or image capture mode The data is processed. The processed image frames may be displayed on the display unit 806 . The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802 . The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 801 for output in the case of a phone call mode.

电子设备800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在电子设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 8061 and the display panel 8061 when the electronic device 800 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of electronic equipment (such as horizontal and vertical screen switching, related games) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tap), etc.; the sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode, OLED)等形式来配置显示面板8061。The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元807可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 8071 or near the touch panel 8071 operate). The touch panel 8071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 810, receive the command sent by the processor 810 and execute it. In addition, the touch panel 8071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071 , the user input unit 807 may also include other input devices 8072 . Specifically, other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现电子设备的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 8071 can be covered on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near it, it will be sent to the processor 810 to determine the type of the touch event, and then the processor 810 will The type of event provides a corresponding visual output on the display panel 8061. Although in FIG. 8, the touch panel 8071 and the display panel 8061 are used as two independent components to realize the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated. The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元808为外部装置与电子设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备800内的一个或多个元件或者可以用于在电子设备800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device to the electronic device 800 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 808 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 can be used to store software programs as well as various data. The memory 809 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器810是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 809, and calling data stored in the memory 809 , to perform various functions of the electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .

电子设备800还可以包括给各个部件供电的电源811(比如电池),优选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 800 can also include a power supply 811 (such as a battery) for supplying power to various components. Preferably, the power supply 811 can be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

另外,电子设备800包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 800 includes some functional modules not shown, which will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD-ROM), including several instructions to make a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (20)

1. A fan comprises a driving circuit, a controller and a motor, wherein the driving circuit drives a rotor of the motor to rotate, and the controller is connected with an upper end;
when the working mode of the controller and the upper end is the PWM control mode, the PWM signal sent to the controller by the upper end controls the rotor rotating speed of the rotor, and the TACH signal output to the upper end by the controller feeds back the rotor rotating speed of the rotor corresponding to the controller;
and when the working mode of the controller and the upper terminal is the command control mode, transmitting a CLK signal and a DAT signal to the controller through the upper terminal to enable the controller to execute a control command formed by the CLK signal and the DAT signal.
2. The fan as claimed in claim 1, comprising:
the upper end is connected to a PWM input detection interface of the controller and a CLK interface of the two-wire serial communication through a PWM/CLK signal line, and is connected to a TACH signal output interface of the controller and a DAT interface of the two-wire serial communication through a TACH/DAT signal line.
3. The fan as claimed in claim 2, further comprising:
when the working mode of the controller and the upper end is the PWM control mode, receiving a PWM signal sent by the upper end through the PWM/CLK signal line through a PWM input detection interface of the controller so that the controller controls the rotor rotation speed of the rotor according to the PWM signal, and outputting a TACH signal to a TACH/DAT signal line of the upper end through a TACH signal output interface of the controller so as to feed back the rotor rotation speed of the rotor corresponding to the controller to the upper end;
when the working mode of the controller and the upper bit terminal is the command control mode, the controller receives a CLK signal transmitted by the upper bit terminal through the PWM/CLK signal line through a CLK interface of the two-wire serial communication of the controller, and the controller receives a DAT signal transmitted by the upper bit terminal through the TACH/DAT signal line through a DAT interface of the two-wire serial communication of the controller, so that the controller executes a control command formed by the CLK signal and the DAT signal.
4. The fan as claimed in claim 1, wherein the controller is configured to generate a driving signal of the motor according to a rotor position of the rotor and a sampling signal, so as to control the driving circuit to drive the motor to rotate the rotor according to the driving signal; wherein the sampling signal is at least a voltage and/or current signal.
5. The fan of claim 1 wherein the PWM signal comprises a PWM signal duty cycle, the PWM signal duty cycle being used to control a rotor speed of the rotor.
6. The fan as claimed in claim 5, wherein the PWM signal transmitted to the controller through the upper terminal to control the rotor speed of the rotor comprises:
when the working mode of the controller and the upper end is the PWM control mode, the upper end sends a PWM signal to the controller;
and controlling the rotor rotating speed of the rotor corresponding to the controller according to the PWM signal duty ratio in the PWM signal.
7. The fan as claimed in claim 1, wherein the TACH signal outputted to the upper end by the controller for feeding back the rotor speed of the rotor corresponding to the controller comprises:
when the working modes of the controller and the upper end are the PWM control mode, the controller sends a TACH signal to the upper end;
and measuring the TACH signal frequency of the TACH signal to obtain the rotor rotating speed of the rotor.
8. The fan as claimed in claim 1, comprising:
when the working mode of the controller and the upper end is the PWM control mode, the upper end sends a PWM signal to the controller within a preset unit time; the PWM signal duty ratios in the plurality of PWM signals form a PWM signal duty ratio sequence;
the controller monitors whether the PWM signal duty cycle sequence is a first preset PWM signal duty cycle sequence;
if the PWM signal duty cycle sequence is a first preset PWM signal duty cycle sequence, determining that the PWM signal contains handshake information;
the controller returns response information to the upper end aiming at the handshake information; the response information comprises verification information, and the verification information is used for verifying whether the response information is correct or not;
if the response information is verified to be correct, the upper end sends a mode switching signal to the controller;
and switching the PWM control mode to a command control mode according to the mode switching signal.
9. The fan as claimed in claim 8, wherein the response message is a preset TACH signal frequency sequence, and the mode switching signal is a preset second PWM signal duty cycle sequence.
10. The fan as claimed in claim 8, comprising:
if the controller does not return response information aiming at the PWM signal, the upper end sends the PWM signal to the controller again;
and if the controller does not return response information to the PWM signal sent again, the controller does not support the command control mode, and the controller and the upper end maintain the PWM control mode.
11. The fan as claimed in claim 8, comprising:
and in a preset unit time, if the controller does not receive the PWM signal containing the handshake information, the upper end does not support the command control mode, and the controller and the upper end maintain the PWM control mode.
12. The fan as claimed in claim 8, further comprising, after the switching the PWM control mode to the command control mode according to the mode switching signal:
when the working mode of the controller and the upper end is the command control mode, the upper end sends a query command to the controller at preset unit time intervals; wherein the query command is used to check whether data communication is clear;
if the response time corresponding to the response information sent to the upper end by the controller exceeds the preset response time, the upper end sends a query command to the controller again;
and if the response time of the controller for the query command exceeds the preset response time again, the upper end is switched to the PWM control mode.
13. The fan as claimed in claim 12, further comprising, after the upper terminal switches to the PWM control mode if the response time of the controller to the query command exceeds a preset response time again, the method further comprising:
if the controller is still in the command control mode, after the preset unit time is exceeded, the controller automatically switches to the PWM control mode, and adjusts the speed of the rotor corresponding to the controller according to the duty ratio of the PWM signal.
14. The fan as claimed in claim 1, wherein the control command is used for obtaining basic information of the fan, the basic information of the fan at least comprising: fan model, manufacturer code, fan ID, hard software version, maximum speed, minimum speed, rated voltage, rated power, rated air volume, and rated static pressure.
15. The fan of claim 1, wherein the control commands are further configured to obtain real-time operating data of the fan, the real-time operating data of the fan comprising at least: target rotating speed, actual rotating speed, steering, speed regulation completion mark, voltage, current, power, wind pressure and running duration.
16. The fan as claimed in claim 1, wherein the control command is further used for obtaining fault information of the fan, the fault information of the fan at least comprising: hall faults, MOS faults, over-voltage, under-voltage, over-current, and locked rotor.
17. The fan of claim 1, wherein the control commands are further configured to modify fan parameters, the fan parameters comprising at least: self-defined maximum rotating speed, minimum rotating speed, maximum current, duty ratio rotating speed coefficient and default rotating speed without control signals.
18. An operation method of a fan, wherein the fan comprises a driving circuit, a controller and a motor, the driving circuit drives a rotor of the motor to rotate, and the controller is connected with an upper end, and is characterized in that the controller and the upper end are provided with a fan management bus control protocol, the fan management bus control protocol is provided with working modes, the working modes comprise a PWM control mode and a command control mode, and the method comprises the following steps:
when the working mode of the controller and the upper end is the PWM control mode, the PWM signal sent to the controller by the upper end is used for controlling the rotor speed of the rotor, and the controller outputs a TACH signal to the upper end to feed back the rotor speed of the rotor corresponding to the controller;
and when the working mode of the controller and the upper terminal is the command control mode, transmitting a CLK signal and a DAT signal to the controller through the upper terminal to enable the controller to execute a control command formed by the CLK signal and the DAT signal.
19. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing a program stored on the memory, implementing the method of claim 18.
20. A computer-readable storage medium having stored thereon instructions, which when executed by one or more processors, cause the processors to perform the method of claim 18.
CN202310001390.3A 2023-01-03 2023-01-03 Fan, operation method thereof, electronic device and readable storage medium Pending CN115898932A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310001390.3A CN115898932A (en) 2023-01-03 2023-01-03 Fan, operation method thereof, electronic device and readable storage medium
CN202311837497.8A CN118391289A (en) 2023-01-03 2023-12-28 Fan multi-mode control method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310001390.3A CN115898932A (en) 2023-01-03 2023-01-03 Fan, operation method thereof, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115898932A true CN115898932A (en) 2023-04-04

Family

ID=86471255

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310001390.3A Pending CN115898932A (en) 2023-01-03 2023-01-03 Fan, operation method thereof, electronic device and readable storage medium
CN202311837497.8A Pending CN118391289A (en) 2023-01-03 2023-12-28 Fan multi-mode control method, device, server and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311837497.8A Pending CN118391289A (en) 2023-01-03 2023-12-28 Fan multi-mode control method, device, server and storage medium

Country Status (1)

Country Link
CN (2) CN115898932A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119353251B (en) * 2024-12-24 2025-03-18 苏州元脑智能科技有限公司 Fan control method, computer program product, device and storage medium
CN120743569B (en) * 2025-09-08 2025-11-25 苏州元脑智能科技有限公司 Fan control methods, systems, and computer program products

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013153551A (en) * 2012-01-24 2013-08-08 Minebea Co Ltd Drive control device for motor, and control system for motor using the same
CN103838696A (en) * 2014-03-24 2014-06-04 杭州叙简科技有限公司 Device and method for plug board management and inter-board signaling reuse
CN207835376U (en) * 2016-03-22 2018-09-07 三菱电机株式会社 Motor and air conditioner
WO2020059779A1 (en) * 2018-09-21 2020-03-26 Ntn株式会社 Motor control device
CN114138697A (en) * 2021-11-26 2022-03-04 苏州浪潮智能科技有限公司 Signal transmission system, signal transmission method, signal transmission device and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013153551A (en) * 2012-01-24 2013-08-08 Minebea Co Ltd Drive control device for motor, and control system for motor using the same
CN103838696A (en) * 2014-03-24 2014-06-04 杭州叙简科技有限公司 Device and method for plug board management and inter-board signaling reuse
CN207835376U (en) * 2016-03-22 2018-09-07 三菱电机株式会社 Motor and air conditioner
WO2020059779A1 (en) * 2018-09-21 2020-03-26 Ntn株式会社 Motor control device
CN114138697A (en) * 2021-11-26 2022-03-04 苏州浪潮智能科技有限公司 Signal transmission system, signal transmission method, signal transmission device and medium

Also Published As

Publication number Publication date
CN118391289A (en) 2024-07-26

Similar Documents

Publication Publication Date Title
US20140185177A1 (en) Dampness protective apparatus and electronic device using same
CN115898932A (en) Fan, operation method thereof, electronic device and readable storage medium
US9037878B2 (en) Server rack system
CN116643631A (en) A server cooling method, device, electronic equipment and storage medium
CN115589361A (en) A management device firmware update method, device, electronic device and storage medium
CN115933852A (en) Power supply architecture of storage system and standby power control method thereof
JP7558288B2 (en) Electronics
CN117519334A (en) Temperature control method and device for server, electronic equipment and storage medium
WO2021121180A1 (en) Information processing method and electronic device
CN117743045A (en) Testing method and device for integrated power protection switch of server fan
CN107887947B (en) Protection method for charging port and mobile terminal
CN108810284B (en) Mode switching method of camera and electronic equipment
CN105576753A (en) Information processing method and electronic equipment
CN111240451A (en) Heat dissipation method, electronic device and computer-readable storage medium
CN108777627B (en) A power supply method and device
CN109861601A (en) Motor driving method and mobile terminal
US20140160678A1 (en) Fan driving system and electronic device using same
CN117075949B (en) Voltage conversion chip upgrading method and device, electronic equipment and storage medium
CN115567395B (en) Master-slave node determination method and device, electronic equipment and storage medium
CN116517864A (en) Cooling fan fault detection method and device, electronic equipment and storage medium
US20150032284A1 (en) Detection module, device and system for detecting fan's connection and disconnection states
CN115509334A (en) Hard disk power supply system, method, electronic device and storage medium
CN116610508A (en) Heat dissipation test method and device, electronic equipment and storage medium
CN110795313A (en) A kind of server voice alarm method and system
US20130144457A1 (en) Server system for updating heat dissipation solution

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

Application publication date: 20230404

RJ01 Rejection of invention patent application after publication