WaveBench icon indicating copy to clipboard operation
WaveBench copied to clipboard

protocol: 声明式自定义协议描述(非 SCPI 帧定义)

Open Epslion404 opened this issue 2 months ago • 1 comments

现状

  • 仓库已有声明式先例:src/wavebench/plugins/scpi.py::load_scpi_plugin 用 TOML 描述 SCPI 插件(见 docs/project/reference/plugins/scpi-plugin.example.toml)。
  • 但非 SCPI 的帧格式目前只能写死在驱动里,没有可声明的描述方式。

目标

给出声明式协议描述(TOML),覆盖定长/长度字段/分隔符/转义、校验和(CRC16 等)、最大帧长、帧间隔、响应超时、请求-响应映射。

验收

  • 帧格式非法、超长、校验失败必须结构化失败,不得静默丢弃或当作成功。
  • 提供示例描述文件与文档入口。
  • 与「按帧读写」合同保持一致的重放与超时语义。

Epslion404 avatar Sep 29 '26 10:09 Epslion404

这条改为在 fork 继续跟踪:https://github.com/Epslion404/wavebench/issues/4

Epslion404 avatar Sep 29 '26 10:09 Epslion404