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:
Acquire real-time measurement data by using the XCP CAN Data Acquisition block or XCP UDP Data Acquisition block.
Attach incoming data to software interrupts by using the XCP UDP Bypass block.
Stimulate real-time measurement data by using the XCP CAN Data Stimulation or XCP UDP Data Stimulation 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.
Provide one XCP CAN Transport Layer for each XCP CAN Configuration block.
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.
See Also
XCP CAN Configuration | XCP CAN Data Acquisition | XCP CAN Data Stimulation | XCP CAN Transport Layer | XCP UDP Data Acquisition | XCP UDP Data Stimulation | XCP UDP Configuration