Fan control method, device, electronic device and storage medium

By switching modes and clearing control information in fan control, the problem of unisolated fan control logic is solved, and reliable and accurate control of the fan in different modes is achieved.

CN115450742BActive Publication Date: 2025-10-03BEIJING CO WHEELS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210976205.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-15
Publication Date
2025-10-03
Estimated Expiration
2042-08-15

AI Technical Summary

Technical Problem

In the prior art, the control logic of the normal control mode and the test mode of the fan are not isolated, resulting in inaccurate and unreliable fan control.

Method used

By receiving the control instruction sent by the vehicle computer, the fan is switched from the first control mode to the second control mode, and the control information of the first control mode is cleared during the switching process to ensure that the fan is independently controlled in different modes.

Benefits of technology

The reliability and accuracy of fan control are achieved, the influence of the test mode on the normal control mode is avoided, and the reliability and accuracy of fan control are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115450742B_ABST
    Figure CN115450742B_ABST
Patent Text Reader

Abstract

The present application provides a fan control method, device, electronic device, and storage medium. The method includes: receiving a control instruction from a vehicle computer to switch from a first control mode to a second control mode, and determining the second control mode based on the control instruction, wherein the first control mode and the second control mode are a test mode or a normal control mode of the fan, and the first control mode and the second control mode are different modes; switching the first control mode to the second control mode; during the process of switching from the first control mode to the second control mode, clearing the control information in the first control mode, and controlling the operation of the fan based on the control instruction. As a result, the present application can isolate the control logic of the fan test mode from the fan normal control mode, so that the test mode does not affect the control of the fan in the normal control mode, thereby improving the reliability and accuracy of the fan control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automotive technology, and in particular to intelligent automotive fields such as modern sensing and information fusion. Background Art

[0002] When controlling the temperature inside a vehicle's computer, it's often necessary to control the fan speed to achieve temperature control. In related technologies, when the fan is in design verification test mode or electromagnetic compatibility test mode, the relevant temperature is often directly controlled to achieve the relevant fan speed for control. The speed feedback control is then used to determine whether the test result is successful. After the design verification test or electromagnetic compatibility test is completed, the design verification test mode or electromagnetic compatibility test mode switches to normal control mode. However, normal control mode controls the fan normally according to the current control information in the design verification test mode or electromagnetic compatibility test mode. In this case, the fan's normal control mode is not isolated from the control logic of the DV test mode or EMC test mode, making it impossible to accurately control the fan.

[0003] Therefore, how to control the fan in different control modes through an accurate and reliable fan control method has become an urgent problem to be solved. Summary of the Invention

[0004] The present application aims to solve one of the technical problems in the related art at least to a certain extent.

[0005] To this end, a first aspect of the present application provides a fan control method.

[0006] A second aspect of the present application further provides a fan control device.

[0007] The third aspect of the present application also provides a vehicle.

[0008] A fourth aspect of the present application provides an electronic device.

[0009] A fifth aspect of the present application provides a computer-readable storage medium.

[0010] The first aspect of the present application provides a fan control method, characterized in that it includes: receiving a control instruction sent by a vehicle computer to switch from a first control mode to a second control mode, and determining the second control mode according to the control instruction, wherein the first control mode and the second control mode are a test mode of the fan or a normal control mode of the fan, and the first control mode and the second control mode are different modes; switching the first control mode to the second control mode, and in the process of switching from the first control mode to the second control mode, clearing the control information in the first control mode, and controlling the operation of the fan in the second control mode, wherein the control information is used to control the operation of the fan.

[0011] In addition, the fan control method provided in the first aspect of the present application may also have the following additional technical features:

[0012] According to one embodiment of the present application, after controlling the operation of the fan in the second control mode, it also includes: receiving a recovery instruction of the first control mode sent by the vehicle computer; in the process of switching from the second control mode to the first control mode again, clearing the control information for controlling the operation of the fan in the second control mode; and controlling the operation of the fan according to the first control mode.

[0013] According to one embodiment of the present application, the first control mode is a normal control mode, and controlling the operation of the fan according to the first control mode includes: obtaining the temperature value of the on-board circuit board of the vehicle computer, and controlling the operation of the fan according to the temperature value.

