Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

本项目遵循面向用户的变更记录格式。版本号在正式发布前可能继续调整。

## [0.1.30] - 2026-11-22

### 改进

- 协议解析的左侧数据面板默认收窄,窗口放大时为曲线留出更多空间。拖动分隔条可调整面板宽度,收起面板后继续采集并显示图例。
- 单模板时设备地址单独显示,多模板时来源同时显示地址和模板名。悬停在当前值上可查看更新时间,拉宽面板可显示时间列。「编辑协议」移至模板列表旁。
- 曲线区按当前状态提示等待数据或勾选字段。多设备曲线默认以线条显示,便于比较重叠的波形。

## [0.1.29] - 2026-11-17

### 新增
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21)

project(
FluentSerialAssistant
VERSION 0.1.29
VERSION 0.1.30
DESCRIPTION "A Fluent Qt serial assistant prototype"
LANGUAGES CXX
)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ macOS 版本未经 Apple 公证,首次打开被系统阻止时,请在“系
可上下拖动数据字段调整顺序,载荷偏移随之更新。字段值按“原始值 × 倍率 + 加值”换算,保存后生效。字节图始终显示,字段列表的色块和 HEX 底色与字节图对应;点击字节图或列表中的字段可联动查看属性;新建或切换到没有保存样例的模板、修改协议配置时,会自动生成匹配样例,并重算长度和校验;也可直接粘贴 HEX 或使用“最新接收”分析实际数据;这类样例在修改名称、倍率等配置时保留原始字节,清空样例后继续编辑可恢复自动生成。样例缺少数据时明确显示缺失字节数。
2. 同一总线上有多个设备时,设置地址字节数和地址在整帧中的偏移,解析窗口会按地址的 HEX 字节分组;不区分地址时选择“不区分设备地址”。同一个模板最多定义 32 个载荷字段,未定义时按载荷字节显示 CH1、CH2 等。
3. 勾选左侧协议模板的“启用”即可打开解析窗口;关闭窗口后可点击“解析数据与曲线”再次打开,沿用当前协议和曲线勾选。需要解析多种帧格式时,在窗口中勾选多个模板。
4. 列表显示各设备字段的当前值和更新时间,勾选“曲线”即可绘制,共用以秒为单位的时间轴。点击窗口顶部“配置”可收起或展开左侧模板与字段列表,收起后继续采集和绘图,并显示图例以区分设备曲线。窗口最多显示 256 个数据字段,同时绘制 32 条曲线;曲线保留最近 12,000 个点。关闭后再次打开或重启应用会保留曲线勾选。
4. 列表显示设备地址、字段和当前值。勾选多个模板时,来源同时显示地址和模板名。悬停在当前值上可查看更新时间,拉宽左侧面板也可显示时间列。勾选“曲线”即可绘制,共用以秒为单位的时间轴。点击顶部“数据面板”可收起或展开左侧,收起后继续采集和绘图,并显示图例。窗口最多显示 256 个数据字段,同时绘制 32 条曲线;曲线保留最近 12,000 个点。关闭后再次打开或重启应用会保留曲线勾选。
5. 暂停、隐藏、最小化或关闭窗口时停止采集;清空后保留字段和勾选,更改参与解析的模板或保存模板修改后清空历史。校验失败的帧不更新数值,缺少的字段显示“—”。原始串口流按模板长度字段或固定载荷长度重组分批接收的数据;没有长度信息时,请在接收设置中先配置断帧。已断帧的数据块会跳过长度越界的残缺候选,继续解析后续帧;原始流仍等待声明长度,避免误切载荷中的帧头。

### 曲线窗口
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The macOS build is not notarized by Apple. If macOS blocks it on first launch, c
Drag data rows up or down to reorder fields and update their payload offsets. Values use `raw × scale + add`; save to apply. The byte map stays visible, with matching color swatches and HEX cell backgrounds in the field list. Selecting a byte or row opens its properties. Creating a template, selecting a template without a saved sample, or editing its configuration automatically generates enough payload bytes and recalculates length and checksum. You can also paste HEX or use **Latest received frame** to inspect actual data; these samples retain their original bytes when names, scaling, or other settings change. Clear the sample and continue editing to resume generation. Incomplete samples report the missing byte count.
2. For a bus with multiple devices, set the address size and its byte offset in the whole frame. Data is grouped by the address's HEX bytes. Choose **No device address grouping** to combine frames from a template. Each template supports 32 payload fields; without definitions, payload bytes appear as CH1, CH2, and so on.
3. Check **Enable** in the sidebar to open analysis with the current template. Use **Data and plot analysis** to reopen the window with the same protocol and curve choices. Check additional templates in the window to parse several frame formats.
4. The list shows current values and update times for each device's fields. Check **Plot** to draw them on a shared time axis in seconds. Use **Configure** in the toolbar to hide or show the template and field list; capture and plotting continue while it is hidden, with a legend identifying each device curve. The window displays up to 256 fields and 32 curves at a time, retaining the latest 12,000 points per curve. Curve choices survive closing the window and restarting the app.
4. The list shows device addresses, fields, and current values. When multiple templates are checked, it also shows each template name. Hover over a value to see when it was updated, or widen the panel to show the time column. Check **Plot** to draw fields on a shared time axis in seconds. Use **Data panel** to hide or show the left panel. Capture continues and the chart shows a legend when the panel is hidden. The window displays up to 256 fields and 32 curves at a time, retaining the latest 12,000 points per curve. Curve choices survive closing the window and restarting the app.
5. Pausing, hiding, minimizing, or closing the window stops capture. Clearing keeps fields and curve choices; changing enabled templates or saving template changes clears history. Frames with invalid checksums do not update values; missing fields show “—”. Length fields or a fixed payload length let analysis reassemble raw serial reads; configure receive framing first for templates without length information. Within a completed receive block, incomplete length candidates are skipped so later frames can be decoded. Raw streams continue waiting for the declared length, preserving headers that occur inside payloads.

