<!-- Canonical page: https://reversedwithai.com/p/can-bus-dbc-claude-code-skill -->
Canonical page: https://reversedwithai.com/p/can-bus-dbc-claude-code-skill

# Decoded proprietary car CAN bus signals into DBC files with a Claude Code skill

> Speed and RPM off a Mercedes CAN bus in under five minutes.

A Claude Code skill correlates raw CAN frames with a reference signal and fits bit positions, scale and offset. It decoded speed and RPM on a Mercedes E350 in under five minutes, plus signals on a Hyundai and an Opel.

## Key facts

- Target: Vehicle CAN bus (Mercedes E350, Hyundai i10, Opel Astra) and a CANmod.input module
- Category: Firmware and hardware
- Platform: Automotive CAN
- Models: Claude
- Tools: Claude Code, python-can
- Outcome: Works
- Time spent (author-reported): 5-10 minutes per signal; 5-10 hours to build the skill
- Checks: Source available: yes; Repro steps: yes; Real hardware: yes; Verified by others: not reported
- Author: Martin Falch (CSS Electronics)
- Added: 2026-10-14
- Updated: 2026-10-14
- Sources reviewed: 2026-10-14 (editor)

## What was done

Martin Falch of CSS Electronics built a Claude Code skill that reverse engineers proprietary CAN bus signals into DBC files. Given a raw CAN log and a reference signal, Claude decoded speed and RPM on a 2010 Mercedes E350 in under five minutes from OBD2 reference data, plus signals on a Hyundai i10, an Opel Astra and a gauge-to-CAN test module. The README calls it an illustration, not a polished tool, and the article was updated in June 2026.

The skill is a folder of instructions, context material and small Python scripts using python-can and the CANsub interface. Falch says the scripts and `SKILL.md` were not written or reviewed by Falch personally. Falch gave Claude context, asked it to decode signals, reviewed results and asked for fixes, over 5 to 10 hours.

## The method

The workflow builds a bit-activity heatmap to set aside counters and checksums, ranks candidate fields against the reference with windowed Spearman correlation, then brute forces start bit, length, byte order and sign by R² fit. Scale and offset come from a robust line fit, with checks such as reading zero when the vehicle is stopped. References can be OBD2 data in the same log, OCR of a filmed dashboard, or a browser app where a human moves a slider in time with the real value. A reference signal is always needed, and Falch estimates 5 to 10 minutes per signal.

## What it found

On the Mercedes, speed and RPM were decoded and merged into one DBC. On the Hyundai, several OBD2 PIDs had no matching proprietary signal found. For the Opel, OCR of the dashboard worked, but the result was scaled to the dashboard reading, which ran about 7% above true speed. With the slider app, Claude decoded the first gauge and inferred the other seven.

## Trying it

You need Python 3.10 or newer, Claude Code with a Claude subscription or API billing, and for your own car a CSS Electronics CANsub with an OBD2 cable. A sample data pack lets you try it without a vehicle. Clone the repository, install the requirements, open the folder in Claude Code and ask it to decode a signal from a CSV path.

Sources:
- https://github.com/CSS-Electronics/can-bus-reverse-engineering-skills
- https://www.csselectronics.com/pages/can-bus-reverse-engineering-ai-llm-claude

## Human work and limitations

Falch provided the data and reference signals, reviewed each result and pointed out problems for Claude to fix. A decode that read -1.6 km/h while parked had to be re-anchored to zero, and invalid 'signal unavailable' values had to be masked out.

## What the commit history shows

None of the 10 commits in the public repository credits an AI. Many tools add no credit, so this does not show the AI was not used.

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/CSS-Electronics/can-bus-reverse-engineering-skills)
- [Write-up](https://www.csselectronics.com/pages/can-bus-reverse-engineering-ai-llm-claude)
- [Discussion](https://github.com/collin80/SavvyCAN/discussions/1102)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Martin Falch (CSS Electronics) (2026). Decoded proprietary car CAN bus signals into DBC files with a Claude Code skill. Reversed with AI. https://reversedwithai.com/p/can-bus-dbc-claude-code-skill
