Plot any global variable live, up to 100 samples per second on a Nano, without extra Serial.print() lines.
Measurement and calibration · for ECUs and Arduino
Look inside your control unit. 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 the USB cable or an ESP32 or ESP8266 over Wi-Fi. Watch every variable as a curve, change values while the firmware runs, and automate your tests with Python scripts.
- Measure & calibrate
- XCP on CAN / CAN FDXCP on UDP / TCPXCP over USB serialA2Lcurves & mapsDCM datasets
- Buses
- CAN with DBCLIN with LDFbus monitorrestbus simulation
- Record
- live scopesMDF4 & CSV export and importtriggersoffline analysis
- Hardware
- PEAKVectorJ2534SocketCANArduino & ESP kits
- Automate
- Python APIcommand lineA2L from ELFLinux & Windows
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.
Made for Arduino, too
Change thresholds, gains and timings while the sketch runs and see the effect at once.
One library, one list of variables; the kit makes the A2L file after every build. How it works
One CAN channel, two sources: the ECU over XCP and the vehicle bus from its DBC, recorded together on one time base.
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. Stored in the ECU (RESUME mode), the DAQ lists start with its power-up, so the first milliseconds after the boot are measured too.
- XCP on CAN and CAN FD with dynamic DAQ, ECU time stamps and automatic reconnect.
- Several ECUs at once, measured and recorded together, with live status per ECU and bus.
- DBC decoding: Intel and Motorola, multiplexing, value tables.
- Restbus simulation: the PC sends the frames of nodes that are not connected; pick the frames, change their values live. Alive counters, CRCs and E2E protection from your own Lua scripts, called at every transmission, on CAN and LIN. The same scripts simulate the logic of a node: values over time, frames that drop out, answers to received frames within a millisecond.
- Bus log: every frame of a CAN or LIN bus by time or by identifier, changed bytes highlighted, each frame decoded with its signals and their bytes.
- LIN with LDF: listen, measure and record a LIN bus; simulate nodes with the PC as master or as slave (PEAK adapters).
- Calibration in physical units: values, curves, maps as heat map or 3D surface, datasets as DCM.
- Python scripts with the open source library xcpray (MIT): ECU values, signals of CAN and LIN buses, the restbus simulation.
- Adapters: PEAK, Vector and J2534 on Windows, any SocketCAN adapter on Linux.
- Seed & Key for locked ECUs: your own command or script computes the key, the algorithm stays with you.
- Calibration pages: switch between the reference page and the working page of an ECU, and copy one onto the other.
- XCPlite: ECUs with XCPlite, the open source XCP on Ethernet driver by Vector, work out of the box; its A2L files load as they are, with structures, axes and EPK check, and texts of
XcpPrintshow up in the log. Example for a microcontroller without TCP/IP stack: xcplite-xmc4700 (FreeRTOS, MIT). - Triggers on measured values: hits marked in the recording, the window around each hit exported on its own.
- Project history: every change of the project kept with what changed, one click back; after a crash XCP-Ray offers the last state.
ESP32 over Wi-Fi (XCP on UDP/IP) and an Arduino Nano over USB, measured together. The Nano's Serial.print() output keeps running in the console.
Your Arduino, ESP32 and ESP8266 become measurable ECUs
Add one library and list your global variables: plot them live and change them while the firmware runs, without reflashing.
- Arduino Nano, Raspberry Pi Pico and STM32 boards over USB;
Serial.print()keeps working in the console. - ESP32 and ESP8266 over Wi-Fi (XCP on UDP/IP).
- Open source libraries (MIT) for the Arduino IDE and PlatformIO, on GitHub.
- The A2L comes from your build: addresses from the ELF file, units from a short JSON list.
-
Install the library: search
x1xcpin the Library Manager, or add it tolib_depsin PlatformIO. -
Start XCP in
setup(), poll it inloop():x1xcp::Config xcp; xcp.events = kEvents; xcp.eventCount = 2; x1xcp::begin(Serial, xcp);
-
List the variables in
a2l/variables.jsonand build; the A2L is made from the ELF file. -
Add the board in XCP-Ray and measure:
13:16:42 > stats 13:16:42 commands 146, dtos 5024, bad frames 0
Features
Up to ten Y axes, stacked bands, min/max envelopes and synchronized cursors.
Parameters in physical units, curves as a graph, maps as a heat map or 3D surface with a table.
All ECUs and buses on one time base in one compressed .x1rec file that opens instantly, with your title and notes, export to ASAM MDF4 and CSV. MDF4 and CSV files of other tools open as recordings too; CAN logs of data loggers (e.g. CANedge) in MDF4 are decoded with your DBC.
Scopes, tables, bars, consoles and notes on pages; page groups on a second monitor. Sharp on HiDPI and 4K screens: the UI follows the scale of your monitor or a size of your choice.
x1-a2l-studio updates your A2L from a new firmware build and turns arrays into curves and maps; units and factors come from rules, from the typedef names (T_0p1_degC) or from a Lua script, and every entry of the A2L can be edited in a form or as text, with undo. A2L files of Vector's open source XCPlite load as they are, with structures and EPK check, and arrays of measurements, such as the cell voltages of a battery, are measured element by element; value blocks, texts, curve axes and rescale axes are understood as well.
xcp-sim plays an ECU, so you can try everything without hardware; xcpray-cli measures from scripts.
Free during the public beta. Version 0.43.0
Every feature is free during the beta, also for commercial use; free for makers, students and personal use also later (FAQ). XCP-Ray is not open source. Checksums: SHA256SUMS.
- 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.
- 0.42
- DAQ configuration stored in the ECU with RESUME: measure from the first millisecond after the power-up. Elements of value blocks, texts, curve and rescale axes.
- 0.41
- Arrays of measurements measured element by element, e.g. the cell voltages of a battery. Help > Request support: an answer by e-mail, usually within 5 working days.
- 0.40.1
- XCP on CAN FD set in the ECU dialog, also on a channel shared with a CAN FD bus. Closer bus load estimate on CAN FD.
- 0.40
- MDF4 import: MDF 4.x files of other tools become recordings. A2L editor in A2L Studio for every entry. Text messages of the ECU in the log, UI size for large monitors.
- 0.39
- Node logic in Lua: values over time, frames that drop out, answers to received frames within a millisecond. Restbus scripts also on LIN. A2L files of XCPlite load completely, with EPK check.
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.
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).
Do I need an A2L file?
For an ECU, yes; the kits make it from your build. CAN buses only need their DBC file.
Can I try it without hardware?
Yes. On Windows double-click start-demo.bat, on Linux start xcp-sim as the README describes.
Will XCP-Ray stay free?
XCP-Ray is in its public beta: every feature is free, 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.