Files
soft_bus_edge/docs/UPLINK_PROTOCOL_v1.md

8 lines
604 B
Markdown
Raw Normal View History

2026-05-13 16:46:07 +08:00
# 边缘上行协议(与核心同步)
完整规范见 **softbus_daemon** 仓库:`docs/EDGE_UPLINK_PROTOCOL_v1.md`
本仓库在 `src/message_bus/ingress/EdgeUplinkWire.*` 中实现 **编码侧**(外层 `SBUP` 帧 + `DATA_RAWBUS` 内层二进制),须与核心 **逐字节一致**
**下行**`EdgeSession` 会解析核心发来的 `TREE_RESULT`**`TREE_FULL`**`frame_kind=4`),后者由 `main` 写入 manifest 中的 `localTreePath` 后,**`EdgeDeviceBus`** 会加载并 **reconcile** 串口(与核心 `devices` + `hardware` + `device_bus` 行为对齐的裁剪版)。