[0014] According to one embodiment of the present application, the control information includes fan speed information, mode information, and temperature information, and clearing the control information in the first control mode includes: initializing the first control information before switching to the second control mode to clear the control information.

[0015] According to one embodiment of the present application, the first control mode is a normal control mode, and the second control mode is a design verification DV test mode, wherein controlling the operation of the fan in the second control mode includes: obtaining a first temperature value preset in the DV test mode; controlling the speed of the fan to a preset speed based on the first temperature value; obtaining the actual speed of the fan, and determining whether the speed difference between the actual speed and the preset speed is within a preset error range; and ending the speed control of the fan in response to being within the preset error range.

[0016] According to one embodiment of the present application, the first control mode is a normal control mode, and the second control mode is an electromagnetic compatibility (EMC) test mode, wherein controlling the operation of the fan in the second control mode includes: obtaining the first speed of the fan preset by the vehicle computer in the EMC test mode; controlling the speed of the fan according to the first speed of the fan; obtaining the current actual speed of the fan, determining whether the speed difference between the first speed and the current actual speed is within a preset difference range, and ending the speed control of the fan in response to being within the preset difference range.

[0017] The second aspect of the present application further provides a fan control device,

[0018] The fan control device provided in the second aspect of the present application may also have the following additional technical features:

[0019] According to one embodiment of the present application, a fan control device includes: a determination module for receiving a control instruction sent by a vehicle computer to switch from a first control mode to a second control mode, and determining the second control mode according to the control instruction, wherein the first control mode and the second control mode are a test mode of the fan or a normal control mode of the fan, and the first control mode and the second control mode are different modes; a control module for switching the first control mode to the second control mode, clearing the control information in the first control mode during the process of switching from the first control mode to the second control mode, and controlling the fan operation in the second control mode, wherein the control information is used to control the fan operation.

[0020] According to one embodiment of the present application, the control module is also used to: receive a recovery instruction of the first control mode sent by the vehicle computer; clear the control information for controlling the operation of the fan in the second control mode during the process of switching from the second control mode to the first control mode; and control the operation of the fan according to the first control mode.

[0021] According to one embodiment of the present application, the control module is also used for: the first control mode is a normal control mode, and controlling the operation of the fan according to the first control mode includes: obtaining the temperature value of the on-board circuit board of the vehicle computer, and controlling the operation of the fan according to the temperature value.

[0022] According to one embodiment of the present application, the control information includes fan speed information, mode information, and temperature information, and clearing the control information in the first control mode includes: initializing the first control information before switching to the second control mode to clear the control information.

[0023] According to one embodiment of the present application, the control module is further used to: obtain a first temperature value preset in the DV test mode; control the speed of the fan to a preset speed based on the first temperature value; obtain the actual speed of the fan, and determine whether the speed difference between the actual speed and the preset speed is within a preset error range; and in response to being within the preset error range, end the speed control of the fan.

[0024] According to one embodiment of the present application, the control module is further used to: obtain the first speed of the fan preset by the vehicle computer in the EMC test mode; control the speed of the fan according to the first speed of the fan; obtain the current actual speed of the fan, determine whether the speed difference between the first speed and the current actual speed is within a preset difference range, and end the speed control of the fan in response to being within the preset difference range.

[0025] A third aspect of the present application provides a vehicle, comprising: the fan control device as described in the second aspect.

[0026] The fourth aspect of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the fan control method provided in the first aspect above.

[0027] A fifth aspect of the present application provides a computer-readable storage medium, wherein the computer instructions are used to enable the computer to execute the fan control method provided in the first aspect.

[0028] The fan control method and device provided in the present application receive a control instruction sent by the vehicle computer to switch from a first control mode to a second control mode, and determine the second control mode according to the control instruction, wherein the first control mode and the second control mode are the fan's test mode or the fan's normal control mode, and the first control mode and the second control mode are different modes; the first control mode is switched to the second control mode, and in the process of switching from the first control mode to the second control mode, the control information in the first control mode is cleared, and the fan operation is controlled in the second control mode, wherein the control information is used to control the fan operation. Therefore, after switching from the first control mode to the second control mode, by clearing the control information in the first control mode, the control logic of the fan's test mode and the fan's normal control mode can be isolated, so that the control of the fan in the normal control mode will not be affected in different test modes, thereby improving the reliability and accuracy of the fan control.

