ECU Measurement and Calibration Toolkit
During ECU development and Hardware-in-the-Loop (HIL) validation, it is often necessary to access internal ECU variables that are not available through regular vehicle messages. XCP (Universal Measurement and Calibration Protocol) and its predecessor CCP (CAN Calibration Protocol) provide a way to measure internal variables and adjust calibration parameters while the ECU is running.
Typical applications include:
- Measurement: Monitor internal values such as sensor readings, control states, counters, and calculated signals.
- Calibration: Modify supported ECU parameters, such as thresholds, gains, and lookup-table entries, without rebuilding the ECU software.
- HIL testing: Observe internal ECU behavior and adjust parameters while executing test scenarios.
- Debugging: Investigate ECU behavior that is not visible through normal CAN or Ethernet application messages.
CCP communicates over CAN. XCP supports multiple transports, including CAN and Ethernet (TCP or UDP), when supported by the ECU and the measurement application. In both protocols, the measurement/calibration application acts as the master, and the ECU acts as the slave.
An A2L database (ASAM MCD-2 MC) describes the ECU variables available for measurement and calibration, including their data types, addresses, conversion information, and relevant communication settings. Measurements are used to read ECU values; Characteristics describe calibration parameters that can be accessed and, when permitted by the ECU, modified. Availability and write permissions depend on the ECU implementation.
The NI ECU Measurement and Calibration Toolkit (ECUMC) integrates XCP/CCP communication with NI VeriStand through the XCP or CCP Master custom device. This documentation covers installation, configuration of a VeriStand measurement and calibration project, and execution of the supplied XCP and CCP software ECU examples.
Guide sections
- Introduction — purpose of XCP/CCP and A2L files.
- Installation — install the ECUMC toolkit.
- Project Setup — configure the VeriStand custom device and screen.
- Example Execution — run XCP on CAN, XCP over TCP/UDP, and CCP on CAN.