新增编码器的devices.json
This commit is contained in:
parent
fd293b3ce0
commit
480bfdd94f
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"modbus_rtu_devices": [
|
"modbus_rtu_devices": [
|
||||||
{
|
{
|
||||||
"enabled": true,
|
"enabled": false,
|
||||||
"device_id": "rtu_temp_sensor_lab",
|
"device_id": "rtu_temp_sensor_lab",
|
||||||
"port_path": "/dev/ttyS7",
|
"port_path": "/dev/ttyS7",
|
||||||
"baud_rate": 9600,
|
"baud_rate": 9600,
|
||||||
|
|
@ -13,14 +13,15 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"enabled": false,
|
"enabled": true,
|
||||||
"device_id": "water_meter_main_gate",
|
"device_id": "rotary encoder",
|
||||||
"port_path": "/dev/ttyS7",
|
"port_path": "/dev/ttyS7",
|
||||||
"baud_rate": 9600,
|
"baud_rate": 9600,
|
||||||
"slave_id": 5,
|
"slave_id": 111,
|
||||||
"poll_interval_ms": 10000,
|
"poll_interval_ms": 5000,
|
||||||
"data_points": [
|
"data_points": [
|
||||||
{"name": "total_flow", "address": 256, "type": "FLOAT32", "scale": 1.0}
|
{"name": "count", "address": 1, "type": "INT16", "scale": 1.0},
|
||||||
|
{"name": "total_count", "address": 2, "type": "INT16", "scale": 1.0}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue