Automobile fan control data processing method, fan control system and automobile
By switching to LIN communication mode and filtering signals in the fan control system, the problems of long iteration update time and easy error in the fan control system are solved, realizing fast and convenient version upgrades and fault identification, and improving the efficiency and reliability of the fan control system.
Patent Information
- Application Number
- CN202110363183.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-02
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2041-04-02
AI Technical Summary
In existing technologies, iterative updates to fan control systems via PWM signal connections are time-consuming and prone to errors, failing to meet users' needs for quick and error-free operation.
The system switches to LIN communication mode by receiving a handshake signal from the host computer, receives and filters LIN communication mode signals, updates version data in the control module, and performs version upgrades while maintaining PWM communication mode.
It enables quick and convenient switching of communication modes and version upgrades, improves the efficiency of fan version upgrades, saves labor costs, and ensures the communication quality and fault identification efficiency of version upgrades.
Smart Images

Figure CN115157954B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to interface processing technology, in particular to a car fan control data processing method, a fan control system and a car. BACKGROUND
[0002] At present, there is a fan control system in each vehicle, and the running speed of the fan can be changed by sending a PWM (Pulse Width Modulation) signal to the fan control system, so as to meet the different cooling needs in vehicle operation.
[0003] Since the running software of the fan control system is often iteratively updated, iterative updating through the PWM signal connection line will take a long time and is prone to errors without disassembling the fan assembly containing the fan control system in the vehicle. Because the PWM signal frequency is low, the information carrying capacity is small, and the interference amount is large, therefore, the existing technical solutions need to disassemble the fan assembly in the vehicle for iterative updating, which cannot meet the needs of users for fast and error-free downloading. SUMMARY
[0004] The present application provides a car fan control data processing method, a fan control system and a car, which solves the technical problems of long time consumption and easy interference and error in the prior art through PWM signal connection line iterative updating.
[0005] A car fan control data processing method applied to a control module of a fan control system installed on a car; the fan control system comprises a preset interface connected to the control module;
[0006] The car fan control data processing method comprises:
[0007] receiving a handshake signal from an upper computer; the upper computer is in communication connection with the fan control system through the preset interface;
[0008] when the handshake signal is a to-be-refreshed signal, switching the fan control system to a LIN communication mode according to the to-be-refreshed signal;
[0009] receiving a LIN communication mode signal output by the upper computer and filtered, obtaining to-be-updated version data in the LIN communication mode signal, and updating current version data for controlling the car fan in the control module according to the to-be-updated version data.
[0010] A fan control system comprising a control module connected to a preset interface and a car fan, the control module being used to execute the car fan control data processing method described above.
[0011] A car comprising the fan control system described above.
[0012] The application provides a car fan control data processing method, which realizes the following steps: receiving a handshake signal from an upper computer; when the handshake signal is a to-be-refreshed signal, switching the fan control system to a LIN communication mode according to the to-be-refreshed signal; receiving a LIN communication mode signal output by the upper computer and processed by LIN filtering, obtaining to-be-updated version data in the LIN communication mode signal, and updating current version data for controlling the car fan in the control module according to the to-be-updated version data. Therefore, the application can quickly, conveniently and effectively switch different communication modes, so that the car fan can maintain the original PWM communication mode, and version upgrade can be performed in the LIN communication mode through a preset interface, the LIN communication mode switching and version upgrade after the switching can be performed without dismounting the control module in the car fan control system from the car after the car is installed, a fault signal can be received through the preset interface, the fan version upgrade efficiency is improved, the car fan does not need to be dismounted for identification when the fan fails during normal operation or after version upgrade, the labor cost is saved, the version upgrade efficiency is greatly improved, the communication quality of version upgrade is ensured, and the fault identification efficiency is ensured. BRIEF DESCRIPTION OF DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the application. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.
[0014] Figure 1 is a connection structure diagram of the fan control system in an embodiment of the application;
[0015] Figure 2 is a flowchart of the car fan control data processing method in an embodiment of the application;
[0016] Figure 3 is a flowchart of the car fan control data processing method in another embodiment of the application. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the application will be described clearly and completely in the following with reference to the drawings of the embodiments of the application. Obviously, the described embodiments are only some embodiments of the application, not all the embodiments. Based on the embodiments of the application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the application.
[0018] The application provides a car fan 3 control data processing method, which realizes the following steps: receiving a handshake signal from an upper computer 2; when the handshake signal is a to-be-refreshed signal, switching the fan control system 1 to a LIN communication mode according to the to-be-refreshed signal; receiving a LIN communication mode signal output by the upper computer 2 and subjected to LIN filtering processing, obtaining to-be-updated version data in the LIN communication mode signal, and updating current version data for controlling the car fan 3 in the control module 12 according to the to-be-updated version data. Therefore, the communication mode can be quickly, conveniently and effectively switched, and the fault signal can be received in time, so that the car fan 3 can maintain the original PWM communication mode control, the control module 12 in the fan control system 1 of the car fan 3 does not need to be disassembled from the car after being installed in the car, the LIN communication mode can be switched, version upgrading can be performed after the switching, the version upgrading of the LIN communication mode can be directly performed through the preset interface 11 compatible with the original PWM communication mode, the efficiency of fan version upgrading is improved, the car fan 3 does not need to be disassembled for identification when a fan fault occurs during normal operation or after version upgrading, manual cost is saved, the efficiency of version upgrading is greatly improved, the communication quality of version upgrading is ensured, and the efficiency of fault identification is ensured.
[0019] The car fan 3 control data processing method can be applied to the control module 12 of the fan control system 1 installed on the car. Figure 1 And Figure 2 As shown in the accompanying drawings, the car fan 3 control data processing method comprises the following steps S10-S30:
[0020] S10, receiving a handshake signal from an upper computer 2; the upper computer 2 is in communication connection with the fan control system 1 through a preset interface 11.
[0021] Understandably, the host computer 2 includes but is not limited to various personal computers, notebook computers, storage medium devices, tablet computers, electronic control units (ECU) in vehicles, and the host computer 2 is connected with the fan control system 1 through a preset interface 11, the preset interface 11 is used for switching different communication modes and transmitting different communication data transmission interfaces, the preset interface 11 includes a zener diode connected with the ground, when the input voltage reaches the zener voltage, the voltage is clamped (i.e. cannot be raised again), which protects the preset interface 11 and the subsequent circuit, such as the interface for transmitting LIN communication mode signal, PWM communication mode signal, refresh signal, communication signal and the like, the preset interface can be the interface of the PWM port installed in the car, and the handshake signal is transmitted through the preset interface 11.
[0022] Among them, the PWM communication is a transmission mode using PWM for communication, and the PWM (Pulse width modulation) is an analog control mode, and the pulse width modulation is a technology for controlling analog circuits using digital outputs of microprocessors, which is used for controlling devices in the car, and the PWM communication mode is a mode using PWM communication transmission.
[0023] S20, when the handshake signal is the refresh signal, the fan control system 1 is switched to the LIN communication mode according to the refresh signal.
[0024] Understandably, when the handshake signal is the refresh signal, the refresh signal is a preset periodic signal, which can be obviously distinguished from the interference signal, the preset interface 11 is connected with the control module 12 in the fan control system 1, that is, the preset interface 11 is connected with the signal input pin 122 in the control module 12 of the fan control system 1, the control module 12 is a microcontroller unit (MCU), also known as a single chip microcomputer (SCM) or a single chip microcomputer, which is used for executing various control operations of the fan control system 1, after the control module 12 receives the refresh signal, the control module 12 switches the fan control system 1 to the LIN communication mode, so that the control module 12 enters the refresh state of version upgrade, and prepares to receive the subsequent LIN communication mode signal, the preparation process can include switching the controllable pull-up circuit 13 in the fan control system 1 to the LIN pull-up mode to connect the first pull-up voltage, and switching the signal filtering circuit 14 in the fan control system 1 and the filtering unit in the control module 12 to the LIN filtering mode to receive the LIN communication mode signal.
[0025] LIN communication is a transmission mode using LIN communication, the LIN (Local Interconnect Network, automotive communication network) is a low-cost serial communication network, used to realize the bus of distributed electronic system control in the automobile, LIN is an auxiliary bus network, the LIN communication mode is the mode of using LIN communication transmission, the fan control system 1 further comprises a signal filtering circuit 14 connected between the preset interface 11 and the control module 12, a first pull-up voltage and a controllable pull-up circuit 13 electrically connected with the control module 12, the LIN pull-up mode is the mode of the controllable pull-up circuit 13 used for LIN communication to turn on the first pull-up voltage, the controllable pull-up circuit 13 is a circuit that can switch on different voltages according to different communication modes, the signal filtering circuit 14 is a circuit that filters different signals transmitted from the communication interface in the preset interface 11 in different filtering modes, the first pull-up voltage is a voltage suitable for the fan control system 1 powered by LIN communication, according to the chip setting of the control module 12, the voltage value is preferably 5V or 12V.
[0026] S30, receiving the LIN communication mode signal output by the host computer 2 after LIN filtering processing, obtaining the to-be-updated version data in the LIN communication mode signal, updating the current version data for controlling the automobile fan 3 in the control module 12 according to the to-be-updated version data.
[0027] Understandably, after switching to the LIN communication mode, the LIN communication mode signal transmitted by the host computer 2 through the preset interface 11 is received, the LIN communication mode signal is a signal containing the to-be-updated version data transmitted in the LIN communication mode, the to-be-updated version data is the version data that the control module 12 needs to upgrade, the to-be-updated version data can be set according to the demand, such as the version of the to-be-updated version data can be higher or lower than the version of the current version data, after the LIN filtering processing of the signal filtering circuit 14 and the filtering unit in the control module 12, the to-be-updated version data updates the current version data for controlling the automobile fan 3 in the control module 12, so that the control module 12 executes a new fan control system 1 according to the to-be-updated version data, the current version data is the data of the current used version.
[0028] The LIN filtering process is filtering the interference signal with high frequency above the frequency of the LIN communication mode signal after the common filtering process of the signal filtering circuit 14, and retaining the signal within the frequency of the LIN communication mode signal, effectively ensuring that only useful signals are extracted in transmission, and the transmission of the LIN communication mode signal is more stable and faster than the PWM communication mode signal, so that the LIN communication mode improves the communication quality and communication efficiency of transmission. The signal filtering circuit 14 performs common filtering process on the input signal, and the common filtering process is the process of filtering the frequency range commonly required by the LIN communication mode signal and the PWM communication mode signal. The LIN filtering process can perform a first data filtering program in the filtering unit 1221 in the control module 12 to filter the first software frequency range. The signal filtering circuit 14 can be a filter circuit composed of resistance and capacitance. The first data filtering program is an execution program for filtering the interference signal of the first software frequency range input to the signal input pin 122. The first software frequency range is a frequency range other than the frequency of the LIN communication mode signal and the frequency range of the common filtering process of the signal filtering circuit 14. The frequency range of the common filtering process of the signal filtering circuit 14 is preferably the frequency range commonly required by the LIN communication mode signal and the PWM communication mode signal. The resistance and capacitance in the signal filtering circuit 14 can be set according to the requirements, such as the resistance in the signal filtering circuit 14 being 10 to 200 ohms, and the capacitance being 1 nanofarad. One end of the capacitance is grounded.
[0029] Thus, the present application realizes the following effects. By receiving the handshake signal from the host computer 2; when the handshake signal is a to-be-refreshed signal, switching the fan control system 1 to the LIN communication mode according to the to-be-refreshed signal; receiving the LIN communication mode signal output by the host computer 2 and after LIN filtering processing, obtaining the to-be-updated version data in the LIN communication mode signal, and updating the current version data for controlling the automobile fan 3 in the control module 12 according to the to-be-updated version data, thus, the communication mode can be quickly, conveniently and effectively switched, so that the automobile fan can maintain the original PWM communication mode, and version upgrade can be performed in the LIN communication mode through the preset interface, improving the efficiency of fan version upgrade and saving labor cost. Not only the efficiency of version upgrade is greatly improved, but also the communication quality of version upgrade is guaranteed.
[0030] In an embodiment, the fan control system 1 further comprises a signal filtering circuit 14 connected between the preset interface 11 and the control module 12, and a controllable pull-up circuit 13 electrically connected with the control module 12; the control module 12 comprises a filtering unit 1221, a pull-up resistor 1222, and a switching unit 1223; the pull-up resistor 1222 is connected between the switching unit 1223 and a first power supply end 41 outputting a first pull-up voltage; the switching unit 1223, away from the pull-up resistor 1222, is connected with the signal filtering circuit 14.
[0031] The controllable pull-up circuit 13 is a circuit capable of switching on different voltages according to different communication modes, the signal filtering circuit 14 is a circuit capable of filtering different signals transmitted by the communication interface in the preset interface 11 in different filtering modes, the first pull-up voltage is a voltage suitable for the fan control system 1 powered by LIN communication, and the voltage value is preferably 5V or 12V, the filtering unit is a unit for filtering signals input by a signal input pin 122 in the control module 12, and the filtering unit is a unit operated and executed by the control module 12 through a preset control program, and the signal input pin 122 is electrically connected with the signal filtering circuit 14.
[0032] In the step S20, when the handshake signal is a to-be-refreshed signal, the fan control system 1 is switched to a LIN communication mode according to the to-be-refreshed signal, which comprises:
[0033] According to the LIN mode pull-up signal in the to-be-refreshed signal, the controllable pull-up circuit 13 of the fan control system 1 is switched to a LIN pull-up mode, the switching unit 1223 is controlled to connect the signal filtering circuit 14 and the pull-up resistor 1222, and the filtering unit 1221 is switched to a LIN filtering mode.
[0034] Understandably, the controllable pull-up circuit 13 includes the LIN pull-up mode, which is a mode for the controllable pull-up circuit 13 to pull up a first pull-up voltage for LIN communication, the first pull-up voltage being a voltage supplied by the fan control system 1 for LIN communication, preferably a voltage value of 5V or 12V, the control module 12 controls whether the pull-up resistor 1222 is connected to the signal output by the signal filtering circuit 14 or not through the switch unit 1223, the pull-up resistor 1222 is connected between the switch unit 1223 and the first power supply end 41, the first power supply end 41 outputs the first pull-up voltage, that is, the first power supply end 41 is connected to the first pull-up voltage, the switch unit 1223 is connected to the signal filtering circuit 14 away from the pull-up resistor 1222, the control module 12 controls the switch unit 1223 to connect the signal filtering circuit 14 and the pull-up resistor 1222, the pull-up resistor is a resistor for suppressing reflected wave interference during signal transmission, the first resistor is preferably a resistor with a resistance value of 30kΩ, the LIN filtering mode is a mode in which the filtering unit 1221 performs the LIN filtering process, the signal filtering circuit 14 is preferably a filter circuit composed of a resistor and a capacitor, such as a filter circuit composed of a resistor with a resistance value of 10-200Ω and a capacitor with a capacitance value of 1nF, the signal filtering circuit 14 performs common filtering processing on the input signal, the common filtering processing is a process of filtering the frequency range of the LIN communication mode signal and the PWM communication mode signal that needs to be filtered together, the filtering unit 1221 is switched to a mode in which the signal input pin 122 inputs a signal that is filtered by a preset first software frequency band by running a preset LIN filtering program in the control module 12, that is, the LIN filtering mode of the filtering unit 1221.
[0035] Thus, the present application realizes switching to the LIN pull-up mode by the LIN mode pull-up signal to connect the first pull-up voltage, and switches the signal filtering circuit 14 and the filtering unit to the LIN filtering mode, preparing for subsequent reception of the LIN communication mode signal, ensuring the effectiveness of receiving the LIN communication mode signal and improving the accuracy of transmitting the LIN communication mode signal.
[0036] In an embodiment, the signal filtering circuit 14 is connected to the second power supply end 42 through the controllable pull-up circuit 13.
[0037] The second power terminal 42 is connected with a second pull-up voltage, that is, the second power terminal 42 provides the second pull-up voltage, the second pull-up voltage is a voltage suitable for powering the fan control system 1 in PWM communication, preferably a 12V voltage, and a voltage stabilizing diode can be added between the connection circuit of the second power terminal 42 and the controllable pull-up circuit 13 to protect the controllable pull-up circuit from current limiting.
[0038] The second pull-up unit 132 is connected between the signal filtering circuit 14 and the second power terminal 42.
[0039] The low voltage signal corresponding to the LIN mode pull-up signal is generated. Understandably, after the control module 12 receives the LIN mode pull-up signal, the low voltage signal corresponding to the LIN mode pull-up signal is generated, the low voltage signal is a low voltage signal, that is, a 0V voltage signal, which is output through an enable pin 121 (I / O pin).
[0040] According to the low voltage signal, the first pull-up unit 131 and the second pull-up unit 132 are both in the off state to disconnect the connection between the signal filtering circuit 14 and the second power terminal 42. Understandably, the low voltage signal is transmitted to the controllable pull-up circuit 13, so that the first pull-up unit 131 and the second pull-up unit 132 are switched to the off state, thereby disconnecting the connection between the signal filtering circuit 14 and the second power terminal 42, and thereby disconnecting the second pull-up voltage.
[0041] Thus, the present application realizes the generation of a low voltage signal corresponding to the LIN mode pull-up signal, according to the low voltage signal, the first pull-up unit 131 and the second pull-up unit 132 are both in the off state to disconnect the connection between the signal filtering circuit 14 and the second power terminal 42, to receive the subsequent LIN communication mode signal to provide voltage.
[0042] In an embodiment, the controllable pull-up circuit 13 includes a first pull-up unit 131 and a second pull-up unit 132 electrically connected to the first pull-up unit 131; the first pull-up unit 131 includes a first pull-up transistor 1311; the second pull-up unit 132 includes a second pull-up transistor 1321; the first pull-up unit 131 is connected between the control module 12 and the second pull-up unit 132; the second pull-up unit 132 is connected between the signal filtering circuit 14 and the second power terminal 42.
[0043] The controllable pull-up circuit is in the off state, including:
[0044] After the first pull-up transistor 1311 is in the off state, the first state signal is sent to the second pull-up unit 132. Understandably, the low voltage signal is transmitted to the first pull-up unit 131, and the first pull-up unit 131 is in the off state according to the received low voltage signal, the first pull-up unit 131 is an upper pull circuit containing a plurality of resistors and capacitors, and the first pull-up transistor 1311 is an NPN type transistor. The low voltage signal is transmitted to the base of the first pull-up transistor 1311, so that the first pull-up transistor 1311 is in the off state, i.e. non-conducting state, no current flows, the collector of the first pull-up transistor 1311 emits a low level signal, i.e. the first state signal, the emitter of the first pull-up transistor 1311 is grounded, and the first pull-up circuit outputs to the second pull-up transistor 1321 in the second pull-up unit 132 through the collector of the first pull-up transistor 1311, and the first state signal is transmitted to the base of the second pull-up transistor 1321, and the second pull-up transistor 1321 is an upper pull circuit containing a plurality of resistors and the second pull-up transistor 1321.
[0045] The second pull-up transistor 1321 is in the off state according to the first state signal. Understandably, the second pull-up transistor 1321 is a PNP type transistor, and the first state signal is received by the base of the second pull-up transistor 1321, so that the second pull-up transistor 1321 is in the off state, i.e. non-conducting state, the collector of the second pull-up transistor 1321 does not generate current, and the emitter of the second pull-up transistor 1321 does not connect the second pull-up voltage, the second pull-up voltage is the voltage of the fan control system 1 suitable for PWM communication, preferably 12V voltage, the second power supply end connects the second pull-up voltage, i.e. the second power supply end supplies the second pull-up voltage, so that the second pull-up transistor 1321 does not connect the second pull-up voltage and is in the off state, so that the controllable pull-up circuit 13 connects the first pull-up voltage through the first resistor.
[0046] Thus, the present application realizes that after the first pull-up transistor 1311 is in the off state, the first state signal is sent to the second pull-up unit 132, and the second pull-up transistor 1321 is in the off state according to the first state signal, so as to provide voltage for receiving subsequent LIN communication mode signal.
[0047] In an embodiment, the step S30, i.e. after the LIN communication mode signal output by the host computer 2 is filtered by the signal filtering circuit 14, includes:
[0048] After the LIN communication mode signal output by the host computer 2 is commonly filtered by the signal filtering circuit 14, the LIN communication mode signal is pulled up by the first pull-up voltage connected by the pull-up resistor 1222, and the filter unit 1221 in the LIN filtering mode is controlled to LIN filter the LIN communication mode signal.
[0049] Understandably, when the control module 12 is detected to be in the refreshing state, the host computer 2 outputs the LIN communication mode signal, the LIN communication mode signal is a signal containing the to-be-updated version data transmitted in the LIN communication mode, and the LIN communication mode signal is commonly filtered by the signal filtering circuit 14, pulled up by the pull-up resistor 1222 connected to the first power supply end, and finally LIN filtered by the filter unit 1221 in the LIN filtering mode.
[0050] Thus, the LIN communication mode signal is LIN filtered, high-frequency interference signals are filtered out, useful to-be-updated version data in the LIN communication mode signal is retained, and the transmission accuracy and reliability of the LIN communication mode signal are ensured.
[0051] In an embodiment, as shown in Figure 3 After the step S20, i.e. after the handshake signal from the host computer 2 is received, the step S20 further includes:
[0052] S40, when the handshake signal is a communication signal, switching the fan control system 1 to a PWM communication mode according to the communication signal.
[0053] Understandably, when the fan control system 1 is normally operated or the current version data for controlling the automobile fan 3 in the control module 12 is updated (i.e. after the current version data is updated in the LIN communication mode), the host computer 2 transmits a handshake signal containing the communication signal through the preset interface 11, the handshake signal further includes the communication signal, the communication signal can be a preset low-level signal, the control module 12 receives the communication signal through the signal input pin 122, and the fan control system 1 is switched to a PWM communication mode, which is a mode of transmission by PWM communication.
[0054] S50, receiving the PWM communication mode signal output by the host computer 2 and after the PWM filtering process, obtaining the fan control data in the PWM communication mode signal, and controlling the automobile fan 3 according to the fan control data.
[0055] Understandably, after switching to the PWM communication mode, the PWM communication mode signal transmitted by the host computer 2 through the preset interface 11 is received, the frequency range of the PWM communication mode signal is 0-200Hz, and the signal in the frequency range of the PWM communication mode signal is reserved, effectively ensuring that only useful signals are extracted in transmission. The PWM filtering process is a process of filtering the PWM communication mode signal after the common filtering process by the signal filtering circuit 14 by the filtering unit in the control module 12 to perform a second data filtering program for a preset second software frequency range, wherein the second data filtering program is an execution program for filtering the interference signal in the preset second software frequency range input to the signal input pin 122, and the second software frequency range is a frequency range other than the frequency of the PWM communication mode signal and the frequency range of the common filtering process by the signal filtering circuit 14. The frequency range of the common filtering process by the signal filtering circuit 14 is preferably the frequency range that LIN communication mode signal and PWM communication mode signal need to be filtered together.
[0056] The control module 12 obtains the fan control data in the PWM communication mode signal after the PWM filtering process, the fan control data is data for controlling the automobile fan 3 according to the PWM communication mode, and the control module 12 controls the automobile fan 3 according to the fan control data.
[0057] Therefore, the present application realizes that when the handshake signal is a communication signal, the fan control system 1 is switched to the PWM communication mode according to the communication signal, the PWM communication mode signal output by the host computer 2 and after the PWM filtering process is received, the fan control data in the PWM communication mode signal is obtained, and the automobile fan 3 is controlled according to the fan control data. The automobile fan 3 can maintain the control of the PWM communication mode, realize the compatibility of the original PWM communication mode through the preset interface 11, switch to the PWM communication mode without replacing the interface, change the circuit or disassemble the fan control system 1 from the automobile to change the mode, realize the rapid switching of different modes, improve the switching efficiency and compatibility, and reduce the labor cost.
[0058] In an embodiment, as Figure 1As shown, the fan control system 1 further comprises a signal filtering circuit 14 connected between the preset interface 11 and the control module 12, and a controllable pull-up circuit 13 electrically connected with the control module 12; the control module 12 comprises a filtering unit 1221, a pull-up resistor 1222, and a switching unit 1223; the pull-up resistor 1222 is connected between the switching unit 1223 and a first power supply end 41 outputting a first pull-up voltage; the switching unit 1223 is connected with the signal filtering circuit 14 at an end away from the pull-up resistor 1222.
[0059] The controllable pull-up circuit 13 comprises a first pull-up unit 131 and a second pull-up unit 132; the communication signal comprises a PWM mode pull-up signal; the second pull-up unit 132 is connected with the signal filtering circuit 14.
[0060] The fan control system 1 is switched to the PWM communication mode according to the communication signal, comprising:
[0061] The controllable pull-up circuit 13 of the fan control system 1 is switched to the PWM pull-up mode according to the PWM mode pull-up signal in the communication signal, to turn on a second pull-up voltage, while the switching unit 1223 controls the signal filtering circuit 14 to be disconnected with the pull-up resistor 1222, and the filtering unit 1221 is switched to the PWM filtering mode.
[0062] Understandably, the controllable pull-up circuit 13 further comprises the PWM pull-up mode, which is a mode of the controllable pull-up circuit 13 for PWM communication to turn on the second pull-up voltage, the second pull-up voltage being a voltage suitable for powering the fan control system 1 for PWM communication, preferably a 12V voltage, and the PWM filtering mode being a mode of the filtering unit for performing the PWM filtering process.
[0063] In this way, the present application realizes switching to the PWM pull-up mode by the PWM mode pull-up signal to turn on the second pull-up voltage, while the signal filtering circuit 14 and the filtering unit are both switched to the PWM filtering mode, to prepare for subsequent reception of the PWM communication mode signal, ensuring the effectiveness of receiving the PWM communication mode signal and improving the accuracy of transmitting the PWM communication mode signal.
[0064] In an embodiment, the PWM communication mode signal output by the host computer 2 and subjected to the PWM filtering process comprises:
[0065] The PWM communication mode signal output by the host computer 2 is subjected to common filtering processing by the signal filtering circuit 14, and then subjected to pull-up processing by the second pull-up voltage connected by the controllable pull-up circuit 13, and then subjected to PWM filtering processing by the filter unit 1221 in the PWM filtering mode.
[0066] It can be understood that the PWM communication mode signal is subjected to common filtering processing by the signal filtering circuit 14, and then subjected to pull-up processing by the second pull-up voltage connected by the controllable pull-up circuit 13, and finally subjected to PWM filtering processing by the filter unit 1221 in the PWM filtering mode.
[0067] In this way, the PWM filtering processing of the PWM communication mode signal is realized, the effectiveness of the received PWM communication mode signal is ensured, the accuracy of the transmitted PWM communication mode signal is improved, the PWM communication mode is compatible, and the flexibility of the fan control system 1 is improved.
[0068] In an embodiment, the signal filtering circuit 14 is connected to the second power supply end 42 through the controllable pull-up circuit 13; the controllable pull-up circuit 13 includes a first pull-up unit 131 and a second pull-up unit 132 electrically connected to the first pull-up unit 131; the first pull-up unit 131 includes a first pull-up transistor 1311; the second pull-up unit 132 includes a second pull-up transistor 1321; the first pull-up unit 131 is connected between the control module 12 and the second pull-up unit 132; and the second pull-up unit 132 is connected between the signal filtering circuit 14 and the second power supply end 42.
[0069] The controllable pull-up circuit 13 of the fan control system 1 is switched to the PWM pull-up mode according to the PWM mode pull-up signal in the communication signal, which includes:
[0070] A high voltage signal corresponding to the PWM mode pull-up signal is generated. It can be understood that after the control module 12 receives the PWM mode pull-up signal, the high voltage signal corresponding to the PWM mode pull-up signal is generated, and the high voltage signal is a high level signal, for example, a 5V voltage signal, which is output by the enable pin 121 (I / O pin).
[0071] According to the high voltage signal, the first pull-up transistor 1311 is in the on state, and the second state signal is sent to the second pull-up unit 132. Understandably, the high voltage signal is transmitted to the controllable pull-up circuit 13, so that the first pull-up unit 131 switches to the on state, generates the second state signal, and sends the second state signal to the second pull-up unit 132.
[0072] The high voltage signal is transmitted to the first pull-up unit 131, and the first pull-up transistor 1311 in the first pull-up unit 131 is in the on state according to the received high voltage signal. The first pull-up unit 131 is a pull-up circuit containing the first pull-up transistor 1311. The first pull-up transistor 1311 is an NPN type transistor. The high voltage signal is transmitted to the base of the first pull-up transistor 1311, so that the first pull-up transistor 1311 is in the on state, and current flows through it. A high-level signal, i.e. a second state signal, is emitted from the collector of the first pull-up transistor 1311. The emitter of the first pull-up transistor 1311 is grounded, and the first pull-up circuit outputs to the second pull-up transistor 1321 in the second pull-up unit 132 through the collector of the first pull-up transistor 1311.
[0073] The second pull-up transistor 1321 is in the on state according to the second state signal to connect the signal filtering circuit 14 and the second power supply end 42.
[0074] Understandably, the second state signal is transmitted to the base of the second pull-up transistor 1321, and the first resistance is disconnected to connect the first pull-up voltage. The second pull-up transistor 1321 is a PNP type transistor. The second state signal is received by the base of the second pull-up transistor 1321, so that the second pull-up transistor 1321 is in the on state. The collector of the second pull-up transistor 1321 generates current, and the emitter of the second pull-up transistor 1321 is connected to the second pull-up voltage through the second power supply end 42. The second power supply end 42 supplies the second pull-up voltage. The second pull-up voltage is a voltage suitable for the fan control system 1 for PWM communication. Preferably, it is a 12V voltage. The collector of the second pull-up transistor 1321 is electrically connected to the signal filtering circuit 14, so that the second pull-up transistor 1321 is connected to the second pull-up voltage, the controllable pull-up circuit 13 is connected to the second pull-up voltage, and the signal output by the signal filtering circuit 14 is pulled up to the second pull-up voltage.
[0075] Thus, the application realizes the generation of a high voltage signal corresponding to the PWM mode pull-up signal; after the first pull-up transistor 1311 is in the on state according to the high voltage signal, a second state signal is sent to the second pull-up unit 132; the second pull-up transistor 1321 is in the on state according to the second state signal, so as to connect the signal filtering circuit 14 and the second power supply end 42, and receive the subsequent PWM communication mode signal voltage.
[0076] In an embodiment, the fan control system 1 further comprises a fault feedback circuit 15 connected between the signal filtering circuit 14 and the control module 12.
[0077] After the step S50, that is, after the PWM communication mode signal output by the host computer 2 and subjected to PWM filtering processing, the fan control data in the PWM communication mode signal is obtained, and after the automobile fan 3 is controlled according to the fan control data, the method further comprises:
[0078] After receiving the to-be-processed fault signal sent by the automobile fan 3, the to-be-processed fault signal is subjected to fault analysis, a fault code signal is generated, and the fault code signal is output to the fault feedback circuit 15 for signal conversion; after the signal conversion, the fault code signal is confirmed as a fault signal by the signal filtering circuit 14, and the fault signal is fed back to the host computer 2 through the preset interface 11.
[0079] Understandably, when a fault occurs during the operation of the automobile fan 3, the to-be-processed fault signal is generated, after receiving the to-be-processed fault signal, the control module 12 performs fault analysis on the to-be-processed fault signal, that is, the to-be-processed fault signal input is mapped to the fault code signal matched therewith, the fault code signal is a signal that maps the corresponding code to the to-be-processed fault signal generated by the fault phenomenon, the control module 12 outputs the fault code signal through a fault code output pin 123, and the output mode can periodically output the fault code signal to the fault feedback circuit 15. The fault feedback circuit 15 is a circuit for signal conversion of the fault code signal, and the fault feedback circuit 15 includes a plurality of resistors and capacitors, and an NPN type triode for signal conversion. The signal conversion process is an analog-digital conversion and amplification process, and after confirming that the converted fault code signal is a fault signal through the signal filtering circuit 14, the signal filtering circuit 14 can generate a fault signal corresponding to the fault code signal. Finally, the fault signal is fed back to the upper computer 2 through the preset interface 11. The upper computer 2 can receive the feedback fault signal through a sampling method, and the sampling method can be set according to requirements, such as a sampling period of 10 to 200 milliseconds for sampling, and a continuous sampling of 1 to 100 times. The fault signal is finally determined through continuous sampling. In this way, the upper computer 2 can receive the fault signal fed back by the fan control system 1, and can quickly locate the fault problem of the automobile fan 3.
[0080] In this way, the automobile fan control system 1 receives the to-be-processed fault signal sent by the automobile fan 3, performs fault analysis on the to-be-processed fault signal, generates a fault code signal and outputs it to the fault feedback circuit 15 for signal conversion, and then confirms it as a fault signal through the signal filtering circuit 14. After that, the fault signal is fed back to the upper computer 2 through the preset interface 11, so that when a fan fault occurs during normal operation or after version upgrade, the automobile fan 3 does not need to be disassembled for troubleshooting, and the fault reason can be located through the fault signal. Corresponding processing is made, manual troubleshooting cost is saved, fault recognition efficiency is greatly improved, and operation and maintenance cost is saved.
[0081] As shown in Figure 1 The present application provides a fan control system 1, comprising a control module 12 connected to a preset interface 11 and an automobile fan 3, wherein the control module 12 is used to execute the automobile fan 3 control data processing method described above.
[0082] The present application provides an automobile comprising a fan control system 1 as described above.
[0083] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An automobile fan control data processing method characterized by, The application relates to a control module applied to a fan control system installed on an automobile; the fan control system comprises a preset interface connected with the control module; The automobile fan control data processing method comprises the following steps: Receiving a handshake signal from an upper computer; the upper computer is connected with the fan control system through a preset interface; When the handshake signal is a to-be-refreshed signal, switching the fan control system to a LIN communication mode according to the to-be-refreshed signal; Receiving a LIN communication mode signal output by the upper computer and subjected to LIN filtering processing, obtaining to-be-updated version data in the LIN communication mode signal, and updating current version data for controlling the automobile fan in the control module according to the to-be-updated version data; The fan control system further comprises a signal filtering circuit connected between the preset interface and the control module and a controllable pull-up circuit electrically connected with the control module; the control module comprises a filtering unit, a pull-up resistor and a switching unit; the pull-up resistor is connected between the switching unit and a first power supply end outputting a first pull-up voltage; one end of the switching unit away from the pull-up resistor is connected with the signal filtering circuit; When the handshake signal is a to-be-refreshed signal, switching the fan control system to a LIN communication mode according to the to-be-refreshed signal, comprising: According to a LIN mode pull-up signal in the to-be-refreshed signal, switching the controllable pull-up circuit of the fan control system into a LIN pull-up mode, simultaneously controlling the switching unit to connect the signal filtering circuit and the pull-up resistor, and switching the filtering unit into a LIN filtering mode; Receiving a LIN communication mode signal output by the upper computer and subjected to LIN filtering processing, comprising: After the LIN communication mode signal output by the upper computer is subjected to common filtering processing by the signal filtering circuit, making the LIN communication mode signal subjected to pull-up processing by the first pull-up voltage connected through the pull-up resistor, and controlling the filtering unit in the LIN filtering mode to perform LIN filtering processing on the LIN communication mode signal.
2. The automobile fan control data processing method according to claim 1, wherein The signal filtering circuit is connected with a second power supply end through the controllable pull-up circuit; According to a LIN mode pull-up signal in the to-be-refreshed signal, switching the controllable pull-up circuit of the fan control system into a LIN pull-up mode, comprising: Generating a low-voltage signal corresponding to the LIN mode pull-up signal; According to the low-voltage signal, making the controllable pull-up circuit in a disconnected state to disconnect the connection between the signal filtering circuit and the second power supply end.
3. The automobile fan control data processing method according to claim 2, wherein The controllable pull-up circuit comprises a first pull-up unit and a second pull-up unit electrically connected with the first pull-up unit; the first pull-up unit comprises a first pull-up transistor; the second pull-up unit comprises a second pull-up transistor; the first pull-up unit is connected between the control module and the second pull-up unit; The second pull-up unit is connected between the signal filtering circuit and the second power supply end; Making the controllable pull-up circuit in a disconnected state, comprising: After the first pull-up transistor is in an off state, a first state signal is sent to the second pull-up unit; The second pull-up transistor is in an off state according to the first state signal.
4. The automobile fan control data processing method of claim 1, wherein, After the handshake signal from the upper computer is received, the following steps are further included: When the handshake signal is a communication signal, the fan control system is switched to a PWM communication mode according to the communication signal; After receiving the PWM communication mode signal output by the upper computer and processed by the PWM filter, the fan control data in the PWM communication mode signal is obtained to control the automobile fan according to the fan control data.
5. The automobile fan control data processing method according to claim 4, wherein The fan control system further includes a signal filter circuit connected between the preset interface and the control module, and a controllable pull-up circuit electrically connected with the control module; the control module includes a filter unit, a pull-up resistor, and a switch unit; the pull-up resistor is connected between the switch unit and a first power supply terminal outputting a first pull-up voltage; one end of the switch unit away from the pull-up resistor is connected with the signal filter circuit; The fan control system is switched to the PWM communication mode according to the communication signal, including: According to the PWM mode pull-up signal in the communication signal, the controllable pull-up circuit of the fan control system is switched to the PWM pull-up mode to turn on a second pull-up voltage, at the same time, the switch unit is controlled to disconnect the connection between the signal filter circuit and the pull-up resistor, and the filter unit is switched to the PWM filter mode; After the PWM communication mode signal output by the upper computer is processed by the signal filter circuit, the PWM communication mode signal is pulled up by the second pull-up voltage connected through the controllable pull-up circuit, and then the filter unit in the PWM filter mode is controlled to perform PWM filter processing on the PWM communication mode signal. The signal filter circuit is connected with a second power supply terminal through the controllable pull-up circuit; the controllable pull-up circuit includes a first pull-up unit and a second pull-up unit electrically connected with the first pull-up unit; the first pull-up unit includes a first pull-up transistor; the second pull-up unit includes a second pull-up transistor; the first pull-up unit is connected between the control module and the second pull-up unit; the second pull-up unit is connected between the signal filter circuit and the second power supply terminal; 6. The automobile fan control data processing method according to claim 5, wherein According to the PWM mode pull-up signal in the communication signal, the controllable pull-up circuit of the fan control system is switched to the PWM pull-up mode, including: A high voltage signal corresponding to the PWM mode pull-up signal is generated; After the first pull-up transistor is in a conductive state according to the high voltage signal, a second state signal is sent to the second pull-up unit; The second pull-up transistor is in a conductive state according to the second state signal to connect the signal filter circuit and the second power supply terminal. 7. The automobile fan control data processing method according to claim 6, wherein The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module; The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module; The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module; The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module; 8. A fan control system, characterized by, The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module; 9. An automobile characterized by comprising: The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module. The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module. The fan control system further comprises a fault feedback circuit connected between the signal filtering circuit and the control module.
Citation Information
Patent Citations
Electric car air conditioning PWM interface capable of updating program
CN108146188A
A hardware download tool for updating data through LIN communication
CN109067629A
Control method for stepless fan in software updating process of engine controller
CN110821633A