[0029] It should be understood that the content described in this application is not intended to identify the key or important features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0031] Figure 1 This is a flow chart of a fan control method according to an embodiment of the present application;

[0032] Figure 2 This is a flow chart of a fan control method according to another embodiment of the present application;

[0033] Figure 3 This is a flow chart of a fan control method according to another embodiment of the present application;

[0034] Figure 4 This is a flow chart of a fan control method according to another embodiment of the present application;

[0035] Figure 5 This is a flow chart of a fan control method according to another embodiment of the present application;

[0036] Figure 6 This is a schematic structural diagram of a fan control device according to an embodiment of the present application;

[0037] Figure 7 This is a schematic structural diagram of a vehicle according to an embodiment of the present application;

[0038] Figure 8 This is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0040] Figure 1 FIG. 1 is a flow chart of a fan control method according to an embodiment of the present application. Figure 1 As shown, the method includes:

[0041] S101. Receive a control instruction sent by the vehicle computer to switch from a first control mode to a second control mode, and determine the second control mode according to the control instruction, wherein the first control mode and the second control mode are a test mode of the fan or a normal control mode of the fan, and the first control mode and the second control mode are different modes.

[0042] It should be noted that the fan test mode may be a design verification (DV) test mode or an electromagnetic compatibility (EMC) test mode.

[0043] Among them, DV testing refers to a comprehensive series of test specifications for the design level of automotive electronic products; EMC testing refers to the comprehensive assessment of the electromagnetic interference (EMI) and anti-interference ability (EMS) of electronic products, and is one of the most important indicators of product quality.

[0044] It should be noted that the present application does not limit the setting of control instructions, and can be selected according to actual conditions.

[0045] For example, the control instruction for switching from the first control mode to the second control mode may be a control instruction for switching from the normal control mode (first control mode) to the DV test mode (second control mode); the control instruction for switching from the first control mode to the second control mode may be a control instruction for switching from the normal control mode (first control mode) to the EMC test mode (second control mode); the control instruction for switching from the first control mode to the second control mode may be a control instruction for switching from the EMC test mode (first control mode) to the normal control mode (second control mode); the control instruction for switching from the first control mode to the second control mode may be a control instruction for switching from the DV test mode (first control mode) to the normal control mode (second control mode).

[0046] In the embodiment of the present application, after the control instruction is obtained, the second control mode can be determined according to the control instruction.

[0047] For example, the control instruction for switching from the first control mode to the second control mode received from the vehicle computer may be a control instruction for switching from the normal control mode (first control mode) to the DV test mode (second control mode), and the second control mode is determined to be the DV test mode.

[0048] S102, switching the first control mode to the second control mode. During the process of switching from the first control mode to the second control mode, clearing the control information in the first control mode, and controlling the fan to operate in the second control mode, wherein the control information is used to control the fan operation.

[0049] It should be noted that the present application does not limit the setting of control information, and it can be selected according to actual conditions.

[0050] Optionally, the control information may be fan mode information, fan speed information, fan temperature information, etc.

[0051] In the embodiment of the present application, when clearing the first control information before switching to the second control mode, the first control information can be initialized to clear the control information, and the control information can be reset to control the fan operation according to the control information.

[0052] The fan control method provided in the present application receives a control instruction from a vehicle computer to switch from a first control mode to a second control mode, and determines the second control mode based on the control instruction, wherein the first control mode and the second control mode are a test mode or a normal control mode of the fan, and the first control mode and the second control mode are different modes; switches the first control mode to the second control mode, and during the process of switching from the first control mode to the second control mode, clears the control information in the first control mode, and controls the operation of the fan in the second control mode, wherein the control information is used to control the operation of the fan. Thus, after switching from the first control mode to the second control mode, by clearing the control information in the first control mode, the control logic of the fan test mode and the fan normal control mode can be isolated, so that the control of the fan in the normal control mode is not affected by different test modes, thereby improving the reliability and accuracy of fan control.

