Vehicle Network Toolbox

Communicating over the XCP Protocol

Vehicle Network Toolbox provides functions and blocks for communicating with ECUs via XCP—an automotive calibration protocol—over CAN bus. When communicating with ECUs over XCP, MATLAB or Simulink is the master and the ECUs are slave devices. You can communicate with multiple ECUs by opening multiple XCP channels. For each ECU, you can read and write data to specific memory locations within the ECU. When secured access to an ECU exists, you can use seed and key security to open access to the ECU. The toolbox also provides functions and blocks for linking A2L database files and for creating and viewing dynamic DAQ and STIM measurement lists for an XCP channel. These lists are established based on measurement and event information from the linked A2L file.

Model for acquiring measurements from an ECU slave device.
Model for acquiring measurements from an ECU slave device. The model uses XCP Configuration and XCP Transport Layer blocks (top left), and XCP Data Acquisition blocks (bottom left) to set up the acquisition of the PWM signal (right).
Next: Visualizing CAN Traffic

Try Vehicle Network Toolbox

Get trial software

MATLAB을 이용한 데이터 수집 환경 소개

View webinar