An automobile electric air outlet motor control test method, device and storage medium
By loading LIN signal scripts, parsing and preprocessing HVAC host control command data, calculating and correcting transmission delays, and combining PID control algorithms and fault protection mechanisms, the entire process of automated testing of automotive electric air vent motor control strategies was realized. This solved the problems of low automation and unstable control in existing technologies, and improved testing efficiency and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ANHUI JIANGHUAI AUTOMOBILE GRP CORP LTD
- Filing Date
- 2026-04-14
- Publication Date
- 2026-07-14
AI Technical Summary
Existing testing methods for automotive electric air vent motor control have low automation levels, making it difficult to achieve stable reproduction under multiple operating conditions. They also suffer from poor test efficiency and inconsistent results, unstable control during long-term operation, and a lack of real-time monitoring and anomaly handling capabilities, which affects product verification cycles and reliability.
By loading LIN signal scripts, parsing and preprocessing HVAC host control command data, calculating and correcting transmission delays, generating stable control commands, and combining PID control algorithms and fault protection mechanisms, the entire process of motor control is automated for testing.
It has achieved fully automated testing of the control strategy of automotive electric air vent motors, reducing human error, improving the stability and reliability of test results, and significantly improving the testing efficiency of HVAC electronic control systems.
Smart Images

Figure CN122387002A_ABST
Abstract
Description
Technical Field
[0001] This invention mainly relates to the field of automotive electronic control technology, specifically to a method, device, and storage medium for controlling and testing an automotive electric air vent motor. Background Technology
[0002] With the rapid development of automotive intelligence and on-board electronic control systems, automotive air conditioning vent actuators have widely adopted motor drive and bus control methods. The reliability, stability, and smoothness of related control strategies directly affect the overall vehicle user experience. During product development and verification, the industry typically uses traditional testing methods to verify electronic control functions. These methods often rely on manual operation, simple benches, and general testing tools, with the testing process heavily dependent on manual configuration and triggering, resulting in low automation. Existing testing methods struggle to continuously and stably reproduce the system's operating status under multiple conditions, leading to poor overall testing efficiency and result consistency, and making error control difficult.
[0003] Meanwhile, traditional solutions lack the adaptive handling capability for state fluctuations during long-term operation, easily exhibiting response lag and control instability, failing to meet the requirements of high-precision and high-stability control. Furthermore, existing testing systems have weak real-time monitoring and anomaly handling capabilities. When electrical or mechanical anomalies occur, it is difficult to take timely and effective protective measures and complete the synchronous recording and reporting of test data, resulting in low test coverage and security. These problems lead to long product verification cycles, high labor costs, and an inability to fully cover complex automotive operating conditions, hindering the development efficiency and reliability improvement of automotive air conditioning electronic control systems. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method, device and storage medium for controlling and testing electric air vent motors in automobiles, in order to address the shortcomings of the prior art.
[0005] The technical solution of this invention to solve the above-mentioned technical problems is as follows: A test method for controlling an electric air vent motor in an automobile, comprising the following steps: Load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain the HVAC host control LIN command data; The preset LIN protocol motor control strategy is invoked to preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data. Extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data. The stable LIN control command data is sent to the car's motor drive module to drive the car's electric air outlet motor to adjust the blade angle, and the motor's operating parameter data is collected in real time. The difference between the operating parameter data and the target parameter data of the HVAC test condition is calculated to obtain the deviation data. Based on the deviation data, the motor drive output is corrected through a PID control algorithm to generate silent control parameter data. Based on the operating parameter data and the silent control parameter data, it is determined whether fault protection is triggered, and fault status data is obtained. When the fault status data indicates that a fault has been triggered, the motor drive module is controlled to perform current reduction or shutdown protection, and the fault status data is fed back to the CANoe test platform.
[0006] Based on the above technical solution, the present invention can be further improved as follows.
[0007] Furthermore, a preset LIN signal script corresponding to the HVAC test conditions is loaded, and the script is parsed by the CANoe test platform to obtain HVAC host control LIN command data, including: Retrieve a preset HVAC test condition configuration list, which stores the association mapping relationship between each HVAC test condition and the corresponding LIN signal script; Based on the current HVAC test condition to be executed, match the corresponding LIN signal script from the configuration list; Start the CANoe test platform, import the LIN signal script into the CANoe test platform, and parse the LIN signal script frame by frame through the CANoe test platform; The CANoe test platform extracts the frame header identifier, data field data, check bit and frame tail identifier from the parsed LIN message, and removes invalid messages that fail to be parsed or have incomplete frame structures. The frame header identifier, data field data, check bit, and frame tail identifier of the extracted valid LIN message are correlated and integrated to generate HVAC host control LIN command data that conforms to the HVAC host control logic.
[0008] Furthermore, a preset LIN protocol motor control strategy is invoked to preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data, including: Invoke the preset LIN protocol motor control strategy and extract the preset verification rules, filtering parameters and smoothing parameters in the preset LIN protocol motor control strategy; Based on the verification rules of the preset LIN protocol motor control strategy, the HVAC host control LIN command data is verified for legality. The legality verification includes the message frame format, check bit and message period to obtain legal LIN command data. Based on the filtering parameters of the preset LIN protocol motor control strategy, the legitimate LIN command data is subjected to noise filtering processing by a first-order low-pass filtering algorithm to remove high-frequency interference components and obtain filtered LIN command data. Based on the smoothing parameters of the preset LIN protocol motor control strategy, the filtered LIN command data is subjected to amplitude smoothing to obtain anti-interference LIN command data.
[0009] Further, the LIN message timestamps of the anti-interference LIN command data are extracted, historical communication delay data is retrieved, the transmission delay is calculated based on the LIN message timestamps and historical communication delay data, and the calculated transmission delay is corrected to obtain stable LIN control command data, including: From the LIN message containing the anti-interference LIN command data, parse and extract the corresponding LIN message timestamp, which is denoted as... ,in, This is the sequence number of the current LIN command data. It is a positive integer; Retrieve historical communication delay data pre-stored in the test system. This historical communication delay data consists of transmission delay records corresponding to different LIN message timestamps during historical test processes consistent with the current HVAC test conditions, denoted as historical timestamps. and corresponding historical transmission delay ,in, For tracing back the serial number of historical messages, , Preset backtracking quantity; LIN message timestamps are predicted based on a weighted average formula. Historical timestamps and corresponding historical transmission delay Calculate the current transmission delay The weighted average prediction formula is as follows: , in, For the first The weighting coefficients for the historical transmission delay of the group, and , This is the time deviation correction factor; Based on the calculated current transmission delay The execution time of the anti-interference LIN instruction data is advanced. Duration, after correction, yields stable LIN control command data.
[0010] Furthermore, the difference between the operating parameter data and the target parameter data of the HVAC test condition is calculated to obtain deviation data. Based on the deviation data, the motor drive output is corrected using a PID control algorithm to generate silent control parameter data, including: Obtain the target parameter data corresponding to the current HVAC test condition, including the target speed, target torque, and target noise threshold. The difference between the operating parameter data and the corresponding target parameter data is calculated to obtain the real-time deviation data; The PID output control quantity is calculated from the real-time deviation data using a PID control algorithm. The expression for the PID control algorithm is: , in, This is the proportionality coefficient. The integral coefficient is... The differential coefficients are... This is real-time deviation data; Based on PID output control quantity The motor drive output is corrected, and the corrected motor drive output is then subjected to noise reduction and optimization processing to generate silent control parameter data.
[0011] Furthermore, based on the operating parameter data and the silent control parameter data, it is determined whether fault protection is triggered to obtain fault status data. When the fault status data indicates a fault trigger, the motor drive module is controlled to perform current reduction or shutdown protection, and the fault status data is fed back to the CANoe test platform, including: The system retrieves preset fault protection judgment criteria, which include fault protection thresholds corresponding to operating parameter data and silent control parameter data. The fault protection thresholds corresponding to the operating parameter data include the stall current threshold. Overload current threshold and abnormal torque threshold The fault protection threshold corresponding to the silent control parameter data is the noise abnormality threshold. ; Extract the operating current data from the operating parameter data. and output torque data Extract the actual noise data from the silence control parameter data. ; The extracted parameter data is compared with the corresponding fault protection threshold for judgment. The judgment rule is as follows: when When this occurs, it is determined to be a stall fault; when and When this occurs, it is determined to be an overload fault; when Time The fault was determined to be an abnormal torque. when When this occurs, it is determined to be a noise abnormality fault; If none of the above comparison conditions are met, the system is determined to be fault-free. Fault status data is generated based on the comparison and judgment results, and the fault status data identifies the fault type or the fault-free state. When the fault status data is identified as any type of fault, it is determined to be a fault trigger. Based on the fault level, the motor drive module is controlled to perform corresponding protection actions: if it is a stall fault or overload fault, the machine is stopped for protection; if it is a torque abnormal fault or noise abnormal fault, the current reduction protection is performed. The fault status data is associated with the corresponding LIN message timestamp and fed back to the CANoe test platform via the LIN bus.
[0012] Another technical solution of the present invention to solve the above-mentioned technical problems is as follows: A test device for controlling an electric air vent motor in an automobile, comprising: The top-level test and control unit is used to load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain the HVAC host control LIN command data; The core control unit is used to: invoke a preset LIN protocol motor control strategy, preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data; extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data. The drive unit is used to send the stable LIN control command data to the motor drive module of the car to drive the electric air outlet motor of the car to adjust the blade angle. An execution unit is used to drive the blades to complete the angle adjustment action under the drive of the drive unit and output a feedback signal; The feedback unit is used to collect the operating parameter data of the motor and feed the operating parameter data back to the core control unit; The core control unit is also used to: perform difference calculation between the operating parameter data and the target parameter data of the HVAC test condition to obtain deviation data; based on the deviation data, correct the motor drive output through a PID control algorithm to generate silent control parameter data; determine whether fault protection is triggered based on the operating parameter data and the silent control parameter data to obtain fault status data; when the fault status data indicates a fault trigger, control the motor drive module to perform current reduction or shutdown protection, and feed back the fault status data to the CANoe test platform.
[0013] Another technical solution of the present invention to solve the above-mentioned technical problems is as follows: a test device for controlling an electric air vent motor of an automobile, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the test method for controlling an electric air vent motor of an automobile as described above.
[0014] Another technical solution of the present invention to solve the above-mentioned technical problems is as follows: a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the automotive electric air vent motor control test method as described above.
[0015] The beneficial effects of this invention are as follows: by sequentially executing the complete closed-loop process of LIN signal script loading and parsing, instruction data preprocessing, transmission delay correction, instruction issuance and parameter acquisition, PID silent control generation, and fault protection feedback, the entire process of automated testing of the automotive electric air vent motor control strategy, from instruction generation to execution and protection, can be realized without manual intervention in configuration, triggering, and monitoring. This significantly reduces human error during the testing process, ensures stable and consistent test results under multiple operating conditions, and significantly improves the overall efficiency and reliability of automotive HVAC electronic control system testing. Attached Figure Description
[0016] Figure 1 A flowchart of a test method for controlling an electric air vent motor in an automobile, provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the unit connection relationship of the automotive electric air vent motor control test device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the system architecture of the automotive electric air vent motor control test device provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the complete process of the automotive electric air vent motor control test method provided in the embodiments of the present invention. Detailed Implementation
[0017] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.
[0018] Example 1: As Figure 1 As shown, this embodiment of the invention provides a test method for controlling an automotive electric air vent motor, including the following steps: S1. Load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain the HVAC host control LIN command data; S2. Call the preset LIN protocol motor control strategy to preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data; S3. Extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data. S4. The stable LIN control command data is sent to the motor drive module of the car to drive the electric air outlet motor of the car to adjust the blade angle, and the operating parameter data of the motor is collected in real time; the operating parameter data includes position angle, working current, output torque and air outlet operating noise data. S5. Perform a difference calculation between the operating parameter data and the target parameter data of the HVAC test condition to obtain deviation data. Based on the deviation data, correct the motor drive output through a PID control algorithm to generate silent control parameter data. S6. Based on the operating parameter data and the silent control parameter data, determine whether fault protection is triggered, obtain fault status data, and when the fault status data indicates fault triggering, control the motor drive module to perform current reduction or shutdown protection, and feed back the fault status data to the CANoe test platform.
[0019] It also includes the following steps: S7. Based on the completion of S1 to S6, perform zero-position calibration, stroke calibration and torque threshold calibration on the automotive electric air outlet motor according to the current HVAC test conditions, and obtain the optimal control parameter data adapted to the current conditions. S8. Compare and verify the optimal control parameter data and operating parameter data with the preset HVAC operating condition standard curve data, output the judgment result of whether the test is qualified or unqualified, and generate and store the test report data.
[0020] In the above embodiments, by sequentially executing the complete closed-loop process of LIN signal script loading and parsing, instruction data preprocessing, transmission delay correction, instruction issuance and parameter acquisition, PID silent control generation, and fault protection feedback, the entire process of automated testing of the automotive electric air vent motor control strategy, from instruction generation to execution and protection, can be realized. No manual intervention in configuration, triggering, and monitoring is required, thereby significantly reducing human error in the testing process, ensuring stable and consistent test results under multiple operating conditions, and significantly improving the overall efficiency and reliability of automotive HVAC electronic control system testing.
[0021] Preferably, S1, load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain HVAC host control LIN command data, including: S11. Retrieve a preset HVAC test condition configuration list, which stores the association mapping relationship between each HVAC test condition and the corresponding LIN signal script. S12. Based on the current HVAC test condition to be executed, match the corresponding LIN signal script from the configuration list; S13. Start the CANoe test platform, import the LIN signal script into the CANoe test platform, and parse the LIN signal script frame by frame through the CANoe test platform. S14. Extract the frame header identifier, data field data, check bit and frame tail identifier from the parsed LIN message through the CANoe test platform, and remove invalid messages that failed to be parsed or had incomplete frame structures. S15. The frame header identifier, data field data, check bit and frame tail identifier of the extracted valid LIN message are associated and integrated to generate HVAC host control LIN command data that conforms to the HVAC host control logic.
[0022] The HVAC test conditions include cooling, heating, defogging, and ventilation modes, each corresponding to different airflow, temperature, and angle parameters. Frame-by-frame parsing ensures message integrity and avoids control anomalies due to missing data. Valid messages retain only the complete structure of the frame header, data field, check bit, and frame tail, improving the reliability of subsequent processing.
[0023] In the above embodiments, by automatically matching the corresponding LIN signal script based on the preset HVAC test condition configuration list, and using the CANoe test platform to complete the frame-by-frame parsing of the messages, and uniformly extracting and removing invalid messages from the frame header identifier, data field data, check bit and frame tail identifier, it is possible to ensure that the final generated HVAC host control LIN command data structure is complete, the format is standardized and consistent with the actual vehicle control logic, thereby avoiding test failure problems caused by abnormal, missing or incorrect command data from the source, and providing a reliable data foundation for subsequent stable control and accurate testing.
[0024] Preferably, S2, a preset LIN protocol motor control strategy is invoked to preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data, including: Invoke the preset LIN protocol motor control strategy and extract the preset verification rules, filtering parameters and smoothing parameters in the preset LIN protocol motor control strategy; Based on the verification rules of the preset LIN protocol motor control strategy, the HVAC host control LIN command data is verified for legality. The legality verification includes message frame format, check bit and message period. Invalid command data with abnormal frame format, incorrect check bit and period exceeding the preset range are removed to obtain valid LIN command data. Based on the filtering parameters of the preset LIN protocol motor control strategy, the legitimate LIN command data is subjected to noise filtering processing by a first-order low-pass filtering algorithm to remove high-frequency interference components and obtain filtered LIN command data. Based on the smoothing parameters of the preset LIN protocol motor control strategy, the filtered LIN command data is subjected to amplitude smoothing to obtain anti-interference LIN command data.
[0025] It should be understood that first-order low-pass filtering is used to eliminate electromagnetic high-frequency interference in the vehicle environment and improve the purity of commands; amplitude smoothing is used to eliminate command jitter, making the motor run more smoothly and without abnormal noise; and legality verification can effectively intercept erroneous frames and abnormal periodic messages to avoid malfunctions of the drive module.
[0026] In the above embodiments, by calling the LIN protocol motor control strategy to sequentially perform legality verification, first-order low-pass filtering, and amplitude smoothing on the command data, high-frequency interference signals introduced during command transmission can be effectively filtered out, invalid commands with frame format errors, abnormal check bits, and out-of-bounds periods can be eliminated, and data amplitude abrupt changes and jitter can be eliminated. This results in LIN command data with strong anti-interference ability and high stability, effectively improving the stability of subsequent motor drive control and reducing motor operation abnormalities caused by command fluctuations.
[0027] Preferably, S3 involves extracting the LIN message timestamp of the anti-interference LIN command data, retrieving historical communication delay data, calculating the transmission delay based on the LIN message timestamp and historical communication delay data, and correcting the calculated transmission delay to obtain stable LIN control command data, including: S31. Parse and extract the corresponding LIN message timestamp from the LIN message containing the anti-interference LIN command data. The LIN message timestamp is denoted as... ,in, This is the sequence number of the current LIN command data. It is a positive integer; S32. Retrieve historical communication delay data stored in the test system. The historical communication delay data consists of transmission delay records corresponding to different LIN message timestamps during historical tests consistent with the current HVAC test conditions, denoted as historical timestamps. and corresponding historical transmission delay ,in, For tracing back the serial number of historical messages, , Preset backtracking quantity; S33. LIN message timestamps are determined based on a weighted average prediction formula. Historical timestamps and corresponding historical transmission delay Calculate the current transmission delay The weighted average prediction formula is as follows: , in, For the first The weighting coefficients for the historical transmission delay of the group, and , This is the time deviation correction factor; S34. Based on the calculated current transmission delay The execution time of the anti-interference LIN instruction data is advanced. Duration, after correction, yields stable LIN control command data.
[0028] It should be understood that historical communication delay data is taken from the same HVAC operating conditions to improve the accuracy of delay prediction; by executing instructions in advance to compensate for transmission lag, the motor response is more timely and without any noticeable delay; the weighted average prediction algorithm can adapt to delay fluctuations under different vehicle speeds and electrical environments, making it more versatile.
[0029] In the above embodiments, by extracting the message timestamp and combining it with historical communication delay data under the same operating conditions, a weighted average prediction algorithm is used to accurately calculate the current transmission delay and perform timing correction. This can automatically compensate for the time offset and lag error generated during the transmission of the LIN bus, advance the instruction execution time to the corresponding delay duration, thereby eliminating the response lag problem caused by communication delay, making the control instruction output more accurate and timely, and significantly improving the motor response speed and the accuracy of the control timing.
[0030] Preferably, in step S5, the operating parameter data is compared with the target parameter data of the HVAC test condition to obtain deviation data. Based on the deviation data, the motor drive output is corrected using a PID control algorithm to generate silent control parameter data, including: S51. Obtain the target parameter data corresponding to the current HVAC test condition. The target parameter data includes the target speed, target torque, and target noise threshold. S52. Perform a difference calculation between the operating parameter data and the corresponding target parameter data to obtain real-time deviation data; S53. The PID output control quantity is calculated from the real-time deviation data using a PID control algorithm. The expression for the PID control algorithm is: , in, This is the proportionality coefficient. The integral coefficient is... The differential coefficients are... This is real-time deviation data; S54, Based on PID output control quantity The motor drive output is corrected, and the corrected motor drive output is then subjected to noise reduction and optimization processing to generate silent control parameter data.
[0031] Specifically, the target parameter data also includes the target air outlet angle, with an angle control accuracy of within ±0.5°; the PID algorithm is used to reduce torque fluctuations, keeping them within 5% for smoother operation; and noise reduction optimization can reduce the operating noise of the air outlet by more than 15dB, improving the quietness of the vehicle interior.
[0032] In the above embodiments, by performing difference calculation between the real-time operating parameters of the motor and the target parameters of the HVAC operating conditions, and using the PID control algorithm to dynamically correct the motor drive output based on the real-time deviation, the gap between the actual operating state and the target state can be continuously reduced, thereby achieving precise adjustment of the motor speed, torque and noise level. This generates quiet control parameters that are adapted to the in-vehicle environment, effectively reducing motor operating noise and vibration, and improving the smoothness and quietness of the air outlet adjustment process.
[0033] Preferably, S6, based on the operating parameter data and the silent control parameter data, determines whether fault protection is triggered to obtain fault status data. When the fault status data indicates a fault trigger, controls the motor drive module to perform current reduction or shutdown protection, and feeds back the fault status data to the CANoe test platform, including: S61. Retrieve preset fault protection judgment criteria, wherein the fault protection judgment criteria include fault protection thresholds corresponding to operating parameter data and silent control parameter data, wherein the fault protection thresholds corresponding to operating parameter data include stall current thresholds. Overload current threshold and abnormal torque threshold The fault protection threshold corresponding to the silent control parameter data is the noise abnormality threshold. ; S62. Extract the operating current data from the operating parameter data. and output torque data Extract the actual noise data from the silence control parameter data. ; S63. Compare the extracted parameter data with the corresponding fault protection threshold to determine the appropriate threshold. The determination rule is as follows: when When this occurs, it is determined to be a stall fault; when and When this occurs, it is determined to be an overload fault; when Time The fault was determined to be an abnormal torque. when When this occurs, it is determined to be a noise abnormality fault; If none of the above comparison conditions are met, the system is determined to be fault-free. S64. Based on the comparison and judgment results, generate fault status data, wherein the fault status data identifies the fault type or the fault-free state. S65. When the fault status data is identified as any type of fault, it is determined to be a fault trigger. Based on the fault level, the motor drive module is controlled to perform corresponding protection actions: if it is a stall fault or overload fault, the machine is stopped for protection; if it is a torque abnormal fault or noise abnormal fault, the current reduction protection is performed. S66. Associate the fault status data with the corresponding LIN message timestamp and feed it back to the CANoe test platform via the LIN bus.
[0034] Fault detection incorporates a delay filtering mechanism to avoid false triggering caused by momentary interference; fault status data includes a fault occurrence timestamp for easy later location and reproduction; stall and overload are protected by shutdown protection to safeguard the hardware, while abnormal torque and noise are protected by current reduction protection to improve user experience; fault information is uploaded to CANoe in real time via LIN bus to achieve full traceability of the testing process.
[0035] In the above embodiments, by comparing and judging the operating parameters and silent control parameters with the corresponding fault protection thresholds in multiple dimensions, it is possible to quickly and accurately identify various fault types such as stall, overload, abnormal torque and abnormal noise, and execute shutdown protection or current reduction protection according to the severity of the fault. At the same time, the fault information is fed back to the CANoe platform after being associated with the message timestamp, thereby realizing real-time safety protection and accurate fault location throughout the testing process, and improving the safety, stability and fault traceability of the testing system.
[0036] Figure 4 A schematic diagram of the complete process of the automotive electric air vent motor control test method provided in an embodiment of the present invention; This flowchart illustrates the fully automated testing logic from bench initialization, command issuance, motor drive, parameter acquisition, closed-loop adjustment, fault detection, automatic calibration, result verification, data storage, and report generation. The fault detection stage includes branches for stall and noise anomaly detection. When an anomaly occurs, current reduction and shutdown protection are implemented, and anomaly information is fed back. If normal, automatic calibration and result verification are performed, and finally a complete test report is generated, realizing the fully closed-loop automated testing of the automotive electric air outlet motor control strategy.
[0037] S1.1, Bench Initialization: Connect CANoe to the bench system, start CANoe and load the LIN signal scripts corresponding to different HVAC operating conditions such as cooling, heating, defogging, and ventilation, and complete the environment and parameter configuration before testing.
[0038] S1.2 Command Issuance: The host computer issues test commands, CANoe outputs HVAC host control LIN commands, the bench controller receives and parses the LIN commands, calls the LIN protocol control strategy, and completes command preprocessing and delay correction.
[0039] S1.3 Motor Drive: The bench controller outputs a pulse / PWM signal, which is amplified by the motor drive module and then drives the stepper motor to move the air outlet blades to achieve angle adjustment.
[0040] S1.4 Parameter Acquisition: The feedback acquisition module collects operating parameters such as motor position, current, torque, and noise in real time, and feeds them back to CANoe and bench controller via LIN bus to provide data support for closed-loop control.
[0041] S1.5 Closed-loop control: The bench controller compares real-time data with the target parameters and target angle of HVAC operating conditions, and adjusts the PWM duty cycle and step number through PID algorithm to correct motor operating parameters, thereby achieving torque self-adaptation and silent control.
[0042] S1.6 Fault Detection: The collected parameters are judged for abnormalities. If there are abnormal situations such as current exceeding the threshold and position not changing, or noise exceeding the standard, such as stall / noise abnormalities, the current reduction / shutdown protection is executed, and the abnormal signal is fed back to CANoe through the LIN bus and an abnormal prompt is output; if normal, proceed to the next stage.
[0043] S1.7 Automatic Calibration: Under different HVAC operating conditions and LIN signals, the system automatically completes the calibration of zero position, stroke, and torque thresholds, stores the optimal control parameters, and provides a benchmark for subsequent testing.
[0044] S1.8 Result Verification: Compare the motor operating data with the HVAC standard curve, output a pass / fail conclusion, and complete the test validity verification.
[0045] S1.9 Data Storage and Reporting: Associate all data such as HVAC operating conditions, CANoe test parameters, and LIN signal parameters to automatically generate a complete test report, thus ending the test process.
[0046] Example 2: As Figure 2 As shown, this embodiment of the invention also provides a test device for controlling an automotive electric air vent motor, comprising: The top-level test and control unit is used to load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain the HVAC host control LIN command data; The core control unit is used to: invoke a preset LIN protocol motor control strategy, preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data; extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data. The drive unit is used to send the stable LIN control command data to the motor drive module of the car to drive the electric air outlet motor of the car to adjust the blade angle. An execution unit is used to drive the blades to complete the angle adjustment action under the drive of the drive unit and output a feedback signal; The feedback unit is used to collect the operating parameter data of the motor and feed the operating parameter data back to the core control unit; The core control unit is also used to: perform difference calculation between the operating parameter data and the target parameter data of the HVAC test condition to obtain deviation data; based on the deviation data, correct the motor drive output through a PID control algorithm to generate silent control parameter data; determine whether fault protection is triggered based on the operating parameter data and the silent control parameter data to obtain fault status data; when the fault status data indicates a fault trigger, control the motor drive module to perform current reduction or shutdown protection, and feed back the fault status data to the CANoe test platform.
[0047] like Figure 3 As shown in the figure, the top-level test and control unit, core control unit, drive unit, execution unit and feedback unit are connected in sequence to form a closed-loop communication connection.
[0048] The top-level test and control unit sends HVAC operating condition commands to the host computer module. The CANoe test platform loads the corresponding LIN signal script according to the commands, parses and generates HVAC host control LIN command data that conforms to the vehicle standard, and is also responsible for subsequent test data processing and report generation.
[0049] The core control unit and communication module perform protocol relay, anti-interference and anti-delay processing on LIN command data, complete data preprocessing and transmission delay correction, and generate stable LIN control commands; the bench controller receives stable commands, executes motor control strategies and closed-loop regulation, and outputs PWM / pulse drive signals.
[0050] The drive unit, or motor drive module, receives drive signals, performs power amplification, phase sequence switching, and current adaptation, and outputs a low-noise drive current adapted to the stepper motor.
[0051] The execution unit, with its stepper motor receiving drive current, operates step by step according to control commands, driving the electric air outlet blades to achieve precise angle positioning and outputting feedback signals.
[0052] The feedback unit and feedback acquisition module collect operating parameters such as motor position (±0.5° accuracy) and current, generate LIN feedback signals, and send them back to the host computer module of the top-level test and control unit. At the same time, they are fed back to the core control unit to form a closed-loop link, providing data support for PID silent control and fault protection.
[0053] Preferably, the LIN message timestamp of the anti-interference LIN command data is extracted, historical communication delay data is retrieved, the transmission delay is calculated based on the LIN message timestamp and historical communication delay data, and the calculated transmission delay is corrected to obtain stable LIN control command data, including: From the LIN message containing the anti-interference LIN command data, parse and extract the corresponding LIN message timestamp, which is denoted as... ,in, This is the sequence number of the current LIN command data. It is a positive integer; Retrieve historical communication delay data pre-stored in the test system. This historical communication delay data consists of transmission delay records corresponding to different LIN message timestamps during historical test processes consistent with the current HVAC test conditions, denoted as historical timestamps. and corresponding historical transmission delay ,in, For tracing back the serial number of historical messages, , Preset backtracking quantity; LIN message timestamps are predicted based on a weighted average formula. Historical timestamps and corresponding historical transmission delay Calculate the current transmission delay The weighted average prediction formula is as follows: , in, For the first The weighting coefficients for the historical transmission delay of the group, and , This is the time deviation correction factor; Based on the calculated current transmission delay The execution time of the anti-interference LIN instruction data is advanced. Duration, after correction, yields stable LIN control command data.
[0054] This invention also provides a test device for controlling an electric air vent motor in an automobile, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the test method for controlling an electric air vent motor in an automobile as described above.
[0055] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the automotive electric air vent motor control test method described above.
[0056] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0057] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0058] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0059] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0060] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of software functional units.
[0061] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A test method for controlling an electric air vent motor in an automobile, characterized in that, Includes the following steps: Load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain the HVAC host control LIN command data; The preset LIN protocol motor control strategy is invoked to preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data. Extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data. The stable LIN control command data is sent to the car's motor drive module to drive the car's electric air outlet motor to adjust the blade angle, and the motor's operating parameter data is collected in real time. The difference between the operating parameter data and the target parameter data of the HVAC test condition is calculated to obtain the deviation data. Based on the deviation data, the motor drive output is corrected through a PID control algorithm to generate silent control parameter data. Based on the operating parameter data and the silent control parameter data, it is determined whether fault protection is triggered, and fault status data is obtained. When the fault status data indicates that a fault has been triggered, the motor drive module is controlled to perform current reduction or shutdown protection, and the fault status data is fed back to the CANoe test platform.
2. The automotive electric air vent motor control test method according to claim 1, characterized in that, Load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain HVAC host control LIN command data, including: Retrieve a preset HVAC test condition configuration list, which stores the association mapping relationship between each HVAC test condition and the corresponding LIN signal script; Based on the current HVAC test condition to be executed, match the corresponding LIN signal script from the configuration list; Start the CANoe test platform, import the LIN signal script into the CANoe test platform, and parse the LIN signal script frame by frame through the CANoe test platform; The CANoe test platform extracts the frame header identifier, data field data, check bit and frame tail identifier from the parsed LIN message, and removes invalid messages that fail to be parsed or have incomplete frame structures. The frame header identifier, data field data, check bit, and frame tail identifier of the extracted valid LIN message are correlated and integrated to generate HVAC host control LIN command data that conforms to the HVAC host control logic.
3. The automotive electric air vent motor control test method according to claim 1, characterized in that, The preset LIN protocol motor control strategy is invoked to preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data, including: Invoke the preset LIN protocol motor control strategy and extract the preset verification rules, filtering parameters and smoothing parameters in the preset LIN protocol motor control strategy; Based on the verification rules of the preset LIN protocol motor control strategy, the HVAC host control LIN command data is verified for legality. The legality verification includes the message frame format, check bit and message period to obtain legal LIN command data. Based on the filtering parameters of the preset LIN protocol motor control strategy, the legitimate LIN command data is subjected to noise filtering processing by a first-order low-pass filtering algorithm to remove high-frequency interference components and obtain filtered LIN command data. Based on the smoothing parameters of the preset LIN protocol motor control strategy, the filtered LIN command data is subjected to amplitude smoothing to obtain anti-interference LIN command data.
4. The automotive electric air vent motor control test method according to claim 1, characterized in that, Extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data, including: From the LIN message containing the anti-interference LIN command data, parse and extract the corresponding LIN message timestamp, which is denoted as... ,in, This is the sequence number of the current LIN command data. It is a positive integer; Retrieve historical communication delay data pre-stored in the test system. This historical communication delay data consists of transmission delay records corresponding to different LIN message timestamps during historical test processes consistent with the current HVAC test conditions, denoted as historical timestamps. and corresponding historical transmission delay ,in, For tracing back the serial number of historical messages, , Preset backtracking quantity; LIN message timestamps are predicted based on a weighted average formula. Historical timestamps and corresponding historical transmission delay Calculate the current transmission delay The weighted average prediction formula is as follows: , in, For the first The weighting coefficients for the historical transmission delay of the group, and , This is the time deviation correction factor; Based on the calculated current transmission delay The execution time of the anti-interference LIN instruction data is advanced. Duration, after correction, yields stable LIN control command data.
5. The test method for controlling an automotive electric air vent motor according to claim 1, characterized in that, The operating parameter data is compared with the target parameter data of the HVAC test condition to obtain deviation data. Based on the deviation data, the motor drive output is corrected using a PID control algorithm to generate silent control parameter data, including: Obtain the target parameter data corresponding to the current HVAC test condition, including the target speed, target torque, and target noise threshold. The difference between the operating parameter data and the corresponding target parameter data is calculated to obtain the real-time deviation data; The PID output control quantity is calculated from the real-time deviation data using a PID control algorithm. The expression for the PID control algorithm is: , in, This is the proportionality coefficient. The integral coefficient is... These are the differential coefficients. This is real-time deviation data; Based on PID output control quantity The motor drive output is corrected, and the corrected motor drive output is then subjected to noise reduction and optimization processing to generate silent control parameter data.
6. The test method for controlling an automotive electric air vent motor according to claim 1, characterized in that, Based on the operating parameter data and the silent control parameter data, it is determined whether fault protection is triggered, and fault status data is obtained. When the fault status data indicates a fault trigger, the motor drive module is controlled to perform current reduction or shutdown protection, and the fault status data is fed back to the CANoe test platform, including: The system retrieves preset fault protection judgment criteria, which include fault protection thresholds corresponding to operating parameter data and silent control parameter data. The fault protection thresholds corresponding to the operating parameter data include the stall current threshold. Overload current threshold and abnormal torque threshold The fault protection threshold corresponding to the silent control parameter data is the noise abnormality threshold. ; Extract the operating current data from the operating parameter data. and output torque data Extract the actual noise data from the silence control parameter data. ; The extracted parameter data is compared with the corresponding fault protection threshold for judgment. The judgment rule is as follows: when When this occurs, it is determined to be a stall fault; when and When this occurs, it is determined to be an overload fault; when hour The fault was determined to be an abnormal torque. when When this occurs, it is determined to be a noise abnormality fault; If none of the above comparison conditions are met, the system is determined to be fault-free. Fault status data is generated based on the comparison and judgment results, and the fault status data identifies the fault type or the fault-free state. When the fault status data is identified as any type of fault, it is determined to be a fault trigger. Based on the fault level, the motor drive module is controlled to perform corresponding protection actions: if it is a stall fault or overload fault, the machine is stopped for protection; if it is a torque abnormal fault or noise abnormal fault, the current reduction protection is performed. The fault status data is associated with the corresponding LIN message timestamp and fed back to the CANoe test platform via the LIN bus.
7. A test device for controlling an electric air vent motor in an automobile, characterized in that, include: The top-level test and control unit is used to load the LIN signal script corresponding to the preset HVAC test conditions, and parse the script through the CANoe test platform to obtain the HVAC host control LIN command data; The core control unit is used to: invoke a preset LIN protocol motor control strategy, preprocess the HVAC host control LIN command data to obtain anti-interference LIN command data; extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data. The drive unit is used to send the stable LIN control command data to the motor drive module of the car to drive the electric air outlet motor of the car to adjust the blade angle. An execution unit is used to drive the blades to complete the angle adjustment action under the drive of the drive unit and output a feedback signal; The feedback unit is used to collect the operating parameter data of the motor and feed the operating parameter data back to the core control unit; The core control unit is also used to: perform difference calculation between the operating parameter data and the target parameter data of the HVAC test condition to obtain deviation data, and based on the deviation data, correct the motor drive output through a PID control algorithm to generate silent control parameter data; Based on the operating parameter data and the silent control parameter data, it is determined whether fault protection is triggered, and fault status data is obtained. When the fault status data indicates that a fault has been triggered, the motor drive module is controlled to perform current reduction or shutdown protection, and the fault status data is fed back to the CANoe test platform.
8. The automotive electric air vent motor control testing device according to claim 7, characterized in that, Extract the LIN message timestamp of the anti-interference LIN command data, retrieve historical communication delay data, calculate the transmission delay based on the LIN message timestamp and historical communication delay data, and correct the calculated transmission delay to obtain stable LIN control command data, including: From the LIN message containing the anti-interference LIN command data, parse and extract the corresponding LIN message timestamp, which is denoted as... ,in, This is the sequence number of the current LIN command data. It is a positive integer; Retrieve historical communication delay data pre-stored in the test system. This historical communication delay data consists of transmission delay records corresponding to different LIN message timestamps during historical test processes consistent with the current HVAC test conditions, denoted as historical timestamps. and corresponding historical transmission delay ,in, For tracing back the serial number of historical messages, , Preset backtracking quantity; LIN message timestamps are predicted based on a weighted average formula. Historical timestamps and corresponding historical transmission delay Calculate the current transmission delay The weighted average prediction formula is as follows: , in, For the first The weighting coefficients for the historical transmission delay of the group, and , This is the time deviation correction factor; Based on the calculated current transmission delay The execution time of the anti-interference LIN instruction data is advanced. Duration, after correction, yields stable LIN control command data.
9. A test device for controlling an electric air vent motor in an automobile, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the automotive electric air vent motor control test method as described in any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the test method for controlling the electric air vent motor of an automobile as described in any one of claims 1 to 6.