Files
fpv-rid-workbench/crates/web-ui/src/receivers.html
T
JiuContinent 11b71e5bf2 ```
feat(realtime): 多源观测追踪与启动配置文件支持

- 协议版本升至 3,Target 新增 sources 字段保留各接收器独立观测
- Store 改为按接收器维护 SourceObservation,基于 received_at_ms
  独立执行 TTL 过期,过期后自动 refresh 选取最新有效位置
- refresh() 按时间排序源观测,优先选取有坐标的最近记录
- rid-shared 新增 SourceObservation 结构体
- Observation 验证内联 target_id 规则,长度不超过 192
- DeviceTelemetry 扩展 raw_identity、raw_position、
  coordinate_system、position_unverified、relative_height_m
- 项目级 config.json 支持版本化配置与 sqlite.busy_timeout_ms,
  优先级:环境变量 > config.json > 旧版 maps/config.json
- web-worker 传递 sources 与 position_source 至前端
- 首页标题更新为"凌空智巡无人机监测系统"
```
2026-10-27 15:49:52 +08:00

21 lines
3.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="rx-page">
<header class="rx-heading"><div><h1>设备管理</h1><p>管理接收机连接与解码。无人机目标和地图位于实时工作台默认界面。</p></div><button class="primary" id="rx-add">+ 添加接收机</button></header>
<div class="rx-toolbar"><label>查找设备 <input id="rx-search" type="search" placeholder="名称、串口或接收机 ID"></label><span id="rx-summary" role="status">正在加载接收机…</span><button id="rx-refresh">刷新</button></div>
<p id="rx-error" class="rx-error" role="alert" hidden></p><div id="rx-cards" class="rx-cards"></div><p id="rx-empty" hidden>没有匹配的接收机。</p>
<p class="rx-footnote">切换菜单不停止后台接收。停用、修改连接或删除只影响当前接收机。</p>
</div>
<dialog id="rx-drawer" class="rx-drawer" aria-labelledby="rx-title">
<header class="rx-drawer-header"><h2 id="rx-title">接收机</h2><button id="rx-close" type="button" aria-label="关闭设备详情">×</button></header>
<div class="rx-tabs" role="group" aria-label="设备详情内容"><button id="rx-config-tab" type="button" aria-pressed="true">连接配置</button><button id="rx-diagnostic-tab" type="button" aria-pressed="false">接收诊断</button></div>
<form id="rx-form"><label>设备名称<input name="name" required maxlength="40"></label><label class="rx-enable"><input type="checkbox" name="enabled">启用此接收机</label>
<label>连接方式<select name="transport"><option value="serial">USB 串口</option><option value="udp">UDP 接收监听</option><option value="tcp-listen">TCP 接收监听</option></select></label>
<div id="rx-serial-fields"><label>串口<input name="serialPort" list="rx-port-options" placeholder="例如 COM16"><datalist id="rx-port-options"></datalist></label><label>波特率<input name="baudRate" type="number" min="1200" max="4000000" value="115200"></label></div>
<div id="rx-network-fields" hidden><label>监听 IP<input name="bindIp" value="127.0.0.1"></label><label>监听端口<input name="port" type="number" min="1" max="65535" value="8788"></label></div>
<label>报文协议<select name="format"><option value="raw">原始诊断(不生成目标)</option><option value="uid-json">UID / ua_* JSON</option><option value="rid-device-json">RID 设备 JSON(message / uav)</option><option value="json-lines">约定 JSON / JSON Lines</option><option value="postcard">约定 Postcard</option></select></label>
<p id="rx-protocol-note" class="rx-note"></p><p class="rx-footnote">只读接收,不向模块发送配置指令。更改连接参数将重启当前接收任务。</p>
<div class="rx-actions"><button class="primary" id="rx-save" type="submit">保存配置</button><button id="rx-delete" type="button">删除接收机</button></div>
</form>
<section id="rx-diagnostic" hidden><p id="rx-status-label"></p><dl id="rx-stats"></dl><button id="rx-capture" type="button">读取最新原始报文</button><pre id="rx-raw">尚未读取。最多显示最近 4 KiB。</pre></section>
<p id="rx-message" role="status"></p>
</dialog>