first commit

This commit is contained in:
flower_linux
2026-05-19 16:38:09 +08:00
parent 90ad86b4d0
commit 5e5e608dad
27 changed files with 1643 additions and 192 deletions

View File

@@ -8,15 +8,53 @@
"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:port" },
"localTreePath": { "type": "string", "description": "GET / 返回的本地树文件路径(展示用)" },
"fakeIntervalMs": { "type": "integer", "minimum": 100, "description": "假数据 DATA_RAWBUS 发送周期(毫秒)" },
"fakeDeviceId": { "type": "integer", "description": "RawBusMessage.deviceId" },
"endpoint": { "type": "string", "description": "用于 qHash(endpoint) 得到 endpointHash须与核心设备树约定一致" },
"protocol": { "type": "integer", "description": "ProtocolType 枚举数值(与核心 RawBusMessage 一致)" },
"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": "HELLO 成功后是否启动 udev 串口发现并向核心发送 TREE_PROPOSEupsert/patch需 Linux libudev"
"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 等" }
}
}
]
}
}
}
}
}
}