跳转至

部署平台领域模型

部署平台领域涵盖从为 ARM 目标交叉编译 Sensing Server,到管理运行 Armbian 的电视盒子设备的所有内容:设备配置、二进制部署、配置信息亭显示以及协调多房间安装。它弥合了 Sensing Server 领域(负责生成二进制文件)与其运行的物理硬件之间的差距。

本文档使用领域驱动设计(DDD)来定义系统:拥有自身数据和规则的限界上下文、强制实施不变量的聚合根、承载含义的值对象,以及连接一切的领域事件。

限界上下文:

# 上下文 职责 关键 ADR 代码
1 设备管理 电视盒子部署的设备清单、设备配置、健康监控和 OTA 更新 ADR-046 scripts/deploy/, config/armbian/
2 交叉编译 aarch64 构建流水线、二进制打包、CI/CD 发布产物 ADR-046 .github/workflows/, Cross.toml
3 显示信息亭 HDMI 输出管理、Chromium 信息亭模式、屏幕旋转、自动启动 ADR-046 config/armbian/kiosk/
4 WiFi CSI 桥接 自定义 WiFi 驱动 CSI 提取、协议转换为 ESP32 二进制格式 ADR-046 tools/csi-bridge/
5 网络拓扑 ESP32 网状网络 ↔ 电视盒子连接、专用 AP 模式、多房间路由 ADR-046, ADR-012 config/armbian/network/

领域驱动设计规范

通用语言

术语 定义
设备 运行 Armbian 并部署了 Sensing Server 的电视盒子,作为设备群中的受管设备对待
设备群 跨多房间或多站点安装中的所有设备集合
部署包 自包含归档,包含目标架构的 sensing-server 二进制文件、systemd 单元、配置和安装脚本
信息亭模式 Chromium 以全屏、无 UI 模式运行,指向 localhost:3000,并在通过 HDMI 连接的设备上由 systemd 自动启动
CSI 桥接 一个用户空间守护进程,从修补过的 WiFi 驱动读取 CSI 数据,并将其重新编码为供 Sensing Server 使用的 ESP32 兼容 UDP 帧
专用 AP 电视盒子上可选的由 hostapd 管理的 WiFi 接入点,为 ESP32 节点创建隔离网络
OTA 更新 空中二进制替换:下载新的 sensing-server 二进制文件,校验和验证,通过原子重命名交换,重启服务
参考设备 已针对 Armbian + sensing-server 部署进行测试和验证的电视盒子型号(例如 T95 Max+ / S905X3)
设备配置 设备的首次设置:将 Armbian 刷写到 SD 卡、部署包、配置 WiFi、启动服务
健康信标 每台设备定期发送到中央协调器(如果为多房间)的 JSON 负载,包含运行时间、CPU 温度、内存使用率、推理延迟和已连接 ESP32 数量

限界上下文

1. 设备管理上下文

职责: 跟踪已部署的电视盒子设备、配置新设备、监控健康状态,并协调整个设备群的 OTA 更新。

+------------------------------------------------------------+
|            Appliance Management Context                    |
+------------------------------------------------------------+
|                                                            |
|  +----------------+    +----------------+                  |
|  |  Device        |    |  Provisioning  |                  |
|  |  Registry      |    |  Service       |                  |
|  |  (fleet state) |    |  (first-time   |                  |
|  |                |    |   setup)       |                  |
|  +-------+--------+    +-------+--------+                  |
|          |                     |                           |
|          +----------+----------+                           |
|                     v                                      |
|          +-------------------+                             |
|          |  Health Monitor   |                             |
|          |  (beacon receiver,|                             |
|          |   thermal alerts, |                             |
|          |   connectivity)   |                             |
|          +--------+----------+                             |
|                   v                                        |
|          +-------------------+                             |
|          |  OTA Updater      |                             |
|          |  (binary swap,    |                             |
|          |   rollback,       |                             |
|          |   checksum verify)|                             |
|          +-------------------+                             |
|                                                            |
+------------------------------------------------------------+

聚合:

