255 lines
9.6 KiB
JSON
255 lines
9.6 KiB
JSON
{
|
|
"modbus":
|
|
{
|
|
"type":"rs485",
|
|
"port":"COM1",
|
|
"baudrate":9600,
|
|
"parity":"N",
|
|
"stopbits":1,
|
|
"data":8,
|
|
"ip":"127.0.0.1",
|
|
"ip_port":502
|
|
},
|
|
"slaves":[
|
|
{
|
|
"id":1,
|
|
"function_code":3,
|
|
"address":[
|
|
{
|
|
"start_addr":41984,
|
|
"quantity":7,
|
|
"bytes_per_register":2,
|
|
"language":"En",
|
|
"device_name_chn":"温湿度",
|
|
"device_name_eng":"Temperature",
|
|
"device_type":1,
|
|
"data": [
|
|
{
|
|
"comment":"在线状态",
|
|
"order":0,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"在线状态",
|
|
"title_eng":"Online",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"从节点地址跳过",
|
|
"order":1,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"",
|
|
"title_eng":"",
|
|
"display":0,
|
|
"skip":1
|
|
},
|
|
{
|
|
"comment":"温度",
|
|
"order":2,
|
|
"precision":10,
|
|
"unit":"℃",
|
|
"title_chn":"温度",
|
|
"title_eng":"T (℃) ",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"湿度",
|
|
"order":3,
|
|
"precision":1,
|
|
"unit":"%",
|
|
"title_chn":"湿度",
|
|
"title_eng":"RH (%)",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"回/出风状态跳过",
|
|
"order":4,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"回/出风状态",
|
|
"title_eng":"",
|
|
"display":0,
|
|
"skip":1
|
|
},
|
|
{
|
|
"comment":"高精度温度",
|
|
"order":5,
|
|
"precision":100,
|
|
"unit":"",
|
|
"title_chn":"高精度温度",
|
|
"title_eng":"HD T (℃)",
|
|
"display":2,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"高精度湿度",
|
|
"order":6,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"高精度湿度值",
|
|
"title_eng":"HD RH (%)",
|
|
"display":2,
|
|
"skip":0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"start_addr":41991,
|
|
"quantity":4,
|
|
"bytes_per_register":2,
|
|
"language":"en",
|
|
"device_name_chn":"温湿度告警",
|
|
"device_name_eng":"Alarm",
|
|
"device_type":6,
|
|
"data": [
|
|
{
|
|
"comment":"设备通讯状态",
|
|
"order":0,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"设备通讯状态",
|
|
"title_eng":"Online1",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"高温告警",
|
|
"order":1,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"高温告警",
|
|
"title_eng":"High Temp.",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"高湿告警",
|
|
"order":2,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"高湿告警",
|
|
"title_eng":"High Humidity",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"低温告警",
|
|
"order":3,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"低温告警",
|
|
"title_eng":"Low Temp.",
|
|
"display":1,
|
|
"skip":0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"start_addr":43520,
|
|
"quantity":4,
|
|
"bytes_per_register":2,
|
|
"language":"en",
|
|
"device_name_chn":"传感器",
|
|
"device_name_eng":"Sensor",
|
|
"device_type":99,
|
|
"data": [
|
|
{
|
|
"comment":"设备通讯状态",
|
|
"order":0,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"设备通讯状态",
|
|
"title_eng":"Online",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"门禁状态",
|
|
"order":1,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"门禁状态",
|
|
"title_eng":"Access Control",
|
|
"display":1,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"水浸传感器",
|
|
"order":2,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"水浸传感器",
|
|
"title_eng":"water ingress",
|
|
"display":1,
|
|
"skip":1
|
|
},
|
|
{
|
|
"comment":"烟雾传感器",
|
|
"order":3,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"烟雾传感器",
|
|
"title_eng":"Smoke",
|
|
"display":1,
|
|
"skip":0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"start_addr":43524,
|
|
"quantity":4,
|
|
"bytes_per_register":2,
|
|
"language":"en",
|
|
"device_name_chn":"传感器告警",
|
|
"device_name_eng":"Sensor Alarm",
|
|
"device_type":6,
|
|
"data": [
|
|
{
|
|
"comment":"设备在线",
|
|
"order":0,
|
|
"precision":10,
|
|
"unit":"",
|
|
"title_chn":"设备在线",
|
|
"title_eng":"Online",
|
|
"display":2,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"门禁告警",
|
|
"order":1,
|
|
"precision":10,
|
|
"unit":"",
|
|
"title_chn":"门禁告警",
|
|
"title_eng":"Access Control Alarm",
|
|
"display":2,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"水浸告警",
|
|
"order":2,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"水浸告警",
|
|
"title_eng":"Water ingress",
|
|
"display":2,
|
|
"skip":0
|
|
},
|
|
{
|
|
"comment":"烟雾告警",
|
|
"order":3,
|
|
"precision":1,
|
|
"unit":"",
|
|
"title_chn":"烟雾告警",
|
|
"title_eng":"Smoke",
|
|
"display":2,
|
|
"skip":0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |