{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "softbus_edge_manifest", "type": "object", "required": ["coreHost", "corePort", "edgeId"], "properties": { "coreHost": { "type": "string", "description": "softbus_daemon 所在主机" }, "corePort": { "type": "integer", "description": "daemon_config edgeIngress.port" }, "edgeId": { "type": "string", "description": "HELLO / PROPOSE 与会话绑定的边缘 ID" }, "authToken": { "type": "string", "description": "若核心配置了 edgeIngress.authToken,则此处必须一致" }, "opsListenPort": { "type": "integer", "minimum": 0, "description": "0 关闭运维 HTTP;否则监听端口。默认仅 127.0.0.1;设 opsListenAllInterfaces 为 true 时监听 0.0.0.0(局域网可访问,注意安全)" }, "opsListenAllInterfaces": { "type": "boolean", "description": "false(默认)时运维 HTTP 仅绑定本机回环;true 时绑定所有网卡,便于从局域网浏览器访问" }, "localTreePath": { "type": "string", "description": "本地设备树 JSON 路径(Ops GET / 展示、TREE_FULL 落盘)。未配置时内置默认为 $HOME/softbus/edge/local_tree.json。字符串若以 $HOME/、${HOME}/ 或 ~/ 开头,会在加载时展开为当前用户家目录" }, "edgeHeartbeatIntervalMs": { "type": "integer", "minimum": 0, "description": "经 DEBUG_TUNNEL 上送边缘心跳的周期(毫秒)。载荷 JSON 含 treeRevision、nodeCount、treeFingerprint(设备树紧凑 JSON 的 qHash)。0 关闭" }, "edgeDiscoveryEnabled": { "type": "boolean", "description": "为 true 时启动 udev 串口发现:已连接核心且拿到 treeRevision 后发送 TREE_PROPOSE;无核心或 HELLO 失败时仍发现,并将 upsert/patch 写入本地 local_tree.json 与 reconcile。需 Linux libudev" }, "edgeSerialChunkQueueCapacity": { "type": "integer", "minimum": 64, "description": "启用流式 pipeline 时,每个 endpointHash 一条分帧线程对应的有界 SPSC 队列容量(与 daemon EndpointFramingState::chunkQ 语义对齐)。默认 4096" }, "edgeUseEndpointFramerThreads": { "type": "boolean", "description": "为 true(默认)时串口读回调仅 tryEnqueue 到分帧线程;为 false 时在同线程同步分帧(调试用)。主路径推荐 true" }, "plugins": { "type": "object", "description": "可选;与 softbus_daemon 的 daemon_config.plugins 形态一致。非空时启用边缘流式 framer/parser/mapper(见 README)", "properties": { "protocols": { "type": "array", "items": { "oneOf": [ { "type": "string", "description": "协议插件 .so 路径(与 manifest 同目录的相对路径可解析)" }, { "type": "object", "required": ["path"], "properties": { "path": { "type": "string", "description": "dlopen 路径,通常指向 libmodbus_rtu.so 等" } } } ] } } } } } }