feat: DG430 V2.0.3 — 波动测试模式 前端+后端同步

edc_server:
  - dg430.py: 新增0xB4解析; 0x4C扩展6字段(向后兼容)
  - models.py: tb_fixture_param DDL + upsert 新增6字段
  - handlers.py: parse_loop 添加0xB4处理; 0x4C传参扩展

edc-web:
  - fixture.py: build_4b_packet() 新增6个波动参数
  - models.py: upsert_fixture_param 字段列表扩展
  - fixture.html: 新增波动测试参数输入区(6字段)
  - fixture.js: getFormParams/fillForm/saveToDb/sendConfig 全部扩展
This commit is contained in:
wangfq
2026-06-02 18:06:14 +08:00
parent e7607481e1
commit ef796f6213
5 changed files with 71 additions and 7 deletions

View File

@@ -27,7 +27,7 @@
<label>测试模式</label>
<select id="param-test-mode">
<option value="0">0 - 灵敏度测试模式</option>
<option value="1">1 - 模拟过车模式</option>
<option value="1">1 - 波动测试模式</option>
</select>
</div>
<div class="form-group">
@@ -68,6 +68,32 @@
<label>峰峰值最大值</label>
<input type="number" id="param-peak-max" value="0">
</div>
<div class="form-group"><hr style="border-color:#eee; margin:2px 0;"></div>
<h4 style="margin:8px 0 4px 0; color:#e67e22; font-size:13px;">⚡ 波动测试参数 (TestMode=1 时生效)</h4>
<div class="form-group">
<label>最远容差 (cm)</label>
<input type="number" id="param-far-tol" value="0" min="0" max="255">
</div>
<div class="form-group">
<label>最近容差 (cm)</label>
<input type="number" id="param-near-tol" value="0" min="0" max="255">
</div>
<div class="form-group">
<label>步进容差 (cm)</label>
<input type="number" id="param-step-tol" value="0" min="0" max="255">
</div>
<div class="form-group">
<label>来回次数</label>
<input type="number" id="param-back-forth" value="0" min="0" max="255">
</div>
<div class="form-group">
<label>最近停留时间 (ms)</label>
<input type="number" id="param-near-stay" value="0" min="0" max="65535">
</div>
<div class="form-group">
<label>最远停留时间 (ms)</label>
<input type="number" id="param-far-stay" value="0" min="0" max="65535">
</div>
</div>
<div class="fixture-actions">