The national standard test of automobile electromagnetic anti-interference is one of the most important indicators for comprehensive evaluation of product quality.It is also a performance test that various types of automotive electronic components must pass before they are installed in the vehicle and entered the market.Therefore,designing a set of highly efficient,easy-to-use,and fast-to-market automotive electromagnetic immunity test systems has been a hot topic in the automotive field.This paper focuses on the software and hardware technology architecture,communication instructions,drive interfaces,and human-computer interaction issues of the automotive electronic component EMS test system AutoLab.The main tasks are as follows:(1)Taking test standards and competitive product analysis as input and following the basic principles of software engineering,a component-based method for automotive electronic component system connection design and software layered design is provided to provide the underlying foundation for AutoLab.The external interfaces of multiple devices are unified on the hardware,which enhances the scalability of the hardware.In the underlying software,it follows the principle of componentized encapsulation,which enhances maintainability and portability.(2)Aiming that the standard command protocol format of traditional instruments can not meet the characteristics of the CAN bus inside the instrument,a set of streamlined instructions has been designed.The command frame format not only meets CAN frames,but also supports more non-standard protocols of instruments.A set of binary encoding formats are defined on the above,which speeds up instruction transmission between devices.(3)In the driver implementation part,C++language is selected and combined with the multi-threaded and event-selected socket model to complete the standard dynamic link library interface,and a portable and reusable interface that complies with software engineering is designed to facilitate the system Maintenance and expansion.(4)Aiming at the problem of poor human-computer interaction experience of traditional desktop systems and fuzzy project hierarchy.The system software design is implemented using WPF technology based on the.net platform,and the architecture chooses to use the MVVM mode to reasonably divide the interface layer,logical business layer,and data persistence layer,making the entire project clearer.The EMS testing software AutoLab designed for this article is used by auto manufacturers and laboratories to complete thousands of standard tests for auto parts.The software has successfully completed testing and is normally delivered to users.The function and level have basically reached the standards of foreign counterparts,and it has completed the shortcomings of domestic software products in this field. |