Automobile CAN network test development method

I. Introduction

This article refers to the address: http://

With the development of automotive electronics technology and the improvement of automotive performance requirements, the number of electronic control units (ECUs) is increasing. The interaction information between electronic control units is composed of CAN, LIN and MOST buses. The network is implemented. Therefore, the development of the vehicle network is particularly necessary. The development process of the current vehicle network is generally based on the internationally common V-mode development process.

The V-mode process for vehicle network development includes the following main aspects: network requirements definition, network specification development, and network test verification. After the current network requirement definition and network specification are completed, it will enter the post-network design and test verification phase. The network test verification phase mainly performs network test verification on the samples or products that have been designed to ensure the function of the sample or product. Consistent with previous needs.

The network test verification phase is mainly engaged in network test requirements analysis, network test specification development, network test system development, network test implementation, analysis of problems during the test process.

Second, CAN network test development process

The vehicle CAN network test development process mainly includes the following aspects: test plan development, specification development, automated test system development, test implementation, and test report summary.

The test plan development mainly considers the resource requirements (tool requirements and manpower requirements, etc.), task division, time requirements, etc. required for network test work, to ensure that subsequent work can be carried out smoothly and effectively.

The test specification is mainly determined to determine the content of the network to test. During the entire network development process, the network test specification should be carried out after the network requirements specification is completed. The purpose of the network test is to confirm that the ECU products provided by the supplier meet the requirements of the network requirements specification. Because of this, the CAN network test specification must be developed in accordance with the CAN network requirements specification. The test specification needs to include all the test items and descriptions of the test environment requirements, test procedures, and test tool requirements required for each test item test.

Test system development includes software system development, hardware system development, and software and hardware system integration. Software system development mainly includes:

Division of software architecture;
Test program development based on test content;
Library file development based on network communication messages;
Test panel development to control test execution and other aspects;
Development of relevant control programs used to control different test systems to work effectively.

Hardware system development mainly includes:

Network test auxiliary controller development;
Selection of test tools (such as program-controlled power supply, CAN network communication equipment, CAN network interference equipment, CAN network waveform acquisition equipment, etc.).

Software and hardware system integration is designed to debug software development systems and hardware development systems to seamlessly integrate and work effectively.

Test implementation is a specific implementation of CAN network testing, including:

Construction of the test environment (test stand construction, etc.);
Execution of the network test of the ECU under test;
Record test results and save test records.

The test report summary is mainly based on the test results to analyze the ECU under test to determine whether the ECU under test meets the requirements of the CAN network requirements specification.

Newmaker.com 
Figure 1 CAN network test flow chart III, CAN network test development tools

CAN network test development requires the following major development tools: DOORS, Visual C++, Matlab/Simulink, CANoe.Matlab Interface, CANoe, CANdela, CANoe.DiVa, CANcard, CANdb++, CANscope, CANstress, Code Warrior, Protel, etc.

DOORS is a requirements management tool that can be used to organize network test content and provide input for testing requirements for subsequent development tools. Visual C++ is mainly used to develop control programs for coordination work between hardware systems and control programs for human-computer interaction interface. Matlab/Simulink and CANoe.Matlab Interface are mainly used for model-based test content modeling, which is used to automatically generate test code. CANoe is a network simulation and testing tool. It develops network communication-related test programs under CANoe, and uses CANoe to generate network test reports. CANscope is used for the measurement and analysis of the physical characteristics of CAN signals. It has multiple sampling trigger modes and is used to collect the waveforms of the ECU under test in the network automation test system. CANstress is used to interfere with CAN network communication to test the fault tolerance of ECU and network systems. It is used to interfere with the network under test in network automation test system. CANdela is used to edit the diagnosis database based on KWP2000 and UDS. CANoe.DiVa is used to generate diagnostic correlation. The test program, the input file is the library file edited by CANdela, the output file is the diagnostic test program of CANoe, and the database of CANdb++ is used to edit the CAN communication message.

Fourth, the realization of a CAN network automation test system

According to the test procedure described in Section 2, a CAN network automation test system was developed using the corresponding development tools described in Section 3. The functions of the CAN automated test system include: control of the test process, automatic execution of test cases, data acquisition and processing, and automatic generation of test reports.

1) Formulation of test specifications: Using DOORS requirements management tools, according to network requirements specifications and diagnostic requirements specifications, develop CAN network unit test specifications, system test specifications and diagnostic test specifications;
2) Using CANdb++ to develop software for CAN message database, and CANdela for development of diagnostic database;
3) According to the network unit test specification and system test specification established by 1), use Matlab/Simulink and CANoe.Matlab Interface to generate the corresponding test program, and integrate in the CANoe environment;
4) According to 2) completed diagnostic database, use CANoe.DiVa to generate diagnostic test program and integrate in CANoe environment;
5) Using CANoe, Matlab/Simulink and Visual C++ for software development of the control panel;
6) Use Visual C++, Code Warrior and Protel for network-aided controllers and other software and hardware developments such as fault implantation, according to the test requirements of the test specification;
7) Develop control programs for test tools such as CANstress, CANscope, and program-controlled power supplies using Visual C++;
8) System integration using Visual C++.


The network automation test system architecture and schematic diagram are shown in Figure 2 and Figure 3.

Newmaker.com


Figure 2 CAN network automatic test system

Newmaker.com
Figure 3 Schematic diagram of CAN network automation test system V. Conclusion

This paper first introduces the CAN network test process in detail. Secondly, it introduces the development tools needed for CAN network test development and introduces the specific functions of these development tools. Finally, based on this process and using these development tools, the development is introduced in detail. Development details of automated test systems in the process.

Wind Turbine

we supply vertical axis and horizontal axis wind turbine from 1kw to 1000kw

Wind Turbine,Best Wind Turbine,250Kw Wind Turbine,Wind Turbine Generator

Jinan Xinyuhua Energy Technology Co.,Ltd , https://www.xyhenergy.com