/// Aggregate Root: A managed TV box appliance in the fleet.
/// Identified by MAC address of the primary Ethernet interface.
pub struct Appliance {
    /// Unique device identifier (Ethernet MAC address).
    pub device_id: DeviceId,
    /// Human-readable name (e.g., "living-room", "bedroom-1").
    pub name: String,
    /// Hardware model (e.g., "T95 Max+ S905X3").
    pub hardware_model: HardwareModel,
    /// Current deployment state.
    pub state: ApplianceState,
    /// Installed sensing-server version.
    pub server_version: SemanticVersion,
    /// Network configuration.
    pub network: NetworkConfig,
    /// Last received health beacon.
    pub last_health: Option<HealthBeacon>,
    /// Provisioning timestamp.
    pub provisioned_at: DateTime<Utc>,
    /// Connected ESP32 node IDs (from last beacon).
    pub connected_nodes: Vec<u8>,
}

/// Lifecycle states for an appliance.
pub enum ApplianceState {
    /// SD card prepared, not yet booted.
    Provisioned,
    /// Booted and running, health beacons received.
    Online,
    /// No health beacon for >5 minutes.
    Unreachable,
    /// OTA update in progress.
    Updating,
    /// Manual maintenance / stopped.
    Offline,
    /// Thermal throttling or hardware issue detected.
    Degraded,
}

值对象:

/// Hardware model specification for a TV box.
pub struct HardwareModel {
    /// Marketing name (e.g., "T95 Max+").
    pub name: String,
    /// SoC identifier (e.g., "Amlogic S905X3").
    pub soc: String,
    /// WiFi chipset (e.g., "RTL8822CS").
    pub wifi_chipset: String,
    /// Total RAM in MB.
    pub ram_mb: u32,
    /// eMMC storage in GB.
    pub emmc_gb: u32,
    /// Whether CSI bridge is supported for this WiFi chipset.
    pub csi_bridge_supported: bool,
    /// Armbian device tree name (e.g., "meson-sm1-sei610").
    pub armbian_dtb: String,
}

/// Periodic health report from an appliance.
pub struct HealthBeacon {
    pub device_id: DeviceId,
    pub timestamp: DateTime<Utc>,
    pub uptime_secs: u64,
    pub cpu_temp_celsius: f32,
    pub cpu_usage_percent: f32,
    pub memory_used_mb: u32,
    pub memory_total_mb: u32,
    pub disk_used_percent: f32,
    pub inference_latency_ms: f32,
    pub connected_esp32_nodes: Vec<u8>,
    pub server_version: SemanticVersion,
    pub csi_frames_per_sec: f32,
    pub websocket_clients: u32,
}

/// Network configuration for an appliance.
pub struct NetworkConfig {
    /// Primary IP address (Ethernet or WiFi client).
    pub ip_address: IpAddr,
    /// Whether the appliance runs a dedicated AP for ESP32 nodes.
    pub dedicated_ap: Option<DedicatedApConfig>,
    /// UDP port for ESP32 CSI reception.
    pub csi_udp_port: u16,  // default: 5005
    /// HTTP port for sensing server.
    pub http_port: u16,     // default: 3000
}

/// Configuration for a dedicated WiFi AP hosted by the appliance.
pub struct DedicatedApConfig {
    /// SSID for the ESP32 mesh network.
    pub ssid: String,
    /// WPA2 passphrase.
    pub passphrase: String,
    /// Channel (1-11 for 2.4 GHz).
    pub channel: u8,
    /// DHCP range for connected ESP32 nodes.
    pub dhcp_range: (IpAddr, IpAddr),
}

/// Unique device identifier (Ethernet MAC).
pub struct DeviceId(pub [u8; 6]);

/// Semantic version for tracking installed software.
pub struct SemanticVersion {
    pub major: u16,
    pub minor: u16,
    pub patch: u16,
    pub pre: Option<String>,
}

领域服务: - ProvisioningService — 生成带有预配置部署包、WiFi 凭据和 systemd 单元的 Armbian SD 卡镜像 - HealthMonitorService — 监听来自设备群的 UDP 健康信标,在热节流(>80°C)、不可达(>5 分钟)或高内存使用率(>90%)时触发告警 - OtaUpdateService — 从发布 URL 下载新二进制文件,验证 SHA-256 校验和,执行原子替换(rename(new, current)),重启 systemd 服务,如果健康信标在 60 秒内失败则回滚

不变量: - 设备 ID(MAC 地址)在配置后不可变 - 如果当前 CPU 温度 >75°C(热余量),OTA 更新拒绝继续 - 如果在重启后 60 秒内未收到健康信标,则自动回滚 - 专用 AP 的 SSID 不得与上游 WiFi SSID 相同


2. 交叉编译上下文

职责: 为 ARM64 目标构建 sensing-server 二进制文件,打包部署归档,并管理 CI/CD 发布工件。

