2024-07-02 16:17:40 +08:00
|
|
|
|
# 数据采集
|
2024-07-02 15:58:34 +08:00
|
|
|
|
|
2024-07-05 14:35:55 +08:00
|
|
|
|
## 采集程序与系统交互通道
|
|
|
|
|
|
|
|
|
|
采集程序与系统间采用Websocket方式通讯, 访问系统服务器端口: 7790
|
|
|
|
|
|
|
|
|
|
报文格式为`json`, 字符集: `utf-8`。
|
|
|
|
|
|
|
|
|
|
### 通道建立
|
|
|
|
|
|
|
|
|
|
采集程序建立连接时,需要带上自身节点ID,连接URL如下所示:
|
|
|
|
|
|
2024-07-08 14:47:06 +08:00
|
|
|
|
`ws://127.0.0.1:7790/node/{nodeId}/{version}`
|
2024-07-05 14:35:55 +08:00
|
|
|
|
|
|
|
|
|
* `nodeId`: 采集节点ID
|
|
|
|
|
* `version`: 采集节点配置版本号,无配置时为0
|
|
|
|
|
|
2024-07-05 14:40:46 +08:00
|
|
|
|
建立连接后,当{version}为0时, 会主动推送配置更新命令。
|
2024-07-05 14:35:55 +08:00
|
|
|
|
|
|
|
|
|
PS: 同一节点只允许建立一条连接。
|
|
|
|
|
|
|
|
|
|
## 通讯报文
|
|
|
|
|
|
|
|
|
|
### 报文格式
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
//命令
|
|
|
|
|
"cmd": "heartbeat",
|
|
|
|
|
//命令ID
|
|
|
|
|
"cmdId": "123123",
|
|
|
|
|
//发送时间(毫秒)
|
|
|
|
|
"time": 123123123123,
|
|
|
|
|
//数据体
|
|
|
|
|
"data": {}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 配置更新
|
2024-07-02 15:58:34 +08:00
|
|
|
|
|
2024-07-05 14:35:55 +08:00
|
|
|
|
?> 方向: `系统` -> `采集程序`
|
2024-07-02 15:58:34 +08:00
|
|
|
|
|
2024-07-05 14:35:55 +08:00
|
|
|
|
**命令:** `configUpdate`
|
2024-07-02 15:58:34 +08:00
|
|
|
|
|
2024-07-05 14:35:55 +08:00
|
|
|
|
**数据体:**
|
2024-07-03 09:22:02 +08:00
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
//版本号
|
|
|
|
|
"version": 101,
|
|
|
|
|
//配置创建时间(毫秒值)
|
|
|
|
|
"createTime": 1235235623433,
|
|
|
|
|
//节点ID
|
|
|
|
|
"nodeId": "nx10928234",
|
|
|
|
|
//链路列表
|
|
|
|
|
"links" : [
|
|
|
|
|
{
|
|
|
|
|
//链路ID
|
|
|
|
|
"linkId": "1235123",
|
|
|
|
|
//链路名称
|
|
|
|
|
"linkName": "1#风机",
|
|
|
|
|
//协议号
|
|
|
|
|
"protocol": 1,
|
|
|
|
|
//协议参数
|
|
|
|
|
"params": {},
|
2024-11-22 10:59:34 +08:00
|
|
|
|
"devices": [ {
|
|
|
|
|
//设备ID
|
|
|
|
|
"id": "11234131",
|
|
|
|
|
//设备IOT地址
|
|
|
|
|
"addr": "12341235",
|
|
|
|
|
//属性列表
|
|
|
|
|
"attrs":[
|
|
|
|
|
{
|
|
|
|
|
//属性名
|
|
|
|
|
"name": "Ia",
|
|
|
|
|
//属性类型
|
|
|
|
|
"type": "yc",
|
|
|
|
|
//是否高频属性, 0 - 不是, 1 - 是
|
|
|
|
|
"highSpeed": 1,
|
|
|
|
|
//属性参数
|
|
|
|
|
"params": {
|
|
|
|
|
//上界
|
|
|
|
|
"upBound": 9999,
|
|
|
|
|
//下界
|
|
|
|
|
"lowBound": 0,
|
|
|
|
|
//基值, default: 0
|
|
|
|
|
"base": 0,
|
|
|
|
|
//系数, default: 1
|
|
|
|
|
"coef": 1,
|
|
|
|
|
//限值1, default: 0
|
|
|
|
|
"limit1Enable": 0,
|
|
|
|
|
//限值1下限
|
|
|
|
|
"limit1Low": 123.0,
|
|
|
|
|
//限值1上限
|
|
|
|
|
"limit1High": 999.0,
|
|
|
|
|
//限值2, default: 0
|
|
|
|
|
"limit2Enable": 0,
|
|
|
|
|
//限值2上限
|
|
|
|
|
"limit2High": 999.0,
|
|
|
|
|
//限值2下限
|
|
|
|
|
"limit2Low": 0.0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Switch01",
|
|
|
|
|
"type": "yx",
|
|
|
|
|
"params": {
|
|
|
|
|
//是否取反,default: 0
|
|
|
|
|
"invert": 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
//服务列表
|
|
|
|
|
"services": [
|
|
|
|
|
{
|
|
|
|
|
//服务名
|
|
|
|
|
"name": "start",
|
|
|
|
|
//服务类型
|
|
|
|
|
"type": "yk",
|
|
|
|
|
//服务参数
|
|
|
|
|
"params": {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
//设备ID
|
|
|
|
|
"id": "11234131",
|
|
|
|
|
//设备IOT地址
|
|
|
|
|
"addr": "12341235",
|
|
|
|
|
//属性列表
|
|
|
|
|
"attrs":[
|
|
|
|
|
{
|
|
|
|
|
//属性名
|
|
|
|
|
"name": "Ia",
|
|
|
|
|
//属性类型
|
|
|
|
|
"type": "yc",
|
|
|
|
|
//是否高频属性, 0 - 不是, 1 - 是
|
|
|
|
|
"highSpeed": 1,
|
|
|
|
|
//属性参数
|
|
|
|
|
"params": {
|
|
|
|
|
//上界
|
|
|
|
|
"upBound": 9999,
|
|
|
|
|
//下界
|
|
|
|
|
"lowBound": 0,
|
|
|
|
|
//基值, default: 0
|
|
|
|
|
"base": 0,
|
|
|
|
|
//系数, default: 1
|
|
|
|
|
"coef": 1,
|
|
|
|
|
//限值1, default: 0
|
|
|
|
|
"limit1Enable": 0,
|
|
|
|
|
//限值1下限
|
|
|
|
|
"limit1Low": 123.0,
|
|
|
|
|
//限值1上限
|
|
|
|
|
"limit1High": 999.0,
|
|
|
|
|
//限值2, default: 0
|
|
|
|
|
"limit2Enable": 0,
|
|
|
|
|
//限值2上限
|
|
|
|
|
"limit2High": 999.0,
|
|
|
|
|
//限值2下限
|
|
|
|
|
"limit2Low": 0.0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Switch01",
|
|
|
|
|
"type": "yx",
|
|
|
|
|
"params": {
|
|
|
|
|
//是否取反,default: 0
|
|
|
|
|
"invert": 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
//服务列表
|
|
|
|
|
"services": [
|
|
|
|
|
{
|
|
|
|
|
//服务名
|
|
|
|
|
"name": "start",
|
|
|
|
|
//服务类型
|
|
|
|
|
"type": "yk",
|
|
|
|
|
//服务参数
|
|
|
|
|
"params": {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}]
|
|
|
|
|
},
|
2024-07-03 09:22:02 +08:00
|
|
|
|
{
|
2024-11-22 10:59:34 +08:00
|
|
|
|
//链路ID
|
|
|
|
|
"linkId": "1235112",
|
|
|
|
|
//链路名称
|
|
|
|
|
"linkName": "2#风机",
|
|
|
|
|
//协议号
|
|
|
|
|
"protocol": 12,
|
|
|
|
|
//协议参数
|
|
|
|
|
"params": {},
|
|
|
|
|
"devices": [ {
|
2024-07-03 09:22:02 +08:00
|
|
|
|
//设备ID
|
|
|
|
|
"id": "11234131",
|
2024-08-01 11:00:53 +08:00
|
|
|
|
//设备IOT地址
|
|
|
|
|
"addr": "12341235",
|
2024-07-03 09:22:02 +08:00
|
|
|
|
//属性列表
|
|
|
|
|
"attrs":[
|
|
|
|
|
{
|
|
|
|
|
//属性名
|
|
|
|
|
"name": "Ia",
|
|
|
|
|
//属性类型
|
|
|
|
|
"type": "yc",
|
2024-10-15 16:46:48 +08:00
|
|
|
|
//是否高频属性, 0 - 不是, 1 - 是
|
|
|
|
|
"highSpeed": 1,
|
2024-07-03 09:22:02 +08:00
|
|
|
|
//属性参数
|
|
|
|
|
"params": {
|
2024-07-03 09:42:10 +08:00
|
|
|
|
//上界
|
|
|
|
|
"upBound": 9999,
|
|
|
|
|
//下界
|
|
|
|
|
"lowBound": 0,
|
|
|
|
|
//基值, default: 0
|
|
|
|
|
"base": 0,
|
|
|
|
|
//系数, default: 1
|
2024-07-16 15:06:57 +08:00
|
|
|
|
"coef": 1,
|
|
|
|
|
//限值1, default: 0
|
|
|
|
|
"limit1Enable": 0,
|
|
|
|
|
//限值1下限
|
|
|
|
|
"limit1Low": 123.0,
|
|
|
|
|
//限值1上限
|
|
|
|
|
"limit1High": 999.0,
|
|
|
|
|
//限值2, default: 0
|
|
|
|
|
"limit2Enable": 0,
|
|
|
|
|
//限值2上限
|
|
|
|
|
"limit2High": 999.0,
|
|
|
|
|
//限值2下限
|
|
|
|
|
"limit2Low": 0.0
|
2024-07-03 09:22:02 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-07-03 09:42:10 +08:00
|
|
|
|
"name": "Switch01",
|
|
|
|
|
"type": "yx",
|
2024-07-03 09:22:02 +08:00
|
|
|
|
"params": {
|
2024-07-03 09:42:10 +08:00
|
|
|
|
//是否取反,default: 0
|
2024-11-22 10:59:34 +08:00
|
|
|
|
"order": 0,
|
2024-07-03 09:42:10 +08:00
|
|
|
|
"invert": 0
|
2024-07-03 09:22:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
//服务列表
|
|
|
|
|
"services": [
|
|
|
|
|
{
|
|
|
|
|
//服务名
|
|
|
|
|
"name": "start",
|
|
|
|
|
//服务类型
|
|
|
|
|
"type": "yk",
|
|
|
|
|
//服务参数
|
|
|
|
|
"params": {
|
2024-11-22 10:59:34 +08:00
|
|
|
|
"order": 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
//设备ID
|
|
|
|
|
"id": "11234131",
|
|
|
|
|
//设备IOT地址
|
|
|
|
|
"addr": "12341235",
|
|
|
|
|
//属性列表
|
|
|
|
|
"attrs":[
|
|
|
|
|
{
|
|
|
|
|
//属性名
|
|
|
|
|
"name": "Ia",
|
|
|
|
|
//属性类型
|
|
|
|
|
"type": "yc",
|
|
|
|
|
//是否高频属性, 0 - 不是, 1 - 是
|
|
|
|
|
"highSpeed": 1,
|
|
|
|
|
//属性参数
|
|
|
|
|
"params": {
|
|
|
|
|
"order": 0
|
|
|
|
|
//上界
|
|
|
|
|
"upBound": 9999,
|
|
|
|
|
//下界
|
|
|
|
|
"lowBound": 0,
|
|
|
|
|
//基值, default: 0
|
|
|
|
|
"base": 0,
|
|
|
|
|
//系数, default: 1
|
|
|
|
|
"coef": 1,
|
|
|
|
|
//限值1, default: 0
|
|
|
|
|
"limit1Enable": 0,
|
|
|
|
|
//限值1下限
|
|
|
|
|
"limit1Low": 123.0,
|
|
|
|
|
//限值1上限
|
|
|
|
|
"limit1High": 999.0,
|
|
|
|
|
//限值2, default: 0
|
|
|
|
|
"limit2Enable": 0,
|
|
|
|
|
//限值2上限
|
|
|
|
|
"limit2High": 999.0,
|
|
|
|
|
//限值2下限
|
|
|
|
|
"limit2Low": 0.0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Switch01",
|
|
|
|
|
"type": "yx",
|
|
|
|
|
"params": {
|
|
|
|
|
//是否取反,default: 0
|
|
|
|
|
"invert": 0,
|
|
|
|
|
"order": 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
//服务列表
|
|
|
|
|
"services": [
|
|
|
|
|
{
|
|
|
|
|
//服务名
|
|
|
|
|
"name": "start",
|
|
|
|
|
//服务类型
|
|
|
|
|
"type": "yk",
|
|
|
|
|
//服务参数
|
|
|
|
|
"params": {
|
|
|
|
|
"order": 0
|
2024-07-03 09:22:02 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-11-22 10:59:34 +08:00
|
|
|
|
}]
|
2024-07-03 09:22:02 +08:00
|
|
|
|
}
|
2024-11-22 10:59:34 +08:00
|
|
|
|
]
|
2024-07-03 09:22:02 +08:00
|
|
|
|
}
|
|
|
|
|
```
|
2024-07-02 16:17:40 +08:00
|
|
|
|
|
2024-07-03 13:17:59 +08:00
|
|
|
|
### 节点心跳报文
|
2024-07-02 16:45:40 +08:00
|
|
|
|
|
2024-07-03 09:22:02 +08:00
|
|
|
|
?> 方向: `采集程序` -> `系统`
|
2024-07-02 16:45:40 +08:00
|
|
|
|
|
2024-07-03 13:17:59 +08:00
|
|
|
|
**命令:** `heartbeat`
|
|
|
|
|
|
|
|
|
|
**数据体:**
|
2024-07-02 16:45:40 +08:00
|
|
|
|
```json
|
|
|
|
|
{
|
2024-07-03 13:17:59 +08:00
|
|
|
|
//心跳生存时间(毫秒)
|
|
|
|
|
"ttl": 30000,
|
|
|
|
|
//终端状态, 0 - 离线, 1 - 在线
|
|
|
|
|
"status": 0,
|
|
|
|
|
//通讯链路监控信息
|
|
|
|
|
"links": [
|
|
|
|
|
{
|
|
|
|
|
//通讯链路IRN
|
2024-07-08 14:47:06 +08:00
|
|
|
|
"linkId": "3444",
|
2024-07-03 13:17:59 +08:00
|
|
|
|
//通讯链路状态
|
|
|
|
|
"online": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-07-08 14:47:06 +08:00
|
|
|
|
"linkId": "123",
|
2024-07-03 13:17:59 +08:00
|
|
|
|
"online": false
|
|
|
|
|
}
|
2024-12-05 13:33:59 +08:00
|
|
|
|
],
|
|
|
|
|
//设备监控信息
|
|
|
|
|
"devices": [
|
|
|
|
|
{
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "1123451235464",
|
|
|
|
|
//设备状态
|
|
|
|
|
"online": true
|
|
|
|
|
}]
|
2024-07-02 16:45:40 +08:00
|
|
|
|
}
|
2024-07-05 13:42:46 +08:00
|
|
|
|
```
|
2024-07-03 17:12:41 +08:00
|
|
|
|
|
2024-07-05 13:42:46 +08:00
|
|
|
|
### 模拟量数据上报
|
2024-07-03 17:12:41 +08:00
|
|
|
|
|
2024-10-17 15:31:54 +08:00
|
|
|
|
采集程序向系统推送实时模拟量数据,此数据只刷新缓存,不归档。
|
|
|
|
|
|
2024-07-03 17:12:41 +08:00
|
|
|
|
?> 方向: `采集程序` -> `系统`
|
|
|
|
|
|
|
|
|
|
**命令:** `analogData`
|
2024-07-03 13:17:59 +08:00
|
|
|
|
|
|
|
|
|
**数据体:**
|
|
|
|
|
```json
|
|
|
|
|
{
|
2024-07-05 13:42:46 +08:00
|
|
|
|
//数据时间(毫秒)
|
|
|
|
|
"dataTime": 123123123123,
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "1123451235464",
|
|
|
|
|
"values": {
|
2024-07-03 13:17:59 +08:00
|
|
|
|
//key为属性名
|
|
|
|
|
"Ia": 123.1,
|
|
|
|
|
"Ib": 122.1,
|
2024-07-03 17:12:41 +08:00
|
|
|
|
"Ic": 123.1
|
2024-12-06 10:45:25 +08:00
|
|
|
|
},
|
|
|
|
|
//需要归档的数据
|
|
|
|
|
"archiveValues":{
|
|
|
|
|
"P": 1234.12,
|
|
|
|
|
"Q": 12
|
2024-07-03 13:17:59 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-03 17:12:41 +08:00
|
|
|
|
```
|
|
|
|
|
|
2024-07-05 13:42:46 +08:00
|
|
|
|
### 状态量数据上报
|
2024-07-03 17:12:41 +08:00
|
|
|
|
|
2024-10-17 15:31:54 +08:00
|
|
|
|
采集程序向系统推送实时状态量数据,此数据只刷新缓存,不归档。
|
|
|
|
|
|
2024-07-03 17:12:41 +08:00
|
|
|
|
?> 方向: `采集程序` -> `系统`
|
|
|
|
|
|
2024-07-05 13:42:46 +08:00
|
|
|
|
**命令:** `stateData`
|
2024-07-03 17:12:41 +08:00
|
|
|
|
|
|
|
|
|
**数据体:**
|
|
|
|
|
```json
|
|
|
|
|
{
|
2024-07-05 13:42:46 +08:00
|
|
|
|
//数据时间(毫秒)
|
|
|
|
|
"dataTime": 123123123123,
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "1123451235464",
|
|
|
|
|
"values": {
|
2024-07-03 17:12:41 +08:00
|
|
|
|
//key为属性名
|
|
|
|
|
"Switch01": 1
|
2024-12-06 10:45:25 +08:00
|
|
|
|
},
|
|
|
|
|
//需要归档的数据
|
|
|
|
|
"archiveValues":{
|
|
|
|
|
"Fault001": 0
|
2024-07-05 13:42:46 +08:00
|
|
|
|
}
|
2024-07-03 17:12:41 +08:00
|
|
|
|
}
|
|
|
|
|
```
|
2024-07-05 13:42:46 +08:00
|
|
|
|
|
2024-10-17 15:31:54 +08:00
|
|
|
|
### 历史高频数据上报
|
|
|
|
|
|
|
|
|
|
采集程序推送高频历史数据
|
2024-07-05 13:42:46 +08:00
|
|
|
|
|
|
|
|
|
?> 方向: `采集程序` -> `系统`
|
|
|
|
|
|
2024-10-17 15:31:54 +08:00
|
|
|
|
**命令:** `historyHighSpeedData`
|
2024-07-05 13:42:46 +08:00
|
|
|
|
|
|
|
|
|
**数据体:**
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
//数据时间(毫秒)
|
|
|
|
|
"dataTime": 123123123123,
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "1123451235464",
|
|
|
|
|
"values": {
|
|
|
|
|
//key为属性名
|
|
|
|
|
"Ia": 123.1,
|
|
|
|
|
"Ib": 122.1,
|
|
|
|
|
"Ic": 123.1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
2024-10-17 15:31:54 +08:00
|
|
|
|
### 历史低频数据上报
|
2024-07-05 13:42:46 +08:00
|
|
|
|
|
|
|
|
|
?> 方向: `采集程序` -> `系统`
|
|
|
|
|
|
2024-10-17 15:31:54 +08:00
|
|
|
|
**命令:** `historyLowSpeedData`
|
2024-07-05 13:42:46 +08:00
|
|
|
|
|
|
|
|
|
**数据体:**
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
//数据时间(毫秒)
|
|
|
|
|
"dataTime": 123123123123,
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "1123451235464",
|
|
|
|
|
"values": {
|
|
|
|
|
//key为属性名
|
|
|
|
|
"Switch01": 1
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-05 13:57:12 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 遥控/遥调命令请求
|
|
|
|
|
|
|
|
|
|
?> 方向: `系统` -> `采集程序`
|
|
|
|
|
|
|
|
|
|
**命令:** `deviceControl`
|
|
|
|
|
|
|
|
|
|
**数据体:**
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "1123451235464",
|
|
|
|
|
//遥控服务名
|
|
|
|
|
"serviceName": "start",
|
|
|
|
|
//操作值
|
|
|
|
|
"opValue": 1
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 遥控/遥调命令响应
|
|
|
|
|
|
|
|
|
|
?> 方向: `采集程序` -> `系统`
|
|
|
|
|
|
|
|
|
|
**命令:** `deviceControlResp`
|
|
|
|
|
|
|
|
|
|
**数据体:**
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
//操作结果
|
|
|
|
|
"result": true,
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "1123451235464",
|
|
|
|
|
//遥控服务名
|
|
|
|
|
"serviceName": "start",
|
|
|
|
|
//操作值
|
|
|
|
|
"opValue": 1
|
|
|
|
|
}
|
|
|
|
|
```
|
2024-10-28 09:36:32 +08:00
|
|
|
|
|
|
|
|
|
### 事件上报命令
|
|
|
|
|
|
|
|
|
|
采集程序向系统上报变位、越限事件
|
|
|
|
|
|
|
|
|
|
?> 方向: `采集程序` -> `系统`
|
|
|
|
|
|
|
|
|
|
**命令:** `deviceEvent`
|
|
|
|
|
|
|
|
|
|
**数据体:**
|
|
|
|
|
|
|
|
|
|
```json
|
2024-10-28 10:17:16 +08:00
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "112345123546",
|
|
|
|
|
//设备属性编码
|
|
|
|
|
"attrCode": "stop",
|
|
|
|
|
//属性值
|
|
|
|
|
"attrValue": 0,
|
2024-11-05 14:26:53 +08:00
|
|
|
|
//事件类型 ( 0-遥信变位 1-越上限 2-越下限 3-越上上限 4-越下下限 5-越限复归)
|
2024-10-28 10:17:16 +08:00
|
|
|
|
"eventType": 0,
|
|
|
|
|
//事件发生时刻
|
|
|
|
|
"eventTime": 12321351235123,
|
|
|
|
|
//限值
|
|
|
|
|
"limitValue": null
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
//设备ID
|
|
|
|
|
"deviceId": "112345123546",
|
|
|
|
|
//设备属性编码
|
|
|
|
|
"attrCode": "Ia",
|
|
|
|
|
//属性值
|
|
|
|
|
"attrValue": 12350,
|
|
|
|
|
//事件类型 ( 0-遥信变位 1-越上限 2-越下限)
|
|
|
|
|
"eventType": 0,
|
|
|
|
|
//事件发生时刻
|
|
|
|
|
"eventTime": 12321351235123,
|
|
|
|
|
//限值
|
|
|
|
|
"limitValue": 50
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
2024-10-28 09:36:32 +08:00
|
|
|
|
```
|