This commit is contained in:
flower_linux
2026-05-13 16:46:07 +08:00
commit 90ad86b4d0
52 changed files with 5251 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
{
"$schema": "./edge_manifest.schema.json",
"coreHost": "127.0.0.1",
"corePort": 18765,
"edgeId": "edge-dev-1",
"authToken": "",
"opsListenPort": 9080,
"localTreePath": "/tmp/edge_local_tree.json",
"fakeIntervalMs": 5000,
"fakeDeviceId": 1,
"endpoint": "edge:fake",
"protocol": 0,
"edgeDiscoveryEnabled": true
}

View File

@@ -0,0 +1,22 @@
{
"$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: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 一致)" },
"edgeDiscoveryEnabled": {
"type": "boolean",
"description": "HELLO 成功后是否启动 udev 串口发现并向核心发送 TREE_PROPOSEupsert/patch需 Linux libudev"
}
}
}