can

Scan CAN and CAN-FD buses, capture frames, and decode messages with DBC files.

551|66|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/zhinkgit/embeddedskills --skill can
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: can
Source: https://github.com/zhinkgit/embeddedskills/tree/main/can
Command: npx skills add https://github.com/zhinkgit/embeddedskills --skill can

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-can, cantools, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Embedded developers and integrators face a recurring gap between code and hardware: discovering available CAN adapters, capturing live traffic, sending test frames, decoding messages with DBC files, and producing structured logs usually requires manual tooling and context switching. This skill consolidates those steps so an AI assistant can operate CAN interfaces end-to-end without repeated human intervention.

Core Features & Use Cases

  • Interface discovery: automatically scan USB-CAN adapters and SocketCAN interfaces and surface candidates for selection.
  • Real-time monitoring: continuous capture with ID filtering, optional CAN-FD support, and optional DBC decoding.
  • Frame sending & replay: send standard/extended/remote/CAN-FD frames once, repeatedly, or periodically and optionally listen for responses.
  • Logging & decoding: record to ASC/BLF/CSV, decode single frames or logs with DBC/ARXML/KCD using cantools.
  • Statistics & analysis: compute per-ID rates, bus load estimates, data-change counts, and export structured JSON results.
  • Use case example: scan for a connected PEAK adapter, start a monitor to decode vehicle.dbc, record to an ASC file, and produce a JSON summary for automated test verification.

Quick Start

Use the can skill to scan available CAN interfaces and start a 10 second monitor on can0 with DBC vehicle.dbc and JSON output.

Frequently Asked Questions about can

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan and discover available CAN interfaces for embedded debugging?

To scan CAN interfaces for embedded debugging, the skill automatically discovers USB-CAN adapters and SocketCAN interfaces, surfacing valid candidates for immediate hardware selection and monitoring.

How do I decode CAN bus traffic using a DBC file in real-time?

To decode CAN bus traffic using a DBC file, the skill leverages cantools to apply DBC, ARXML, or KCD definitions during live monitoring, translating raw frame IDs into structured JSON outputs.

Does python-can support logging CAN-FD frames to ASC and BLF files?

Yes, python-can supports logging CAN-FD frames to ASC and BLF files. The skill captures continuous bus traffic with optional CAN-FD support and directly records logs to ASC, BLF, or CSV formats.

What is the best way to send test frames on a CAN bus and listen for responses?

The best way to send test frames on a CAN bus is to transmit standard, extended, remote, or CAN-FD frames once, repeatedly, or periodically while simultaneously listening for hardware response messages.

Can I automate CAN bus monitoring and generate JSON summaries for test verification?

Yes, you can automate CAN bus monitoring to generate JSON summaries. The skill captures traffic, computes per-ID rates and bus load estimates, and exports structured JSON Lines for automated test verification.

Do I need specific CLI parameters to configure data bitrate for CAN-FD monitoring?

Yes, you need specific CLI parameters to configure data bitrate for CAN-FD monitoring. The skill accepts command-line arguments for interface, channel, standard bitrate, and CAN-FD data bitrate configuration.