A control method and device of a fan, a machine room air conditioner and a storage medium
By using a universal fan control device in the computer room air conditioner, the control methods of different types of fans can be automatically identified and adapted, solving the problem of circuit and program replacement caused by fan replacement in the computer room air conditioner and improving development efficiency.
Patent Information
- Application Number
- CN202211656143.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-12-22
AI Technical Summary
Different types of fans in computer room air conditioning require different fan control methods, which means that changing the fan control method requires changing the circuit and program, affecting development efficiency.
It adopts a universal fan control device, which realizes automatic identification and control of different types of fans through communication module, MCU module, fan control module and power on/off control module. Only the communication parameters need to be changed to adapt to different fan control methods.
It simplifies the fan replacement process, improves the development efficiency of computer room air conditioning, and reduces the redesign work of hardware and software.
Smart Images

Figure CN116163978B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of machine room air conditioners, and particularly relates to a fan control method and device, a machine room air conditioner, and a storage medium. BACKGROUND
[0002] The fan control mode used in an electrical appliance (such as a machine room air conditioner) is any one of PWM (pulse width modulation, i.e., using program control to output the duty cycle width of a square wave to achieve control of different speeds), VSP voltage control (i.e., program control of a peripheral circuit to output a 0-8v DC voltage to control the speed of the fan), and communication control (i.e., using 485 or other forms of communication to send fan control parameters to the corresponding register to achieve fan control). Each control mode requires different circuits and programs to match, and when the fan control mode needs to be replaced, the circuit layout needs to be redesigned, and the control program needs to be changed significantly. In particular, for communication-type fans, when the fan manufacturer is replaced, the communication needs to be re-adjusted. If the communication configuration parameters are changed by mistake during the adjustment process, the baud rate and parity check need to be manually changed, and the connection needs to be repeatedly tried after power-off and power-on, which seriously affects the development efficiency.
[0003] The above content is only used to assist in understanding the technical solutions of the present application and does not represent an acknowledgement of the above content as prior art. SUMMARY
[0004] The present application aims to provide a fan control method and device, a machine room air conditioner, and a storage medium, to solve the problem that different types of fans in electrical appliances (such as machine room air conditioners) have different fan control modes, each fan control mode requires corresponding circuits and programs to match, and when the fan control mode needs to be replaced, the corresponding circuits and programs need to be replaced to match, which is difficult to operate and affects the development efficiency of electrical appliances (such as machine room air conditioners). The effect of using the same general fan control device to control different types of fans is achieved, and when the fan control mode needs to be replaced, only the communication parameters of the general fan control device need to be changed, which is easy to operate and helps to improve the development efficiency of electrical appliances (such as machine room air conditioners).
[0005] The application provides a control method of a fan, the fan is applied to an electrical equipment; a general fan control device is arranged between a mainboard of the electrical equipment and the fan; the control method of the fan comprises the following steps: after the electrical equipment is powered on, a communication connection between the general fan control device and the mainboard of the electrical equipment is controlled to be established; in the case that the communication connection between the general fan control device and the mainboard of the electrical equipment is established, communication data sent by the mainboard of the electrical equipment is received; according to a control mode carried in the communication data, a control mode of the fan is determined, which is recorded as a target control mode of the fan; the target control mode of the fan is any one of a PWM control mode, a VSP control mode and a communication control mode; according to the target control mode of the fan, the fan is controlled to operate.
[0006] In some embodiments, the general fan control device comprises a communication module, an MCU module, a fan control module and a power supply on-off control module; the fan control module comprises a PWM interface, a VSP interface and a communication interface; the power supply on-off control module is arranged between a power supply of the fan and the fan; wherein after the electrical equipment is powered on, the communication connection between the general fan control device and the mainboard of the electrical equipment is controlled to be established, which comprises the following steps: after the electrical equipment is powered on, the communication connection between the communication module and the mainboard of the electrical equipment is established under the control of the MCU module; in the case that the communication connection between the general fan control device and the mainboard of the electrical equipment is established, the communication data sent by the mainboard of the electrical equipment is received, which comprises the following steps: in the case that the communication connection between the general fan control device and the mainboard of the electrical equipment is established, the MCU module receives the communication data sent by the mainboard of the electrical equipment through the communication module; according to the control mode carried in the communication data, the control mode of the fan is determined, which is recorded as the target control mode of the fan; according to the target control mode of the fan, the fan is controlled to operate, which comprises the following steps: the MCU module controls the fan to operate according to the target control mode of the fan in combination with the fan control module and the power supply on-off control module; wherein in the case that the target control mode of the fan is the PWM control mode, the operation of the fan is controlled through the PWM interface; in the case that the target control mode of the fan is the VSP control mode, the operation of the fan is controlled through the VSP interface; in the case that the target control mode of the fan is the communication control mode, the on-off power supply of the fan is controlled through the power supply on-off control module, and the operation of the fan is controlled through the communication interface.
[0007] In some embodiments, when the target control mode of the fan is a PWM control mode, the fan is controlled to operate according to the target control mode of the fan, including: increasing the given PWM duty cycle of the fan according to the set duty cycle increasing mode, and receiving the feedback speed of the fan; the given PWM duty cycle of the fan is the PWM duty cycle used to drive the fan to operate; when the given PWM duty cycle of the fan is increased, it is determined whether the feedback speed of the fan is also correspondingly increased: if yes, the fan is controlled to operate according to the control instruction sent by the mainboard of the electrical appliance, otherwise it is determined whether the given PWM duty cycle of the fan is less than the set duty cycle; if the given PWM duty cycle of the fan is less than the set duty cycle, it is returned to continue to increase the given PWM duty cycle of the fan according to the set duty cycle increasing mode; if the given PWM duty cycle of the fan is greater than or equal to the set duty cycle, the mainboard of the electrical appliance is fed back a fault message that the communication data is assigned with an error or the general fan control device is abnormally wired.
[0008] In some embodiments, when the target control mode of the fan is a VSP control mode, the fan is controlled to operate according to the target control mode of the fan, further including: determining the actual control voltage parameter of the fan according to the upper limit of the control voltage range carried in the communication data; increasing the control voltage of the fan according to the actual control voltage parameter of the fan, and receiving the feedback speed of the fan; the control voltage of the fan is the control voltage used to control the fan to operate; when the control voltage of the fan is increased, it is determined whether the feedback speed of the fan is also correspondingly increased: if yes, the fan is controlled to operate according to the control instruction sent by the mainboard of the electrical appliance, otherwise the mainboard of the electrical appliance is fed back a fault message that the communication data is assigned with an error or the general fan control device is abnormally wired.
[0009] In some embodiments, when the target control mode of the fan is a communication control mode, the fan is controlled to operate according to the target control mode of the fan, further comprising: determining whether there is a communication configuration parameter in the communication data; if it is determined that there is a communication configuration parameter in the communication data, the fan is called according to the communication configuration parameter, and it is determined whether the fan has a reply; if there is a reply, the fan is controlled to operate according to the communication parameter of the fan and the control instruction sent by the mainboard of the electrical appliance; if there is no reply, the fan is called according to a preset default communication parameter; if it is determined that there is no communication configuration parameter in the communication data, the fan is called according to a preset default communication parameter; after the fan is called according to the preset default communication parameter, it is determined whether the fan has a reply; if there is a reply, the fan is controlled to operate according to the control instruction sent by the mainboard of the electrical appliance; if there is no reply, the fan is called by using a set baud rate and a check mode.
[0010] In some embodiments, the fan is controlled to operate according to the communication parameter of the fan and the control instruction sent by the mainboard of the electrical appliance, comprising: determining whether there is a specified fan communication parameter in the communication data; if it is determined that there is no specified fan communication parameter in the communication data, the fan is controlled to operate according to the control instruction sent by the mainboard of the electrical appliance; if it is determined that there is a specified fan communication parameter in the communication data, the fan communication parameter is written into a corresponding register of the fan, the fan is powered off and then powered on, after the communication connection is established between the general fan control device and the mainboard of the electrical appliance, the fan is controlled to operate according to the control instruction sent by the mainboard of the electrical appliance.
[0011] In some embodiments, the fan is called by using a set baud rate and a check mode, comprising: increasing the set baud rate to obtain a new set baud rate according to a set baud rate increasing mode; under each baud rate in the set baud rate and each new set baud rate after the increasing, the fan is called in three modes of odd check, even check and no check respectively; and after calling the fan each time, it is determined whether the fan has a reply; if the fan has a reply after being called in the corresponding baud rate and check mode, the baud rate and the check mode are fixed as the current communication mode, and the fan is controlled to operate according to the control instruction sent by the mainboard of the electrical appliance in the communication mode; if the fan has no reply after being called in the baud rate and the check mode, a fault message of communication data assignment error is fed back to the mainboard of the electrical appliance.
[0012] According to the above method, another aspect of the present application provides a control device of a fan, the fan being applied to an electrical appliance; a general fan control device is arranged between a mainboard of the electrical appliance and the fan; the control device of the fan comprises: a control unit configured to control the general fan control device and the mainboard of the electrical appliance to establish a communication connection after the electrical appliance is powered on; an acquisition unit configured to receive communication data sent by the mainboard of the electrical appliance in the case that the general fan control device and the mainboard of the electrical appliance establish a communication connection; the control unit is further configured to determine a control mode of the fan according to a control mode carried in the communication data, and the control mode is recorded as a target control mode of the fan; the target control mode of the fan is any one of a PWM control mode, a VSP control mode and a communication control mode; the control unit is further configured to control the fan to operate according to the target control mode of the fan.
[0013] In some embodiments, the general fan control device comprises a communication module, an MCU module, a fan control module and a power on-off control module; the fan control module comprises a PWM interface, a VSP interface and a communication interface; the power on-off control module is arranged between the power supply of the fan and the fan; wherein the control unit controls the general fan control device and the mainboard of the electrical equipment to establish a communication connection after the electrical equipment is powered on, comprising: after the electrical equipment is powered on, the communication module and the mainboard of the electrical equipment are connected under the control of the MCU module; the control unit receives the communication data sent by the mainboard of the electrical equipment under the condition that the general fan control device and the mainboard of the electrical equipment establish a communication connection, comprising: under the condition that the general fan control device and the mainboard of the electrical equipment establish a communication connection, the MCU module receives the communication data sent by the mainboard of the electrical equipment through the communication module; the control unit determines the control mode of the fan according to the control mode carried in the communication data, which is recorded as the target control mode of the fan, comprising: the MCU module determines the control mode of the fan according to the control mode carried in the communication data, which is recorded as the target control mode of the fan; the control unit controls the fan to run according to the target control mode of the fan, comprising: the MCU module controls the fan to run according to the target control mode of the fan in combination with the fan control module and the power on-off control module; wherein, in the case that the target control mode of the fan is PWM control mode, the operation of the fan is controlled through the PWM interface; in the case that the target control mode of the fan is VSP control mode, the operation of the fan is controlled through the VSP interface; in the case that the target control mode of the fan is communication control mode, the on-off of the fan is controlled through the power on-off control module, and the operation of the fan is controlled through the communication interface.
[0014] In some embodiments, the control unit, in the case that the target control mode of the fan is the PWM control mode, controls the fan to operate according to the target control mode of the fan, including: increasing the given PWM duty cycle of the fan according to the set duty cycle increasing mode, and receiving the feedback speed of the fan; the given PWM duty cycle of the fan is the PWM duty cycle used to drive the fan to operate; in the case that the given PWM duty cycle of the fan is increased, determining whether the feedback speed of the fan is also correspondingly increased: if yes, controlling the fan to operate according to the control instruction sent by the mainboard of the electrical appliance, otherwise, determining whether the given PWM duty cycle of the fan is less than the set duty cycle; if the given PWM duty cycle of the fan is less than the set duty cycle, returning to continue to increase the given PWM duty cycle of the fan according to the set duty cycle increasing mode; if the given PWM duty cycle of the fan is greater than or equal to the set duty cycle, feeding back to the mainboard of the electrical appliance a fault message that the communication data is assigned with an error or the general fan control device is abnormally wired.
[0015] In some embodiments, the control unit, in the case that the target control mode of the fan is the VSP control mode, controls the fan to operate according to the target control mode of the fan, further including: determining the actual control voltage parameter of the fan according to the upper limit of the control voltage range carried in the communication data; increasing the control voltage of the fan according to the actual control voltage parameter of the fan, and receiving the feedback speed of the fan; the control voltage of the fan is the control voltage used to control the fan to operate; in the case that the control voltage of the fan is increased, determining whether the feedback speed of the fan is also correspondingly increased: if yes, controlling the fan to operate according to the control instruction sent by the mainboard of the electrical appliance, otherwise, feeding back to the mainboard of the electrical appliance a fault message that the communication data is assigned with an error or the general fan control device is abnormally wired.
[0016] In some embodiments, the control unit, in the case that the target control mode of the fan is the communication control mode, controls the fan to operate according to the target control mode of the fan, and further comprises: determining whether there is a communication configuration parameter in the communication data; if it is determined that there is a communication configuration parameter in the communication data, calling the fan according to the communication configuration parameter, and determining whether the fan has a reply; if yes, controlling the fan to operate according to the communication parameter of the fan and the control instruction sent by the mainboard of the electrical equipment; if no, calling the fan according to a preset default communication parameter; if it is determined that there is no communication configuration parameter in the communication data, calling the fan according to the preset default communication parameter; and after calling the fan according to the preset default communication parameter, determining whether the fan has a reply; if yes, controlling the fan to operate according to the control instruction sent by the mainboard of the electrical equipment; and if no, calling the fan by using a set baud rate and a check mode.
[0017] In some embodiments, the control unit controls the fan to operate according to the communication parameter of the fan and the control instruction sent by the mainboard of the electrical equipment, and comprises: determining whether there is a specified fan communication parameter in the communication data; if it is determined that there is no specified fan communication parameter in the communication data, controlling the fan to operate according to the control instruction sent by the mainboard of the electrical equipment; and if it is determined that there is a specified fan communication parameter in the communication data, writing the fan communication parameter into a corresponding register of the fan, controlling the fan to be powered off and then powered on, and after the communication connection is established between the general fan control device and the mainboard of the electrical equipment, controlling the fan to operate according to the control instruction sent by the mainboard of the electrical equipment.
[0018] In some embodiments, the control unit calls the fan by using a set baud rate and a check mode, and comprises: increasing the set baud rate to obtain a new set baud rate according to a set baud rate increasing mode; calling the fan by switching among three check modes of odd check, even check and no check respectively at each baud rate in the set baud rate and each new set baud rate after the increase; and after calling the fan each time, determining whether the fan has a reply; if the fan has a reply after being called at a corresponding baud rate and check mode, fixing the baud rate and the check mode as a current communication mode, and controlling the fan to operate according to the control instruction sent by the mainboard of the electrical equipment in the communication mode; and if the fan has no reply after being called at the baud rate and the check mode, feeding back a fault message of a communication data assignment error to the mainboard of the electrical equipment.
[0019] In order to match the above device, the application further provides a computer room air conditioner, which comprises the fan control device described above.
[0020] According to the method, the application provides a storage medium comprising a stored program, wherein the program controls a device where the storage medium is located to perform the fan control method when the program is executed.
[0021] Therefore, the application provides a general fan control device between the mainboard and the fan of an electrical equipment (such as a computer room air conditioner), the general fan control device comprises a communication module, an MCU module, a power supply on-off control module and a fan control module, the fan control module comprises a PWM interface, a VSP interface and a communication interface; after the electrical equipment (such as a computer room air conditioner) is powered on, the communication module receives the communication data sent by the mainboard, the MCU module determines the fan control mode according to the communication data, and the corresponding interface of the fan control module is turned on based on the determined fan control mode, so that the operation of the fan is controlled according to the determined fan control mode through the corresponding interface of the fan control module, thereby the same general fan control device is used to control different types of fans, and when the fan control mode needs to be replaced, only the communication parameters of the general fan control device need to be changed, the replacement operation is difficult, and the development efficiency of the electrical equipment (such as a computer room air conditioner) is improved.
[0022] Other features and advantages of the application will be set forth in the following description, and in part will become apparent to those skilled in the art from the description, or can be learned by practice of the application.
[0023] The technical solutions of the application will be further described in detail below with reference to the drawings and examples. BRIEF DESCRIPTION OF DRAWINGS
[0024] Figure 1 The flowchart of an embodiment of the fan control method of the application;
[0025] Figure 2 The flowchart of an embodiment of the fan operation control in the PWM control mode in the method of the application;
[0026] Figure 3 The flowchart of an embodiment of the fan operation control in the VSP control mode in the method of the application;
[0027] Figure 4 The flowchart of an embodiment of the fan operation control in the communication control mode in the method of the application;
[0028] Figure 5 The flowchart of an embodiment of the fan operation control according to the communication parameters of the fan and the control instruction sent by the mainboard of the electrical equipment in the method of the application;
[0029] Figure 6A flowchart of an embodiment of the fan pointed by the set baud rate and check mode in the method of the application;
[0030] Figure 7 A structural diagram of an embodiment of the control device of the fan of the application;
[0031] Figure 8 A structural diagram of an embodiment of the system of the general fan control device of the application;
[0032] Figure 9 A structural diagram of an embodiment of the power on-off control module in the general fan control device of the application;
[0033] Figure 10 A diagram of the fan control module in the general fan control device of the application;
[0034] Figure 11 A control flow diagram of an embodiment of the general fan control device of the application.
[0035] In combination with the drawings, the reference signs in the embodiments of the application are as follows:
[0036] 102-acquisition unit; 104-control unit. DETAILED DESCRIPTION
[0037] In order to make the objects, technical solutions and advantages of the application clearer, the technical solutions of the application will be described clearly and completely below in combination with the specific embodiments of the application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the application, but not all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative work belong to the protection scope of the application.
[0038] It is considered that different types of fans in the machine room air conditioner have different fan control modes, each fan control mode needs corresponding circuit and program to match, and when the fan control mode needs to be replaced, the corresponding circuit and program need to be replaced to match, which has large replacement operation difficulty and affects the development efficiency of the machine room air conditioner. Specifically, when a machine type is derived and developed or urgently sent for testing, a new fan may need to be selected, and the new fan control mode may be inconsistent with the previous control mode, and the control mode needs to be replaced.
[0039] Some schemes propose a PWM fan control circuit for a refrigerator, but only the PWM control signal can be output, and when the control mode of the fan changes or the PWM frequency changes, it cannot automatically match and adapt, and the control mode is not flexible. When the PWM frequency changes, it cannot automatically match and adapt, because: each PWM mode controlled fan generally has a recognizable frequency range, and when the frequency range is exceeded, the control signal cannot be recognized, and the output PWM frequency of the general controller is fixed as a value within the PWM range that the fan can recognize, and when a fan is replaced, the PWM frequency is still output according to the previous PWM frequency, and the new fan may not be able to recognize it. For example: the frequency range that fan A can accept for control is 10kHz-20kHz, and the PWM output of the controller is 15kHz when designed, and when fan B is replaced, the frequency range that fan B can accept is 1kHz-5kHz, and at this time, the original controller is still used to control fan B, and B is not controlled.
[0040] Some other schemes propose a fan expansion device that can control multiple fans, but only the PWM control mode can be used, and when the fan is replaced, the circuit and program need to be redesigned, and the versatility is poor.
[0041] Therefore, the scheme of the present application proposes a universal fan control device to control different types of fans using the same universal fan control device, and when the air conditioning unit is replaced with a different type of fan, the hardware circuit and software control part do not need to be redesigned, only the communication parameters with the universal fan control device need to be changed, and when the universal fan control device is used for development, it is convenient, fast and efficient.
[0042] For example: assuming that a developed model 1 uses PWM controlled fan A, at this time, a new project comes, model 1 meets all other conditions except air volume, at this time, fan B with larger air volume needs to be replaced, and the control mode of B may be VSP voltage control or communication control, if the universal fan control device provided by the scheme of the present application is used, the fan can be directly replaced, and the fan control board does not need to be redesigned. For example: when a model is developed, the fan matching is not a problem at the early stage, and the cooling capacity and structure are changed at the later stage due to some reasons, at this time, the fan and the current system are poorly matched, and the fan needs to be replaced, however, the controller needs to be redesigned for a long period, which does not meet the development cycle requirement, at this time, if the universal fan control device provided by the scheme of the present application is used, the replacement can be directly performed.
[0043] According to the embodiments of the present application, a fan control method is provided, as shown in Figure 1A flowchart of an embodiment of the method of the application is shown. The fan is applied to an electrical appliance. A general fan control device is arranged between a mainboard of the electrical appliance and the fan. The general fan control device is used to realize control of the fan. The control method of the fan comprises steps S110-S140.
[0044] At step S110, after the electrical appliance is powered on, the general fan control device is controlled to establish a communication connection with the mainboard of the electrical appliance.
[0045] At step S120, in the case that the communication connection is established between the general fan control device and the mainboard of the electrical appliance, communication data sent by the mainboard of the electrical appliance is received.
[0046] At step S130, according to a control mode carried in the communication data, a control mode of the fan is determined, which is denoted as a target control mode of the fan. The target control mode of the fan is any one of a PWM control mode, a VSP control mode and a communication control mode.
[0047] At step S140, the fan is controlled to operate according to the target control mode of the fan.
[0048] Specifically, Figure 11 A control flowchart of an embodiment of the general fan control device of the application is shown. As Figure 11 shown, the control flow of the general fan control device according to the scheme of the application comprises:
[0049] Step 1, after being powered on, the general fan control device establishes a communication connection with the mainboard (i.e. the mainboard of the air conditioner), receives communication data (or communication parameters) sent by the mainboard, and judges the fan control mode through the communication data given by the mainboard. The communication data sent by the mainboard includes the fan control mode, the fan speed feedback mode, the communication address of the communication type fan and the like.
[0050] Among them, it is realized by protocol, for example: instruction P0 represents the fan control mode; in the fan control mode, 0 represents PWM, 1 represents VSP control mode, and 2 represents communication control mode. Instruction P1 represents fan speed 0-100. Instruction P2 represents VSP control maximum voltage 0-10V. Instruction P3 represents the communication mode fan speed register address. Instruction P4 represents the maximum running speed of the fan. Instruction P5 represents the number of pulses corresponding to one rotation of the fan.
[0051] Step 2, when the control mode given in the communication data is PWM control, then enter step 3, if the control mode is VSP voltage control, then enter step 4, if the control mode is communication control, then enter step 5. Among them, the control mode adopts the pulse width PWM frequency adaptive control mode, which can automatically change and match. The general control mode of voltage VSP can control different types of fans. The communication automatic matching control mode can automatically switch the baud rate and the check mode.
[0052] The scheme of the application proposes a general fan control device to control different types of fans with the same general fan control device. The fan type and target speed of the corresponding fan of the general fan control device are notified through the 485 communication signal, and the general fan control device automatically outputs the PWM control signal or the VSP control signal or the 485 communication signal to control the fan, which can realize fan communication automatic matching and control PWM frequency automatic matching. In this way, the PWM control mode, the VSP control mode or the communication control mode (i.e. the communication signal control mode) are automatically matched and output to control different types of fans. When the air conditioning unit replaces different types of fans, it is not necessary to redesign the hardware circuit and the software control part, but only to change part of the communication parameters of the general fan control device. When the general fan control device is used for development, it is convenient, fast and efficient.
[0053] In some embodiments, the general fan control device comprises a communication module, an MCU module, a fan control module and a power on-off control module. The communication module, the fan control module and the power on-off control module are connected to the MCU module respectively. The fan control module comprises a PWM interface, a VSP interface and a communication interface. The power on-off control module is arranged between the power supply of the fan and the fan.
[0054] In step S110, after the electric appliance is powered on, the communication connection between the general fan control device and the mainboard of the electric appliance is established, which comprises: after the electric appliance is powered on, the communication connection between the communication module and the mainboard of the electric appliance is established under the control of the MCU module.
[0055] In step S120, the communication data sent by the mainboard of the electric appliance is received under the condition that the communication connection between the general fan control device and the mainboard of the electric appliance is established, which comprises: under the condition that the communication connection between the general fan control device and the mainboard of the electric appliance is established, the MCU module receives the communication data sent by the mainboard of the electric appliance through the communication module.
[0056] Step S130 involves determining the control mode of the wind turbine based on the control mode carried in the communication data, and denoting it as the target control mode of the wind turbine. This includes: enabling the MCU module to determine the control mode of the wind turbine based on the control mode carried in the communication data, and denoting it as the target control mode of the wind turbine.
[0057] Step S140, controlling the operation of the fan according to the target control mode, includes: enabling the MCU module, in conjunction with the fan control module and the power on / off control module, to control the operation of the fan according to the target control mode. Specifically, if the target control mode is PWM control, the fan operation is controlled through the PWM interface. If the target control mode is VSP control, the fan operation is controlled through the VSP interface. If the target control mode is communication control, the power on / off control module controls the fan's power supply, and the fan operation is controlled through the communication interface.
[0058] Figure 8 This is a schematic diagram of the structure of an embodiment of a universal fan control device system according to the present invention. Figure 8 As shown, the universal fan control device proposed in this invention includes: a communication module, an MCU and its peripheral circuits, a power on / off control module, a fan control module, and a power output module. The air conditioning mainboard is connected to the communication module via RS485 communication. The fan control module is connected to the fan via control signals and speed feedback signals. The power input module is connected to the fan via the power on / off control module and the power output module. The fan control module includes: a PWM interface, a VSP interface, and a communication interface, which can control various types of fans and can freely switch between different fan control modes.
[0059] Figure 9 This is a schematic diagram of the structure of a power on / off control module in a universal fan control device according to the present invention. Figure 9The power supply on / off control module shown includes: transistors (i.e., transistors Q1, Q2, diodes D1, D2, D3, Zener diodes ZD1, ZD2, and ZD3), MOSFETs (e.g., MOSFETs Q3, Q4, and Q5), resistors (e.g., resistors R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, and R12), and capacitors (e.g., capacitors C1, C2, and C3), etc., which can control the input power supply to be turned on and off according to the MCU control signal. For example, when the on / off control signal K1 is high, MOSFETs Q3, Q4, and Q5 are all turned on, connecting the input and output power supplies at each power input port, and the fan is powered. When the on / off control signal K1 is low, the fan is powered off. The power on / off control module is mainly used when communication-type fans need to change the fan's communication parameters. After the change is successful, the fan needs to be powered off and then powered on again for the change to take effect.
[0060] Figure 10 This is a schematic diagram of a fan control module in a universal fan control device according to the present invention. Figure 10 As shown, the fan control module mainly consists of optocouplers (such as optocoupler U25 and optocoupler U29), transistors (such as transistor Q6), resistors (such as resistors R90, R66, R33, R25, R13, R15, R16, R69, R82, R27, and R14), and capacitors (such as capacitors C125, C54, C119, and C120). Its main function is to convert the 3.3V PWM signal transmitted from the MCU into a 12V PWM output, or into a 0-10V VSP voltage output, and to receive feedback pulse signals (such as fan feedback signals) to calculate the rotational speed.
[0061] Figures 8 to 10 The universal fan control device shown is installed between the air conditioner main board and the fan. The air conditioner main board is connected to the universal fan control device via a communication line. The fan power supply is connected to the power on / off module input terminal of the universal fan control device, and the fan line is connected to the power on / off module output terminal of the universal fan control device.
[0062] In some implementations, when the target control mode of the fan is PWM control mode, step S140 controls the operation of the fan according to the target control mode of the fan, including: a first process of controlling the operation of the fan under PWM control mode.
[0063] The following is combined with Figure 2As shown in the embodiment of the method of the present application, the flowchart of controlling the fan to run in the PWM control mode further illustrates the specific process of controlling the fan to run in the PWM control mode in step S140, which comprises steps S210 to S240.
[0064] In step S210, the given PWM duty cycle of the fan is increased according to the set duty cycle increasing mode, and the feedback speed of the fan is received. The given PWM duty cycle of the fan is the PWM duty cycle used to drive the fan to run. The set duty cycle increasing mode is, for example, sequentially increasing by 20 kHz.
[0065] In step S220, in the case that the given PWM duty cycle of the fan is increased, it is determined whether the feedback speed of the fan is also increased correspondingly: if yes, the fan is controlled to run according to the control instruction sent by the mainboard of the electrical appliance, otherwise it is determined whether the given PWM duty cycle of the fan is less than the set duty cycle. The set duty cycle is, for example, 200 kHz.
[0066] In step S230, if the given PWM duty cycle of the fan is less than the set duty cycle, it is returned to continue to increase the given PWM duty cycle of the fan according to the set duty cycle increasing mode.
[0067] In step S240, if the given PWM duty cycle of the fan is greater than or equal to the set duty cycle, the communication data assignment error or the fault message of the abnormal wiring of the general fan control device is fed back to the mainboard of the electrical appliance.
[0068] Specifically, as shown in the control flow of the general fan control device according to the scheme of the present application, it further comprises steps 3 to 7. Figure 11 In the process of sequentially increasing by 20 kHz, it is determined whether the fan is controlled at each frequency (i.e., whether the feedback speed is increased correspondingly): if yes, the frequency is fixed to enter step 7, i.e., to act according to the instruction of the mainboard, if not, it is continuously increased, if it is still not controlled after being increased to 200 kHz, it enters step 6, i.e., to feed back the communication parameter assignment error or the wiring abnormality fault to the mainboard.
[0069] In some embodiments, in the case that the target control mode of the fan is the VSP control mode, the process of controlling the fan to run according to the target control mode of the fan in step S140 further comprises a second process of controlling the fan to run in the VSP control mode.
[0070] The following will be described in combination with Figure 3An embodiment flowchart of the method of the application shown in the VSP control mode for controlling the operation of the fan, further illustrating the specific process of controlling the operation of the fan in the VSP control mode in step S140, comprising steps S310 to S330.
[0071] Step S310, according to the upper limit of the control voltage range carried in the communication data, determining the actual control voltage parameter (such as the actual control voltage percentage) of the fan.
[0072] Step S320, increasing the control voltage of the fan according to the actual control voltage parameter of the fan, and receiving the speed feedback of the fan. The control voltage of the fan is the control voltage for controlling the operation of the fan.
[0073] Step S330, in the case of increasing the control voltage of the fan, determining whether the speed feedback of the fan is also correspondingly increased: if yes, controlling the operation of the fan according to the control instruction sent by the mainboard of the electrical equipment, otherwise, feeding back the fault message of communication data assignment error or general fan control device wiring abnormality to the mainboard of the electrical equipment.
[0074] Specifically, as Figure 11 shown, the control flow of the general fan control device proposed in the scheme of the application further comprises: step 4, if the control mode is VSP voltage control, first read the control voltage range sent by the mainboard, and calculate the actual control voltage percentage = fan target speed percentage * Vmax / 10V. The fan target speed percentage is sent by the mainboard, the control voltage is increased according to the actual control voltage percentage, the speed feedback is read, and it is determined whether the target speed under the control voltage is equal to the speed feedback: if equal, go to step 7, that is, act according to the instruction of the mainboard, if not equal and the difference is large, go to step 6, that is, feed back the communication parameter assignment error or wiring abnormality fault to the mainboard. Wherein, Vmax is the upper limit of the control voltage range sent by the mainboard.
[0075] Wherein, the maximum output voltage of the circuit after design is fixed, so the maximum output voltage is fixed to 10V when designing the circuit, and the control voltage of each fan may be different, some are 0-6V, and some are 0-8V. The mainboard will send the maximum voltage Vmax corresponding to this fan to the general fan control device through the communication module. After receiving, the general fan control device will calculate according to the proportion, for example, if the maximum control voltage is 6V, when controlling to 50% speed, the actual output voltage should be 3V, at this time, 3V is 30% of 10V, so the final control signal is 30%.
[0076] In some embodiments, when the target control mode of the fan is the communication control mode, the step S140 of controlling the fan according to the target control mode of the fan further comprises a third process of controlling the fan in the communication control mode.
[0077] The specific process of controlling the fan in the communication control mode in the method of the present application will be further illustrated below with reference to the flowchart of an embodiment of the process of controlling the fan in the communication control mode in the method of the present application shown in Figure 4 The specific process of controlling the fan in the communication control mode in the method of the present application will be further illustrated below with reference to the flowchart of an embodiment of the process of controlling the fan in the communication control mode in the method of the present application shown in
[0078] In step S410, it is determined whether there is a communication configuration parameter in the communication data.
[0079] In step S420, if it is determined that there is a communication configuration parameter in the communication data, the fan is addressed according to the communication configuration parameter, and it is determined whether the fan has a reply: if yes, the fan is controlled to operate according to the communication parameter of the fan and the control instruction sent by the mainboard of the electric appliance; if no, the fan is addressed according to the preset default communication parameter.
[0080] In step S430, if it is determined that there is no communication configuration parameter in the communication data, the fan is addressed according to the preset default communication parameter.
[0081] In step S440, after the fan is addressed according to the preset default communication parameter, it is determined whether the fan has a reply: if yes, the fan is controlled to operate according to the control instruction sent by the mainboard of the electric appliance; if no, the fan is addressed by using the set baud rate and check mode.
[0082] Specifically, as shown in Figure 11 The control flow of the general fan control device according to the scheme of the present application further comprises: step 5, if the control mode is the communication control mode, it is determined whether there is a fan-related communication parameter in the communication data sent by the mainboard: if yes, the fan is addressed according to the communication parameter configuration; if the fan has a reply, step 51 is executed. If there is no fan-related communication parameter in the communication data sent by the mainboard, or the fan has no reply after being addressed according to the communication parameter configuration, the fan is addressed according to the default communication parameter (for example, the baud rate is 19200, and the odd check is performed): if there is a reply, step 7 is entered, that is, the fan is controlled to operate according to the instruction of the mainboard; if there is no reply, step 52 is executed. The default communication parameter is a parameter that is pre-configured according to the fan control standard.
[0083] In some embodiments, the specific process of controlling the fan in step S420 according to the communication parameter of the fan and the control instruction sent by the mainboard of the electric appliance will be further illustrated below with reference to the following exemplary description.
[0084] The specific process of controlling the fan in the communication control mode in the method of the present application will be further illustrated below with reference to the flowchart of an embodiment of the process of controlling the fan in the communication control mode in the method of the present application shown inFigure 5 The flowchart shown is a schematic diagram of an embodiment of the method of the present invention, which controls the operation of the fan according to the communication parameters of the fan and the control instructions sent by the main board of the electrical equipment. The specific process of controlling the operation of the fan according to the communication parameters of the fan and the control instructions sent by the main board of the electrical equipment in step S420 is further explained, including steps S510 to S530.
[0085] Step S510: Determine whether the communication data contains the specified wind turbine communication parameters.
[0086] Step S520: If it is determined that there are no specified fan communication parameters in the communication data, then the fan is controlled to operate according to the control command sent by the main board of the electrical equipment.
[0087] Step S530: If it is determined that there are specified fan communication parameters in the communication data, the fan communication parameters are written into the corresponding register of the fan, and the fan is powered off and then powered on again. After the communication connection between the general fan control device and the main board of the electrical equipment is established, the fan is controlled to run according to the control instructions sent by the main board of the electrical equipment.
[0088] Specifically, such as Figure 11 As shown, the control flow of the universal fan control device proposed in this invention further includes: Step 51, determining whether the mainboard has specified fan communication parameters: if not specified, proceed directly to step 7; if specified, write the configuration parameters into the corresponding register, and control the power on / off control module to power off and then power on the fan again. After successful communication establishment, proceed to step 7, i.e., act according to the mainboard instructions. In the fan communication control mode, control speed and other parameter values need to be sent to the fan via communication and written into the registers of the fan's internal chip so that the fan can operate according to the sent parameters. Fans controlled by communication have a register table that specifies which registers hold certain parameters. One part of the register table stores the speed, power on / off commands, etc., sent by the controller, and the other part stores some of its own operating parameters.
[0089] In some implementations, the specific process of naming the wind turbine in step S440 using the set baud rate and verification method is described in the following exemplary description.
[0090] The following is combined Figure 6 The flowchart of an embodiment of the method of the present invention, which uses a set baud rate and a verification method to name the wind turbine, is shown below. The specific process of naming the wind turbine using a set baud rate and a verification method in step S440 is further explained, including steps S610 to S640.
[0091] Step S610, increasing the set baud rate according to the set baud rate increasing mode to obtain a new set baud rate.
[0092] Step S620, switching the odd parity, even parity and no parity respectively to call the fan at each baud rate of the set baud rate and the increased new set baud rate, and determining whether the fan has a reply after calling the fan each time.
[0093] Step S630, if the fan has a reply after calling the fan at the corresponding baud rate and parity mode, fixing the baud rate and parity mode as the current communication mode, and controlling the fan to run according to the control instruction sent by the mainboard of the electric appliance under the communication mode.
[0094] Step S640, if the fan has no reply after calling the fan at the baud rate and parity mode, feeding back a fault message of communication data assignment error to the mainboard of the electric appliance.
[0095] Specifically, as shown in the figure, Figure 11 The control flow of the general fan control device provided by the scheme of the application further comprises: step 52, increasing the baud rate from 1200, 2400, 4800, 9600 in turn, and calling the fan by switching the odd parity, even parity and no parity respectively at each baud rate; if the fan successfully communicates at a baud rate and parity mode, fixing the baud rate and parity mode as the current mode, and entering step 7; if all baud rates and parity modes cannot successfully communicate, entering step 6.
[0096] Step 6, feeding back a communication parameter assignment error or wiring abnormality fault to the mainboard.
[0097] Step 7, acting according to the instruction of the mainboard, for example, receiving the target rotating speed sent by the mainboard, adjusting to the target rotating speed, detecting the real-time rotating speed feedback and sending to the mainboard.
[0098] The technical scheme of the embodiment is adopted, the general fan control device is arranged between the mainboard and the fan of the electric appliance (such as a computer room air conditioner), the general fan control device has a communication module, an MCU module, a power on-off control module and a fan control module, the fan control module has a PWM interface, a VSP interface and a communication interface. After the electric appliance (such as a computer room air conditioner) is powered on, the communication data sent by the mainboard is received through the communication module, the fan control mode is determined according to the communication data through the MCU module, and the corresponding interface of the fan control module is controlled to be opened based on the determined fan control mode, so that the operation of the fan is controlled through the corresponding interface of the fan control module according to the determined fan control mode. Therefore, the same general fan control device is used to control different types of fans, and when the fan control mode needs to be replaced, only part of the communication parameters of the general fan control device needs to be changed, the replacement operation is difficult, and the development efficiency of the electric appliance (such as a computer room air conditioner) is improved.
[0099] According to the embodiment of the application, a fan control device corresponding to the control method of the fan is also provided. Referring to Figure 7 The structure schematic diagram of an embodiment of the device of the application is shown. The fan is applied to an electric appliance. A general fan control device is arranged between the mainboard of the electric appliance and the fan. The general fan control device is used to realize the control of the fan. The fan control device comprises an acquisition unit 102 and a control unit 104.
[0100] The control unit 104 is configured to control the general fan control device and the mainboard of the electric appliance to establish a communication connection after the electric appliance is powered on. The specific functions and processes of the control unit 104 are described in step S110.
[0101] The acquisition unit 102 is configured to receive the communication data sent by the mainboard of the electric appliance when the communication connection is established between the general fan control device and the mainboard of the electric appliance. The specific functions and processes of the acquisition unit 102 are described in step S120.
[0102] The control unit 104 is also configured to determine the control mode of the fan according to the control mode carried in the communication data, which is recorded as the target control mode of the fan. The target control mode of the fan is any one of the PWM control mode, the VSP control mode and the communication control mode. The specific functions and processes of the control unit 104 are also described in step S130.
[0103] The control unit 104 is also configured to control the fan to operate according to the target control mode of the fan. The specific functions and processes of the control unit 104 are also described in step S140.
[0104] Specifically, Figure 11 The control flowchart of the general fan control device is shown in the figure. The control flowchart of the general fan control device according to the scheme of the present application comprises the following steps: Figure 11
[0105] Step 1: After power-on, the general fan control device establishes a communication connection with the mainboard (i.e. the air conditioner mainboard), receives the communication data (or communication parameters) sent by the mainboard, and determines the fan control mode through the communication data sent by the mainboard. The communication data sent by the mainboard includes the fan control mode, the fan speed feedback mode, and the communication address of the communication type fan, etc.
[0106] Step 2: When the control mode given in the communication data is PWM control, go to step 3; if the control mode is VSP voltage control, go to step 4; if the control mode is communication control, go to step 5. The control mode adopts a pulse width PWM frequency adaptive control mode, which can automatically change and match. The general control mode using voltage VSP can control different types of fans. The communication automatically matched control mode can automatically switch the baud rate and the check mode.
[0107] The general fan control device according to the scheme of the present application uses the same general fan control device to control different types of fans, and the fan type and target speed of the corresponding fan are fixedly notified to the general fan control device through the 485 communication signal. The general fan control device will automatically output PWM control signal or VSP control signal or 485 communication signal to control the fan, which can realize fan communication automatic matching and PWM frequency automatic matching. In this way, the PWM control mode, the VSP control mode or the communication control mode (i.e. the communication signal control mode) are automatically matched and output to control different types of fans. When the air conditioning unit is replaced with different types of fans, there is no need to redesign the hardware circuit and software control part, only the communication parameters of the general fan control device need to be changed. When the general fan control device is used for development, it is convenient, fast and efficient.
[0108] In some embodiments, the general fan control device comprises a communication module, an MCU module, a fan control module and a power on-off control module. The communication module, the fan control module and the power on-off control module are respectively connected to the MCU module. The fan control module comprises a PWM interface, a VSP interface and a communication interface. The power on-off control module is arranged between the power supply of the fan and the fan.
[0109] The control unit 104 controls the communication connection between the general fan control device and the mainboard of the electrical equipment after the electrical equipment is powered on, and specifically comprises the control unit 104 which is further configured to, under the control of the MCU module, establish the communication connection between the communication module and the mainboard of the electrical equipment after the electrical equipment is powered on.
[0110] The control unit 104 receives the communication data sent by the mainboard of the electrical equipment in the case of establishing the communication connection between the general fan control device and the mainboard of the electrical equipment, and specifically comprises the control unit 104 which is further configured to, in the case of establishing the communication connection between the general fan control device and the mainboard of the electrical equipment, make the MCU module receive the communication data sent by the mainboard of the electrical equipment through the communication module.
[0111] The control unit 104 determines the control mode of the fan according to the control mode carried in the communication data, and records it as the target control mode of the fan, and specifically comprises the control unit 104 which is further configured to make the MCU module determine the control mode of the fan according to the control mode carried in the communication data, and record it as the target control mode of the fan.
[0112] The control unit 104 controls the fan to operate according to the target control mode of the fan, and specifically comprises the control unit 104 which is further configured to make the MCU module control the fan to operate according to the target control mode of the fan in combination with the fan control module and the power on-off control module. The control unit 104 is further configured to control the operation of the fan through the PWM interface in the case that the target control mode of the fan is the PWM control mode. The control unit 104 is further configured to control the operation of the fan through the VSP interface in the case that the target control mode of the fan is the VSP control mode. The control unit 104 is further configured to control the on-off power of the fan through the power on-off control module and control the operation of the fan through the communication interface in the case that the target control mode of the fan is the communication control mode.
[0113] Figure 8 It is an embodiment of the structure schematic diagram of the system of the general fan control device of the application. As shown in the figure, Figure 8As shown, the scheme of the present application proposes a general fan control device, which comprises a communication module, an MCU and its peripheral circuit, a power on-off control module, a fan control module, and a power output module. The air conditioner mainboard is connected with the communication module through an RS485 communication mode, the fan control module is connected with the fan through a control signal and a rotating speed feedback signal, and the power input module is connected with the fan through the power on-off control module and the power output module. The fan control module comprises a PWM interface, a VSP interface, and a communication interface, can control various types of fans, and can freely switch between different fan control modes.
[0114] Figure 9 It is an embodiment structure diagram of the power on-off control module in the general fan control device of the present application. As shown, Figure 9 The power on-off control module comprises transistors (i.e. a transistor Q1, a transistor Q2, diodes D1, D2, D3, zener diodes ZD1, ZD2, ZD3), field effect tubes (e.g. MOS tubes Q3, Q4, Q5), resistors (e.g. resistors R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12), capacitors (e.g. capacitors C1, C2, and C3), etc., and can control the input power on and off according to the MCU control signal. For example, when the on-off control signal K1 is high, the three MOS tubes Q3, Q4, and Q5 are all turned on, the input power of each power input port is connected with the output power, and the fan is powered on. When the on-off control signal K1 is low, the fan is powered off. The power on-off control module is mainly used for the communication type fan which needs to change the communication parameters of the fan itself. After the change is successful, the fan needs to be powered off and then powered on to take effect.
[0115] Figure 10 It is a schematic diagram of the fan control module in the general fan control device of the present application. As shown, Figure 10 The fan control module mainly comprises optocouplers (e.g. optocouplers U25, U29), transistors (e.g. a transistor Q6), resistors (e.g. resistors R90, R66, R33, R25, R13, R15, R16, R69, R82, R27, R14), capacitors (e.g. capacitors C125, C54, C119, C120), etc., and its main function is to convert the 3.3V PWM signal transmitted by the MCU into a 12V PWM output, or convert it into a 0-10V VSP voltage output, and receive a feedback pulse signal (e.g. a fan feedback signal) to calculate the rotating speed.
[0116] Figures 8 to 10The general fan control device is installed between an air conditioner main board and a fan, the air conditioner main board is connected with the general fan control device through a communication line, and a fan power supply is connected to a power on-off module of the general fan control device.
[0117] In some embodiments, the control unit 104, in the case that the target control mode of the fan is a PWM control mode, controls the fan to operate according to the target control mode of the fan, including: a first process of controlling the fan to operate in the PWM control mode, specifically as follows:
[0118] The control unit 104 is specifically further configured to increase the given PWM duty cycle of the fan according to a set duty cycle increasing mode, and receive the feedback speed of the fan. The given PWM duty cycle of the fan is a PWM duty cycle used to drive the fan to operate. The set duty cycle increasing mode is, for example, sequentially increased by 20 kHz. The specific functions and processes of the control unit 104 are also described in step S210.
[0119] The control unit 104 is specifically further configured to determine whether the feedback speed of the fan is also increased correspondingly in the case that the given PWM duty cycle of the fan is increased, and if yes, control the fan to operate according to the control instruction sent by the main board of the electrical appliance, otherwise, determine whether the given PWM duty cycle of the fan is less than a set duty cycle. The set duty cycle is, for example, 200 kHz. The specific functions and processes of the control unit 104 are also described in step S220.
[0120] The control unit 104 is specifically further configured to return to continue to increase the given PWM duty cycle of the fan according to the set duty cycle increasing mode, if the given PWM duty cycle of the fan is less than the set duty cycle. The specific functions and processes of the control unit 104 are also described in step S230.
[0121] The control unit 104 is specifically further configured to feed back a fault message of the communication data assignment error or the general fan control device wiring abnormality to the main board of the electrical appliance, if the given PWM duty cycle of the fan is greater than or equal to the set duty cycle. The specific functions and processes of the control unit 104 are also described in step S240.
[0122] Specifically, as Figure 11As shown, the control flow of the general fan control device proposed by the scheme of the present application also includes: step 3, increasing the given PWM duty ratio, and determining whether the feedback speed corresponds to the increase: if yes, entering step 7, if no, controlling the given PWM duty ratio from 0 to 200 kHz. In the process of increasing in turn by 20 kHz, it is determined in turn whether the fan is controlled at each frequency (i.e. whether the feedback speed corresponds to the increase): if yes, the frequency is fixed to enter step 7, i.e. to act according to the mainboard instruction, if no, continue to increase, if still not controlled after increasing to 200 kHz, enter step 6, i.e. feedback communication parameter assignment error or wiring abnormality fault to the mainboard.
[0123] In some embodiments, the control unit 104, in the case that the target control mode of the fan is a VSP control mode, controls the fan to operate according to the target control mode of the fan, and further includes a second process of controlling the fan to operate in the VSP control mode, specifically as follows:
[0124] The control unit 104 is specifically further configured to determine the actual control voltage parameter (such as the actual control voltage percentage) of the fan according to the upper limit of the control voltage range carried in the communication data. The specific functions and processes of the control unit 104 are also described in step S310.
[0125] The control unit 104 is specifically further configured to increase the control voltage of the fan according to the actual control voltage parameter of the fan, and receive the feedback speed of the fan. The control voltage of the fan is the control voltage for controlling the operation of the fan. The specific functions and processes of the control unit 104 are also described in step S320.
[0126] The control unit 104 is specifically further configured to determine whether the feedback speed of the fan also increases correspondingly in the case that the control voltage of the fan increases: if yes, control the fan to operate according to the control instruction sent by the mainboard of the electrical appliance, otherwise, feedback the fault message of the communication data assignment error or the wiring abnormality of the general fan control device to the mainboard of the electrical appliance. The specific functions and processes of the control unit 104 are also described in step S330.
[0127] Specifically, as Figure 11As shown, the control flow of the general fan control device according to the scheme of the present application further comprises: step 4, if the control mode is VSP voltage control, first read the control voltage range sent by the mainboard, and calculate the actual control voltage percentage = fan target speed percentage * Vmax / 10V, increase the control voltage according to the actual control voltage percentage, read the speed feedback, and determine whether the target speed under the control voltage is equal to the speed feedback: if equal, enter step 7, that is, act according to the mainboard instruction, if not equal and the difference is large, enter step 6, that is, feedback communication parameter assignment error or wiring abnormal fault to the mainboard. Wherein, Vmax is the upper limit of the control voltage range sent by the mainboard.
[0128] In some embodiments, the control unit 104, in the case that the target control mode of the fan is a communication control mode, controls the fan to operate according to the target control mode of the fan, and further comprises a third process of controlling the fan to operate in the communication control mode, which is specifically as follows:
[0129] The control unit 104 is specifically further configured to determine whether there is a communication configuration parameter in the communication data. The specific functions and processes of the control unit 104 are also referred to step S410.
[0130] The control unit 104 is specifically further configured to, if it is determined that there is a communication configuration parameter in the communication data, call the fan according to the communication configuration parameter, and determine whether the fan has a reply: if yes, control the fan to operate according to the communication parameter of the fan and the control instruction sent by the mainboard of the electrical appliance, if no, call the fan according to the preset default communication parameter. The specific functions and processes of the control unit 104 are also referred to step S420.
[0131] The control unit 104 is specifically further configured to, if it is determined that there is no communication configuration parameter in the communication data, call the fan according to the preset default communication parameter. The specific functions and processes of the control unit 104 are also referred to step S430.
[0132] The control unit 104 is specifically further configured to, after calling the fan according to the preset default communication parameter, determine whether the fan has a reply: if yes, control the fan to operate according to the control instruction sent by the mainboard of the electrical appliance, if no, call the fan by using the set baud rate and check mode. The specific functions and processes of the control unit 104 are also referred to step S440.
[0133] Specifically, as Figure 11As shown, the control flow of the general fan control device according to the scheme of the present application further comprises: step 5, if the communication control, judging whether there is a fan related communication parameter in the communication data sent by the mainboard: if yes, configuring the fan according to the communication parameter, if the fan has a reply, executing step 51. If there is no fan related communication parameter in the communication data sent by the mainboard, or configuring the fan according to the communication parameter but the fan has no reply, configuring the fan according to the default communication parameter (such as the baud rate is 19200 and the odd check is performed): if there is a reply, entering step 7, that is, acting according to the instruction of the mainboard, if there is no reply, executing step 52.
[0134] In some embodiments, the control unit 104 controls the fan to operate according to the communication parameter of the fan and the control instruction sent by the mainboard of the electrical appliance device, comprising:
[0135] The control unit 104 is specifically further configured to determine whether there is a specified fan communication parameter in the communication data. The specific functions and processes of the control unit 104 are also referred to step S510.
[0136] The control unit 104 is specifically further configured to determine whether there is a specified fan communication parameter in the communication data. The specific functions and processes of the control unit 104 are also referred to step S510.
[0137] The control unit 104 is specifically further configured to determine whether there is a specified fan communication parameter in the communication data. The specific functions and processes of the control unit 104 are also referred to step S510.
[0138] Specifically, as shown, Figure 11 The control flow of the general fan control device according to the scheme of the present application further comprises: step 51, judging whether there is a specified fan communication parameter in the mainboard: if no, directly entering step 7, if yes, writing the configuration parameter into the corresponding register, and controlling the power on-off control module to make the fan power off and then power on, and entering step 7 after the communication is successfully established, that is, acting according to the instruction of the mainboard.
[0139] In some embodiments, the control unit 104 configures the fan according to the specified baud rate and check mode, comprising:
[0140] The control unit 104 is further configured to increase the set baud rate in a set baud rate increasing mode to obtain a new set baud rate. The specific functions and processes of the control unit 104 are further described in step S610.
[0141] The control unit 104 is further configured to switch the fan among the odd parity check, the even parity check and the no parity check mode respectively at each of the set baud rate and the new set baud rate after the increase. After each time of calling the fan, the control unit 104 is configured to determine whether the fan has a reply. The specific functions and processes of the control unit 104 are further described in step S620.
[0142] The control unit 104 is further configured to fix the baud rate and the parity check mode as the current communication mode if the fan has a reply after being called at the corresponding baud rate and parity check mode, and control the fan to operate according to the control instruction sent by the mainboard of the electrical appliance under the communication mode. The specific functions and processes of the control unit 104 are further described in step S630.
[0143] The control unit 104 is further configured to feed back a fault message of communication data assignment error to the mainboard of the electrical appliance if the fan has no reply after being called at the baud rate and the parity check mode. The specific functions and processes of the control unit 104 are further described in step S640.
[0144] Specifically, as shown in Figure 11 The control flow of the general fan control device according to the scheme of the present application further includes: step 52, the baud rate is increased from 1200, 2400, 4800 and 9600 in sequence, and the fan is called in the odd parity check, the even parity check and the no parity check mode respectively at each baud rate; if the fan communicates successfully at a baud rate and a parity check mode, the baud rate and the parity check mode are fixed as the current mode, and step 7 is entered; if all baud rates and parity check modes cannot communicate successfully, step 6 is entered.
[0145] Step 6, feedback of a communication parameter assignment error or a wiring abnormality fault to the mainboard.
[0146] Step 7, action according to the instruction of the mainboard. For example, the target rotating speed sent by the mainboard is received, the target rotating speed is adjusted, the real-time rotating speed feedback is detected, and the real-time rotating speed feedback is sent to the mainboard.
[0147] Since the processing and functions realized by the device of the present embodiment are basically corresponding to the foregoing embodiments, principles and examples of the method, the descriptions of the present embodiment that are not described in detail can be referred to the foregoing descriptions of the embodiments, which will not be described herein.
[0148] The technical scheme of the present application is characterized in that a general fan control device is arranged between the mainboard and the fan of an electric appliance (such as a computer room air conditioner), the general fan control device has a communication module, an MCU module, a power on-off control module and a fan control module, the fan control module has a PWM interface, a VSP interface and a communication interface; after the electric appliance (such as the computer room air conditioner) is powered on, the communication data sent by the mainboard is received by the communication module, the fan control mode is determined by the MCU module according to the communication data, and the corresponding interface of the fan control module is turned on based on the determined fan control mode, so as to control the operation of the fan according to the determined fan control mode through the corresponding interface of the fan control module, and the general fan control device is convenient, fast and efficient when participating in development.
[0149] According to the embodiment of the present application, a computer room air conditioner corresponding to the control device of the fan is also provided. The computer room air conditioner can include the control device of the fan described above.
[0150] Since the processing and functions realized by the computer room air conditioner of the present embodiment are basically corresponding to the embodiments, principles and examples of the aforementioned device, the description of the present embodiment does not go into details, and the relevant descriptions in the aforementioned embodiments can be referred to, which will not be repeated here.
[0151] The technical scheme of the present application is characterized in that a general fan control device is arranged between the mainboard and the fan of an electric appliance (such as a computer room air conditioner), the general fan control device has a communication module, an MCU module, a power on-off control module and a fan control module, the fan control module has a PWM interface, a VSP interface and a communication interface; after the electric appliance (such as the computer room air conditioner) is powered on, the communication data sent by the mainboard is received by the communication module, the fan control mode is determined by the MCU module according to the communication data, and the corresponding interface of the fan control module is turned on based on the determined fan control mode, so as to control the operation of the fan according to the determined fan control mode through the corresponding interface of the fan control module, and the general fan control device is convenient, fast and efficient when participating in development.
[0152] According to the embodiment of the present application, a storage medium corresponding to the control method of the fan is also provided. The storage medium includes a stored program, wherein when the program runs, the device where the storage medium is located executes the control method of the fan described above.
[0153] Since the processing and functions realized by the storage medium of the present embodiment are basically corresponding to the embodiments, principles and examples of the aforementioned method, the description of the present embodiment does not go into details, and the relevant descriptions in the aforementioned embodiments can be referred to, which will not be repeated here.
[0154] The technical scheme of the present application sets a general fan control device between the mainboard and the fan of an electric appliance (such as a computer room air conditioner), which has a communication module, an MCU module, a power on-off control module and a fan control module, and the fan control module has a PWM interface, a VSP interface and a communication interface; after the electric appliance (such as a computer room air conditioner) is powered on, the communication module receives the communication data sent by the mainboard, the MCU module determines the fan control mode according to the communication data, and controls the corresponding interface of the fan control module to be opened based on the determined fan control mode, so as to control the operation of the fan through the corresponding interface of the fan control module according to the determined fan control mode, which can realize automatic matching of fan communication and automatic matching of control PWM frequency.
[0155] In summary, those skilled in the art can easily understand that the above-mentioned advantageous modes can be freely combined and superimposed without conflict.
[0156] The above only describes the embodiments of the present application and is not intended to limit the present application. Those skilled in the art can make various modifications and changes to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the scope of the claims of the present application.
Claims
1. A control method of a fan, characterized by, The fan is applied to an electric appliance; a general fan control device is arranged between a mainboard of the electric appliance and the fan; a control method of the fan comprises: After the electric appliance is powered on, a communication connection is established between the general fan control device and the mainboard of the electric appliance; In the case that the communication connection is established between the general fan control device and the mainboard of the electric appliance, communication data sent by the mainboard of the electric appliance is received; According to a control mode carried in the communication data, a control mode of the fan is determined, which is recorded as a target control mode of the fan; the target control mode of the fan is any one of PWM control mode, VSP control mode and communication control mode; According to the target control mode of the fan, the fan is controlled to operate, so that the same general fan control device is used to control different types of fans, and only communication parameters of the general fan control device need to be changed when the control mode of the fan needs to be changed; in the case that the target control mode of the fan is the communication control mode, according to the target control mode of the fan, the fan is controlled to operate, which comprises: determining whether there is a communication configuration parameter in the communication data; if it is determined that there is a communication configuration parameter in the communication data, the fan is named according to the communication configuration parameter, and it is determined whether the fan has a reply; if yes, the fan is controlled to operate according to the communication parameters of the fan and the control instruction sent by the mainboard of the electric appliance; if no, the fan is named according to a preset default communication parameter.
2. The control method of a ventilator according to claim 1, characterized by, The general fan control device comprises a communication module, an MCU module, a fan control module and a power supply on-off control module; the fan control module comprises a PWM interface, a VSP interface and a communication interface; the power supply on-off control module is arranged between a power supply of the fan and the fan; wherein, After the electric appliance is powered on, a communication connection is established between the general fan control device and the mainboard of the electric appliance, which comprises: After the electric appliance is powered on, under the control of the MCU module, a communication connection is established between the communication module and the mainboard of the electric appliance; In the case that the communication connection is established between the general fan control device and the mainboard of the electric appliance, communication data sent by the mainboard of the electric appliance is received, which comprises: In the case that the communication connection is established between the general fan control device and the mainboard of the electric appliance, the MCU module receives the communication data sent by the mainboard of the electric appliance through the communication module; According to a control mode carried in the communication data, a control mode of the fan is determined, which is recorded as a target control mode of the fan, which comprises: The MCU module determines the control mode of the fan according to the control mode carried in the communication data, which is recorded as the target control mode of the fan; According to the target control mode of the fan, the fan is controlled to operate, which comprises: The MCU module, in combination with the fan control module and the power on-off control module, controls the fan to operate according to the target control mode of the fan; wherein, in the case that the target control mode of the fan is a PWM control mode, the operation of the fan is controlled through the PWM interface; in the case that the target control mode of the fan is a VSP control mode, the operation of the fan is controlled through the VSP interface; in the case that the target control mode of the fan is a communication control mode, the power on-off of the fan is controlled through the power on-off control module, and the operation of the fan is controlled through the communication interface.
3. The control method of a fan according to claim 1 or 2, characterized in that, In the case that the target control mode of the fan is a PWM control mode, the fan is controlled to operate according to the target control mode of the fan, and the method further comprises: increasing the given PWM duty ratio of the fan according to the preset duty ratio increasing mode, and receiving the feedback speed of the fan; the given PWM duty ratio of the fan is a PWM duty ratio used for driving the fan to operate; in the case that the given PWM duty ratio of the fan is increased, determining whether the feedback speed of the fan is also correspondingly increased; if yes, controlling the fan to operate according to the control instruction sent by the mainboard of the electric appliance, otherwise, determining whether the given PWM duty ratio of the fan is less than the preset duty ratio; if the given PWM duty ratio of the fan is less than the preset duty ratio, returning to continue increasing the given PWM duty ratio of the fan according to the preset duty ratio increasing mode; if the given PWM duty ratio of the fan is greater than or equal to the preset duty ratio, feeding back a fault message of communication data assignment error or abnormal wiring of the general fan control device to the mainboard of the electric appliance.
4. The control method of a blower according to claim 1 or 2, characterized by, In the case that the target control mode of the fan is a VSP control mode, the fan is controlled to operate according to the target control mode of the fan, and the method further comprises: determining the actual control voltage parameter of the fan according to the upper limit of the control voltage range carried in the communication data; increasing the control voltage of the fan according to the actual control voltage parameter of the fan, and receiving the feedback speed of the fan; the control voltage of the fan is a control voltage used for controlling the fan to operate; in the case that the control voltage of the fan is increased, determining whether the feedback speed of the fan is also correspondingly increased; if yes, controlling the fan to operate according to the control instruction sent by the mainboard of the electric appliance, otherwise, feeding back a fault message of communication data assignment error or abnormal wiring of the general fan control device to the mainboard of the electric appliance.
5. The control method of a blower according to claim 1 or 2, characterized by, In the case that the target control mode of the fan is a communication control mode, the fan is controlled to operate according to the target control mode of the fan, and the method further comprises: if it is determined that there is no communication configuration parameter in the communication data, naming the fan according to the preset default communication parameter. After calling the fan according to the preset default communication parameters, it is determined whether the fan has a reply: if yes, the fan is controlled to run according to the control instruction sent by the mainboard of the electrical equipment, and if no, the fan is called by using the set baud rate and check mode.
6. The control method of a blower according to claim 5, wherein According to the communication parameters of the fan and the control instruction sent by the mainboard of the electrical equipment, the fan is controlled to run, comprising: Determining whether there are specified fan communication parameters in the communication data; If it is determined that there are no specified fan communication parameters in the communication data, the fan is controlled to run according to the control instruction sent by the mainboard of the electrical equipment; If it is determined that there are specified fan communication parameters in the communication data, the fan communication parameters are written into the corresponding register of the fan, the fan is controlled to power off and then power on, and after the general fan control device and the mainboard of the electrical equipment establish a communication connection, the fan is controlled to run according to the control instruction sent by the mainboard of the electrical equipment.
7. The control method of a ventilator according to claim 5, wherein Calling the fan by using the set baud rate and check mode, comprising: Increasing the set baud rate to obtain a new set baud rate according to the set baud rate increasing mode; At each baud rate in the set baud rate and the increased new set baud rate, respectively switching three modes of calling the fan of odd check, even check and no check; and after calling the fan each time, it is determined whether the fan has a reply; If the fan has a reply after calling the fan under the corresponding baud rate and check mode, the baud rate and check mode are fixed as the current communication mode, and the fan is controlled to run according to the control instruction sent by the mainboard of the electrical equipment under the communication mode; If the fan has no reply after calling the fan under the baud rate and check mode, the mainboard of the electrical equipment is fed back a fault message that the communication data assignment is wrong.
8. A control device for a fan, characterized by The fan is applied to an electrical equipment; a general fan control device is arranged between the mainboard of the electrical equipment and the fan; the control device of the fan comprises: A control unit configured to control the general fan control device and the mainboard of the electrical equipment to establish a communication connection after the electrical equipment is powered on; An acquisition unit configured to receive communication data sent by the mainboard of the electrical equipment when the general fan control device and the mainboard of the electrical equipment establish a communication connection; The control unit is further configured to determine the control mode of the fan according to the control mode carried in the communication data, which is recorded as the target control mode of the fan; the target control mode of the fan is any one of PWM control mode, VSP control mode and communication control mode. The control unit is further configured to control the operation of the fan according to the target control mode of the fan, so as to control different types of fans by using the same general fan control device, and only the communication parameters of the general fan control device need to be changed when the fan control mode needs to be changed; in the case that the target control mode of the fan is a communication control mode, the control unit controls the operation of the fan according to the target control mode of the fan, including: determining whether there is a communication configuration parameter in the communication data; if it is determined that there is a communication configuration parameter in the communication data, the fan is called according to the communication configuration parameter, and it is determined whether the fan has a reply; if yes, the operation of the fan is controlled according to the communication parameters of the fan and the control instruction sent by the mainboard of the electrical equipment; if no, the fan is called according to the preset default communication parameters.
9. The control device of a fan according to claim 8, wherein The general fan control device comprises a communication module, an MCU module, a fan control module and a power supply on-off control module; the fan control module comprises a PWM interface, a VSP interface and a communication interface; the power supply on-off control module is arranged between the power supply of the fan and the fan; wherein, After the electrical equipment is powered on, the control unit controls the general fan control device and the mainboard of the electrical equipment to establish a communication connection, including: After the electrical equipment is powered on, the communication module is caused to establish a communication connection with the mainboard of the electrical equipment under the control of the MCU module; In the case that the general fan control device and the mainboard of the electrical equipment establish a communication connection, the control unit receives the communication data sent by the mainboard of the electrical equipment, including: In the case that the general fan control device and the mainboard of the electrical equipment establish a communication connection, the MCU module is caused to receive the communication data sent by the mainboard of the electrical equipment through the communication module; The control unit determines the control mode of the fan according to the control mode carried in the communication data, which is recorded as the target control mode of the fan, including: The MCU module is caused to determine the control mode of the fan according to the control mode carried in the communication data, which is recorded as the target control mode of the fan; The control unit controls the operation of the fan according to the target control mode of the fan, including: The MCU module is caused to control the operation of the fan according to the target control mode of the fan in combination with the fan control module and the power supply on-off control module; wherein, in the case that the target control mode of the fan is a PWM control mode, the operation of the fan is controlled through the PWM interface; in the case that the target control mode of the fan is a VSP control mode, the operation of the fan is controlled through the VSP interface; in the case that the target control mode of the fan is a communication control mode, the on-off of the fan is controlled through the power supply on-off control module, and the operation of the fan is controlled through the communication interface.
10. The control device of a fan according to claim 8 or 9, characterized in that, The control unit, in the case that the target control mode of the fan is a PWM control mode, controls the fan to run according to the target control mode of the fan, comprising: Increasing the given PWM duty cycle of the fan according to the set duty cycle increasing mode, and receiving the feedback speed of the fan; the given PWM duty cycle of the fan is the PWM duty cycle used to drive the fan to run; In the case that the given PWM duty cycle of the fan is increased, determining whether the feedback speed of the fan is also correspondingly increased: if yes, controlling the fan to run according to the control instruction sent by the mainboard of the electric appliance, otherwise determining whether the given PWM duty cycle of the fan is less than the set duty cycle; If the given PWM duty cycle of the fan is less than the set duty cycle, returning to continue increasing the given PWM duty cycle of the fan according to the set duty cycle increasing mode; If the given PWM duty cycle of the fan is greater than or equal to the set duty cycle, feeding back a fault message of communication data assignment error or abnormal wiring of the general fan control device to the mainboard of the electric appliance.
11. The control device of a fan according to claim 8 or 9, characterized in that, The control unit, in the case that the target control mode of the fan is a VSP control mode, controls the fan to run according to the target control mode of the fan, further comprising: Determining the actual control voltage parameter of the fan according to the upper limit of the control voltage range carried in the communication data; Increasing the control voltage of the fan according to the actual control voltage parameter of the fan, and receiving the feedback speed of the fan; the control voltage of the fan is the control voltage used to control the fan to run; In the case that the control voltage of the fan is increased, determining whether the feedback speed of the fan is also correspondingly increased: if yes, controlling the fan to run according to the control instruction sent by the mainboard of the electric appliance, otherwise feeding back a fault message of communication data assignment error or abnormal wiring of the general fan control device to the mainboard of the electric appliance.
12. The control device of a ventilator according to claim 8 or 9, characterized by The control unit, in the case that the target control mode of the fan is a communication control mode, controls the fan to run according to the target control mode of the fan, further comprising: If it is determined that there is no communication configuration parameter in the communication data, calling the fan according to the preset default communication parameter; After calling the fan according to the preset default communication parameter, determining whether the fan has a reply: if yes, controlling the fan to run according to the control instruction sent by the mainboard of the electric appliance, if not, calling the fan by using the set baud rate and check mode.
13. The control device of a fan according to claim 12, wherein The control unit controls the fan to run according to the communication parameter of the fan and the control instruction sent by the mainboard of the electric appliance, comprising: Determining whether there is a specified fan communication parameter in the communication data; If it is determined that there is no specified fan communication parameter in the communication data, controlling the fan to run according to the control instruction sent by the mainboard of the electric appliance; If it is determined that the communication data contains specified fan communication parameters, the fan communication parameters are written into corresponding registers of the fan, the fan is powered off and then powered on, and after the general fan control device and the mainboard of the electrical equipment establish a communication connection, the fan is controlled to operate according to a control instruction sent by the mainboard of the electrical equipment.
14. The control device of a fan according to claim 12, wherein The control unit points to the fan by using a set baud rate and a check mode, and includes: The set baud rate is increased to obtain a new set baud rate according to a set baud rate increasing mode; At each baud rate in the set baud rate and each new set baud rate after the baud rate is increased, the fan is respectively pointed to by three modes of odd check, even check and no check, and after the fan is pointed to each time, it is determined whether the fan has a reply; If the fan has a reply after being pointed to in the corresponding baud rate and check mode, the baud rate and the check mode are fixed as a current communication mode, and the fan is controlled to operate according to a control instruction sent by the mainboard of the electrical equipment in the communication mode; If the fan has no reply after being pointed to in the baud rate and the check mode, a fault message of a communication data assignment error is fed back to the mainboard of the electrical equipment.
15. A computer room air conditioner characterized by, The fan control device according to any one of claims 8 to 14. The storage medium includes a stored program, and when the program is executed, the device where the storage medium is located performs the fan control method according to any one of claims 1 to 7.
16. A storage medium, characterized by
Citation Information
Patent Citations
ECM (electronic commutation motor) control system on basis of intelligent switch plate
CN108279606A