[0053] It should be noted that after the fan is controlled to operate in the second control mode, the fan may be controlled to operate according to the first fan control logic of the first control mode.

[0054] As a possible implementation, Figure 2 As shown, based on the above embodiment, the specific process of controlling the fan operation according to the control instruction includes the following steps:

[0055] S201: Receive a restoration instruction for the first control mode sent by a vehicle computer.

[0056] In the embodiment of the present application, after receiving the restoration instruction of the first control mode sent by the vehicle computer, the first control mode can be restored according to the restoration instruction.

[0057] S202 : When the second control mode is switched back to the first control mode, clear the control information in the second control mode.

[0058] It should be noted that, when the second control mode is used to control the fan, corresponding control information is set to control the fan. Therefore, when the second control mode is switched back to the first control mode, the control information in the second control mode is cleared.

[0059] S203 : Control the fan to operate according to the first fan control logic of the first control mode.

[0060] In the embodiment of the present application, the first control mode and the second control mode correspond to different control logics, and the fan operation can be controlled according to the first fan control logic of the first control mode.

[0061] Optionally, when the first control mode is the normal control mode, the temperature value of the on-board circuit board of the vehicle computer can be obtained, and the operation of the fan can be controlled according to the temperature value of the on-board circuit board.

[0062] Optionally, a mapping relationship between the temperature value and the rotational speed of the vehicle-mounted circuit board may be queried, for example, a mapping table of one-to-one correspondence between temperature value and rotational speed, and the fan operation may be controlled according to the mapping relationship.

[0063] In the embodiment of the present application, the second fan control logic of the second control mode can be obtained, and the fan operation can be controlled according to the second fan control logic.

[0064] The specific process of controlling the fan operation in the second control mode is explained below.

[0065] As a possible implementation, Figure 3 As shown, in the above embodiment, the first control mode is the normal control mode, and the second control mode is the design verification DV test mode. The specific process of controlling the fan operation in the second control mode includes the following steps:

[0066] S301: Obtain a first temperature value preset in a DV test mode.

[0067] It should be noted that the present application does not limit the setting of the first temperature value preset in the DV test mode and can be set according to actual conditions.

[0068] For example, the first temperature value preset in the DV test mode may be T1.

[0069] S302: Control the fan speed to a preset speed according to the first temperature value.

[0070] In the embodiment of the present application, after the first temperature value is obtained, the rotation speed of the fan can be controlled to a preset rotation speed based on the first temperature value, and the rotation speed of the fan is controlled according to the preset rotation speed.

[0071] Optionally, a mapping relationship between the first temperature value and the rotational speed may be queried, for example, a mapping table in which the first temperature value and the rotational speed correspond one to one, and the fan operation may be controlled according to the mapping relationship.

[0072] S303: Obtain the actual speed of the fan, and determine whether the speed difference between the actual speed and the preset speed is within a preset error range.

[0073] It should be noted that the setting of the preset speed error range of the fan is not limited in this application and can be set according to actual conditions.

[0074] S304: In response to the error being within the preset error range, terminate the fan speed control.

[0075] In the embodiment of the present application, when the speed difference between the actual speed and the preset speed is obtained to be within the preset error range, the speed control of the fan can be terminated. In this case, it indicates that the DV test result is normal.

[0076] As a possible implementation, Figure 4 As shown, in the above embodiment, the first control mode is the normal control mode, and the second control mode is the electromagnetic compatibility (EMC) test mode. The specific process of controlling the fan operation in the second control mode includes the following steps:

[0077] S401: Obtain a first fan speed preset by the vehicle computer in the EMC test mode.

[0078] It should be noted that the present application does not limit the specific method for obtaining the first speed of the fan preset by the vehicle computer in the EMC test mode, and it can be selected according to actual conditions.

[0079] Optionally, a fan speed instruction sent by the vehicle computer may be received, and according to the fan speed instruction, a first speed of the fan preset by the vehicle computer in the EMC test mode may be acquired.

[0080] S402: Control the fan speed according to the first fan speed.

