A2L File Management

Use an A2L file to allow communication between XCP master and slave modules via XCP

An A2L file is a special description file that defines the implementation of an ECU. The information in an A2L file allows an XCP master to communicate with a slave module via an XCP connection. The formatted text file contains event and measurement definitions, and other configuration information, used for acquiring and stimulating data and to perform other functions.

To communicate with an XCP slave over CAN, an A2L file (ECU description file) must contain at least the following property information:

  • ProtocolLayerInfo

  • TransportLayerCANInfo

  • Measurements

  • DAQInfo and Events

    • MATLAB®: DAQInfo and Events content is required if using dynamic DAQ list functionality.

    • Simulink®: Because the XCP CAN Data Acquisition block uses dynamic DAQ list functionality, DAQInfo and Events content is required.

Functions

expand all

xcpA2LAccess A2L file
getCharacteristicInfoGet information about specific characteristic from A2L file
getMeasurementInfoGet information about specific measurement from A2L file
getEventInfoGet event information about specific event from A2L file

Properties

expand all

xcp.A2L PropertiesProperties of the xcp.A2L file object

Blocks

expand all

XCP CAN ConfigurationConfigure XCP slave connection

Topics

XCP Database and Communication Workflow

Workflow diagram for XCP channel and A2L database configuration.

Inspect the Contents of an A2L File

Access A2L file measurement and event information

Featured Examples