Loading...
Loading...
Compare original and translation side by side
skill/config.jsonskill/config.json{
"slcan_serial_port": "",
"slcan_serial_baudrate": 115200
}| 字段 | 说明 | 默认值 |
|---|---|---|
| slcan 场景的串口 | |
| slcan 场景的串口速率 | |
{
"slcan_serial_port": "",
"slcan_serial_baudrate": 115200
}| Field | Description | Default Value |
|---|---|---|
| Serial port for slcan scenario | |
| Serial baud rate for slcan scenario | |
.embeddedskills/config.json.embeddedskills/config.json.embeddedskills/config.json{
"can": {
"interface": "",
"channel": "",
"bitrate": 500000,
"data_bitrate": 2000000,
"log_dir": ".embeddedskills/logs/can"
}
}| 字段 | 说明 | 默认值 |
|---|---|---|
| CAN 后端,如 | |
| 通道名,如 | |
| 仲裁域比特率 | |
| CAN-FD 数据域比特率 | |
| 日志输出目录 | |
.embeddedskills/config.json{
"can": {
"interface": "",
"channel": "",
"bitrate": 500000,
"data_bitrate": 2000000,
"log_dir": ".embeddedskills/logs/can"
}
}| Field | Description | Default Value |
|---|---|---|
| CAN backend, e.g., | |
| Channel name, e.g., | |
| Arbitration field bit rate | |
| CAN-FD data field bit rate | |
| Log output directory | |
--interface--channel--bitrate.embeddedskills/config.jsoncan.embeddedskills/state.json--interface--channel--bitratecan.embeddedskills/config.json.embeddedskills/state.jsoninterfacechannelinterfacechannel| 子命令 | 用途 | 风险 |
|---|---|---|
| 扫描可用 CAN 接口与 USB-CAN 设备 | 低 |
| 实时监控总线报文 | 低 |
| 发送标准帧 / 扩展帧 / 远程帧 / CAN-FD 帧 | 高 |
| 记录总线报文到 ASC / BLF / CSV 文件 | 低 |
| 用 DBC 等数据库文件解码报文或日志 | 低 |
| 统计总线负载、ID 分布和帧率 | 低 |
| Subcommand | Purpose | Risk |
|---|---|---|
| Scan available CAN interfaces and USB-CAN devices | Low |
| Real-time monitoring of bus messages | Low |
| Send standard/extended/remote/CAN-FD frames | High |
| Record bus messages to ASC/BLF/CSV files | Low |
| Decode messages or logs using database files like DBC | Low |
| Statistics on bus load, ID distribution, and frame rate | Low |
python-canpip install python-canscanmonitor / send / log / statsdecodeinterfacechannelsendpython-canpip install python-canscanmonitor / send / log / statsdecodeinterfacechannelsendscripts/pythonundefinedscripts/pythonundefinedundefinedundefined{
"status": "ok",
"action": "scan",
"summary": "发现 2 个 CAN 接口",
"details": { ... }
}{
"status": "error",
"action": "send",
"error": { "code": "interface_open_failed", "message": "无法打开指定 CAN 接口" }
}{
"status": "ok",
"action": "scan",
"summary": "Found 2 CAN interfaces",
"details": { ... }
}{
"status": "error",
"action": "send",
"error": { "code": "interface_open_failed", "message": "Failed to open the specified CAN interface" }
}interfacechannel.embeddedskills/config.json--jsoninterfacechannel.embeddedskills/config.json--jsonreferences/common_interfaces.jsonreferences/common_interfaces.json