新增 Python 串口助手 serial_tool(常驻 daemon+全量日志文件即接口)取代 serial-mcp-server:@test 采集链改写 + 全库文档迁移

This commit is contained in:
2026-09-15 03:00:41 +08:00
parent 9eb1bd63b4
commit 4b5ce72e11
16 changed files with 1463 additions and 406 deletions
+5 -5
View File
@@ -140,7 +140,6 @@ STM32F4-Base/
├── test/ # 测试代码与脚本
│ ├── run_boot_test.ps1 # 自动化启动测试
│ ├── verify_log.ps1 # 日志校验脚本
│ ├── serial_capture.ps1 # 串口捕获脚本
│ ├── test_config.c/h # 测试任务配置
│ ├── ch395f_test_task.c/h # CH395F 硬件测试
│ ├── gd5f_test_task.c/h # NAND Flash 测试
@@ -175,7 +174,8 @@ STM32F4-Base/
│ ├── tests/ # 无头回归脚本 + 黄金参考(菜单像素回归 / 内容页黄金参考)
│ └── SDL2/ # SDL2 2.32.10 预编译库
├── tools/ # 开发工具
│ └── font_gen/ # 中文字体生成工具
│ ├── font_gen/ # 中文字体生成工具
│ └── serial_tool/ # Python 串口助手(常驻 daemon + CLI,见 docs/测试说明/串口助手设计说明.md)
├── ui_cn_chars.txt # 中文字体字符集
├── requirements.txt # Python 依赖清单(统一 .venv 环境,见 AGENTS.md「Python 环境」)
├── STM32F407-Demo.ioc # CubeMX 工程文件
@@ -296,10 +296,10 @@ powershell -ExecutionPolicy Bypass -File test\run_boot_test.ps1
### 串口调试
通过 `serial-mcp-server` 自主读取 USART1 串口打印:
通过仓库内置 Python 串口助手(`tools/serial_tool/`)自主读取 USART1 串口打印:
- 端口配置:`.opencode/serial_config.json`
- 详见 `docs/测试说明/serial-mcp-server_串口调试.md`
- 端口配置:`.opencode/serial_config.json`(单一配置源)
- 详见 `docs/测试说明/串口助手设计说明.md`
## 开发规范