Firmware upgrading tool plate and fan
By designing the firmware upgrade tool board, using signal adapter circuits and upper computers to identify the inside and outside of the fan, the automatic upgrade of the inside and outside of the fan firmware is achieved, and the problem of low upgrade efficiency in the existing technology is solved.
Patent Information
- Application Number
- CN202411686829.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-11-22
AI Technical Summary
In the prior art, the server fan firmware upgrade efficiency is low, and it requires manual plugging and unplugging of fan terminals and operating physical buttons, resulting in low automation and low upgrade efficiency.
A firmware upgrade tool board is designed, including a first signal adapter circuit and a second signal adapter. The upper computer recognizes the inner and outer rotors of the fan by reading the identification signal, and automatically transmits the firmware upgrade file to the controller through the signal adapter circuit, realizing one-click automatic upgrade of the inner and outer rotors.
It improves the efficiency of upgrading the fan inside and outside rotors, eliminates manual plugging and operation of physical buttons, and realizes the automatic upgrade of the fan firmware inside and outside rotors.
Smart Images

Figure CN119645911A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of firmware upgrade, and in particular to a firmware upgrade tool board and a fan. Background Art
[0002] In modern data centers and enterprise-level server environments, firmware upgrades are an essential maintenance task. Firmware upgrades not only fix known security vulnerabilities and software defects, but also improve server performance and stability. After the server fan is put into operation, there will be a need for firmware upgrades, on the one hand to fix bugs that occur during the fan operation, and on the other hand to upgrade new functions to improve the fan's operating performance.
[0003] Server fans mostly use microcontroller units (MCUs) to implement fan upgrades and related controls. The MCU of server fans is installed inside the fan body, and the fan body cannot be disassembled after assembly. Therefore, the fan can only be upgraded using the original signal line. At the same time, there are two main difficulties in upgrading the firmware of server fans:
[0004] (1) A single fan usually includes an inner rotor and an outer rotor, and the programs of the inner and outer rotors are different, so it is necessary to distinguish the inner and outer rotors of the fan;
[0005] (2) A single server is usually equipped with multiple fans. Due to the limitations of application scenarios, the server cannot be suspended. However, the server has a large heat dissipation demand during operation. Therefore, multiple fans need to be upgraded in the shortest possible time, which places higher requirements on the fan firmware upgrade efficiency. Summary of the invention
[0006] In view of this, the present invention provides a firmware upgrade tool board and a fan to solve the problem of how to improve the upgrade efficiency of the inner rotor and outer rotor of the fan.
[0007] In the first aspect, the present invention provides a firmware upgrade tool board, comprising: a first signal switching circuit and a second signal switching circuit, wherein the first end of the first signal switching circuit is connected to the controller of the fan, and the second end of the first signal switching circuit is connected to the host computer; the first end of the second signal switching circuit is connected to the controller of the fan, and the second end of the second signal switching circuit is connected to the host computer; the host computer reads the identification signals of the first signal switching circuit and the second signal switching circuit in sequence; when the host computer reads that the identification signal is at a low level, the host computer transmits the inner rotor firmware upgrade file to the first signal switching circuit, the first signal switching circuit transmits the inner rotor firmware upgrade file to the controller, and the controller upgrades the inner rotor; when the host computer reads that the identification signal is at a high level, the host computer transmits the outer rotor firmware upgrade file to the second signal switching circuit, the second signal switching circuit transmits the outer rotor firmware upgrade file to the controller, and the controller upgrades the outer rotor.
[0008] The present invention provides a first signal switching circuit and a second signal switching circuit. The host computer identifies the inner and outer rotors of the fan by reading identification signals of the first signal switching circuit and the second signal switching circuit to upgrade the inner and outer rotors, thereby eliminating the process of manual plugging and unplugging. On the basis of improving the upgrading efficiency of the inner and outer rotors of the fan, one-key automatic upgrading of the inner and outer rotors of the fan firmware is achieved.
[0009] In an optional implementation, the first signal conversion circuit and the second signal conversion circuit both include: a CH340G chip, wherein the UD+ pin and UD- pin of the CH340G chip are connected to the host computer, and the TXD pin and RXD pin of the CH340G chip are connected to the controller.
[0010] In an optional embodiment, the firmware upgrade tool board also includes: a first TYPE-C connection circuit and a second TYPE-C connection circuit, wherein the first end of the first TYPE-C connection circuit is connected to the second end of the first signal conversion circuit, and the second end of the first TYPE-C connection circuit is connected to the host computer via a USB signal line; the first end of the second TYPE-C connection circuit is connected to the second end of the second signal conversion circuit, and the second end of the second TYPE-C connection circuit is connected to the host computer via a USB signal line.
[0011] In an optional embodiment, the firmware upgrade tool board also includes: a fan terminal connection circuit, wherein the first end of the fan terminal connection circuit is connected to the first end of the first signal connection circuit and the first end of the second signal connection circuit, and the second end of the fan terminal is connected to the controller.
[0012] The present invention increases the automatic identification function of the inner and outer rotors of the fan, so that the inner and outer rotors of the fan can be upgraded with only one fan terminal connection port, eliminating the process of manual plugging and unplugging, and increases the hardware control circuit of the upper computer for powering on and off the fan, eliminating physical buttons and manual operations. By designing a control logic method for upgrading the fan firmware by the upper computer, the firmware of the inner and outer rotors of the fan can be automatically upgraded with one key.
[0013] In an optional embodiment, the firmware upgrade tool board also includes: a first power on and off control circuit and a second power on and off control circuit, wherein the first end of the first power on and off control circuit is connected to the third end of the first signal switching circuit, the second end of the first power on and off control circuit is connected to the power supply voltage, and the third end of the first power on and off control circuit is connected to the inner rotor through the fan terminal connection circuit; the first end of the second power on and off control circuit is connected to the third end of the second signal switching circuit, the second end of the second power on and off control circuit is connected to the power supply voltage, and the third end of the second power on and off control circuit is connected to the outer rotor through the fan terminal connection circuit; when the upper computer reads the identification signal as a low level, the upper computer sends the inner rotor firmware upgrade file and the start signal to the first signal switching circuit; the first signal switching circuit transmits the start signal to the first power on and off control circuit, the first power on and off control circuit is turned on, and the inner rotor is powered on , the first signal transfer circuit transmits the inner rotor firmware upgrade file to the controller; after the inner rotor firmware upgrade file is transmitted, the host computer sends a stop signal to the first signal transfer circuit, the first signal transfer circuit transmits the stop signal to the first power on and off control circuit, the first power on and off control circuit is disconnected, and the inner rotor is powered off; when the host computer reads that the identification signal is high, the host computer sends the outer rotor firmware upgrade file and the start signal to the second signal transfer circuit; the second signal transfer circuit transmits the start signal to the second power on and off control circuit, the second power on and off control circuit is turned on, and after the outer rotor is powered on, the second signal transfer circuit transmits the outer rotor firmware upgrade file to the controller; after the outer rotor firmware upgrade file is transmitted, the host computer sends a stop signal to the second signal transfer circuit, the second signal transfer circuit transmits the stop signal to the second power on and off control circuit, the second power on and off control circuit is disconnected, and the outer rotor is powered off.
[0014] In an optional embodiment, the first power-on and power-off control circuit and the second power-on and power-off control circuit both include: a first switch circuit, a second switch circuit, a third switch circuit and a filter circuit, wherein the control end of the first switch circuit is connected to the third end of the first signal conversion circuit, the first end of the first switch circuit is connected to the power supply voltage, and the second end of the first switch is grounded; the control end of the second switch circuit is connected to the third end of the first switch circuit, the first end of the second switch circuit is connected to the control end of the third switch circuit, and the second end of the second switch circuit is grounded; the first end of the third switch circuit is connected to the power supply voltage, the second end of the third switch circuit is connected to the inner rotor or the outer rotor through the fan terminal connection circuit, and the second end of the third switch circuit is also connected to the first end of the filter circuit; the second end of the filter circuit is grounded; when the first switch circuit receives a start signal, the first switch circuit is turned off, the second switch circuit is turned on, and the third switch circuit is turned on; when the first switch circuit receives a stop signal, the first switch circuit is turned on, the second switch circuit is turned off, and the third switch circuit is turned off.
[0015] In an optional embodiment, the first switching circuit includes: a first resistor, a second resistor and a first controllable switch, wherein the control end of the first controllable switch is connected to the first end of the first resistor, the first end of the first controllable switch is connected to the first end of the second resistor and the control end of the second switching circuit, and the second end of the first controllable switch is grounded; the second end of the first resistor is connected to the third end of the first signal switching circuit; the second end of the second resistor is connected to the power supply voltage; when the first controllable switch receives a start signal, the first controllable switch is turned off; when the first controllable switch receives a stop signal, the first controllable switch is turned on.
[0016] In an optional embodiment, the second switching circuit includes: a third resistor and a second controllable switch, wherein the control end of the second controllable switch is connected to the third end of the first switching circuit, the first end of the second controllable switch is connected to the first end of the third resistor, and the second end of the second controllable switch is grounded; the second end of the third resistor is connected to the control end of the third switching circuit; when the first switching circuit receives a start signal, the second controllable switch is turned on; when the first switching circuit receives a stop signal, the second controllable switch is turned off.
[0017] In an optional embodiment, the third switching circuit includes: a fourth resistor and a third controllable switch, wherein the control end of the third controllable switch is connected to the first end of the second switching circuit and the first end of the fourth resistor, the first end of the third controllable switch is connected to the second end of the fourth resistor, the first end of the third controllable switch is connected to the power supply voltage, the second end of the third controllable switch is connected to the inner rotor or the outer rotor through the fan terminal connection circuit, and the second end of the third controllable switch is connected to the first end of the filter circuit; when the first switching circuit receives a start signal, the third controllable switch is turned on; when the first switching circuit receives a stop signal, the third controllable switch is turned off.
[0018] In a second aspect, the present invention provides a fan, comprising: a firmware upgrade tool board, an inner rotor, an outer rotor and a controller according to the first aspect and any optional implementation manner thereof, wherein a first end of a first signal switching circuit is connected to the controller, and a second end of the first signal switching circuit is connected to a host computer; a first end of a second signal switching circuit is connected to the controller, and a second end of the second signal switching circuit is connected to the host computer; the host computer sequentially reads identification signals of the first signal switching circuit and the second signal switching circuit; when the host computer reads that the identification signal is at a low level, the host computer transmits an inner rotor firmware upgrade file to the first signal switching circuit, the first signal switching circuit transmits the inner rotor firmware upgrade file to the controller, and the controller upgrades the inner rotor; when the host computer reads that the identification signal is at a high level, the host computer transmits an outer rotor firmware upgrade file to the second signal switching circuit, the second signal switching circuit transmits the outer rotor firmware upgrade file to the controller, and the controller upgrades the outer rotor. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 is a composition diagram of a firmware upgrade tool board according to an embodiment of the present invention;
[0021] Figure 2 is a specific circuit structure diagram of a first signal switching circuit and a second signal switching circuit according to an embodiment of the present invention;
[0022] Figure 3 is a composition diagram of another firmware upgrade tool board according to an embodiment of the present invention;
[0023] Figure 4is a specific circuit structure diagram of a first TYPE-C connection circuit and a second TYPE-C connection circuit according to an embodiment of the present invention;
[0024] Figure 5 is a composition diagram of another firmware upgrade tool board according to an embodiment of the present invention;
[0025] Figure 6 is a specific circuit structure diagram of a fan terminal connection circuit according to an embodiment of the present invention;
[0026] Figure 7 is a composition diagram of another firmware upgrade tool board according to an embodiment of the present invention;
[0027] Figure 8 is a specific circuit structure diagram of a first power-on / off control circuit and a second power-on / off control circuit according to an embodiment of the present invention;
[0028] Fig. 9 is a schematic diagram of an automatic identification solution for inner and outer rotors of a fan according to an embodiment of the present invention;
[0029] Fig.10 It is a flowchart of upgrading the inner and outer rotors of a fan according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0031] The internal control chip of the fan mostly uses MCU. Currently, the firmware upgrade method for MCU usually adopts IAP upgrade, that is, the MCU reserves a BootLoader program area before the APP program area. After the MCU is powered on, it runs the BootLoader program first. If it does not receive the upgrade command within a period of time (usually set within 1S), it will automatically jump to run the normal APP program. If it receives the upgrade command, the MCU will obtain the upgrade program file and reprogram the APP program to achieve the purpose of upgrading. After programming is completed, it will automatically jump to the APP program to start running the new program.
[0032] For the above upgrade method, the server fan firmware upgrade in the related art consists of three parts: BootLoader on the fan MCU side, firmware upgrade tool board and firmware upgrade host computer. For the BootLoader on the fan MCU side, its main function is to set the original signal lines of the fan (PWM line and TACH line) as TX and RX lines for serial communication, and receive program files through serial communication for update.
[0033] For the firmware upgrade tool board, its main function is: as a bridge for communication between the fan MCU and the host computer, the firmware upgrade tool board uses the CH340 series chip (a conversion chip for communication between USB and TTL serial port devices) to connect the USB end to the computer host computer and the TTL serial port end to the fan MCU; for the firmware upgrade host computer, its main function is to transfer the firmware program file to the fan MCU through the firmware upgrade tool board through communication protocols such as Xmodem, Ymodem and Zmodem.
[0034] The solution in the related art usually sets two fan terminal connection ports and a physical switch button on the firmware upgrade tool board, one connection port only supplies power to the inner rotor, and the other connection port only supplies power to the outer rotor, and the physical switch button controls the power supply to the fan. Therefore, the operation process of the fan firmware upgrade is to insert the fan terminal into the inner rotor connection port and press the button, the inner rotor is powered on, the host computer performs the upgrade, after the upgrade is completed, press the button, the inner rotor is powered off, unplug the fan terminal and insert it into the outer rotor connection port, press the button, the outer rotor is powered on, the host computer performs the upgrade, after the upgrade is completed, press the button, the outer rotor is powered off, unplug the fan terminal, and complete the fan firmware upgrade.
[0035] The firmware upgrade tool board based on the above-mentioned related technologies still has the following problems:
[0036] 1. In the server fan firmware upgrade method in the related art, the inner and outer rotors of the fan are distinguished by setting two fan terminal connection ports on the firmware upgrade tool board. However, the upgrade of only one fan requires manual plugging and unplugging twice, which reduces the upgrade efficiency.
[0037] 2. In the server fan firmware upgrade method in the related art, the fan MCU is powered on and off and reset by setting a physical button on the firmware upgrade tool board. This also requires manual button control, and since the MCU's BootLoader setting time is within 1S, if the button is pressed and the host computer is not used for upgrading within 1S after power-on, the upgrade will fail.
[0038] Based on this, in order to solve the problem of low automation and low upgrade efficiency caused by the need to manually plug and unplug the inner and outer rotors of the fan and power on and off the fan and the need to manually operate physical buttons to control the power on and off of the fan during the fan firmware upgrade, a firmware upgrade tool board 1 is provided in this embodiment, such as Figure 1 As shown, it includes: a first signal switching circuit 11 and a second signal switching circuit 12.
[0039] like Figure 1 As shown, the first end of the first signal switching circuit 11 is connected to the fan controller 2, and the second end of the first signal switching circuit 11 is connected to the host computer; the first end of the second signal switching circuit 12 is connected to the fan controller 2, and the second end of the second signal switching circuit 12 is connected to the host computer.
[0040] Specifically, the internal structure of the first signal switching circuit 11 and the second signal switching circuit 12 are exactly the same. The only difference is that the X pin of the first signal switching circuit 11 is grounded, and the X pin of the second signal switching circuit 12 is in the default state. The host computer is connected to the pins of the first signal switching circuit 11 and the second signal switching circuit 12, and the host computer reads the state of the X pin to identify whether it is the first signal switching circuit 11 or the second signal switching circuit 12.
[0041] Specifically, the host computer reads the identification signals of the first signal switching circuit 11 and the second signal switching circuit 12 in sequence. That is, since the X pin of the first signal switching circuit 11 is grounded, the identification signal of the first signal switching circuit 11 is at a low level, and the X pin of the second signal switching circuit 12 is in a default state, so the identification signal of the second signal switching circuit 12 is at a high level. Therefore, for different identification signals read, there will be the following two situations:
[0042] (1) When the host computer reads that the identification signal is at a low level, the host computer transmits the inner rotor firmware upgrade file to the first signal switching circuit 11, and the first signal switching circuit 11 transmits the inner rotor firmware upgrade file to the controller 2, and the controller 2 upgrades the inner rotor 3;
[0043] (2) When the host computer reads that the identification signal is at a high level, the host computer transmits the outer rotor firmware upgrade file to the second signal switching circuit 12, and the second signal switching circuit 12 transmits the outer rotor firmware upgrade file to the controller 2, and the controller 2 upgrades the outer rotor 4.
[0044] Specifically, the host computer reads only one identification signal each time, and after determining the level of the identification model, sends the corresponding firmware upgrade file to the corresponding signal switching circuit. After the signal switching circuit transmits the firmware upgrade file to the controller 2, the host computer reads another identification signal.
[0045] Optionally, this embodiment is not limited to upgrading the inner rotor 3 and outer rotor 4 of the fan, but can also be used for upgrading equipment including multiple sub-modules. Therefore, multiple signal switching circuits need to be set up, and each signal switching circuit corresponds to a sub-module. Since the equipment includes multiple sub-modules, the identification signal cannot be represented by a single high or low level. The identification signal can be represented by different pulse signals. The pulse signal has different periods, high level time, and low level time, so as to distinguish different sub-modules.
[0046] In some optional embodiments, the first signal switching circuit 11 and the second signal switching circuit 12 both include: a CH340G chip, wherein the UD+ pin and UD- pin of the CH340G chip are connected to the host computer, and the TXD pin and RXD pin of the CH340G chip are connected to the controller 2.
[0047] Specifically, in order to identify the inner rotor 3 and the outer rotor 4, two CH340G chips are provided, and the CH340G chip pin DSR has an output function. The host computer reads the DSR pin state of the CH340G chip to identify whether it is the first signal switching circuit 11 or the second signal switching circuit 12.
[0048] For example, reference Figure 2 Taking the inner rotor 3 as an example, the DSR pin of the CH340G chip is grounded and pulled low, and the DSR pin of the CH340G chip remains in the default state, that is, the DSR pin is low and corresponds to the inner rotor 3, and the DSR pin is high and corresponds to the outer rotor 4. Therefore, the host computer can read the high and low levels of the pin DSR through the serial port to distinguish the inner and outer rotors 4 of the fan.
[0049] Figure 2 In the figure, the CH340G chip is the USB and TTL conversion chip of the firmware upgrade tool board 1. The UD+ pin and UD+ pin of the CH340G chip are connected to the USB port of the host computer. The TXD pin and RXD pin of the CH340G chip are connected to the controller 2 through signal lines. Among them, the TXD signal line is the signal line for the fan to transmit the speed to the host computer, and the RXD signal line is the signal line for the host computer to transmit PWM speed regulation to the fan.
[0050] Figure 2 In the figure, X1 is the external crystal oscillator of the CH340G chip, and capacitors C1 and C2 are matching capacitors of the crystal oscillator circuit.
[0051] In some optional embodiments, such as Figure 3As shown, the firmware upgrade tool board 1 also includes: a first TYPE-C connection circuit 13 and a second TYPE-C connection circuit 14, wherein the first end of the first TYPE-C connection circuit 13 is connected to the second end of the first signal conversion circuit 11, and the second end of the first TYPE-C connection circuit 13 is connected to the host computer via a USB signal line; the first end of the second TYPE-C connection circuit 14 is connected to the second end of the second signal conversion circuit 12, and the second end of the second TYPE-C connection circuit 14 is connected to the host computer via a USB signal line.
[0052] Specifically, each signal transfer circuit is connected to the host computer serial port communication through a TYPE-C connection circuit, that is, the CH340G chip communicates with the host computer through TYPE-C.
[0053] Optionally, the first TYPE-C connection circuit 13 and the second TYPE-C connection circuit 14 have the same structure. The specific circuit structures of the first TYPE-C connection circuit 13 and the second TYPE-C connection circuit 14 are as follows: Figure 4 As shown, Figure 4 The TYPE-C in the circuit serves as the connection interface between the tool board and the host computer, and R5 and R6 are pull-down resistors for the TYPE-C interface channel configuration pins CC1 and CC2.
[0054] In some optional embodiments, such as Figure 5 As shown, the firmware upgrade tool board 1 also includes: a fan terminal connection circuit 15, wherein the first end of the fan terminal connection circuit 15 is connected to the first end of the first signal connection circuit and the first end of the second signal connection circuit, and the second end of the fan terminal is connected to the controller 2.
[0055] Specifically, the specific circuit structure of the fan terminal connection circuit 15 is as follows: Figure 6 As shown, Figure 6 In the figure, the 1-RX terminal and the 1-TX terminal are connected to the RX pin and the TX pin of the first signal switching circuit 11, the 2-RX terminal and the 2-TX terminal are connected to the RX pin and the TX pin of the second signal switching circuit 12, and the serial port signal line includes an RX line and a TX line, the RX line is multiplexed by the PWM line, and the TX line is multiplexed by the TACH line.
[0056] In some optional embodiments, such as Figure 7 As shown, in order to realize power-on and power-off control of the inner rotor 3 and the outer rotor 4 , the firmware upgrade tool board 1 further includes: a first power-on and power-off control circuit 16 and a second power-on and power-off control circuit 17 .
[0057] like Figure 7As shown, the first end of the first power on and off control circuit 16 is connected to the third end of the first signal switching circuit 11, the second end of the first power on and off control circuit 16 is connected to the power supply voltage, and the third end of the first power on and off control circuit 16 is connected to the inner rotor 3 through the fan terminal connection circuit 15.
[0058] like Figure 7 As shown, the first end of the second power on and off control circuit 17 is connected to the third end of the second signal switching circuit 12, the second end of the second power on and off control circuit 17 is connected to the power supply voltage, and the third end of the second power on and off control circuit 17 is connected to the outer rotor 4 through the fan terminal connection circuit 15.
[0059] Specifically, when the host computer reads that the identification signal is at a low level, the host computer sends the firmware upgrade file of the inner rotor 3 and the start signal to the first signal switching circuit 11; the first signal switching circuit 11 transmits the start signal to the first power on and off control circuit 16, the first power on and off control circuit 16 is turned on, and after the inner rotor 3 is powered on, the first signal switching circuit 11 transmits the firmware upgrade file of the inner rotor 3 to the controller 2; after the transmission of the firmware upgrade file of the inner rotor 3 is completed, the host computer sends a stop signal to the first signal switching circuit 11, the first signal switching circuit 11 transmits the stop signal to the first power on and off control circuit 16, the first power on and off control circuit 16 is disconnected, and the inner rotor 3 is powered off.
[0060] Specifically, when the host computer reads that the identification signal is at a high level, the host computer sends the outer rotor 4 firmware upgrade file and the start signal to the second signal switching circuit 12; the second signal switching circuit 12 transmits the start signal to the second power on and off control circuit 17, the second power on and off control circuit 17 is turned on, and after the outer rotor 4 is powered on, the second signal switching circuit 12 transmits the outer rotor 4 firmware upgrade file to the controller 2; after the transmission of the outer rotor 4 firmware upgrade file is completed, the host computer sends a stop signal to the second signal switching circuit 12, the second signal switching circuit 12 transmits the stop signal to the second power on and off control circuit 17, the second power on and off control circuit 17 is disconnected, and the outer rotor 4 is powered off.
[0061] In some optional implementations, the first power-on and power-off control circuit 16 and the second power-on and power-off control circuit 17 both include: a first switch circuit, a second switch circuit, a third switch circuit and a filter circuit.
[0062] The control end of the first switch circuit is connected to the third end of the first signal switching circuit 11, the first end of the first switch circuit is connected to the power supply voltage, and the second end of the first switch is grounded; the control end of the second switch circuit is connected to the third end of the first switch circuit, the first end of the second switch circuit is connected to the control end of the third switch circuit, and the second end of the second switch circuit is grounded; the first end of the third switch circuit is connected to the power supply voltage, the second end of the third switch circuit is connected to the inner rotor 3 or the outer rotor 4 through the fan terminal connection circuit 15, the second end of the third switch circuit is also connected to the first end of the filter circuit, and the second end of the filter circuit is grounded;.
[0063] Specifically, when the first switch circuit receives a start signal, the first switch circuit is turned off, the second switch circuit is turned on, and the third switch circuit is turned on, and the inner rotor 3 or the outer rotor 4 is powered on; when the first switch circuit receives a stop signal, the first switch circuit is turned on, the second switch circuit is turned off, and the third switch circuit is turned off, and the inner rotor 3 or the outer rotor 4 is powered off.
[0064] In some optional embodiments, such as Figure 8 As shown, the first switch circuit includes: a first resistor R19, a second resistor R20 and a first controllable switch Q1, wherein the control end of the first controllable switch Q1 is connected to the first end of the first resistor R19, the first end of the first controllable switch Q1 is connected to the first end of the second resistor R20 and the control end of the second switch circuit (i.e., the resistor R21), and the second end of the first controllable switch Q1 is grounded; the second end of the first resistor R19 is connected to the third end of the first signal transfer circuit 11 (i.e., the DTR pin of CH340G); the second end of the second resistor R20 is connected to the power supply voltage; when the first controllable switch Q1 receives a start signal, the first controllable switch Q1 is turned off; when the first controllable switch Q1 receives a stop signal, the first controllable switch Q1 is turned on.
[0065] In some optional embodiments, such as Figure 8 As shown, the second switch circuit includes: a third resistor R21 and a second controllable switch Q2, wherein the control end of the second controllable switch Q2 is connected to the third end of the first switch circuit, the first end of the second controllable switch Q2 is connected to the first end of the third resistor R21, and the second end of the second controllable switch Q2 is grounded; the second end of the third resistor R21 is connected to the control end (i.e., Q3) of the third switch circuit; when the first switch circuit receives a start signal, the second controllable switch Q2 is turned on; when the first switch circuit receives a stop signal, the second controllable switch Q2 is turned off.
[0066] In some optional embodiments, such as Figure 8As shown, the third switch circuit includes: a fourth resistor R22 and a third controllable switch Q3, wherein the control end of the third controllable switch Q3 is connected to the first end (i.e., R21) of the second switch circuit and the first end of the fourth resistor R22, the first end of the third controllable switch Q3 is connected to the second end of the fourth resistor R22, the first end of the third controllable switch Q3 is connected to the power supply voltage, the second end of the third controllable switch Q3 is connected to the inner rotor 3 or the outer rotor 4 through the fan terminal connection circuit 15, and the second end of the third controllable switch Q3 is connected to the first end of the filter circuit; when the first switch circuit receives a start signal, the third controllable switch Q3 is turned on; when the first switch circuit receives a stop signal, the third controllable switch Q3 is turned off.
[0067] Specifically, the specific circuit structures of the first power-on / off control circuit 16 and the second power-on / off control circuit 17 are as follows: Figure 8 For example, Q1 and Q2 are NPN transistors for converting control signals, R19 and R20 are current limiting resistors for Q1, R21 is a current limiting resistor for Q2, Q3 is a P-MOS for switch control of fan power supply, R22 is a voltage divider resistor for turning on the P-MOS, and C6 and C7 are filter capacitors for 12V-IN power supply.
[0068] Figure 8 In the example, taking the inner rotor 3 as an example, the DTR pin of the CH340G chip is at a high level by default, the first controllable switch Q1 is turned on, that is, the upper N pole of Q1 is connected to GND, the level is pulled low, the left P pole of the second controllable switch Q2 is connected to the upper N pole of Q1, that is, the level of the left P pole of the second controllable switch Q2 is pulled low, Q2 is turned off, the left S pole and the lower G pole of the P-MOS are both pulled high by P12V, the PMOS is turned off, so 12V-IN has no power supply, and the inner rotor 3 is powered off. If power-on control is required, the upper computer controls DTR to a low level, the first controllable switch Q1 is turned off, that is, the upper N pole of Q1 is pulled high by 5V-IN, the left P pole of the second controllable switch Q2 is connected to the upper N pole of Q1, that is, the level of the left P pole of the second controllable switch Q2 is pulled high, Q2 is turned on, and the current of P12V passes through R22 to R21. Then it flows to GND through Q2. At this time, the GS pole voltage of PMOS is the divided voltage of R22, VSG is approximately equal to 6V, PMOS is turned on, 12V-IN is powered, and the inner rotor 3 is powered on.
[0069] In this embodiment, a fan is provided. Figure 1As shown, it includes: a firmware upgrade tool board 1, an inner rotor 3, an outer rotor 4 and a controller 2 of the above embodiments and any optional implementation manner thereof, wherein a first end of a first signal switching circuit 11 is connected to the controller 2, and a second end of the first signal switching circuit 11 is connected to a host computer; a first end of a second signal switching circuit 12 is connected to the controller 2, and a second end of the second signal switching circuit 12 is connected to the host computer; the host computer sequentially reads identification signals of the first signal switching circuit 11 and the second signal switching circuit 12; when the host computer reads that the identification signal is at a low level, the host computer transmits the firmware upgrade file of the inner rotor 3 to the first signal switching circuit 11, the first signal switching circuit 11 transmits the firmware upgrade file of the inner rotor 3 to the controller 2, and the controller 2 upgrades the inner rotor 3; when the host computer reads that the identification signal is at a high level, the host computer transmits the firmware upgrade file of the outer rotor 4 to the second signal switching circuit 12, the second signal switching circuit 12 transmits the firmware upgrade file of the outer rotor 4 to the controller 2, and the controller 2 upgrades the outer rotor 4.
[0070] refer to Fig. 9 , Fig. 9 IN stands for inner rotor, OUT stands for outer rotor. The upgrade process for fan inner rotor 3 and outer rotor 4 is as follows: Fig.10 Click the one-key upgrade button on the host computer, and the host computer will first read all the connected serial ports and the corresponding DSR status of the serial ports.
[0071] If the DSR status is 0, the corresponding serial port is the inner rotor 3, and if the DSR status is 1, the corresponding serial port is the outer rotor 4, thereby completing the identification of the inner and outer rotors, and binding the firmware program files of the inner and outer rotors 4 to the corresponding serial ports. Further, the host computer controls DTR to a low level, the fan is powered on, the host computer sends an upgrade instruction, controls the fan MCU to enter the BootLoader and sends the firmware file. After the file transfer is completed, the host computer controls DTR to a high level, the fan is powered off, and the fan upgrade is completed.
[0072] Therefore, after the fan firmware upgrade tool board 1 is connected to the host computer via USB, the fan inner and outer rotors 4 can be automatically upgraded by clicking the one-key upgrade button of the host computer.
[0073] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A firmware upgrade tool board, characterized in that: include: A first signal switching circuit and a second signal switching circuit, wherein: The first end of the first signal switching circuit is connected to the controller of the fan, and the second end of the first signal switching circuit is connected to the host computer; The first end of the second signal switching circuit is connected to the controller of the fan, and the second end of the second signal switching circuit is connected to the host computer; The host computer sequentially reads identification signals of the first signal switching circuit and the second signal switching circuit; When the host computer reads that the identification signal is at a low level, the host computer transmits the inner rotor firmware upgrade file to the first signal switching circuit, the first signal switching circuit transmits the inner rotor firmware upgrade file to the controller, and the controller upgrades the inner rotor; When the host computer reads that the identification signal is at a high level, the host computer transmits the outer rotor firmware upgrade file to the second signal switching circuit, and the second signal switching circuit transmits the outer rotor firmware upgrade file to the controller, and the controller upgrades the outer rotor.
2. The firmware upgrade tool board according to claim 1, characterized in that: The first signal switching circuit and the second signal switching circuit both include: a CH340G chip, wherein: The UD+ pin and the UD- pin of the CH340G chip are connected to the host computer, and the TXD pin and the RXD pin of the CH340G chip are connected to the controller.
3. The firmware upgrade tool board according to claim 1, characterized in that: It also includes: a first TYPE-C connection circuit and a second TYPE-C connection circuit, wherein: The first end of the first TYPE-C connection circuit is connected to the second end of the first signal switching circuit, and the second end of the first TYPE-C connection circuit is connected to the host computer through a USB signal line; The first end of the second TYPE-C connection circuit is connected to the second end of the second signal switching circuit, and the second end of the second TYPE-C connection circuit is connected to the host computer via a USB signal line.
4. The firmware upgrade tool board according to claim 1, characterized in that: Also includes: The fan terminal connection circuit, where The first end of the fan terminal connection circuit is connected to the first end of the first signal connection circuit and the first end of the second signal connection circuit, and the second end of the fan terminal is connected to the controller.
5. The firmware upgrade tool board according to claim 4, characterized in that: Also includes: A first power-on and power-off control circuit and a second power-on and power-off control circuit, wherein: The first end of the first power-on and power-off control circuit is connected to the third end of the first signal switching circuit, the second end of the first power-on and power-off control circuit is connected to the power supply voltage, and the third end of the first power-on and power-off control circuit is connected to the inner rotor through the fan terminal connection circuit; The first end of the second power-on and power-off control circuit is connected to the third end of the second signal switching circuit, the second end of the second power-on and power-off control circuit is connected to the power supply voltage, and the third end of the second power-on and power-off control circuit is connected to the outer rotor through the fan terminal connection circuit; When the host computer reads that the identification signal is at a low level, the host computer sends the inner rotor firmware upgrade file and the start signal to the first signal switching circuit; the first signal switching circuit transmits the start signal to the first power on and off control circuit, the first power on and off control circuit is turned on, and after the inner rotor is powered on, the first signal switching circuit transmits the inner rotor firmware upgrade file to the controller; after the transmission of the inner rotor firmware upgrade file is completed, the host computer sends a stop signal to the first signal switching circuit, the first signal switching circuit transmits the stop signal to the first power on and off control circuit, the first power on and off control circuit is disconnected, and the inner rotor is powered off; When the host computer reads that the identification signal is at a high level, the host computer sends the outer rotor firmware upgrade file and the start signal to the second signal switching circuit; the second signal switching circuit transmits the start signal to the second power on and off control circuit, the second power on and off control circuit is turned on, and after the outer rotor is powered on, the second signal switching circuit transmits the outer rotor firmware upgrade file to the controller; after the transmission of the outer rotor firmware upgrade file is completed, the host computer sends a stop signal to the second signal switching circuit, the second signal switching circuit transmits the stop signal to the second power on and off control circuit, the second power on and off control circuit is disconnected, and the outer rotor is powered off.
6. The firmware upgrade tool board according to claim 5, characterized in that: The first power-on and power-off control circuit and the second power-on and power-off control circuit each include: a first switch circuit, a second switch circuit, a third switch circuit and a filter circuit, wherein: The control end of the first switch circuit is connected to the third end of the first signal transfer circuit, the first end of the first switch circuit is connected to the power supply voltage, and the second end of the first switch is grounded; The control end of the second switch circuit is connected to the third end of the first switch circuit, the first end of the second switch circuit is connected to the control end of the third switch circuit, and the second end of the second switch circuit is grounded; The first end of the third switch circuit is connected to the power supply voltage, the second end of the third switch circuit is connected to the inner rotor or the outer rotor through the fan terminal connection circuit, and the second end of the third switch circuit is also connected to the first end of the filter circuit; The second end of the filter circuit is grounded; When the first switch circuit receives a start signal, the first switch circuit is turned off, the second switch circuit is turned on, and the third switch circuit is turned on; When the first switch circuit receives a stop signal, the first switch circuit is turned on, the second switch circuit is turned off, and the third switch circuit is turned off.
7. The firmware upgrade tool board according to claim 6, characterized in that: The first switch circuit includes: a first resistor, a second resistor and a first controllable switch, wherein: The control end of the first controllable switch is connected to the first end of the first resistor, the first end of the first controllable switch is connected to the first end of the second resistor and the control end of the second switch circuit, and the second end of the first controllable switch is grounded; The second end of the first resistor is connected to the third end of the first signal switching circuit; The second end of the second resistor is connected to the supply voltage; When the first controllable switch receives a start signal, the first controllable switch is turned off; When the first controllable switch receives a stop signal, the first controllable switch is turned on.
8. The firmware upgrade tool board according to claim 6, characterized in that: The second switch circuit includes: a third resistor and a second controllable switch, wherein: The control end of the second controllable switch is connected to the third end of the first switch circuit, the first end of the second controllable switch is connected to the first end of the third resistor, and the second end of the second controllable switch is grounded; The second end of the third resistor is connected to the control end of the third switch circuit; When the first switch circuit receives a start signal, the second controllable switch is turned on; When the first switch circuit receives a stop signal, the second controllable switch is turned off.
9. The firmware upgrade tool board according to claim 6, characterized in that: The third switch circuit includes: a fourth resistor and a third controllable switch, wherein: The control end of the third controllable switch is connected to the first end of the second switch circuit and the first end of the fourth resistor, the first end of the third controllable switch is connected to the second end of the fourth resistor, the first end of the third controllable switch is connected to the power supply voltage, the second end of the third controllable switch is connected to the inner rotor or the outer rotor through the fan terminal connection circuit, and the second end of the third controllable switch is connected to the first end of the filter circuit; When the first switch circuit receives a start signal, the third controllable switch is turned on; When the first switch circuit receives a stop signal, the third controllable switch is turned off.
10. A fan, characterized in that: include: The firmware upgrade tool board, inner rotor, outer rotor and controller according to any one of claims 1 to 9, wherein: A first end of the first signal switching circuit is connected to the controller, and a second end of the first signal switching circuit is connected to the host computer; A first end of the second signal switching circuit is connected to the controller, and a second end of the second signal switching circuit is connected to the host computer; The host computer sequentially reads identification signals of the first signal switching circuit and the second signal switching circuit; When the host computer reads that the identification signal is at a low level, the host computer transmits the inner rotor firmware upgrade file to the first signal switching circuit, the first signal switching circuit transmits the inner rotor firmware upgrade file to the controller, and the controller upgrades the inner rotor; When the host computer reads that the identification signal is at a high level, the host computer transmits the outer rotor firmware upgrade file to the second signal switching circuit, and the second signal switching circuit transmits the outer rotor firmware upgrade file to the controller, and the controller upgrades the outer rotor.
Citation Information
Patent Citations
Firmware upgrade method and device of eMMC mass production tool
CN108052337A
Gate system firmware upgrading method and device and gate system
CN112015452A
Firmware upgrading system, method and device, electronic equipment and storage medium
CN117055923A
PD fast charge control circuit supporting MCU firmware upgrading and method thereof
CN117667150A
Test method and device for integrated power supply protection switch of server fan
CN117743045A
Cited By
Fan control method and device, controller, double-rotor fan, product and equipment
CN122258059A