first commit
This commit is contained in:
@@ -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_PROPOSE(upsert/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 等" }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user