| Power windows are one of the key components of modern automobiles,and they are the hotspot of research by many experts and scholars at home and abroad.In the early days,the automatic lifting power windows did not have the anti-pinch function,resulting in a large clamping force during the window closing process,which could easily pinch passengers.In this context,the anti-pinch control strategy and algorithm are deeply studied in this thesis.In view of the lack of analysis and verification of the anti-pinch control strategy in the current glass lift controller test system,and the low coverage of the anti-pinch algorithm with manually written test cases.In this thsis,a simulation model of the anti-pinch control system for power windows based on Simulink is built to verify the anti-pinch control strategy,and a method for automatically generating test cases for anti-pinch windows based on an improved particle swarm algorithm is proposed.Finally,the glass lift controller of a certain vehicle model is used as the test object to test the function and performance of the window anti-pinch.The main work of this thesis is as follows:1.Aiming at the problem of lack of analysis and verification of anti-pinch control strategy,this thesis analyzes the working principle of power windows anti-pinch,and considers the influence of external environment changes on the anti-pinch control strategy,such as operating voltage,temperature,device mechanism aging,and bumpy road conditions,etc.factor.Use Simulink tools to build a simulation model of the power window anti-pinch control system,and verify the normal working state and the occurrence of the anti-pinch state of the window.The simulation experiment results show that the anti-pinch control system of electric windows can perform the anti-pinch function normally.2.Aiming at the problem of low coverage of anti-pinch algorithm by manually written test cases,this thesis analyzes the power window anti-pinch algorithm,constructs the program path to be tested,uses the improved particle swarm algorithm for optimization,and outputs the test case set when the optimal solution is searched.The simulation was performed in Matlab to record the iteration number and running time of the algorithm.The simulation experimental results show that the test cases automatically generated by the improved particle swarm algorithm can basically achieve full coverage of the anti-pinch algorithm.3.According to the functional requirements of the anti-pinch test system,an anti-pinch calibration system based on LIN bus was developed with the help of CANoe tool.Through the joint debugging of the upper and lower computers,the interface of the calibrated upper computer can be modified online and displayed in real time on the anti-pinch parameters,which improves the test efficiency.Finally,a vehicle window sill test system was built to conduct static anti-pinch tests under normal temperature,low temperature and high temperature environments,and to conduct dynamic anti-pinch tests at the Chongqing Dianjiang Road test site.The experimental results show that the anti-pinch force is maintained in the range of60~80N,and the function and performance of the window anti-pinch meet the development needs. |