The invention relates to the technical field of vehicle-mounted
Ethernet communication, in particular to a vehicle-mounted
Ethernet bus fault injection test method and
system based on CANoe, and the test method comprises the following steps: 1, determining a
fault injection object; step 2, configuring at least two
Ethernet networks by using test
software and hardware equipment, and loading an Arxml
database; step 3, creating a virtual gateway node between the tested ECUs, and using a CAPL
programming language to realize routing and monitoring of a data packet; step 4, realizing an injection relation between the original
signal value and the changed
signal value by calling a
database and a CAPL script, and simulating a fault
signal; 5, the state of the vehicle-mounted Ethernet network is monitored in real time, and
system response after
fault injection is recorded and analyzed. The vehicle-mounted Ethernet
bus fault injection testing method and
system based on the CANoe can be used for simulating fault phenomena of a whole vehicle under various working conditions, and related actions are made and fault information is recorded when abnormal signals are detected and received.