[0081] In the embodiment of the present application, after the first rotational speed of the fan is acquired, the rotational speed of the fan may be controlled according to the first rotational speed of the fan, that is, the rotational speed of the fan may be controlled to be the first rotational speed.

[0082] S403: Obtain the current actual rotation speed of the fan, and determine whether the speed difference between the first rotation speed and the current actual rotation speed is within a preset difference range.

[0083] Optionally, the vehicle computer can read the current actual speed of the fan.

[0084] In the embodiment of the present application, after the current actual rotational speed of the fan is obtained, it can be determined whether the speed difference between the first rotational speed and the current actual rotational speed is within a preset difference range.

[0085] It should be noted that the setting of the preset speed error range of the fan is not limited in this application and can be set according to actual conditions.

[0086] S404: In response to the speed being within the pre-difference range, end the fan speed control.

[0087] In the embodiment of the present application, after obtaining whether the speed difference between the first speed and the current actual speed is within a preset difference range, the speed control of the fan can be terminated. In this case, it indicates that the EMC test result is normal.

[0088] The fan control method provided in this application can obtain the second fan control logic of the second control mode when the first control mode is the normal control mode and the second control mode is the DV test mode or the electromagnetic compatibility (EMC) test mode, and control the fan operation according to the second fan control logic. As a result, in the DV test mode, the fan can be controlled according to the control logic corresponding to the DV test mode, and in the EMC test mode, the fan can be controlled according to the control logic corresponding to the EMC test mode. Furthermore, in the EMC test mode, temperature control is not required to test the fan's effectiveness, and the EMC test mode is isolated from the control logic of the fan's normal control mode, thereby improving the accuracy of fan control.

[0089] The fan control method proposed in this application is explained below.

[0090] For example, if Figure 5 As shown, the normal control mode and the EMC test mode can be switched between each other, and the normal control mode and the DV test mode can be switched between each other. This is achieved by designing a fan state machine, wherein the state machine refers to a state register and a combinational logic circuit, which can perform state transitions according to pre-set states based on control signals. It is a control center that coordinates related signal actions and completes specific operations. The fan state machine is divided into three states: normal control mode, DV test mode, and EMC test mode. It can implement DV control, EMC control, and normal temperature control in different states, and control the fan through the corresponding fan control logic in different modes. After controlling the fan according to the corresponding fan control logic in different modes, the test results of the fan in different test modes can be obtained. This solves the problem in the related art that the normal control mode of the fan is not isolated from the control logic of the DV test mode and the EMC test mode, making it impossible to accurately control the fan. At the same time, in the EMC test mode, there is no need to control the temperature to test the fan, avoiding the problem of long test cycles.

[0091] The fan control method provided by this application,

[0092] The system receives a control instruction from the vehicle computer to switch from a first control mode to a second control mode, and determines the second control mode based on the control instruction, wherein the first control mode and the second control mode are a test mode or a normal control mode of the fan, and the first control mode and the second control mode are different modes; switches the first control mode to the second control mode, and during the process of switching from the first control mode to the second control mode, clears the control information in the first control mode, and controls the operation of the fan in the second control mode, wherein the control information is used to control the operation of the fan. Thus, after switching from the first control mode to the second control mode, by clearing the control information in the first control mode, the control logic of the fan test mode is isolated from that of the fan normal control mode, so that the different test modes do not affect the control of the fan in the normal control mode, thereby improving the reliability and accuracy of fan control.

[0093] Corresponding to the fan control methods provided in the above-mentioned embodiments, an embodiment of the present application also provides a fan control device. Since the fan control device provided in the embodiment of the present application corresponds to the fan control methods provided in the above-mentioned embodiments, the implementation method of the above-mentioned fan control method is also applicable to the fan control device provided in the embodiment of the present application and will not be described in detail in the following embodiments.

[0094] Figure 6 FIG. 1 is a schematic structural diagram of a fan control device according to an embodiment of the present application. Figure 7 As shown, the fan control device 100 includes a determination module 11 and a control module 12.

[0095] a determination module 11, configured to receive a control instruction sent by the vehicle computer to switch from a first control mode to a second control mode, and determine the second control mode according to the control instruction, wherein the first control mode and the second control mode are a test mode of the fan or a normal control mode of the fan, and the first control mode and the second control mode are different modes;

