用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/LeoKemp223/embed-ai-tool --skill can-debug命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | can-debug |
| description | 当需要调试 CAN 总线通信时使用,支持通过 USB-CAN 适配器监听、发送 CAN 帧和扫描节点。 |
python-can(pip install python-can)python scripts/can_tool.py --detect
# 监听总线
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
connection-failure:适配器未连接或驱动未安装。bus-error:CAN 总线错误(如未接终端电阻)。timeout:发送后无响应。示例输出格式:
结果: ✅ 监听完成,收到 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
build-keil / build-platformio 烧录固件后,用此 skill 验证 CAN 通信。serial-monitor 互补:serial-monitor 查看串口调试输出,can-debug 进行 CAN 协议级调试。基于 SOC 职业分类