XCP-Ray ENDE Download
New in 0.47AI assistants build your measurement project: Claude, opencode or VS Code read your A2L over MCP and add pages to XCP-Ray live

XCP measurement & calibration · Linux & Windows

Look inside your ECU. Live, at 1 ms.

XCP-Ray measures and calibrates control units live: automotive ECUs over CAN and Ethernet with standard XCP and DBC, and just as well your own Arduino over USB or an ESP32 over Wi-Fi. Watch every variable as a curve, change values while the firmware runs.

1 msDAQ, several ECUs on one time base
XCPon CAN, CAN FD, UDP, TCP and USB
DBC · LDFCAN and LIN decoded, restbus in Lua
0 €every feature during the public beta

Features

One tool from the first signal to the analysis

No installation, no license dongle. Load an A2L or a DBC and start measuring – or open a log of another tool.

Measure and calibrate live

Scopes with up to ten Y axes, value, bar and array displays at up to 1 ms. Curves and maps as heat map or 3D surface – grab a point and the ECU has the new value.

A characteristic map as a rotatable 3D surface with the operating point and the selected cells marked

CAN, CAN FD, LIN

Every frame in the bus log, decoded with DBC or LDF. Nodes that are not connected simulated by the PC, with Lua scripts for counters, CRCs and logic.

DBCLDFrestbusE2ELua

Import logs

MDF4 and CSV files of other tools and CAN logs of Vector, PEAK and data loggers, decoded with your DBC.

MDF4ASCBLFTRCCSV

Record, then find the moment

All ECUs and buses in one compressed recording, with triggers, title and notes. Offline: synchronized cursors, values at the cursor, the bus frames of that moment. Export to MDF4 and CSV.

A recording opened offline: synchronized cursors in two scopes, the value and bar displays show the values at the cursor

A2L Studio

Update your A2L from a new firmware build, edit every entry in a form or as text, generate it from the ELF file. A2L files of XCPlite load as they are.

Automate

An open source Python library (MIT) reads and writes ECU values, bus signals and the restbus simulation; xcpray-cli measures from scripts and checks project files written by hand or by an AI assistant against their A2L and DBC (project check, JSON schema). AI assistants such as Claude or opencode work with XCP-Ray over MCP (xcpray-cli mcp): search the A2L, write a project, add pages to the open one.

All features
  • XCP on CAN and CAN FD with dynamic DAQ, ECU time stamps and automatic reconnect; XCP on UDP and TCP; XCP over USB serial for the kits.
  • Several ECUs at once, measured and recorded together, with live status per ECU and bus.
  • DAQ stored in the ECU (RESUME): the measurement starts with the power-up, so the first milliseconds after the boot are measured too.
  • DBC decoding: Intel and Motorola, multiplexing, value tables.
  • Restbus simulation: the PC sends the frames of nodes that are not connected; alive counters, CRCs, E2E protection and node logic from your own Lua scripts, on CAN and LIN.
  • Bus log: every frame by time or by identifier, changed bytes highlighted, decoded with its signals; also the frames of a recording or an imported CAN log, following the scope cursor.
  • LIN with LDF: listen, measure and record; simulate nodes with the PC as master or as slave (PEAK adapters).
  • Calibration in physical units: values, curves, maps, datasets as DCM, calibration pages. Parameters the ECU changes itself are pointed out and can be measured with DAQ.
  • Array display: the elements of an array as bars over their index, e.g. the cell voltages of a battery, with min, max, mean and spread.
  • Seed & Key for locked ECUs: your own command or script computes the key, the algorithm stays with you.
  • Triggers on measured values: hits marked in the recording, the window around each hit exported on its own.
  • Pages and monitors: displays on pages, page groups on a second monitor; sharp on HiDPI and 4K screens.
  • Panel: a photo of the test bench, a schematic or a dashboard with values, bars and lamps placed on it.
  • Value display rows as value, bar, lamp, switch, buttons or dial – parameters change right there.
  • State bands: gear, operating mode and other enumerations as colored bands with their texts below the curves of a scope, instead of step curves.
  • Analysis: XY display (torque over speed, or the coverage of a map on its support points), histogram with statistics and spectrum (FFT) – live or over a whole recording.
  • XCPlite: ECUs with XCPlite, the open source XCP driver by Vector, work out of the box, with structures, axes and EPK check; example: xcplite-xmc4700.
  • AI assistants over MCP (xcpray-cli mcp): Claude Code, Claude Desktop, VS Code or opencode search and read your A2L, write a checked project from a description (project create), open it in XCP-Ray and add pages with displays to the open project. No access to the ECU; with a local model nothing leaves your PC.
  • Python scripts with the open source library xcpray (MIT).
  • Adapters: PEAK, Vector and J2534 on Windows, any SocketCAN adapter on Linux.
  • Simulator: xcp-sim plays an ECU, so you can try everything without hardware.
  • Project history: every change of the project kept, one click back; after a crash XCP-Ray offers the last state.
  • Help in the program: manual, problem reports and support requests (an answer by e-mail).

