Method, system and device for controlling cooling fan, electronic equipment and storage medium
By sending heartbeat signals and timeout judgment methods in the fan controller, the problem of unreliable cooling fans when the fan controller is abnormal is solved, the reliability control of the cooling fan is achieved, and the coolant temperature is ensured to be stable.
Patent Information
- Application Number
- CN202410226661.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2025-09-05
AI Technical Summary
In the prior art, when a cooling fan controlled by a PWM signal fails to work due to a fan controller running away or a negative pole being disconnected, the main controller cannot identify the fault, resulting in poor reliability of the cooling fan control and increased coolant temperature.
By sending a heartbeat signal in the fan controller every second preset time period and pulling down the PWM signal within the first preset time period, combined with timeout judgment and fault monitoring, fault identification and reset control of the cooling fan are achieved.
Improves the reliability of cooling fan control, ensuring timely identification and reset even in abnormal fan controller conditions, preventing excessive coolant temperature.
Smart Images

Figure CN120592728A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle cooling system control, and more specifically, to a method, system, device, electronic device, and computer-readable storage medium for controlling a cooling fan. Background Art
[0002] Currently, cooling fans are controlled by PWM (Pulse Width Modulation) signals. Since the high level of the PWM signal is usually directly the battery voltage, and the frequency of the PWM signal is issued by the main controller EMS (Energy Management System), cooling fan fault feedback relies on the fan controller to pull the PWM signal low for recognition by the main controller.
[0003] At present, in the relevant technology, when the fan controller fails to work due to reasons such as flight or disconnection of the negative pole, the fan controller will not pull down the PWM signal, resulting in the main controller being unable to identify the cooling fan failure, making it difficult to control the cooling fan to dissipate heat according to the actual required speed, which can easily cause the coolant temperature to rise, resulting in poor reliability of the cooling fan control. Summary of the Invention
[0004] To solve the above technical problems, embodiments of the present application provide a method, system, device, electronic device, and computer-readable storage medium for controlling a cooling fan, so as to improve the reliability of cooling fan control.
[0005] According to one aspect of an embodiment of the present application, a method for controlling a cooling fan is provided, wherein the cooling fan is used to dissipate heat from a vehicle cooling system; the method comprises: detecting the coolant temperature in the vehicle cooling system to obtain a water temperature signal; determining a PWM signal based on the water temperature signal; controlling the rotation of the cooling fan based on the PWM signal, and sending a heartbeat signal once every second preset time period; the heartbeat signal is defined as pulling down the PWM signal within a first preset time period; performing a timeout judgment on the heartbeat signal to obtain a heartbeat signal timeout judgment result, and performing fault monitoring on the cooling fan to obtain a cooling fan control fault monitoring result; when the heartbeat signal timeout judgment result is that the heartbeat signal reception has timed out, and the cooling fan control fault monitoring result is that the cooling fan has no fault, resetting the cooling fan.
[0006] In some embodiments, determining the PWM signal based on the water temperature signal includes: matching a first fan speed corresponding to the water temperature signal from a preset database; storing a correspondence between the water temperature signal and the first fan speed in the database; and determining the PWM signal based on the first fan speed.
[0007] In some embodiments, controlling the rotation of the cooling fan according to the PWM signal includes: matching a second fan speed corresponding to the PWM signal from a preset database; storing a correspondence between the PWM signal and the second fan speed in the database; and controlling the rotation of the cooling fan motor according to the second fan speed to drive the cooling fan to rotate.
[0008] In some embodiments, resetting the cooling fan includes: obtaining a cooling fan reset interval; and controlling the cooling fan to reset when the cooling fan reset interval exceeds a preset threshold.
[0009] In some embodiments, after performing fault monitoring on the cooling fan and obtaining the cooling fan control fault monitoring result, it also includes: when the water temperature signal exceeds a preset temperature threshold and the cooling fan control fault monitoring result is that the cooling fan is not faulty, resetting the cooling fan.
[0010] In some embodiments, after performing fault monitoring on the cooling fan and obtaining a cooling fan control fault monitoring result, the method further includes: sending a fan fault signal once when the cooling fan control fault monitoring result is that the cooling fan is faulty; the fan fault signal is defined as releasing the PWM signal control within a fourth preset time period after lowering the PWM signal within a third preset time period.
[0011] According to one aspect of an embodiment of the present application, a system for controlling a cooling fan is provided, wherein the cooling fan is used to dissipate heat from a vehicle cooling system, the system comprising: a main controller, configured to detect the coolant temperature in the vehicle cooling system and obtain a water temperature signal; determine a PWM signal based on the water temperature signal; send the PWM signal to a fan controller, and receive a heartbeat signal and a cooling fan control fault monitoring result sent by the fan controller, perform a timeout judgment on the heartbeat signal, and obtain a heartbeat signal timeout judgment result; if the heartbeat signal timeout judgment result is that the heartbeat signal reception timed out and the cooling fan control fault monitoring result is that the cooling fan has no fault, reset control of the cooling fan; a fan controller, configured to receive the PWM signal sent by the main controller, control the rotation of the cooling fan according to the PWM signal, and send a heartbeat signal to the main controller once every second preset time period; perform fault monitoring on the cooling fan, obtain a cooling fan control fault monitoring result, and send the cooling fan control fault monitoring result to the main controller.
[0012] According to one aspect of an embodiment of the present application, a device for controlling a cooling fan is provided, wherein the cooling fan is used to dissipate heat from a vehicle cooling system; the device includes: a temperature detection module, configured to detect the coolant temperature in the vehicle cooling system and obtain a water temperature signal; a determination module, configured to determine a PWM signal based on the water temperature signal; a signal sending module, configured to control the rotation of the cooling fan based on the PWM signal, and to send a heartbeat signal once every second preset time period; the heartbeat signal is defined as pulling down the PWM signal within a first preset time period; a judgment module, configured to perform a timeout judgment on the heartbeat signal, obtain a heartbeat signal timeout judgment result, and perform fault monitoring on the cooling fan to obtain a cooling fan control fault monitoring result; a reset control module, configured to reset control the cooling fan when the heartbeat signal timeout judgment result is a heartbeat signal reception timeout and the cooling fan control fault monitoring result is that the cooling fan is not faulty.
[0013] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors; a storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the above method of controlling a cooling fan.
[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for controlling a cooling fan as described above is implemented.
[0015] In the technical solution provided in the embodiments of the present application, on the one hand, after receiving the PWM signal, the fan controller will send a heartbeat signal every second preset time period, and pull down the PWM signal within the first preset time period. Therefore, even if the fan controller is unable to work due to reasons such as running away or the negative pole being disconnected, the cooling fan fault can be identified; on the other hand, by monitoring the received heartbeat signal and performing a timeout judgment; when the heartbeat signal reception times out and the cooling fan has no fault, the cooling fan can be reset and controlled in time, thereby improving the reliability of the cooling fan control.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are incorporated into and constitute a part of the specification, illustrating embodiments consistent with the present application and, together with the specification, serving to explain the principles of the present application. It is obvious that the drawings described below are merely some embodiments of the present application, and a person of ordinary skill in the art can derive other drawings based on these drawings without inventive effort. In the drawings:
[0018] Figure 1 is a structural diagram of a system for controlling a cooling fan shown in an exemplary embodiment of the present application;
[0019] Figure 2 is a schematic diagram of a method for controlling a cooling fan shown in an exemplary embodiment of the present application;
[0020] Figure 3 This is a schematic diagram of an application of a fan heartbeat signal and a fan fault signal provided by an embodiment of the present application;
[0021] Figure 4 is a timing diagram of a method for controlling a cooling fan shown in an exemplary embodiment of the present application;
[0022] Figure 5 FIG. 1 is a structural diagram of a device for controlling a cooling fan shown in an exemplary embodiment of the present application.
[0023] Reference numerals:
[0024] 1: Main controller; 2: Fan controller; 3: Fan relay; 4: Water temperature sensor module; 5: Fan motor. DETAILED DESCRIPTION
[0025] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments applicable to the present application. Rather, they are merely examples of apparatus and methods applicable to certain aspects of the present application, as detailed in the appended claims.
[0026] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of an application program, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0027] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0028] It should be noted that the term "plurality" used in this application refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0029] See also Figure 1 , Figure 1 This is a schematic diagram of the structure of a system for controlling a cooling fan provided by an embodiment of the present application. The cooling fan is used to dissipate heat from a vehicle cooling system. Figure 1 In the embodiment, the system includes a main controller 1 and a fan controller 2, the main controller is connected to the fan controller 2, the system also includes a fan relay 3, a water temperature sensor module 4 and a fan motor 5, one end of the fan relay 3 is connected to the circuit pin VBATT, the circuit pin VBATT is used to power the fan relay 3, the other end of the fan relay 3 is connected to the main controller 1 and the fan controller 2, the fan relay 3 is configured to power the fan controller 2 when the switch is closed; the fan motor 5 is connected to the cooling fan, and the fan motor 5 is configured to drive the cooling fan to rotate in a controlled manner; in the embodiment of the present application, the main controller 1 controls the switch of the fan relay 3 to be closed, so that the fan relay 3 supplies power to the fan controller 2, thereby controlling the fan motor 5 to drive the cooling fan to rotate.
[0030] The main controller 1 is configured to detect the coolant temperature in the vehicle cooling system through the water temperature sensor module 4 to obtain a water temperature signal; determine the PWM signal according to the water temperature signal; send the PWM signal to the fan controller 2, and receive the heartbeat signal and the cooling fan control fault monitoring result sent by the fan controller 2, perform a timeout judgment on the heartbeat signal, and obtain a heartbeat signal timeout judgment result; when the heartbeat signal timeout judgment result is a heartbeat signal reception timeout, and the cooling fan control fault monitoring result is that the cooling fan is not faulty, reset the cooling fan; the fan controller 2 is configured to receive the PWM signal sent by the main controller 1, control the rotation of the cooling fan according to the PWM signal, and send a heartbeat signal to the main controller 1 once every second preset time period, and at the same time pull down the PWM signal within the first preset time period; perform fault monitoring on the cooling fan, obtain a cooling fan control fault monitoring result, and send the cooling fan control fault monitoring result to the main controller 1.
[0031] The present application provides a method for controlling a cooling fan. The method can be applied to a vehicle and implemented by an electronic device in the vehicle. The electronic device includes, but is not limited to, a tablet computer, a personal computer, or an in-vehicle terminal. In this embodiment, the electronic device can be an in-vehicle terminal.
[0032] Among them, the vehicle terminal can include components such as a processor and a memory. The processor can be used to detect the coolant temperature in the vehicle cooling system and obtain a water temperature signal; determine a PWM signal based on the water temperature signal; control the rotation of the cooling fan based on the PWM signal, and send a heartbeat signal every second preset time period; perform a timeout judgment on the heartbeat signal to obtain a heartbeat signal timeout judgment result, and perform fault monitoring on the cooling fan to obtain a cooling fan control fault monitoring result; then, when the heartbeat signal timeout judgment result is a heartbeat signal reception timeout, and the cooling fan control fault monitoring result is that the cooling fan has no fault, the cooling fan is reset and controlled. The memory can be NVM (non-volatile memory), Flash (flash memory), etc., and can be used to store preset thresholds to facilitate the judgment of whether the interval length of the heartbeat signal reception has timed out.
[0033] See also Figure 2 , Figure 2 FIG. 4 is a flowchart of a method for controlling a cooling fan according to an exemplary embodiment of the present application.
[0034] The following describes in detail the method for controlling the cooling fan proposed in the embodiment of the present application using the vehicle-mounted terminal as the specific execution entity.
[0035] like Figure 2 As shown, in an exemplary embodiment, the method for controlling the cooling fan includes at least steps S210 to S250, which are described in detail as follows:
[0036] Step S210: detecting the coolant temperature in the vehicle cooling system to obtain a water temperature signal.
[0037] It is understandable that in the embodiment of the present application, a water temperature sensor module can be provided to detect the coolant temperature in the vehicle cooling system, thereby obtaining a water temperature signal.
[0038] Step S220: determining a PWM signal according to the water temperature signal.
[0039] In some embodiments, determining a PWM signal based on a water temperature signal includes: matching a first fan speed corresponding to the water temperature signal from a preset database; storing a correspondence between the water temperature signal and the first fan speed in the database; and determining a PWM signal based on the first fan speed.
[0040] Exemplarily, determining the PWM signal according to the first fan speed includes: calculating the first fan speed by using a preset mathematical model to obtain the PWM signal.
[0041] Step S230: Control the cooling fan to rotate according to the PWM signal and send a heartbeat signal every second preset time period; the heartbeat signal is defined as pulling down the PWM signal within a first preset time period, wherein the first preset time period is 0.5 seconds and the second preset time period is 9.5 seconds.
[0042] In the embodiment of the present application, a "PWM signal-fan speed table" can be pre-set. After receiving the PWM signal, the fan controller can perform a table lookup operation to obtain the fan speed corresponding to the PWM signal, and then control the fan motor to drive the cooling fan to rotate.
[0043] In the embodiment of the present application, the heartbeat signal is defined as pulling down the PWM signal within a first preset time period. In this way, after the fan controller sends the heartbeat signal to the main controller, the fan controller will also pull down the PWM signal within the first preset time period, thereby facilitating the identification of cooling fan failures.
[0044] For example, pulling down the PWM signal within the first preset time period may include pulling down the PWM signal to a low level for the first preset time period.
[0045] Since the heartbeat signal is sent once every second preset time period in the embodiment of the present application, the heartbeat signal can also be understood as releasing the PWM signal control for the second preset time period after the PWM signal is pulled low for the first preset time period.
[0046] For example, after the fan controller sends the heartbeat signal to the main controller, the fan controller will simultaneously pull down the PWM signal to a low level for a first preset time period, and then restore it to a high level for a second preset time period.
[0047] Step S240 , performing a timeout judgment on the heartbeat signal to obtain a heartbeat signal timeout judgment result, and performing fault monitoring on the cooling fan to obtain a cooling fan control fault monitoring result.
[0048] Furthermore, a heartbeat signal timeout determination is performed to obtain a heartbeat signal timeout determination result, including: if the heartbeat signal reception interval is greater than a preset threshold, determining the heartbeat signal timeout determination result as a heartbeat signal reception timeout; and / or if the heartbeat signal reception interval is less than or equal to the preset threshold, determining the heartbeat signal timeout determination result as a heartbeat signal reception not timed out. The preset interval duration is T1*5, and T1 is a first preset time period.
[0049] Step S250 , when the heartbeat signal timeout judgment result is that the heartbeat signal reception timeout has occurred and the cooling fan control fault monitoring result is that the cooling fan has no fault, the cooling fan is reset and controlled.
[0050] By adopting the method for controlling the cooling fan provided by the embodiment of the present disclosure, on the one hand, after receiving the PWM signal, the fan controller will send a heartbeat signal every second preset time period, and at the same time, the fan controller will pull down the PWM signal within the first preset time period. Therefore, even if the fan controller cannot work due to reasons such as running away or the negative pole being disconnected, the cooling fan fault can be identified; on the other hand, by monitoring the received heartbeat signal and performing a timeout judgment; when the heartbeat signal reception times out and the cooling fan has no fault, the cooling fan can be reset and controlled in time, thereby improving the reliability of the cooling fan control.
[0051] In some embodiments, controlling the rotation of a cooling fan according to a PWM signal includes: matching a second fan speed corresponding to the PWM signal from a preset database; storing a correspondence between the PWM signal and the second fan speed in the database; and controlling the rotation of a motor of the cooling fan according to the second fan speed to drive the rotation of the cooling fan. The second fan speed may be the same as the first fan speed.
[0052] In some embodiments, resetting the cooling fan includes: obtaining a cooling fan reset interval; and controlling the cooling fan to reset when the cooling fan reset interval exceeds a preset threshold, wherein the preset threshold is 300 seconds.
[0053] In the embodiment of the present application, the purpose of setting the cooling fan reset interval is to avoid frequent resetting of the cooling fan in a short period of time.
[0054] In some embodiments, after performing fault monitoring on the cooling fan and obtaining a cooling fan control fault monitoring result, the method further includes: resetting the cooling fan if the water temperature signal exceeds a preset temperature threshold and the cooling fan control fault monitoring result indicates that the cooling fan is not faulty. The preset temperature threshold is 120°C.
[0055] It is understandable that when the water temperature signal exceeds the preset temperature threshold, it is considered that the coolant temperature in the vehicle cooling system is too high and the cooling fan is not dissipating enough heat. By resetting the cooling fan at this time, the fan controller can be restarted, solving the problem of not being able to feedback fan failures and control the normal operation of the fan when the fan controller crashes.
[0056] In some embodiments, after performing fault monitoring on the cooling fan and obtaining a cooling fan control fault monitoring result, the method further includes: if the cooling fan control fault monitoring result indicates a cooling fan fault, sending a fan fault signal once; the fan fault signal is defined as the PWM signal being lowered within a third preset time period and then being released within a fourth preset time period. The third preset time period is 2 seconds, and the fourth preset time period is 2 seconds.
[0057] In the embodiment of the present application, the fan fault signal is defined as pulling down the PWM signal within the third preset time period and then releasing the PWM signal control within the fourth preset time period; in this way, when the fan controller sends it to the main controller, the fan controller will pull down the PWM signal within the third preset time period and then release the PWM signal control within the fourth preset time period.
[0058] For example, when the fan controller detects a fan failure, it sends a fan failure signal to the main controller, and at the same time pulls the PWM signal down to a low level within a third preset time period, and then releases the PWM signal control to restore it to a high level within a fourth preset time period.
[0059] Combine Figure 3 As shown, Figure 3 This is a schematic diagram of an application of a fan heartbeat signal and a fan fault signal provided by an embodiment of the present application; Figure 3 In this example, after sending a heartbeat signal to the main controller, the fan controller simultaneously pulls the PWM signal down to a low level for T1, then returns it to a high level for T2. After sending a fan fault signal to the main controller, the fan controller also pulls the PWM signal down to a low level for T3, then releases the PWM signal control, returning it to a high level for T4. T1 is the first preset time period, T2 is the second preset time period, T3 is the third preset time period, and T4 is the fourth preset time period.
[0060] Combine Figure 4 As shown, an exemplary embodiment of the present application provides a timing diagram of a method for controlling a cooling fan; the method includes at least steps S401 to S411, which are described in detail as follows:
[0061] In step S401 , the main controller is initialized, supplies power to the cooling fan, and controls the fan reset timer and the heartbeat signal timer to start timing.
[0062] It can be understood that the main controller controls the fan relay to be energized, thereby supplying power to the cooling fan; the fan reset timer is used to time the cooling fan reset interval, and the heartbeat signal timer is used to time the heartbeat signal reception interval.
[0063] In step S402 , the main controller detects the coolant temperature in the vehicle cooling system to obtain a water temperature signal.
[0064] Step S403 , determining whether the water temperature signal is less than a preset threshold; if so, executing step S404 ; and / or, if not, executing step S411 .
[0065] In step S404 , the main controller determines a PWM signal according to the water temperature signal.
[0066] Step S405: The main controller sends the PWM signal to the fan controller.
[0067] Step S406 : The fan controller receives the PWM signal and controls the cooling fan to rotate according to the PWM signal.
[0068] Step S407: The fan controller sends a heartbeat signal to the main controller once every second preset time period.
[0069] The heartbeat signal is defined as pulling down the PWM signal within a first preset time period.
[0070] Step S408 : The fan controller performs fault monitoring on the cooling fan, obtains a cooling fan control fault monitoring result, and sends the cooling fan control fault monitoring result to the main controller.
[0071] In the embodiment of the present application, when the fan controller detects a cooling fan control fault, it sends a fan fault signal to the main controller; when no cooling fan control fault is detected, it does not send a fan fault signal to the main controller.
[0072] When the main controller does not receive the fan fault signal, it considers that the cooling fan control fault monitoring result is that the cooling fan is not faulty; when the main controller receives the fan fault signal, it considers that the cooling fan control fault monitoring result is that the cooling fan is faulty.
[0073] Step S409: The main controller receives the heartbeat signal and the cooling fan control fault monitoring result sent by the fan controller.
[0074] Step S410: When the heartbeat signal reception times out and the cooling fan control fault monitoring result shows that the cooling fan is not faulty, the main controller obtains a reset interval time, and then ends.
[0075] Step S411, determining whether the reset interval time exceeds a preset threshold; if so, executing step S412, if not, continuing to monitor the coolant temperature.
[0076] In the embodiment of the present application, by obtaining the reset interval of the cooling fan, it is possible to avoid frequently controlling the cooling fan to reset in a short period of time, thereby reducing the failure rate of the cooling fan.
[0077] Step S412: Control the cooling fan to reset. Then the process ends.
[0078] It is understandable that controlling the cooling fan to reset includes: sending a reset signal to a fan controller, and controlling the cooling fan to reset via the fan controller.
[0079] Combine Figure 5 As shown, an exemplary embodiment of the present application provides a device for controlling a cooling fan, including: a temperature detection module 510, a determination module 520, a signal sending module 530, a judgment module 540 and a reset control module 550; the temperature detection module 510 is configured to detect the coolant temperature in the vehicle cooling system and obtain a water temperature signal; the determination module 520 is configured to determine a PWM signal based on the water temperature signal; the signal sending module 530 is configured to control the rotation of the cooling fan based on the PWM signal and send a heartbeat signal once every second preset time period; the heartbeat signal is defined as pulling down the PWM signal within a first preset time period; the judgment module 540 is configured to perform a timeout judgment on the heartbeat signal, obtain a heartbeat signal timeout judgment result, and perform fault monitoring on the cooling fan to obtain a cooling fan control fault monitoring result; the reset control module 550 is configured to reset the cooling fan when the heartbeat signal timeout judgment result is that the heartbeat signal reception interval is greater than a preset threshold and the cooling fan control fault monitoring result is that the cooling fan is not faulty.
[0080] Furthermore, the determination module 520 is configured to determine the PWM signal based on the water temperature signal in the following manner: matching the first fan speed corresponding to the water temperature signal from a preset database; storing the correspondence between the water temperature signal and the first fan speed in the database; and determining the PWM signal based on the first fan speed.
[0081] Furthermore, the signal sending module 530 is configured to control the rotation of the cooling fan according to the PWM signal in the following manner: matching a second fan speed corresponding to the PWM signal from a preset database; storing the correspondence between the PWM signal and the second fan speed in the database; controlling the rotation of the cooling fan motor according to the second fan speed to drive the cooling fan to rotate.
[0082] Furthermore, the reset control module 550 is configured to perform reset control on the cooling fan in the following manner: obtaining a reset interval of the cooling fan; and controlling the cooling fan to reset when the reset interval of the cooling fan exceeds a preset threshold.
[0083] Furthermore, the reset control module 550 is also configured to perform fault monitoring on the cooling fan and reset control on the cooling fan after obtaining the cooling fan control fault monitoring result when the water temperature signal exceeds the preset temperature threshold and the cooling fan control fault monitoring result is that the cooling fan is not faulty.
[0084] Furthermore, the judgment module 540 is also configured to perform fault monitoring on the cooling fan and obtain the cooling fan control fault monitoring result. If the cooling fan control fault monitoring result is a cooling fan fault, a fan fault signal is sent once; the fan fault signal is defined as after pulling down the PWM signal within the third preset time period, releasing the PWM signal control within the fourth preset time period.
[0085] It should be noted that the device for controlling a cooling fan provided in the above embodiment and the method for controlling a cooling fan provided in the above embodiment are based on the same concept. The specific manner in which the various modules and units perform their operations has been described in detail in the method embodiments and will not be repeated here. In actual applications, the device for controlling a cooling fan provided in the above embodiment can, as needed, allocate the above functions to different functional modules, i.e., divide the internal structure of the device into different functional modules to perform all or part of the functions described above. This is not a limitation herein.
[0086] An embodiment of the present application also provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the method for controlling a cooling fan provided in the above-mentioned embodiments.
[0087] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned network device traffic diversion control method. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being incorporated into the electronic device.
[0088] It should be noted that the computer-readable storage medium shown in the embodiments of the present application may include, but is not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. The computer program contained in the computer-readable storage medium may be transmitted using any suitable medium, including, but not limited to, wireless, wired, etc., or any suitable combination thereof.
[0089] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main ideas and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A method for controlling a cooling fan, characterized in that: The cooling fan is used to dissipate heat from the vehicle cooling system; the method comprises: Detect the coolant temperature in the vehicle cooling system and obtain a water temperature signal; determining a PWM signal according to the water temperature signal; Controlling the rotation of the cooling fan according to the PWM signal and sending a heartbeat signal once every second preset time period; the heartbeat signal is defined as pulling down the PWM signal within the first preset time period; Performing a timeout judgment on the heartbeat signal to obtain a heartbeat signal timeout judgment result, and performing fault monitoring on the cooling fan to obtain a cooling fan control fault monitoring result; When the heartbeat signal timeout judgment result is that the heartbeat signal reception has timed out, and the cooling fan control fault monitoring result is that the cooling fan has no fault, the cooling fan is reset controlled.
2. The method according to claim 1, characterized in that Determining a PWM signal according to the water temperature signal includes: Matching a first fan speed corresponding to the water temperature signal from a preset database; the database stores a correspondence between the water temperature signal and the first fan speed; A PWM signal is determined according to the first fan speed.
3. The method according to claim 1, characterized in that Controlling the cooling fan to rotate according to the PWM signal includes: Matching a second fan speed corresponding to the PWM signal from a preset database; the database stores a correspondence between the PWM signal and the second fan speed; The motor of the cooling fan is controlled to rotate according to the second fan speed to drive the cooling fan to rotate.
4. The method according to claim 1, wherein Resetting the cooling fan includes: Get the cooling fan reset interval; When the cooling fan reset interval exceeds a preset threshold, the cooling fan is controlled to reset.
5. The method according to claim 1, wherein After performing fault monitoring on the cooling fan and obtaining a cooling fan control fault monitoring result, the method further includes: When the water temperature signal exceeds a preset temperature threshold and the cooling fan control fault monitoring result shows that the cooling fan has no fault, the cooling fan is reset controlled.
6. The method according to claim 1, characterized in that After performing fault monitoring on the cooling fan and obtaining a cooling fan control fault monitoring result, the method further includes: When the cooling fan control fault monitoring result is the cooling fan fault, a fan fault signal is sent once; the fan fault signal is defined as after the PWM signal is lowered within a third preset time period, the PWM signal control is released within a fourth preset time period.
7. A system for controlling a cooling fan, characterized in that: The cooling fan is used to dissipate heat from a vehicle cooling system, and the system includes: The main controller is configured to detect the coolant temperature in the vehicle cooling system to obtain a water temperature signal; determine a PWM signal based on the water temperature signal; send the PWM signal to a fan controller, receive a heartbeat signal and a cooling fan control fault monitoring result sent by the fan controller, perform a timeout determination on the heartbeat signal to obtain a heartbeat signal timeout determination result; and reset the cooling fan if the heartbeat signal timeout determination result is a heartbeat signal reception timeout and the cooling fan control fault monitoring result is that the cooling fan is not faulty. The fan controller is configured to receive a PWM signal sent by the main controller, control the rotation of the cooling fan according to the PWM signal, and send a heartbeat signal to the main controller once every second preset time period; perform fault monitoring on the cooling fan, obtain a cooling fan control fault monitoring result, and send the cooling fan control fault monitoring result to the main controller.
8. A device for controlling a cooling fan, characterized in that: The cooling fan is used to dissipate heat from the vehicle cooling system; the device includes: a temperature detection module, configured to detect the coolant temperature in the vehicle cooling system and obtain a water temperature signal; a determination module, configured to determine a PWM signal according to the water temperature signal; a signal sending module configured to control the rotation of the cooling fan according to the PWM signal and to send a heartbeat signal once every second preset time period; the heartbeat signal is defined as pulling down the PWM signal within the first preset time period; a judgment module configured to perform a timeout judgment on the heartbeat signal to obtain a heartbeat signal timeout judgment result, and perform a fault monitoring on the cooling fan to obtain a cooling fan control fault monitoring result; The reset control module is configured to perform reset control on the cooling fan when the heartbeat signal timeout judgment result is that the heartbeat signal reception timeout occurs and the cooling fan control fault monitoring result is that the cooling fan has no fault.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the method for controlling a cooling fan according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for controlling a cooling fan according to any one of claims 1 to 6 is implemented.