+------------------------------------------------------------+
|           Cross-Compilation Context                        |
+------------------------------------------------------------+
|                                                            |
|  +----------------+    +----------------+                  |
|  |  Cross.toml    |    |  GitHub Actions|                  |
|  |  (target cfg)  |    |  CI Matrix     |                  |
|  +-------+--------+    +-------+--------+                  |
|          |                     |                           |
|          +----------+----------+                           |
|                     v                                      |
|          +-------------------+                             |
|          |  Build Pipeline   |                             |
|          |  (cross build     |                             |
|          |   --target        |                             |
|          |   aarch64-unknown-|                             |
|          |   linux-gnu)      |                             |
|          +--------+----------+                             |
|                   v                                        |
|          +-------------------+                             |
|          |  Binary Packager  |                             |
|          |  (strip, compress,|---> .tar.gz artifact        |
|          |   bundle assets,  |                             |
|          |   systemd units)  |                             |
|          +-------------------+                             |
|                                                            |
+------------------------------------------------------------+

值对象:

/// A packaged deployment archive for a target platform.
pub struct DeploymentPackage {
    /// Target triple (e.g., "aarch64-unknown-linux-gnu").
    pub target: String,
    /// Sensing server binary (stripped).
    pub binary: PathBuf,
    /// Binary size in bytes.
    pub binary_size: u64,
    /// SHA-256 checksum of the binary.
    pub checksum: String,
    /// Systemd service unit file.
    pub service_unit: String,
    /// Static web UI assets directory.
    pub ui_assets: PathBuf,
    /// Armbian configuration files (kiosk, network, etc.).
    pub config_files: Vec<PathBuf>,
    /// Setup script (runs on first boot).
    pub setup_script: PathBuf,
    /// Version being packaged.
    pub version: SemanticVersion,
}

/// Build target specification.
pub struct BuildTarget {
    /// Rust target triple.
    pub triple: String,
    /// CPU architecture description.
    pub arch: String,
    /// Whether NEON SIMD is available.
    pub has_neon: bool,
    /// Cross-compilation Docker image.
    pub cross_image: String,
    /// Binary size limit in bytes.
    pub size_limit: u64,
}

支持的目标:

目标三元组 架构 用例 大小限制
x86_64-unknown-linux-gnu x86-64 PC/笔记本电脑(现有) 30 MB
aarch64-unknown-linux-gnu ARM64 电视盒子(Armbian) 15 MB
armv7-unknown-linux-gnueabihf ARMv7 较旧的电视盒子(32 位) 12 MB
x86_64-pc-windows-msvc x86-64 Windows(现有) 30 MB

不变量: - 剥离后的二进制文件必须低于目标的大小限制 - 计算 SHA-256 校验和,并将其包含在每个部署包中 - UI 资源通过 include_dir! 嵌入二进制文件,或与其一起打包 - 无原生 GPU 依赖 — 仅 CPU 推理(candle 或 ONNX Runtime)


3. 显示信息亭上下文

职责: 管理电视盒子设备上的 HDMI 输出,以信息亭模式运行 Chromium,在启动时全屏显示传感仪表盘。

+------------------------------------------------------------+
|              Display Kiosk Context                         |
+------------------------------------------------------------+
|                                                            |
|  +----------------+    +----------------+                  |
|  |  systemd       |    |  Chromium      |                  |
|  |  autologin +   |    |  Kiosk Launch  |                  |
|  |  X11/Wayland   |    |  (full-screen, |                  |
|  |  session       |    |   no-UI bars)  |                  |
|  +-------+--------+    +-------+--------+                  |
|          |                     |                           |
|          +----------+----------+                           |
|                     v                                      |
|          +-------------------+                             |
|          |  Display Manager  |                             |
|          |  (resolution,     |                             |
|          |   rotation,       |                             |
|          |   overscan,       |                             |
|          |   sleep/wake)     |                             |
|          +-------------------+                             |
|                                                            |
+------------------------------------------------------------+

值对象:

/// Display configuration for kiosk mode.
pub struct KioskConfig {
    /// URL to display (default: "http://localhost:3000").
    pub url: String,
    /// Screen rotation in degrees (0, 90, 180, 270).
    pub rotation: u16,
    /// Whether to hide the mouse cursor.
    pub hide_cursor: bool,
    /// Auto-refresh interval in seconds (0 = disabled).
    pub auto_refresh_secs: u32,
    /// Display sleep schedule (e.g., off 23:00-06:00).
    pub sleep_schedule: Option<SleepSchedule>,
    /// Overscan compensation percentage (0-10).
    pub overscan_percent: u8,
}