### Plot windows
Expand Down
Binary file modified docs/images/protocol-analysis-en-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/protocol-analysis-en-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/protocol-analysis-zh-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/protocol-analysis-zh-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions docs/release-notes/v0.1.30.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
协议解析窗口为实时曲线留出了更多空间。

- 左侧「数据面板」默认收窄,可拖动分隔条调整宽度。收起后曲线占满窗口,继续采集并显示图例。
- 单模板时显示设备地址,多模板时同时显示模板名。悬停在当前值上可查看更新时间,拉宽面板可显示时间列。「编辑协议」现在位于模板列表旁。
- 未开始绘图时,曲线区会提示等待数据或勾选字段。多设备曲线默认用线条显示,重叠的波形更容易区分。

## English

The protocol analysis window gives live plots more room.

- The left **Data panel** starts narrower. Drag the divider to resize it. Hiding the panel gives the plot the full width and shows a legend while capture continues.
- With one template selected, the list shows device addresses. With multiple templates, it also shows their names. Hover over a reading for its update time, or widen the panel to see the time column. **Edit protocol** now sits beside the template list.
- When there is no plot yet, the chart area shows the next step. The default line display makes overlapping device curves easier to compare.
Binary file modified src/app/resources/i18n/fluentserialassistant.en_US.qm
Binary file not shown.
24 changes: 18 additions & 6 deletions src/app/resources/i18n/fluentserialassistant.en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,28 @@ Displayed = raw × %3 + %4</translation>
<translation>Templates to parse</translation>
</message>
<message>
<source>勾选字段即可显示曲线;载荷字段、倍率和设备地址在编辑协议中设置。</source>
<translation>Check fields to plot them. Configure payload fields, scaling, and device addresses in Edit protocol.</translation>
<source>数据面板</source>
<translation>Data panel</translation>
</message>
<message>
<source>曲线</source>
<translation>Plot</translation>
<source>启用协议解析以接收数据</source>
<translation>Enable protocol analysis to receive data</translation>
</message>
<message>
<source>点击“继续”恢复采集</source>
<translation>Click Resume to continue capturing data</translation>
</message>
<message>
<source>在数据面板中勾选要解析的模板</source>
<translation>Check a template in the data panel to parse its frames</translation>
</message>
<message>
<source>在数据面板中勾选要绘制的字段</source>
<translation>Check a field in the data panel to plot it</translation>
</message>
<message>
<source>模板 / 地址</source>
<translation>Template / address</translation>
<source>曲线</source>
<translation>Plot</translation>
</message>
<message>
<source>更新时间</source>
Expand Down
Binary file modified src/app/resources/i18n/fluentserialassistant.zh_CN.qm
Binary file not shown.
24 changes: 18 additions & 6 deletions src/app/resources/i18n/fluentserialassistant.zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,28 @@
<translation>参与解析的模板</translation>
</message>
<message>
<source>勾选字段即可显示曲线;载荷字段、倍率和设备地址在编辑协议中设置。</source>
<translation>勾选字段即可显示曲线;载荷字段、倍率和设备地址在编辑协议中设置。</translation>
<source>数据面板</source>
<translation>数据面板</translation>
</message>
<message>
<source>曲线</source>
<translation>曲线</translation>
<source>启用协议解析以接收数据</source>
<translation>启用协议解析以接收数据</translation>
</message>
<message>
<source>点击“继续”恢复采集</source>
<translation>点击“继续”恢复采集</translation>
</message>
<message>
<source>在数据面板中勾选要解析的模板</source>
<translation>在数据面板中勾选要解析的模板</translation>
</message>
<message>
<source>在数据面板中勾选要绘制的字段</source>
<translation>在数据面板中勾选要绘制的字段</translation>
</message>
<message>
<source>模板 / 地址</source>
<translation>模板 / 地址</translation>
<source>曲线</source>
<translation>曲线</translation>
</message>
<message>
<source>更新时间</source>
Expand Down
Loading
Loading