feat(DLD110S): 0x24响应追加LOOP_MEASURE_BASE归一化基数(协议V1.1) — 修复第三方variation换算放大4倍问题

This commit is contained in:
wangfq
2026-08-26 17:29:15 +08:00
parent e43b882ca9
commit 9d90419ee0
4 changed files with 38 additions and 1 deletions
+7 -1
View File
@@ -132,7 +132,7 @@ g_hold_time = exist_mode * 30 * 20 (600 tick ≈ 30s × exist_mode, @50ms
### 5.4 0x24 读车检器参数
无 Data。响应 Data8B):
无 Data。响应 Data11B):
| 偏移 | 内容 |
|------|------|
@@ -144,6 +144,12 @@ g_hold_time = exist_mode * 30 * 20 (600 tick ≈ 30s × exist_mode, @50ms
| 5 | 线圈断开次数低字节 |
| 6 | 线圈断开次数高字节 |
| 7 | **g_function_mode**(注意:DLD154Pro 此处是 direction_mode |
| 8-10 | **归一化基数 LOOP_MEASURE_BASE3B LE= 524288**V1.1 追加) |
> ⚠ **偏移 8-10 用途(协议 V1.12026-08-26 追加)**variation 换算 ΔL/L 的归一化基数。
> 第三方应用连接后读一次 0x24 缓存该值:`Δf/f ≈ variation / LOOP_MEASURE_BASE``ΔL/L ≈ -2 × variation / LOOP_MEASURE_BASE`。
> **背景**DLD110S 的 MEASUREMENT_BASE = 5242882^19 @60MHz),与 DLD154V4B 的 131072 不同——小程序曾照搬 131072 导致所有百分比放大 4 倍。固件显式上报后第三方无需猜测。
> 向后兼容:老小程序只读前 8B 不受影响;新小程序读 11B。
### 5.5 0x8A 读写灵敏度表