/// Sleep schedule for display power management.
pub struct SleepSchedule {
    /// Time to turn display off (HH:MM local time).
    pub sleep_time: String,
    /// Time to turn display on (HH:MM local time).
    pub wake_time: String,
}

不变量: - Chromium 信息亭仅在 sensing-server systemd 单元为 active 后启动 - 如果 Chromium 崩溃,systemd 会在 5 秒内重启它(Restart=always) - 显示睡眠/唤醒在可用时使用 CEC 命令(HDMI-CEC)控制电视电源 - 不显示任何浏览器 UI 元素(地址栏、滚动条等)


4. WiFi CSI 桥接上下文

职责: 从电视盒子上打过补丁的 WiFi 驱动程序中提取 CSI 数据,并将其转换为供 sensing-server 使用的 ESP32 兼容二进制帧。这是第二阶段自定义固件路径。

+------------------------------------------------------------+
|              WiFi CSI Bridge Context                       |
+------------------------------------------------------------+
|                                                            |
|  +----------------+    +----------------+                  |
|  |  Patched WiFi  |    |  CSI Reader    |                  |
|  |  Driver        |    |  (Netlink /    |                  |
|  |  (kernel space)|    |   procfs /     |                  |
|  |  CSI hooks     |    |   UDP socket)  |                  |
|  +-------+--------+    +-------+--------+                  |
|          |                     |                           |
|          +----------+----------+                           |
|                     v                                      |
|          +-------------------+                             |
|          |  Protocol         |                             |
|          |  Translator       |                             |
|          |  (chipset CSI →   |                             |
|          |   ESP32 binary    |                             |
|          |   0xC5100001)     |                             |
|          +--------+----------+                             |
|                   v                                        |
|          +-------------------+                             |
|          |  UDP Sender       |                             |
|          |  (localhost:5005) |---> sensing-server           |
|          +-------------------+                             |
|                                                            |
+------------------------------------------------------------+

值对象:

/// Raw CSI extraction from a WiFi chipset.
pub struct ChipsetCsiFrame {
    /// Source chipset type.
    pub chipset: WifiChipset,
    /// Timestamp of extraction (kernel monotonic clock).
    pub timestamp_us: u64,
    /// Number of subcarriers (varies by chipset and bandwidth).
    pub n_subcarriers: u16,
    /// Number of spatial streams / antennas.
    pub n_streams: u8,
    /// Channel frequency in MHz.
    pub freq_mhz: u16,
    /// Bandwidth (20/40/80/160 MHz).
    pub bandwidth_mhz: u16,
    /// RSSI in dBm.
    pub rssi_dbm: i8,
    /// Noise floor estimate in dBm.
    pub noise_floor_dbm: i8,
    /// Complex CSI values (I/Q pairs) per subcarrier per stream.
    pub csi_matrix: Vec<Complex<f32>>,
    /// Source MAC address (BSSID of the AP being measured).
    pub source_mac: [u8; 6],
}

/// Supported WiFi chipsets for CSI extraction.
pub enum WifiChipset {
    /// Broadcom BCM43455 via Nexmon CSI patches.
    BroadcomBcm43455,
    /// Realtek RTL8822CS via modified rtw88 driver.
    RealtekRtl8822cs,
    /// Proposed MediaTek MT7661 research target; no public CSI export is verified.
    MediatekMt7661,
}

/// Translated frame in ESP32 binary protocol (ADR-018).
pub struct Esp32CompatFrame {
    /// Magic: 0xC5100001
    pub magic: u32,
    /// Virtual node ID assigned to this WiFi interface.
    pub node_id: u8,
    /// Number of antennas / spatial streams.
    pub n_antennas: u8,
    /// Number of subcarriers (resampled to match ESP32 format).
    pub n_subcarriers: u8,
    /// Frequency in MHz.
    pub freq_mhz: u16,
    /// Sequence number (monotonic counter).
    pub sequence: u32,
    /// RSSI in dBm.
    pub rssi: i8,
    /// Noise floor in dBm.
    pub noise_floor: i8,
    /// Amplitude values (extracted from complex CSI).
    pub amplitudes: Vec<f32>,
    /// Phase values (extracted from complex CSI).
    pub phases: Vec<f32>,
}