Automotive

Standard XCP and DBC on one CAN bus

Load the A2L of your ECU, pick the signals, press F5. XCP-Ray plans the DAQ lists, checks the bus load and records the DBC traffic on the side.

  • PEAK, Vector, J2534 and SocketCAN adapters
  • Several ECUs and buses on one time base
  • Seed & Key, calibration pages, DCM datasets
XCP-Ray with an ECU over XCP on CAN and a vehicle bus from a DBC file on the same CAN channel: scopes with three Y axes, a value display with parameters and enumerations, a bar display with limits

One CAN channel, two sources: the ECU over XCP and the vehicle bus from its DBC, recorded together.

Makers & students

Your Arduino, ESP32 and ESP8266 become measurable ECUs

Add one library and list your global variables: plot them live, up to 100 samples per second on a Nano, and change them while the firmware runs – without reflashing.

  • Arduino Nano, Raspberry Pi Pico, STM32 over USB
  • ESP32 and ESP8266 over Wi-Fi
  • The A2L comes from your build; no XCP knowledge needed

ESP32 over Wi-Fi and an Arduino Nano over USB, measured together; Serial.print() keeps running in the console.

Arduino & ESP in four steps

From the sketch to the first curve

Open source libraries (MIT) for the Arduino IDE and PlatformIO, on GitHub. The kits are in the downloads below.

  1. Install

    Search x1xcp in the Library Manager, or add it to lib_deps in PlatformIO.

  2. Start

    Start XCP in setup(), poll it in loop():

    x1xcp::Config xcp;
    xcp.events = kEvents;
    xcp.eventCount = 2;
    x1xcp::begin(Serial, xcp);
  3. Describe

    List the variables in a2l/variables.json and build; the A2L is made from the ELF file.

  4. Measure

    Add the board in XCP-Ray and measure:

    13:16:42 > stats
    13:16:42 commands 146,
             dtos 5024

How it works

Everything on one PC

No hardware yet? The included simulator is a complete ECU on your PC: on Windows double-click start-demo.bat.

PC · XCP-Ray Scopes · values · maps measure and calibrate live A2L · DBC · LDF what ECUs and buses contain Restbus · bus log simulate nodes, every frame Recordings MDF4 · CSV, export and import Datasets DCM, save and load Script interface JSON-RPC over TCP, port 5591 USB-CAN adapter CAN / CAN FD ECU with XCP e.g. automotive ECU, XMC4700 Other bus nodes no XCP needed XCP commands: commands, calibration answers · DAQ data, ECU time stamps DBC messages, listened to restbus: frames of missing nodes Ethernet ECU with XCP on Ethernet e.g. automotive ECU with Ethernet XCP on UDP/IP: commands, calibration answers · DAQ data, ECU time stamps Wi-Fi ESP32 · ESP8266 library x1xcp XCP on UDP/IP: commands, calibration answers · DAQ data, ECU time stamps USB cable Arduino library x1xcp_serial XCP over USB serial answers · DAQ data · Serial.print() USB-LIN adapter LIN nodes master and slaves, e.g. sensors PC as LIN master or slave: frames LIN frames, decoded with the LDF Python script Control XCP-Ray through the built-in API ↑ read, write, start/stop measurement, markers ↓ values, answers