[0096] The control module 12 is used to switch the first control mode to the second control mode. During the process of switching from the first control mode to the second control mode, the control information in the first control mode is cleared, and the fan operation is controlled in the second control mode, wherein the control information is used to control the fan operation.

[0097] According to one embodiment of the present application, the control module 12 is also used to: receive a recovery instruction of the first control mode sent by the vehicle computer; clear the control information for controlling the fan operation in the second control mode during the process of switching from the second control mode to the first control mode; and control the fan operation according to the first fan control logic of the first control mode.

[0098] According to an embodiment of the present application, the control module 12 is further configured to obtain a temperature value of the vehicle-mounted circuit board of the vehicle computer, and control the operation of the fan according to the temperature value.

[0099] According to one embodiment of the present application, the control information includes fan speed information, mode information, and temperature information, and clearing the control information in the first control mode includes: initializing the first control information before switching to the second control mode to clear the control information.

[0100] According to one embodiment of the present application, the control module 12 is further used to: obtain a first temperature value preset in the DV test mode; control the speed of the fan to a preset speed based on the first temperature value; obtain the actual speed of the fan, and determine whether the speed difference between the actual speed and the preset speed is within a preset error range; and in response to being within the preset error range, end the speed control of the fan.

[0101] According to one embodiment of the present application, the control module 12 is further used to: obtain the first speed of the fan preset by the vehicle computer in the EMC test mode; control the speed of the fan according to the first speed of the fan; obtain the current actual speed of the fan, determine whether the speed difference between the first speed and the current actual speed is within a preset difference range, and end the speed control of the fan in response to being within the preset difference range.

[0102] The fan control device provided in the present application receives a control instruction from a vehicle computer to switch from a first control mode to a second control mode, and determines the second control mode based on the control instruction, wherein the first control mode and the second control mode are a test mode or a normal control mode of the fan, and the first control mode and the second control mode are different modes; switches the first control mode to the second control mode, clears the control information in the first control mode during the process of switching from the first control mode to the second control mode, and controls the operation of the fan in the second control mode, wherein the control information is used to control the operation of the fan. Thus, after switching from the first control mode to the second control mode, by clearing the control information in the first control mode, the control logic of the fan test mode and the fan normal control mode can be isolated, so that the control of the fan in the normal control mode is not affected by different test modes, thereby improving the reliability and accuracy of fan control.

[0103] Figure 8 FIG2 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle 2000 includes: the device 100 as described in the second aspect.

[0104] To achieve the above embodiments, the present application also provides an electronic device and a computer-readable storage medium.

[0105] Figure 8 A schematic block diagram of an example electronic device 1200 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.

[0106] like Figure 8 As shown, the device 1200 includes a memory 121, a processor 122, and a computer program stored in the memory 121 and executable on the processor 122. When the processor 122 executes program instructions, the fan control method provided in the above embodiment is implemented.

[0107] By receiving a control instruction sent by the vehicle computer to switch from the first control mode to the second control mode, and determining the second control mode according to the control instruction, wherein the first control mode and the second control mode are the fan test mode or the fan normal control mode, and the first control mode and the second control mode are different modes; switching the first control mode to the second control mode, in the process of switching from the first control mode to the second control mode, clearing the control information in the first control mode, and controlling the fan operation in the second control mode, wherein the control information is used to control the fan operation. Therefore, after switching from the first control mode to the second control mode, by clearing the control information in the first control mode, the control logic of the fan test mode and the fan normal control mode can be isolated, so that the control of the fan in the normal control mode will not be affected in different test modes, thereby improving the reliability and accuracy of fan control.

[0108] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by the processor 122, the fan control method provided in the above embodiment is implemented.

