Can debug

From LeoKemp223/embed-ai-tool · View interactive version

Can debug is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要调试 CAN 总线通信时使用,支持通过 USB-CAN 适配器监听、发送 CAN 帧和扫描节点。

How to use this skill

Skill file

CAN 总线调试

适用场景

必要输入

依赖

执行步骤

  1. 先阅读 references/usage.md,确认操作参数。
  2. 探测环境:

```bash

python scripts/can_tool.py --detect

```

  1. 根据需求执行操作:

```bash

# 监听总线

python scripts/can_tool.py --interface pcan --channel PCAN_USBBUS1 --listen --duration 10

# 发送帧

python scripts/can_tool.py --interface pcan --channel PCAN_USBBUS1 --send --id 0x123 --data 01,02,03

# 扫描节点

python scripts/can_tool.py --interface pcan --channel PCAN_USBBUS1 --scan --scan-range 0x001-0x0FF

```

失败分流

输出约定

示例输出格式:

结果: ✅ 监听完成,收到 15 帧
  连接: pcan PCAN_USBBUS1 500000

  [14:30:01] 0x123  [8]  01 02 03 04 05 06 07 08
  [14:30:01] 0x456  [4]  AA BB CC DD

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.