2023年07月29日 16:20
ws://{websocket_server_ip:8082}/dvs/{DeviceId}/controlparameters
功能描述:
设置更新DVS防区各项参数,包括防区起始位置、结束位置、阈值、布防、描述等等。采用WebSocket协议传输,由ApplicationService 后台调用,通过WebSocket Server转发后,推送至DVS-Server
调用路由方向:
Application Service--> WebSocket Server --> DVS-Server
报文格式:
{
"DeviceId":"设备Id",
"Time":"2021-06-04 09:45:10",
"CommandType":"2"
"Lists": [
    {"Id": 1,
    "Name":"Zone1","Start":0,"End":1000,Threshold":1250,"Defence":"on","Description": "第2阀室"},
    {"Id": 2,
    "Name":"Zone2","Start":1001,"End":2000,Threshold":1500,"Defence":"on","Description": "第3阀室"},
    {"Id": 3,
    "Name":"Zone3","Start":2001,"End":3000,Threshold":1300,"Defence":"off","Description": "火车屏蔽"},
    {"Id": 4,
    "Name":"Zone4","Start":3001,"End":4000,Threshold":890,"Defence":"on","Description": "第4阀室"},
    ……
  ]
}
| 参数 | 描述 | 备注 | 
|---|---|---|
| DeviceId | 设备ID | 设备ID建议由注册的服务分配 | 
| Time | 当前时间 | |
| CommandType | 2 | 当设置为2时,表示设置防区信息 | 
| Lists | 数组,所有防区信息一次下发。 | |
| Id | 序号 | |
| Name | 防区名称 | |
| Start | 开始点位 | 光纤的点位,每个点代表5米 | 
| End | 结束点位 | |
| Threshold | 告警阀值 | 当该防区的振动超过阀值时,会通过updatewarn接口推送告警信息。 | 
| Defence | 是否开启布防 | 当该防区布防才会触发告警。on or off | 
| Description | 描述 |