CN111005892B - Adaptive fan circuit, system, electronic equipment and fan detection method - Google Patents

Adaptive fan circuit, system, electronic equipment and fan detection method Download PDF

Info

Publication number
CN111005892B
CN111005892B CN201911313665.7A CN201911313665A CN111005892B CN 111005892 B CN111005892 B CN 111005892B CN 201911313665 A CN201911313665 A CN 201911313665A CN 111005892 B CN111005892 B CN 111005892B
Authority
CN
China
Prior art keywords
fan
signal
circuit
state
target state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911313665.7A
Other languages
Chinese (zh)
Other versions
CN111005892A (en
Inventor
章波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911313665.7A priority Critical patent/CN111005892B/en
Publication of CN111005892A publication Critical patent/CN111005892A/en
Application granted granted Critical
Publication of CN111005892B publication Critical patent/CN111005892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids

Abstract

The application provides a self-adaptation fan circuit, system, electronic equipment and fan detection method, and self-adaptation fan circuit includes: the fan socket is used for connecting a fan; the controller is connected with the fan socket and used for outputting a control signal for controlling the fan; and the state conversion unit is respectively connected with the fan socket and the controller and is used for receiving the fan state signal transmitted from the fan socket, converting the fan state signal into a target state signal which can be identified by the controller and outputting the target state signal to the controller. The controller can determine the type of the fan according to the target state signal fed back by the state conversion unit, and meanwhile, the target state signal is converted according to the fan state signal generated by the fan, so that the controller can also determine the state of the fan according to the target state signal fed back by the state conversion unit, and the compatibility of different types of fans is realized.

Description

Adaptive fan circuit, system, electronic equipment and fan detection method
Technical Field
The application relates to the technical field of equipment control, in particular to a self-adaptive fan circuit, a self-adaptive fan system, an electronic device and a fan detection method.
Background
In electronic products, for devices with large power consumption, the requirement of wind cooling and heat dissipation is generally met, and then the running state of a fan needs to be monitored.
At present, due to the difference of fan specifications (generally, there are FG fans supporting the output in the rotating speed state and RD fans supporting the output in the high-low level state), the device usually selects one of the two fans to perform the state monitoring and the fan control, and the corresponding fan circuit is also a circuit only matched with the selected fan, and cannot realize the compatibility with the fans of other specifications. This results in a large limitation of the fan support of the device, and flexible application is not possible. However, if one circuit is used to be compatible with the FG fan and the RD fan, the following problems need to be solved: the circuit is required to be capable of identifying the type of the connected fan, and only after the circuit is capable of identifying the type of the connected fan, the circuit can monitor the state of the fan through a fan state signal fed back by the fan of the corresponding type.
Disclosure of Invention
An object of the embodiments of the present application is to provide a self-adaptive fan circuit, system, electronic device, and fan detection method, so as to identify the type of an accessed fan, and further achieve compatibility between different types of fans.
The embodiment of the application provides a self-adaptation fan circuit, includes:
the fan socket is used for connecting a fan;
the controller is connected with the fan socket and is used for outputting a first control signal for controlling the fan to start and a second control signal for controlling the fan to stop;
the state conversion unit is respectively connected with the fan socket and the controller, and is used for receiving a fan state signal which is transmitted by the fan socket and is output after the fan is executed according to the first control signal, and converting the fan state signal into a first target state signal which can be identified by the controller; the fan state signal is used for receiving a fan state signal which is output after the fan is executed according to the second control signal and is transmitted by the fan socket, and the fan state signal is converted into a second target state signal which can be identified by the controller;
the controller is further configured to determine that the fan is an RD fan when the first target state signal and the second target state signal meet a preset first state condition; and when the first target state signal and the second target state signal accord with a preset second state condition, determining that the fan is an FG fan.
In the above implementation, the adaptive fan circuit includes a controller, a fan receptacle, and a state transition unit. The fan socket is connected with the controller and can be connected with the fan. The controller can output a first control signal to control the start of the fan connected to the fan socket and output a second control signal to control the stop of the fan connected to the fan socket. The state conversion unit is respectively connected with the fan socket and the controller, fan state signals generated when the fan works and stops working after starting can be transmitted to the state conversion unit through the fan socket, the fan state signals are converted into first target state signals and second target state signals by the state conversion unit and are provided for the controller, and then the controller determines the type of the fan connected to the fan socket according to the first target state signals and the second target state signals. Therefore, the controller can determine the type of the fan according to the target state signal fed back by the state conversion unit, and meanwhile, the target state signal is obtained by converting the fan state signal generated by the fan, so that the controller can also determine the state of the fan according to the target state signal fed back by the state conversion unit, and the compatibility of different types of fans is realized.
Further, the state transition unit includes:
a signal converter connected to the fan outlet, for converting a high level signal or a low level signal inputted from the fan outlet into a target pulse signal, and for converting a status pulse signal inputted from the fan outlet into a high level signal;
the signal processing circuit is connected with the fan socket and is used for converting the state pulse signal input from the fan socket into a high-level signal and allowing the high-level signal or the low-level signal input from the fan socket to pass through;
and the input end of the AND gate circuit is respectively connected with the signal converter and the output end of the signal processing circuit, and the output end of the AND gate circuit is connected with the controller so as to output the target state signal.
It should be understood that the RD fan will feed back a low signal when it is working normally and a high signal when it is not rotating; the FG fan feeds back a pulse signal (i.e., a status pulse signal as described herein) during normal operation, and feeds back a high level signal or a low level signal when the FG fan does not rotate. In the above implementation structure:
for the RD fan: after the fan state signal output after being executed according to the first control signal is a low level signal (i.e. a 0 level signal in the logic circuit), the signal processing circuit keeps outputting the low level signal, and after the fan state signal is input into the and circuit, because the logic operation rule of the and circuit is as follows: as long as the 0 level signal is input, the output is necessarily the 0 level signal, so after the RD fan is executed according to the first control signal, the first target state signal output to the controller by the state conversion unit is the 0 level signal. The fan state signal output after being executed according to the second control signal is a high level signal (i.e., a 1 level signal in the logic circuit), since the signal processing circuit allows the high level signal to pass through, and the signal converter converts the high level signal into a target pulse signal, the and gate circuit outputs the target pulse signal, and thus the second target state signal output to the controller by the state conversion unit after being executed according to the second control signal is the target pulse signal.
For FG fans: the fan state signal output after being executed according to the first control signal is a state pulse signal, and the signal processing circuit converts the state pulse signal into a high level signal, and the signal converter converts the state pulse signal into a high level signal, so that the and gate circuit outputs the high level signal. When the fan state signal output after being executed according to the second control signal is a high-level signal or a low-level signal, and when the fan state signal is the high-level signal, the signal processing circuit allows the high-level signal to pass through, and the signal converter converts the high-level signal into a target pulse signal, so that the AND gate circuit outputs the target pulse signal; when the fan state signal output after being executed according to the second control signal is a low level signal, the signal processing circuit keeps outputting the low level signal, and the logical operation rule of the AND gate circuit is as follows: as long as a low level signal is input, the output is necessarily a low level signal, and therefore the and circuit outputs a low level signal. Namely, after the FG fan is executed according to the second control signal, the output of the state conversion unit is a target pulse signal or a low-level signal.
In this way, with the above configuration, there is a rule (second state condition) that the first target state signal is the sustain low level signal and the second target state signal is the target pulse signal when the fan is the RD fan, and the first target state signal is the sustain high level signal and the second target state signal is the target pulse signal or the sustain low level signal when the fan is the FG fan. The controller can determine the type of the fan according to the rule, so that the reliability of the scheme is improved.
Further, the signal converter is a watchdog chip; and a WDI pin of the watchdog chip is connected with the fan socket, and a RST pin of the watchdog chip is connected with the input end of the AND circuit.
In the implementation process, the function of converting the high-level signal input from the fan socket into the target pulse signal and converting the state pulse signal input from the fan socket into the high-level signal is realized through the watchdog chip, so that the implementation is simple and reliable, the cost is low, and the practical application value is good.
Further, the signal processing circuit includes:
a level pull-up circuit connected to the fan jack; the level pull-up circuit comprises a pull-up resistor connected with the fan socket, and one end of the pull-up resistor, which is not connected with the fan socket, is connected with a power supply voltage;
and a signal conversion circuit connected to a circuit between the pull-up resistor and the fan socket;
the signal conversion circuit comprises a diode and a grounding circuit;
the input end of the diode is connected into a circuit between the pull-up resistor and the fan socket, and the output end of the diode is connected with the input end of the AND gate circuit;
the grounding circuit comprises a capacitor and a resistor which are connected in parallel; one end of the capacitor and the resistor which are connected in parallel is connected between the diode and the AND gate circuit, and the other end of the capacitor and the resistor which are connected in parallel is grounded.
In the implementation process, the voltage is pulled up through the level pull-up circuit, and the signal is processed through the diode, the capacitor and the resistor which are connected in parallel and grounded, so that the state pulse signal output by the FG fan is converted into a high-level signal and output to the AND gate circuit, and meanwhile, the high-level signal is allowed to pass through. The whole circuit is simple to realize, high in reliability and high in practical application value.
An embodiment of the present application further provides an adaptive fan system, including: a fan and any of the adaptive fan circuits described above; the fan is plugged into a fan receptacle of the adaptive fan circuit.
An embodiment of the present application further provides an electronic device, including: a housing, and an adaptive fan circuit of any of the foregoing disposed in the housing, or the adaptive fan system of the foregoing disposed in the housing.
An embodiment of the present application further provides a fan detection method, applied to any one of the adaptive fan circuits, or applied to the adaptive fan system, or applied to the electronic device, including:
the controller outputs a first control signal for controlling the fan to start and a second control signal for controlling the fan to stop to the fan;
receiving a first target state signal and a second target state signal fed back by the state conversion unit; the first target state signal is a target state signal obtained by converting a fan state signal output by the state conversion unit after the fan is executed according to the first control signal; the second target state signal is a target state signal obtained by converting a fan state signal output by the state conversion unit after the fan is executed according to the second control signal;
when the first target state signal and the second target state signal accord with a preset first state condition, determining that the fan is an RD fan;
and when the first target state signal and the second target state signal accord with a preset second state condition, determining that the fan is an FG fan.
In the implementation process, the controller outputs a first control signal for controlling the fan to start and outputs a second control signal for controlling the fan to stop to the fan. When the fan receives the first control signal, the fan is started according to the first control signal and keeps working; when the second control signal is received, the operation is stopped. Considering the characteristics of the RD fan and the FG fan as follows: the RD fan can feed back a low level signal when in normal operation and can feed back a high level signal when not rotating; the FG fan feeds back a target pulse signal when in normal operation and feeds back a high level signal or a low level signal when not rotating. Then, after being processed by the state conversion unit, the first target state signal and the second target state signal output by the RD fan and the FG fan have different compositions, and based on the difference, the controller can accurately determine the type of the fan. Meanwhile, the target state signal is obtained by converting the fan state signal generated by the fan, so that the controller can determine the state of the fan according to the target state signal fed back by the state conversion unit, and the compatibility of different types of fans is realized.
Further, the controller outputs a first control signal for controlling the fan to be started to the fan, and a second control signal for controlling the fan to be stopped includes: the controller outputs a pulse width modulation signal with a duty ratio of 50% to the fan so as to control the fan to start; the controller outputs a pulse width modulation signal with a duty ratio of 0% to the fan to control the fan to stop.
In practical applications, a PWM (Pulse Width Modulation) signal is usually used to control the fan. In the implementation process, the fan is controlled to normally work through the PWM signal with the 50% duty ratio, and the fan is controlled to stop working through the PWM signal with the 0% duty ratio, so that the scheme is easy to implement, and the fan has a good practical use value.
Further, when the first target status signal and the second target status signal meet a preset first status condition, determining that the fan is an RD fan comprises: when the first target state signal is a continuous low level signal and the second target state signal is a target pulse signal, determining that the fan is an RD fan;
when the first target state signal and the second target state signal meet a preset second state condition, determining that the fan is an FG fan includes: and when the first target state signal is a continuous high level signal and the second target state signal is a target pulse signal or a continuous low level signal, determining that the fan is an FG fan.
Further, after determining that the fan is an RD fan, the fan detection method further includes: outputting the first control signal to the fan to control the fan to work normally; and when the target pulse signal fed back by the state conversion unit is received, determining that the RD fan is abnormal.
In the implementation process, after the fan is determined to be the RD fan, once the fan is abnormal in the working process, the signal fed back by the state conversion unit becomes the target pulse signal, so that the abnormity of the RD fan can be determined, and the abnormal detection of the fan in the use process of the fan is realized.
Further, after determining that the fan is an FG fan, the fan detecting method further includes: outputting the first control signal to the fan to control the fan to work normally; and when the target pulse signal or continuous low level signal fed back by the state conversion unit is received, determining that the FG fan is abnormal.
In the implementation process, after the fan is determined to be the FG fan, once the fan is abnormal in the working process, the signal fed back by the state conversion unit is changed into the target pulse signal or the continuous low-level signal, so that the abnormity of the FG fan can be determined, and the abnormal detection of the fan in the using process of the fan is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an adaptive fan circuit according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a more specific adaptive fan circuit according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a more specific adaptive fan circuit according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a fan detection method according to an embodiment of the present disclosure;
fig. 5 is a schematic circuit structure diagram of a specific fan after the fan is connected according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The first embodiment is as follows:
in order to implement compatibility with different types of fans, an embodiment of the present application provides an adaptive fan circuit, which is shown in fig. 1 and includes: the fan comprises a fan socket, a controller and a state conversion unit. Wherein:
the fan socket can be connected with the fan, and the fan socket is connected with the controller. In addition, the fan socket is also connected with the input end of the state conversion unit, and the output end of the state conversion unit is connected with the controller.
In the embodiment of the present application, the controller may output a first control signal for controlling the start of the fan and a second control signal for controlling the stop of the fan. The fan is started according to the first control signal after receiving the first control signal, so that the fan is in a working state; and when the fan receives the second control state, the fan can enable the fan not to rotate according to the second control information.
It should be noted that the fan in the embodiment of the present application supports the RD fan and the FG fan, and the RD fan and the FG fan return different fan status signals in different states. For example, the RD fan may feed back a low level signal when it is normally operating, and may feed back a high level signal when it is not rotating; the FG fan feeds back a pulse signal (i.e., a status pulse signal as described herein) during normal operation, and feeds back a high level signal or a low level signal when the FG fan does not rotate.
In the embodiment of the application, the fan state signal output by the fan is input into the state conversion unit first, and the state conversion unit converts the fan state signal to obtain the target state signal which can be identified by the controller and outputs the target state signal to the controller. Specifically, the state conversion unit may receive a fan state signal output by the fan, which is transmitted by the fan socket and executed according to the first control signal, and convert the fan state signal into a first target state signal; the fan state signal output after the fan transmitted by the fan socket is executed according to the second control signal can be received and converted into a second target state signal.
The controller may determine that the fan is the RD fan when the first target state signal and the second target state signal meet a preset first state condition; and when the first target state signal and the second target state signal accord with a preset second state condition, determining the fan to be an FG fan. Therefore, according to different composition conditions of the first target state signal and the second target state signal corresponding to the RD fan and the FG fan, accurate judgment on whether the accessed fan is the RD fan or the FG fan can be achieved.
In the embodiment of the present application, referring to fig. 2, the structure of the state transition unit may include a signal converter, a signal processing circuit, and an and gate circuit. Wherein:
the input ends of the signal converter and the signal processing circuit are connected with the fan socket, so that the fan state signal returned by the fan can be respectively input into the signal converter and the signal processing circuit.
The signal converter can perform corresponding conversion processing on the fan state signal. Specifically, when the fan status signal is a high level signal, the signal converter may convert the high level signal into a target pulse signal; when the fan status signal is a status pulse signal, the signal converter may convert the status pulse signal into a high level signal. The signal processing circuit can allow a high-level signal or a low-level signal to pass through, and if the input fan state signal is not a high-level signal or a low-level signal but a state pulse signal, the state pulse signal can be converted into a high-level signal and then output.
The output ends of the signal converter and the signal processing circuit are connected to the input end of the AND gate circuit, and after the AND gate circuit performs logic AND operation, an operation result signal is output to the controller, and the operation result signal is a converted target state signal.
It should be noted that, in the actual use process, the status pulse signal fed back by the FG fan is a fast pulse signal, and if the status pulse signal needs to be identified, a dedicated chip or a dedicated PLD (programmable logic device) is required to be used for implementing the identification, and a General-purpose input/output (GPIO) pin is used for identifying such a fast pulse signal, which may cause a false judgment. In the embodiment of the present application, the target pulse signal converted by the signal converter may be a low-frequency pulse signal, for example, an interrupt signal with an interval of 1 second, so that the controller can recognize the target pulse signal. To implement this function, the signal converter may be a watchdog chip (e.g., 7823 watchdog chip, etc.) in the embodiment of the present application. For example, as shown in fig. 3, the WDI pin of the 7823 watchdog chip may be connected to the fan socket, and the RST pin of the 7823 watchdog chip may be connected to the input of the and circuit, so as to convert the high-level signal into the target pulse signal and convert the status pulse signal input from the fan socket into the high-level signal. The 7823 watchdog chip implementation circuit can also be other equivalent functional circuits, such as a 555 timer circuit.
In the embodiment of the present application, still referring to fig. 3, in order to implement the function of converting the status pulse signal input from the fan socket into the high level signal and allowing the high level signal input from the fan socket to pass through, a specific feasible structure of the signal processing circuit is as follows:
the signal processing circuit may include a level pull-up circuit and a signal conversion circuit connected to the fan receptacle. The level pull-up circuit comprises a pull-up resistor 11 connected with the fan socket, and one end of the pull-up resistor 11, which is not connected with the fan socket, is connected with a power supply voltage. The signal conversion circuit is connected to the circuit between the pull-up resistor 11 and the fan socket. Wherein: the signal conversion circuit includes a diode 12 and a ground circuit. The input end of the diode 12 is connected to the circuit between the pull-up resistor 11 and the fan socket, and the output end is connected to the input end of the and circuit. And the grounding circuit comprises a capacitor 14 and a resistor 13 which are connected in parallel, one end of the capacitor 14 and one end of the resistor 13 which are connected in parallel are connected between the diode 12 and the AND circuit, and the other end of the capacitor 14 and the other end of the resistor 13 which are connected in parallel are grounded. In this way, the voltage pull-up action of the level pull-up circuit, the isolation of the diode 12 and the filtering of the capacitor 14 and the resistor 13 which are connected in parallel can process the state pulse signal output by the FG fan into a high level signal and output the high level signal, and the high level signal output by the RD fan can be adapted and output.
On the basis of the above adaptive fan circuit, in order to implement compatibility between the FG fan and the RD fan, an embodiment of the present application further provides a fan detection method, which is applied in the adaptive fan circuit, and in particular, in a controller of the adaptive fan circuit, as shown in fig. 4, including:
s401: the controller outputs a first control signal for controlling the start of the fan and a second control signal for controlling the stop of the fan to the fan.
It should be noted that, in practical applications, the PWM signal is usually used to realize the control of the fan. Specifically, the duty ratio of the fan is realized by a PWM signal with a duty ratio of 0% to 100%, and the magnitude of the duty ratio influences the rotation strength of the fan. In the embodiment of the present application, the fan may be controlled to stop operating by sending a PWM signal with a duty ratio of 0%, and the fan may be controlled to normally operate by sending a PWM signal with a duty ratio of 50% (it should be understood that the fan may be controlled to normally operate by other PWM signals with a duty ratio different from 0%).
S402: and receiving the first target state signal and the second target state signal fed back by the state conversion unit.
It should be noted that, in this embodiment of the application, the first target state signal is a target state signal obtained by converting a fan state signal output by the state conversion unit after the fan is executed according to the first control signal; the second target state signal is a target state signal obtained by converting the fan state signal output by the state conversion unit after the fan is executed according to the second control signal.
It should be noted that, in the embodiment of the present application, in the whole fan detection process, after a controller sends a certain control signal, it needs to send another control signal after receiving a corresponding target state signal. In the embodiment of the application, the first control signal may be sent first, and then the second control signal is sent after the first target state signal is received; however, the second control signal may be transmitted first, and the first control signal may be transmitted after the second target state signal is received.
S403: when the first target state signal and the second target state signal accord with a preset first state condition, determining the fan to be an RD fan; and when the first target state signal and the second target state signal accord with a preset second state condition, determining the fan to be an FG fan.
In the embodiment of the present application, corresponding to the adaptive fan circuits shown in fig. 2 and 3, since the RD fan feeds back a low level signal during normal operation, and feeds back a high level signal during non-rotation; the FG fan feeds back a state pulse signal when in normal operation and feeds back a high level signal or a low level signal when not rotating. Thus:
for the RD fan: after the fan state signal output after being executed according to the first control signal is a low level signal (i.e. a 0 level signal in the logic circuit), since the signal processing circuit allows the low level signal to pass through, after the low level signal is input into the and circuit, since the logic operation rule of the and circuit is: as long as the 0 level signal is input, the output is necessarily the 0 level signal, so after the RD fan is executed according to the first control signal, the first target state signal output to the controller by the state conversion unit is the 0 level signal. The fan state signal output after being executed according to the second control signal is a high level signal (i.e., a 1 level signal in the logic circuit), since the signal processing circuit allows the high level signal to pass through, and the signal converter converts the high level signal into a target pulse signal, the and gate circuit outputs the target pulse signal, and thus the second target state signal output to the controller by the state conversion unit after being executed according to the second control signal is the target pulse signal.
For FG fans: the fan state signal output after being executed according to the first control signal is a state pulse signal, and the signal processing circuit converts the state pulse signal into a high level signal, and the signal converter converts the state pulse signal into a high level signal, so that the and gate circuit outputs the high level signal. When the fan state signal output after being executed according to the second control signal is a high-level signal or a low-level signal, and when the fan state signal is the high-level signal, the signal processing circuit allows the high-level signal to pass through, and the signal converter converts the high-level signal into a target pulse signal, so that the AND gate circuit outputs the target pulse signal; when the fan state signal output after being executed according to the second control signal is a low level signal, because the signal processing circuit allows the low level signal to pass through, the logical operation rule of the and gate circuit is as follows: as long as a low level signal is input, the output is necessarily a low level signal, and therefore the and circuit outputs a low level signal. Namely, after the FG fan is executed according to the second control signal, the output of the state conversion unit is a target pulse signal or a low-level signal.
That is, for the RD fan, after the controller sends the first control signal, the first target state signal received in the normal case should be the sustained low level signal, and after the controller sends the second control signal, the second target state signal received should be the target pulse signal, so that the state condition that the "first target state signal is the sustained low level signal, and the second target state signal is the target pulse signal" may be taken as the preset first state condition, thereby implementing accurate determination of the RD fan. For the FG fan, after the controller sends the first control signal, the first target state signal received in the normal condition should be the continuous high level signal, and after sending the second control signal, the second target state signal received should be the target pulse signal or the continuous low level signal, so that the state condition that the "first target state signal is the continuous high level signal, and the second target state signal is the target pulse signal or the continuous low level signal" can be taken as the preset second state condition, thereby implementing the accurate determination of the FG fan.
In this embodiment of the application, after determining that the fan is the RD fan according to the state condition that the first target state signal is the sustained low level signal and the second target state signal is the target pulse signal, in a normal use process, once the first target state signal is output by the controller, the controller receives the target pulse signal fed back by the state conversion unit, that is, it may be determined that the RD fan is abnormal, so that the RD fan may be maintained by notifying related personnel (a related reminding structure needs to be set, for example, the adaptive fan circuit in this embodiment of the application may be applied to an electronic device, and at this time, a display reminding may be implemented through a display screen of the electronic device).
Similarly, after the fan is determined to be the FG fan according to the state condition that the first target state signal is the continuous high level signal and the second target state signal is the target pulse signal or the continuous low level signal, in the normal use process, once the first control signal is output by the controller, the controller receives the target pulse signal or the continuous low level signal fed back by the state conversion unit, and the controller can determine that the FG fan is abnormal, so that the maintenance can be performed by notifying related personnel.
It should be noted that, on the basis of the above adaptive fan circuit, the present application further provides an adaptive fan system, which includes a fan and the above adaptive fan circuit, wherein the fan is connected to the adaptive fan circuit through a fan socket of the adaptive fan circuit, so as to operate under the control of the controller. In addition, the embodiment of the application also provides an electronic device, a shell, and an adaptive fan circuit arranged in the shell or an adaptive fan system arranged in the shell. In addition, since the adaptive fan system and the electronic device have the adaptive fan circuit therein, the fan detection method described above is also applicable to the adaptive fan system and the electronic device.
It should be further noted that the fan detection method in the embodiment of the present application may be written in a readable storage medium (such as a floppy disk, an optical disk, a hard disk, a flash Memory, a usb (Secure Digital Memory Card), an MMC (Multimedia Card), etc.) in the form of a program module, and thus the embodiment of the present application also provides a readable storage medium in which one or more programs implementing the above-mentioned fan detection methods are stored, and the one or more programs may be executed by the controller of the adaptive fan circuit.
In this embodiment of the application, the controller may be implemented by a common single chip microcomputer, an MCU (micro controller Unit), or other devices.
By the aid of the adaptive fan circuit, the adaptive fan system, the electronic equipment and the fan detection method, the type of the accessed fan can be determined. Meanwhile, the controller can accurately determine whether the fan is abnormal at present and needs to be maintained according to the determined type of the fan and the target state signal which is fed back by the state conversion unit and can be identified, and compatibility of the two fans is realized.
Example two:
in this embodiment, a specific circuit structure is taken as an example on the basis of the first embodiment, and further examples of the present application are described.
Referring to the configuration shown in fig. 5, the fan has a PWM interface and a fan status signal output interface (RD/FG interface in the figure). When the fan is connected, the PWM pin of the MCU is communicated with the PWM interface of the fan to output a corresponding PWM signal to control the fan. And the RD/FG interface of the fan is connected to the state conversion unit. In the state conversion unit, a 7823 watchdog chip is adopted as a signal converter, a WDI pin is connected with an RD/FG interface of the fan, a RST pin is connected with an input end of an AND gate circuit, and a high level signal input by the WDI pin can be converted into an interrupt signal with the interval of 1S; in the signal processing circuit, a resistor with the size of 10K is adopted as a pull-up resistor, a resistor with the size of 100K and a capacitor with the size of 1 microfarad are adopted as a resistor in a grounding circuit. And the output end of the AND gate circuit is connected with a GPIO pin or an INT pin of the MCU, so that the converted target state signal is transmitted to the MCU.
The fan detection process is as follows: and (3) normally operating the fan in the starting process, and initiating a learning action by the MCU of the main board after the system is successfully started so as to determine whether the fan is specifically an RD fan or an FG fan.
For the RD fan:
the mainboard sends out a 0% duty ratio PWM signal, and the GPIO pin or the INT pin continuously receives an interrupt signal with an interval of about 1S;
the mainboard sends out a 50% duty ratio PWM signal, and the GPIO pin or the INT pin continuously receives a 0 level signal;
if the situation is not the above situation, the judgment is not that the RD fan is determined, and if the judgment is yes, the MCU can judge that the fan is abnormal by receiving the interrupt signal with the interval of 1S in the subsequent working process of the fan.
For the FG fan:
the mainboard sends out a 0% duty ratio PWM signal, and the GPIO pin or the INT pin continuously receives an interrupt signal with an interval of 1S or a continuous '0' level signal;
the mainboard sends out a 50% duty ratio PWM signal, and the GPIO pin or the INT pin continuously receives a '1' level signal;
if the situation is not the above situation, the fan is judged not to be the FG fan, and if the situation is judged to be the FG fan, the MCU can judge that the fan is abnormal by receiving an interrupt signal or a continuous 0 level signal at an interval of about 1S in the subsequent working process of the fan.
It should be understood that after the learning is completed (i.e., after the type of the fan is determined), the MCU outputs the PWM signal according to normal logic, controls the operation of the fan, dissipates heat for the system, and identifies the operating state of the fan.
In addition, in the embodiment of the present application, since the target pulse signal is the interrupt signal of the interval 1S, if the engineer considers that the interrupt signal of the interval 1S is continuously received too frequently, in the embodiment of the present application, the query may be intermittently performed by providing the enable switch. For example, an enable switch may be provided between the fan socket and the state transition unit, or between the state transition unit and the MCU for intermittent polling.
According to the scheme provided by the embodiment of the application, the self-adaptive determination of the fan can be realized through learning in the power-on process. Meanwhile, the circuit is low in cost, does not need a special chip and has high practical value. Meanwhile, the detection process does not need to occupy more MCU resources, and the software is simple to implement. In addition, the scheme provided by the embodiment of the application can be applied to all box-type electronic products and rack-type electronic products which adopt RD fans or FG fans for heat dissipation, is particularly suitable for low-end products with limited resources, has higher practical value and enhances manufacturability.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
In this context, a plurality means two or more.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (11)

1. An adaptive fan circuit, comprising:
the fan socket is used for connecting a fan;
the controller is connected with the fan socket and is used for outputting a first control signal for controlling the fan to start and a second control signal for controlling the fan to stop;
the state conversion unit is respectively connected with the fan socket and the controller, and is used for receiving a fan state signal which is output by the fan and transmitted by the fan socket after the fan is executed according to the first control signal, and converting the fan state signal into a first target state signal which can be identified by the controller; the fan state signal is used for receiving a fan state signal which is output after the fan is executed according to the second control signal and is transmitted by the fan socket, and the fan state signal is converted into a second target state signal which can be identified by the controller;
the controller is further configured to determine that the fan is an RD fan when the first target state signal and the second target state signal meet a preset first state condition; and when the first target state signal and the second target state signal accord with a preset second state condition, determining that the fan is an FG fan.
2. The adaptive fan circuit of claim 1, wherein the state transition unit comprises:
a signal converter connected to the fan socket for converting a high level signal inputted from the fan socket into a target pulse signal and for converting a status pulse signal inputted from the fan socket into a high level signal;
a signal processing circuit connected to the fan socket for converting the status pulse signal inputted from the fan socket into a high level signal and allowing the high level signal or the low level signal inputted from the fan socket to pass through;
and the input end of the AND gate circuit is respectively connected with the signal converter and the output end of the signal processing circuit, and the output end of the AND gate circuit is connected with the controller so as to output the first target state signal or the second target state signal.
3. The adaptive fan circuit of claim 2 in which the signal converter is a watchdog chip;
and a WDI pin of the watchdog chip is connected with the fan socket, and a RST pin of the watchdog chip is connected with the input end of the AND circuit.
4. The adaptive fan circuit of claim 2, wherein the signal processing circuit comprises:
a level pull-up circuit connected to the fan jack; the level pull-up circuit comprises a pull-up resistor connected with the fan socket, and one end of the pull-up resistor, which is not connected with the fan socket, is connected with a power supply voltage;
and a signal conversion circuit connected to a circuit between the pull-up resistor and the fan socket;
the signal conversion circuit comprises a diode and a grounding circuit;
the input end of the diode is connected into a circuit between the pull-up resistor and the fan socket, and the output end of the diode is connected with the input end of the AND gate circuit;
the grounding circuit comprises a capacitor and a resistor which are connected in parallel; one end of the capacitor and the resistor which are connected in parallel is connected between the diode and the AND gate circuit, and the other end of the capacitor and the resistor which are connected in parallel is grounded.
5. An adaptive fan system, comprising: a fan, and an adaptive fan circuit as claimed in any one of claims 1 to 4;
the fan is plugged into a fan receptacle of the adaptive fan circuit.
6. An electronic device, comprising: an adaptive fan circuit according to any one of claims 1 to 4, or an adaptive fan system according to claim 5.
7. A fan detection method applied to the adaptive fan circuit according to any one of claims 1 to 4, the adaptive fan system according to claim 5, or the electronic device according to claim 6, comprising:
the controller outputs a first control signal for controlling the fan to start and a second control signal for controlling the fan to stop to the fan;
receiving a first target state signal and a second target state signal fed back by the state conversion unit; the first target state signal is a target state signal obtained by converting a fan state signal output by the state conversion unit after the fan is executed according to the first control signal; the second target state signal is a target state signal obtained by converting a fan state signal output by the state conversion unit after the fan is executed according to the second control signal;
when the first target state signal and the second target state signal accord with a preset first state condition, determining that the fan is an RD fan;
and when the first target state signal and the second target state signal accord with a preset second state condition, determining that the fan is an FG fan.
8. The fan detecting method as claimed in claim 7, wherein the controller outputs a first control signal for controlling the start of the fan to the fan, and a second control signal for controlling the stop of the fan comprises:
the controller outputs a pulse width modulation signal with a duty ratio of 50% to the fan so as to control the fan to start;
the controller outputs a pulse width modulation signal with a duty ratio of 0% to the fan to control the fan to stop.
9. The fan detecting method according to claim 7 or 8,
when the first target state signal and the second target state signal meet a preset first state condition, determining that the fan is an RD fan comprises: when the first target state signal is a continuous low level signal and the second target state signal is a target pulse signal, determining that the fan is an RD fan;
when the first target state signal and the second target state signal meet a preset second state condition, determining that the fan is an FG fan includes: and when the first target state signal is a continuous high level signal and the second target state signal is a target pulse signal or a continuous low level signal, determining that the fan is an FG fan.
10. The fan testing method as claimed in claim 9, wherein after determining that said fan is an RD fan, said fan testing method further comprises:
outputting the first control signal to the fan to control the fan to work normally;
and when the target pulse signal fed back by the state conversion unit is received, determining that the RD fan is abnormal.
11. The fan testing method as claimed in claim 9, wherein after determining that the fan is an FG fan, the fan testing method further comprises:
outputting the first control signal to the fan to control the fan to work normally;
and when the target pulse signal or continuous low level signal fed back by the state conversion unit is received, determining that the FG fan is abnormal.
CN201911313665.7A 2019-12-18 2019-12-18 Adaptive fan circuit, system, electronic equipment and fan detection method Active CN111005892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911313665.7A CN111005892B (en) 2019-12-18 2019-12-18 Adaptive fan circuit, system, electronic equipment and fan detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911313665.7A CN111005892B (en) 2019-12-18 2019-12-18 Adaptive fan circuit, system, electronic equipment and fan detection method

Publications (2)

Publication Number Publication Date
CN111005892A CN111005892A (en) 2020-04-14
CN111005892B true CN111005892B (en) 2021-06-18

Family

ID=70116505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911313665.7A Active CN111005892B (en) 2019-12-18 2019-12-18 Adaptive fan circuit, system, electronic equipment and fan detection method

Country Status (1)

Country Link
CN (1) CN111005892B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594849B (en) * 2023-04-28 2024-02-20 北京华电众信技术股份有限公司 Fan state detection and alarm system and detection and alarm method thereof

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101476567A (en) * 2008-01-02 2009-07-08 新唐科技股份有限公司 Apparatus and method for fan auto-detection
CN101963150A (en) * 2009-07-21 2011-02-02 鸿富锦精密工业(深圳)有限公司 Fan type detection and speed regulation system
CN203189301U (en) * 2013-03-08 2013-09-11 诠盛科技股份有限公司 Overheat protection device and electronic device with overheat protection function
CN103511306A (en) * 2012-06-18 2014-01-15 光宝电子(广州)有限公司 Fan model detection method, fan control method and control circuit and device
CN103644136A (en) * 2013-12-24 2014-03-19 华为技术有限公司 Fan control system, system management device and fans
CN204851728U (en) * 2015-06-26 2015-12-09 成都广达新网科技股份有限公司 Utilize watchdog circuit to detect fan running state's circuit
CN105224047A (en) * 2014-06-09 2016-01-06 华为技术有限公司 Fan, fan governor, electronic equipment and fan recognition methods
CN105526184A (en) * 2014-10-21 2016-04-27 比亚迪股份有限公司 Car fan system, detecting control method thereof and detecting control device
CN107035713A (en) * 2017-05-25 2017-08-11 广东万和热能科技有限公司 A kind of automatic identifying method and device of DC fan type
CN107635379A (en) * 2017-09-13 2018-01-26 新华三技术有限公司 Fan module, the network equipment and fan information recognition methods
CN109209962A (en) * 2017-07-06 2019-01-15 新唐科技股份有限公司 Fan detection chip, fan detection method and fan detection system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7385369B2 (en) * 2006-10-31 2008-06-10 Adda Corp. AC fan motor driving circuit having capability of monitoring the rotation rate and status of the AC fan motor

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101476567A (en) * 2008-01-02 2009-07-08 新唐科技股份有限公司 Apparatus and method for fan auto-detection
CN101963150A (en) * 2009-07-21 2011-02-02 鸿富锦精密工业(深圳)有限公司 Fan type detection and speed regulation system
CN103511306A (en) * 2012-06-18 2014-01-15 光宝电子(广州)有限公司 Fan model detection method, fan control method and control circuit and device
CN203189301U (en) * 2013-03-08 2013-09-11 诠盛科技股份有限公司 Overheat protection device and electronic device with overheat protection function
CN103644136A (en) * 2013-12-24 2014-03-19 华为技术有限公司 Fan control system, system management device and fans
CN105224047A (en) * 2014-06-09 2016-01-06 华为技术有限公司 Fan, fan governor, electronic equipment and fan recognition methods
CN105526184A (en) * 2014-10-21 2016-04-27 比亚迪股份有限公司 Car fan system, detecting control method thereof and detecting control device
CN204851728U (en) * 2015-06-26 2015-12-09 成都广达新网科技股份有限公司 Utilize watchdog circuit to detect fan running state's circuit
CN107035713A (en) * 2017-05-25 2017-08-11 广东万和热能科技有限公司 A kind of automatic identifying method and device of DC fan type
CN109209962A (en) * 2017-07-06 2019-01-15 新唐科技股份有限公司 Fan detection chip, fan detection method and fan detection system
CN107635379A (en) * 2017-09-13 2018-01-26 新华三技术有限公司 Fan module, the network equipment and fan information recognition methods

Also Published As

Publication number Publication date
CN111005892A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
US8074114B2 (en) Motherboard error detection system
CN100375054C (en) Monitoring diagnosis device of computer main board failure
CN108228509B (en) USB interface switching device and electronic equipment
EP2463778A1 (en) Computer system
CN104572226A (en) Method and device for detecting mainboard starting abnormity
EP2688258A1 (en) Single board communication method, system and single board
CN102081568A (en) Multi-motherboard server system
CN102455989A (en) Hot-plug control system
CN111005892B (en) Adaptive fan circuit, system, electronic equipment and fan detection method
CN109388526B (en) Control circuit and reset operation method
CN113190395B (en) State monitoring method and device
CN112783721B (en) Method, device and system for monitoring I2C bus and storage medium
CN110245048A (en) A kind of cabinet intelligent management system and management method
CN103914361A (en) Detection jig and detection method of computer device
CN110469529A (en) Server fan control system
CN112612736A (en) On-site detection method of timer adapter card and server system
CN116627729A (en) External connection cable, external connection cable in-place detection device, startup self-checking method and system
CN208061189U (en) OPS pinboards and electronic equipment
CN104035844A (en) Fault testing method and electronic device
CN107273167B (en) Control mainboard, and device and method for burning codes into control mainboard
US20150032284A1 (en) Detection module, device and system for detecting fan's connection and disconnection states
US20100031087A1 (en) Method of control in a system having a media reader
CN116010141A (en) Method, device and medium for positioning starting abnormality of multipath server
CN115098342A (en) System log collection method, system, terminal and storage medium
CN109162954B (en) Fan control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant