feat(ui): add DI/DO status page showing 8 inputs and 4 outputs

New read-only content page under 实时数据 → 开入开出 showing the board's
8 opto inputs (DI_A..DI_H, 合/分) and 4 relay outputs (KO6/TRIP/ERT/CLZ,
吸合/释放) as a 12-row list, 8 rows per page, 2 pages.

Data path reuses the existing de-bounced input poll instead of adding a
second hardware reader:

  defaultTask (50 ms) → ioboard_di_snap_publish() → de-bounced snapshot
    → ioboard_di_snap_lookup()  [new registration channel]
    → ui_data_feed_tick() (uiTask, 200 ms)
    → ui_data_rt_t.dio_di_* / dio_do_*

No new critical sections, no new hardware access on the UI path. Outputs
come from the volatile shadow register (a memory read, no lock).

Semantic honesty, recorded in ui_page_di_do.c and README §6:
  · Output state is the software shadow register (ODR mirror), NOT a
    mechanical contact feedback — this platform has no auxiliary contact
    readback path. ioboard_do_read_level() also reads ODR, so comparing
    the two is tautological.
  · IOBOARD_DO_LEVEL_ACTIVE polarity has not been checked against the
    schematic.
  · Input bit order has not been verified by manual shorting. The
    2026-11-16 run read 0x00 eight times because the operator had no time
    to short each channel — the data path itself was fine.
  · Board-level inputs are deliberately kept out of the 33-point telemetry
    bitmap (IEC 104 point-table semantics); the two have no mapping.

Invalid snapshots render "--", never 合/分 or 吸合/释放: painting "no data"
as "all inputs released" would tell the field the inputs are open when we
simply failed to read them.

Board-verified 2026-11-16: page 1 shows 分 on all 8 inputs, page 2 shows
释放 on all 4 outputs, page footer and paging correct. Input bit order
still pending manual shorting.

Also: regenerate ui_font_cn_12 for 吸/释, add golden references for both
pages, align check_menu_rows.py L2 geometry with the now-4-item submenu,
and register the new source file in both the Keil project and CMake.