[0109] By receiving a control instruction sent by the vehicle computer to switch from the first control mode to the second control mode, and determining the second control mode according to the control instruction, wherein the first control mode and the second control mode are the fan test mode or the fan normal control mode, and the first control mode and the second control mode are different modes; switching the first control mode to the second control mode, in the process of switching from the first control mode to the second control mode, clearing the control information in the first control mode, and controlling the fan operation in the second control mode, wherein the control information is used to control the fan operation. Therefore, after switching from the first control mode to the second control mode, by clearing the control information in the first control mode, the control logic of the fan test mode and the fan normal control mode can be isolated, so that the control of the fan in the normal control mode will not be affected in different test modes, thereby improving the reliability and accuracy of fan control.

[0110] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0111] The program code for implementing the method itself can be written in any combination of one or more programming languages. Such program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0112] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0113] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0114] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or grid browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by digital data communication (e.g., a communication grid) in any form or medium. Examples of communication grids include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain grid.

[0115] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication grid. The client-server relationship is established by computer programs running on the respective computers and establishing a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within the cloud computing service system that addresses the management difficulties and poor business scalability of traditional physical hosts and VPS services ("Virtual Private Server," or simply "VPS"). The server may also be a server in a distributed system or a server integrated with blockchain.

[0116] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.

[0117] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0118] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.

[0119] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.

[0120] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0121] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0122] In addition, the functional units in the various embodiments of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into a module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0123] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.

[0124] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved. This is not a limitation herein.

[0125] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.

Claims

1. A fan control method, characterized in that: include: receiving a control instruction sent by the vehicle computer to switch from a first control mode to a second control mode, and determining the second control mode according to the control instruction, wherein the first control mode and the second control mode are a test mode of the fan or a normal control mode of the fan, and the first control mode and the second control mode are different modes; The first control mode is switched to the second control mode. During the switching from the first control mode to the second control mode, the control information in the first control mode is cleared, and the fan operation is controlled in the second control mode, wherein the control information is used to control the fan operation.

2. The method according to claim 1, further comprising: receiving a restoration instruction of the first control mode sent by the vehicle computer; During the process of switching from the second control mode to the first control mode, clearing the control information for controlling the operation of the fan in the second control mode; According to the first control mode, the fan is controlled to operate.

3. The method according to claim 2, wherein the first control mode is a normal control mode, and controlling the fan to operate according to the first control mode comprises: The temperature value of the vehicle-mounted circuit board of the vehicle computer is obtained, and the operation of the fan is controlled according to the temperature value.

4. The method according to claim 1, wherein The control information includes fan speed information, mode information, and temperature information. Clearing the control information in the first control mode includes initializing the information in the first control mode before switching to the second control mode to clear the control information.

5. The method according to claim 1, wherein The first control mode is a normal control mode, and the second control mode is a design verification (DV) test mode. Controlling the fan to operate in the second control mode includes: Obtaining a first temperature value preset in the DV test mode; controlling the speed of the fan to a preset speed according to the first temperature value; Obtaining an actual speed of the fan, and determining whether a speed difference between the actual speed and the preset speed is within a preset error range; In response to the error being within the preset range, the speed control of the fan is terminated.

6. The method according to claim 1, characterized in that The first control mode is a normal control mode, and the second control mode is an electromagnetic compatibility (EMC) test mode. Controlling the fan to operate in the second control mode includes: Obtaining a first speed of the fan preset by the vehicle computer in the EMC test mode; controlling the speed of the fan according to the first speed of the fan; Obtaining a current actual speed of the fan, and determining whether a speed difference between the first speed and the current actual speed is within a preset difference range; In response to the speed being within the pre-difference range, the speed control of the fan is terminated.

7. A fan control device, characterized in that: include: a determination module, configured to receive a control instruction sent by the vehicle computer to switch from a first control mode to a second control mode, and determine the second control mode according to the control instruction, wherein the first control mode and the second control mode are a test mode of the fan or a normal control mode of the fan, and the first control mode and the second control mode are different modes; A control module is used to switch the first control mode to the second control mode. During the process of switching from the first control mode to the second control mode, the control information in the first control mode is cleared, and the fan operation is controlled in the second control mode, wherein the control information is used to control the fan operation.

8. A vehicle, characterized in that: include: The fan control device according to claim 7.

9. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Power supply device for internal combustion locomotive cooling fan and control method

    CN106351726A

  • Computer fan control method and system

    CN106762760A