# 获取设备集信息
该接口可以获取当前局域网环境中所有设备集合的基本信息。
# 请求路径
{CLTPlatform-ip}:8086/processor/searchAllDevice
- 请求地址替换为对应的 ip 地址
- 请求端口号为
8086
# 请求协议
HTTP
# 请求方法
POST
# 请求参数
- 请求体的
Content-Type
请设置为application/json
参数名 | 说明 | 必填 | 类型 | 数据字典 | 限制 | 示例 |
---|---|---|---|---|---|---|
command | 指令类型 | 是 | [string] | processor/searchAllDevice | ||
data | 数据 | 是 | [object] |
# 请求示例
{
"command": "processor/searchAllDevice",
"data": {}
}
# 返回结果
参数名 | 说明 | 必填 | 类型 | 数据字典 | 限制 | 示例 |
---|---|---|---|---|---|---|
command | 指令类型 | 是 | [string] | processor/searchAllDevice | ||
code | 状态码 | 是 | [int] | 20000 | ||
message | 消息 | 是 | [string] | Common_Success | ||
data | 数据 | 是 | [object] | |||
data>>deviceSet | 设备集 | 是 | [array] | |||
data>>deviceSet>>bNetConnected | 是否通过网络连接(否则USB) | 是 | [boolean] | false | ||
data>>deviceSet>>bCurrentDeviceSet | 是否为当前使用的设备集 | 是 | [boolean] | true | ||
data>>deviceSet>>ipAddress | 设备集ip地址 | 是 | [object] | 192.168.1.102 | ||
data>>deviceSet>>deviceList | 级联的设备列表 | 是 | [array] | |||
data>>deviceSet>>deviceList>>index | 发送器序号 | 是 | [int] | |||
data>>deviceSet>>deviceList>>type | 型号定义 | 否 | [int] | |||
data>>deviceSet>>deviceList>>typeVersion | 型号版本 | 是 | [string] | X16 | ||
data>>deviceSet>>deviceList>>name | 发送器名称(UTF-8,不超过64字节) | 是 | [string] | |||
data>>deviceSet>>deviceList>>screenGroupCount | 屏幕分组数 | 是 | [int] | 1 | ||
data>>deviceSet>>deviceList>>portCount | 网口数量 | 是 | [int] |
# 返回示例
{
"code": 20000,
"command": "processor/searchAllDevice",
"data": {
"deviceSet": [{
"bCurrentDeviceSet": true,
"bNetConnected": true,
"deviceList": [{
"index": 0,
"name": "Processor",
"portCount": 400,
"screenGroupCount": 4,
"supportMaxPresetCount": 128,
"temperature": 43.33000183105469,
"type": 131107,
"typeVersion": "U9 1.00"
}],
"ipAddress": "192.168.1.10"
}]
},
"message": "Common_Success"
}
# 详细说明
* 2023.11.16 规范字段名称