Reviewed independently; zero blocking findings.
This commit is contained in:
2026-11-16 21:45:08 +08:00
parent bdc6f2f9b8
commit 2b466b85f0
24 changed files with 1012 additions and 300 deletions
+38 -37
View File
@@ -18,43 +18,44 @@ const ui_menu_node_t g_menu_tab[UI_MENU_TAB_COUNT] = {
{ 2, 0u, "交流量" }, /* 3 二级菜单 */
{ 2, 0u, "直流量" }, /* 4 二级菜单 */
{ 2, 0u, "遥信量" }, /* 5 二级菜单 */
{ 0, 0u, "参数定值" }, /* 6 一级菜单 */
{ 6, 0u, "整定" }, /* 7 二级菜单 */
{ 7, 1u, "参数" }, /* 8 三级菜单 */
{ 7, 1u, "定值" }, /* 9 三级菜单 */
{ 7, 1u, "控制字" }, /* 10 三级菜单 */
{ 7, 1u, "软压板" }, /* 11 三级菜单 */
{ 6, 0u, "查看" }, /* 12 二级菜单 */
{ 12, 0u, "参数" }, /* 13 三级菜单 */
{ 12, 0u, "定值" }, /* 14 三级菜单 */
{ 12, 0u, "控制字" }, /* 15 三级菜单 */
{ 12, 0u, "软压板" }, /* 16 三级菜单 */
{ 0, 0u, "三遥设置" }, /* 17 一级菜单 */
{ 17, 1u, "遥测死区" }, /* 18 二级菜单 */
{ 17, 1u, "遥测系数" }, /* 19 二级菜单 */
{ 17, 1u, "遥信类型" }, /* 20 二级菜单 */
{ 17, 1u, "遥信防抖" }, /* 21 二级菜单 */
{ 17, 1u, "双点遥信" }, /* 22 二级菜单 */
{ 0, 0u, "装置维护" }, /* 23 一级菜单 */
{ 23, 1u, "时钟设置" }, /* 24 二级菜单 */
{ 23, 1u, "强制复归" }, /* 25 二级菜单 */
{ 23, 1u, "手动录波" }, /* 26 二级菜单 */
{ 23, 1u, "清除记录" }, /* 27 二级菜单 */
{ 0, 0u, "通讯参数" }, /* 28 一级菜单 */
{ 28, 1u, "通讯设置" }, /* 29 二级菜单 */
{ 28, 1u, "网口设置" }, /* 30 二级菜单 */
{ 28, 1u, "SNTP设置" }, /* 31 二级菜单 */
{ 0, 0u, "记录查询" }, /* 32 一级菜单 */
{ 32, 0u, "SOE记录" }, /* 33 二级菜单 */
{ 32, 0u, "事故记录" }, /* 34 二级菜单 */
{ 32, 0u, "操作记录" }, /* 35 二级菜单 */
{ 32, 0u, "保护告警" }, /* 36 二级菜单 */
{ 32, 0u, "保护启动" }, /* 37 二级菜单 */
{ 32, 0u, "遥控记录" }, /* 38 二级菜单 */
{ 32, 0u, "自检记录" }, /* 39 二级菜单 */
{ 32, 0u, "运行记录" }, /* 40 二级菜单 */
{ 32, 0u, "运行报告" }, /* 41 二级菜单 */
{ 32, 0u, "录波回放" }, /* 42 二级菜单 */
{ 2, 0u, "开入开出" }, /* 6 二级菜单 */
{ 0, 0u, "参数定值" }, /* 7 一级菜单 */
{ 7, 0u, "整定" }, /* 8 二级菜单 */
{ 8, 1u, "参数" }, /* 9 三级菜单 */
{ 8, 1u, "定值" }, /* 10 三级菜单 */
{ 8, 1u, "控制字" }, /* 11 三级菜单 */
{ 8, 1u, "软压板" }, /* 12 三级菜单 */
{ 7, 0u, "查看" }, /* 13 二级菜单 */
{ 13, 0u, "参数" }, /* 14 三级菜单 */
{ 13, 0u, "定值" }, /* 15 三级菜单 */
{ 13, 0u, "控制字" }, /* 16 三级菜单 */
{ 13, 0u, "软压板" }, /* 17 三级菜单 */
{ 0, 0u, "三遥设置" }, /* 18 一级菜单 */
{ 18, 1u, "遥测死区" }, /* 19 二级菜单 */
{ 18, 1u, "遥测系数" }, /* 20 二级菜单 */
{ 18, 1u, "遥信类型" }, /* 21 二级菜单 */
{ 18, 1u, "遥信防抖" }, /* 22 二级菜单 */
{ 18, 1u, "双点遥信" }, /* 23 二级菜单 */
{ 0, 0u, "装置维护" }, /* 24 一级菜单 */
{ 24, 1u, "时钟设置" }, /* 25 二级菜单 */
{ 24, 1u, "强制复归" }, /* 26 二级菜单 */
{ 24, 1u, "手动录波" }, /* 27 二级菜单 */
{ 24, 1u, "清除记录" }, /* 28 二级菜单 */
{ 0, 0u, "通讯参数" }, /* 29 一级菜单 */
{ 29, 1u, "通讯设置" }, /* 30 二级菜单 */
{ 29, 1u, "网口设置" }, /* 31 二级菜单 */
{ 29, 1u, "SNTP设置" }, /* 32 二级菜单 */
{ 0, 0u, "记录查询" }, /* 33 一级菜单 */
{ 33, 0u, "SOE记录" }, /* 34 二级菜单 */
{ 33, 0u, "事故记录" }, /* 35 二级菜单 */
{ 33, 0u, "操作记录" }, /* 36 二级菜单 */
{ 33, 0u, "保护告警" }, /* 37 二级菜单 */
{ 33, 0u, "保护启动" }, /* 38 二级菜单 */
{ 33, 0u, "遥控记录" }, /* 39 二级菜单 */
{ 33, 0u, "自检记录" }, /* 40 二级菜单 */
{ 33, 0u, "运行记录" }, /* 41 二级菜单 */
{ 33, 0u, "运行报告" }, /* 42 二级菜单 */
{ 33, 0u, "录波回放" }, /* 43 二级菜单 */
};
/*