领域服务: - CsiExtractionService — 从经过验证的芯片组适配器读取原始 CSI。Nexmon/BCM43455 是已确立的 Linux 示例;RTL8822CS 和 MT7661 仍是未经验证的研究目标,不得宣传为可用的捕获路径。 - SubcarrierResamplerService — 对特定芯片组的子载波数量进行重采样,以匹配 ESP32 格式(例如,通过抽取或插值将 256 → 128) - ProtocolTranslatorService — 使用 ADR-018 二进制编码将 ChipsetCsiFrame 转换为 Esp32CompatFrame - CalibrationService — 补偿相对于 ESP32 CSI 的特定芯片组相位偏移、天线间距和增益差异

不变量: - 桥接器将虚拟 node_id 分配在 200-254 范围内(保留给非 ESP32 源),以避免与物理 ESP32 节点 ID(1-199)冲突 - 子载波重采样保持频率顺序(从低到高) - 相位值在编码前解卷绕(连续值,不包裹到 ±π) - 桥接守护进程仅在启动时检测到兼容的补丁驱动程序时启动


5. 网络拓扑上下文

职责: 管理 ESP32 传感器节点与电视盒子设备之间的网络连接,包括可选的专用 AP 模式和多房间路由。

+------------------------------------------------------------+
|            Network Topology Context                        |
+------------------------------------------------------------+
|                                                            |
|  +----------------+    +----------------+                  |
|  |  hostapd       |    |  DHCP Server   |                  |
|  |  (dedicated AP |    |  (dnsmasq for  |                  |
|  |   for ESP32    |    |   ESP32 nodes) |                  |
|  |   mesh)        |    |                |                  |
|  +-------+--------+    +-------+--------+                  |
|          |                     |                           |
|          +----------+----------+                           |
|                     v                                      |
|          +-------------------+                             |
|          |  Topology Manager |                             |
|          |  (node discovery, |                             |
|          |   IP assignment,  |                             |
|          |   route config)   |                             |
|          +--------+----------+                             |
|                   v                                        |
|          +-------------------+                             |
|          |  Firewall Rules   |                             |
|          |  (iptables/nft:   |                             |
|          |   allow UDP 5005, |                             |
|          |   block external  |                             |
|          |   access to ESP32 |                             |
|          |   subnet)         |                             |
|          +-------------------+                             |
|                                                            |
+------------------------------------------------------------+

值对象:

/// Network topology for a single-room deployment.
pub struct RoomTopology {
    /// Appliance acting as the aggregator.
    pub appliance: DeviceId,
    /// Whether the appliance runs a dedicated AP.
    pub dedicated_ap: bool,
    /// Connected ESP32 nodes with their assigned IPs.
    pub nodes: Vec<EspNodeConnection>,
    /// Upstream network interface (Ethernet or WiFi client).
    pub uplink_interface: String,
    /// Sensing network interface (dedicated AP or same as uplink).
    pub sensing_interface: String,
}

/// An ESP32 node's network connection to the appliance.
pub struct EspNodeConnection {
    /// ESP32 node ID (from firmware NVS).
    pub node_id: u8,
    /// MAC address of the ESP32.
    pub mac: [u8; 6],
    /// Assigned IP address (via DHCP or static).
    pub ip: IpAddr,
    /// Last CSI frame received timestamp.
    pub last_seen: DateTime<Utc>,
    /// Average CSI frames per second from this node.
    pub fps: f32,
}

领域服务: - DedicatedApService — 配置 hostapd 在电视盒子的 WiFi 接口上创建 WPA2 AP,通过 dnsmasq 分配 DHCP 地址范围,并设置 IP 转发 - NodeDiscoveryService — 监控 UDP 端口 5005 以发现新的 ESP32 节点 ID,将它们注册到拓扑中,并在节点离开时发出告警(超过 30 秒未收到帧) - FirewallService — 配置 nftables/iptables 以将 ESP32 子网与上游 LAN 隔离,仅允许 UDP 5005 入站和 HTTP 3000 出站

不变量: - 专用 AP 使用独立的 WiFi 接口或虚拟接口(不是上行链路) - 默认情况下,ESP32 子网与上游 LAN 隔离(防火墙规则) - 如果禁用专用 AP,ESP32 节点必须与设备位于同一 LAN 子网 - 节点发现不需要 mDNS 或任何发现协议——ESP32 节点通过 NVS 配置(ADR-044)被配置为使用设备的 IP


领域事件

