XCP Master Mode
The Universal Measurement and Calibration Protocol (XCP) is a network protocol that you can use to connect calibration systems to electronic control units (ECUs).
A node in the network can run in either master mode or slave mode. Simulink® Real-Time™ supports XCP in master mode to replace (bypass) a subsystem of the ECU controller. The bypass model acquires input signals from the ECU system, computes the output, and stimulates the result.
To support XCP master mode, the Simulink Real-Time software provides the XCP sublibrary. You can:
Attach incoming data to software interrupts by using the XCP UDP Bypass block.
To create an XCP master model:
Provide an A2L (ASAP2) format file that contains signal, parameter, and XCP-specific network elements for the slave ECU.
Provide an XCP Configuration block to load the A2L data into the XCP database.
Simulink Real-Time supports XCP implemented by using FIFO mode CAN or real-time UDP as transport protocols.
Apply stimulus data to the slave device by using the XCP Data Stimulation block.
Acquire measurement data from the slave device by using the XCP Data Acquisition block.