XCP-Ray on the PC talks XCP to each ECU: commands and calibration values go out, answers and measurement data (DAQ) with the time stamps of the ECU come back. CAN buses with a DBC file and LIN buses with an LDF file are listened to and decoded; nodes that are not connected are simulated by the PC (restbus). Python scripts control XCP-Ray over its script interface.

Videos

Watch it work

Recorded with the simulator and real boards.

Version 0.47.0 · public beta

Free. Unpack and start.

Every feature is free during the beta, also for commercial use – and it stays free for makers, students and personal use (FAQ). XCP-Ray is not open source. Checksums: SHA256SUMS.

A new version about every week, with fixes and what users asked for. XCP-Ray tells you about new versions (Help > Check for updates).

0.47
AI assistants (MCP): Claude, opencode or VS Code search your A2L, write a checked project, open it in XCP-Ray and add pages to the open project – xcpray-cli mcp, no access to the ECU. DAQ event and Show in signal browser right in the displays.
0.46.1
Project check: xcpray-cli project check finds wrong signal names, missing files and typos in a project file, with suggestions; the format is described by a JSON schema. A bitrate entered later in the bus dialog applies.
0.46
Analysis: XY display with the coverage of a map, histogram with statistics, spectrum (FFT) with cursor. State bands in the scope: gear or mode as colored bands with their texts.
0.45
Panel: values, bars and lamps on a photo or schematic. Value display rows as bar, lamp, switch, buttons or dial – parameters change right there. Log in colours: errors red, warnings orange.
0.44
CAN logs of Vector and PEAK (ASC, BLF, TRC) imported, raw frames kept in recordings and shown in the bus log at the scope cursor. Array display with bars; parameters measured with DAQ.
0.43
CAN logs of data loggers (MDF4, e.g. CANedge) decoded with your DBC. Fixes from tests with 800 public DBC, A2L and MDF4 files of other tools.

XCP-Ray for Windows

Tool, command line, simulator, A2L tools and an example project; unpack and start.

Windows 10 or 11, 64 bit · 15.1 MB

XCP-Ray for Linux

The same tools for Ubuntu 22.04, Debian 12 or newer.

x86-64 · glibc 2.35+ · 15.2 MB

Arduino kit

XCP over USB for AVR, Pico and STM32 boards · tested: Nano, Pico, Black Pill · 1.8 MB

ESP32 kit

XCP over Wi-Fi · tested: ESP32-WROOM-32 · 1.7 MB

ESP8266 kit

XCP over Wi-Fi · tested: NodeMCU v3 · 1.7 MB

Every change in detail: CHANGES.txt in each download.

FAQ

Good to know

Does it work with other XCP tools and ECUs?

Yes, XCP on CAN, CAN FD and UDP/IP follow the ASAM standard. Only the serial transport of the Arduino kit is specific to XCP-Ray.

Which CAN adapters are supported?

Windows: PEAK through PCAN-Basic, Vector through the XL Driver Library (CAN FD too), other vendors through their J2534 driver. Linux: any SocketCAN adapter; to let XCP-Ray set the bit rate, run sudo setcap cap_net_admin+ep bin/xcpray-gui once.

I only have an Arduino. Is XCP-Ray for me?

Yes. You need neither XCP knowledge nor a CAN adapter: the kit works over your USB cable and makes the A2L from your build.

Can I try it without hardware?

Yes. On Windows double-click start-demo.bat, on Linux start xcp-sim as the README describes.

Do I need an A2L file?

For an ECU, yes; the kits make it from your build. CAN buses only need their DBC file.

Windows warns “Windows protected your PC”. Is that a problem?

No, the programs are not signed yet. Click “More info”, then “Run anyway”.

How do I get XCP-Ray into the application menu on Linux?

Run ./install-desktop.sh once in the unpacked folder (no sudo; --remove undoes it).

Will XCP-Ray stay free?

Every feature is free during the public beta, also for commercial use. It will stay free for makers, students, teaching and personal use. Some features for professional use may need a paid license in the future. A version you have downloaded keeps working under the license it came with.

How do I get help, report a problem or get updates?

Help > Request support: describe your setup and you get an answer by e-mail, usually within 5 working days (or write to support@xcp-ray.de). Help > Report a problem and Help > Check for updates. At start XCP-Ray only asks for the newest version (off in the settings); reports are sent only when you choose.