事件 发布者 消费者 负载
ApplianceProvisioned 设备管理 设备群仪表盘 { device_id, name, hardware_model, ip }
ApplianceOnline 设备管理 设备群仪表盘 { device_id, server_version, uptime }
ApplianceUnreachable 设备管理 设备群仪表盘、告警 { device_id, last_seen, reason }
ApplianceDegraded 设备管理 设备群仪表盘、告警 { device_id, cpu_temp, reason }
OtaUpdateStarted 设备管理 设备群仪表盘 { device_id, from_version, to_version }
OtaUpdateCompleted 设备管理 设备群仪表盘 { device_id, new_version, duration_secs }
OtaUpdateRolledBack 设备管理 设备群仪表盘、告警 { device_id, attempted_version, rollback_version, reason }
BinaryBuilt 交叉编译 发布流水线 { target, version, binary_size, checksum }
事件 发布者 消费者 负载
DeploymentPackageCreated 交叉编译 设备管理 { target, version, package_url }
KioskStarted 显示 Kiosk 设备管理 { device_id, url, resolution }
KioskCrashed 显示 Kiosk 设备管理 { device_id, exit_code, restart_count }
CsiBridgeStarted WiFi CSI 桥 设备管理、感知服务器 { device_id, chipset, virtual_node_id }
CsiBridgeFailed WiFi CSI 桥 设备管理 { device_id, chipset, error }
EspNodeDiscovered 网络拓扑 设备管理 { appliance_id, node_id, mac, ip }
EspNodeLost 网络拓扑 设备管理、告警 { appliance_id, node_id, last_seen }
DedicatedApStarted 网络拓扑 设备管理 { appliance_id, ssid, channel }

上下文映射

+-------------------+          +---------------------+
| Appliance         |--------->|  Fleet Dashboard    |
| Management        | events   |  (external UI for   |
| (fleet state)     | -------> |   multi-room mgmt)  |
+--------+----------+          +---------------------+
         |
         | provisions, monitors
         v
+-------------------+          +---------------------+
| Cross-Compilation |--------->| GitHub Releases     |
| (build pipeline)  | uploads  | (binary artifacts)  |
+-------------------+          +---------------------+
         |
         | provides binary
         v
+-------------------+          +---------------------+
| Display Kiosk     |--------->| Sensing Server      |
| (Chromium on      | loads    | (upstream domain,   |
|  HDMI output)     | UI from  |  produces web UI)   |
+-------------------+          +----------+----------+
                                          ^
+-------------------+                     |
| WiFi CSI Bridge   |-----UDP 5005------>|
| (patched driver)  |  ESP32 compat      |
+-------------------+  frames            |
                                          |
+-------------------+                     |
| Network Topology  |-----UDP 5005------>|
| (ESP32 mesh       |  ESP32 frames      |
|  connectivity)    |                     |
+-------------------+                     |

关系:

上游 下游 关系 机制
交叉编译 设备管理 供应商-消费者 构建产生二进制文件;设备管理部署它
设备管理 显示 Kiosk 客户-供应商 设备管理在服务器健康后启动 Kiosk
WiFi CSI 桥 感知服务器(外部) 顺应者 桥调整其输出以匹配 ESP32 二进制协议(ADR-018)
网络拓扑 感知服务器(外部) 共享内核 两者都依赖 UDP 端口 5005 和 ESP32 节点 ID 方案
设备管理 网络拓扑 客户-供应商 设备配置决定专用 AP 是否启用

防腐层

ESP32 协议 ACL(CSI 桥)

WiFi CSI 桥将经过验证的特定芯片组 CSI 格式转换为带版本的 RuView 信封。Nexmon 是已建立的 Linux 示例;rtw88 和 mt76 在实现前需要经验证的复数 CSI 导出。虚拟节点 ID(200-254)可防止与物理 ESP32 ID 冲突,但除此之外,摄取上下文对其处理方式相同。

Armbian 平台 ACL

设备管理通过 HardwareModel 值对象抽象 Armbian 的具体细节(设备树名称、启动配置、dtb 覆盖)。更高层上下文(交叉编译、显示 Kiosk)仅依赖目标三元组(aarch64-unknown-linux-gnu)和 systemd 服务接口,而不依赖 Amlogic/Allwinner/Rockchip 内核细节。

设备群协调 ACL

对于多房间部署,每个设备都是自包含的(运行自己的感知服务器、显示和网络)。设备群仪表盘读取健康信标,但从不直接控制单个设备。OTA 更新由每个设备拉取(而非推送),使设备保持对自身状态的权威。


本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 wi/RuView