-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_example.json
118 lines (118 loc) · 2.32 KB
/
config_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"service": {
"log_level": "trace",
"threads": 1
},
"slaves": [
{
"frame_type": "tcp",
"ip_address": "192.168.1.2",
"ip_port": 503
},
{
"frame_type": "tcp",
"ip_port": 502
},
{
"frame_type": "rtu",
"device": "/dev/ttyUSB0",
"baud_rate": 115200,
"character_size": 8,
"parity": "even",
"stop_bits": 1,
"flow_control": "none"
},
{
"frame_type": "ascii",
"device": "/dev/ttyUSB1",
"baud_rate": 9600,
"character_size": 8,
"parity": "none",
"stop_bits": 2,
"flow_control": "none",
"rs485": {
"rts_on_send": true,
"rts_after_send": false,
"rx_during_tx": true,
"terminate_bus": false,
"delay_rts_before_send": 1000,
"delay_rts_after_send": 2000
}
}
],
"masters": [
{
"frame_type": "tcp",
"timeout_ms": 1000,
"ip_address": "192.168.2.2",
"ip_port": 502
},
{
"frame_type": "rtu",
"timeout_ms": 1000,
"device": "/dev/ttyUSB2",
"baud_rate": 115200,
"character_size": 8,
"parity": "even",
"stop_bits": 1,
"flow_control": "none",
"unit_id": [
{
"type": "range",
"begin": 10,
"end": 20
},
{
"type": "value",
"value": 25
}
]
},
{
"frame_type": "ascii",
"timeout_ms": 1000,
"device": "/dev/ttyUSB3",
"baud_rate": 9600,
"character_size": 8,
"parity": "none",
"stop_bits": 2,
"flow_control": "none",
"rs485": {
"rts_on_send": true,
"rts_after_send": false,
"rx_during_tx": true,
"terminate_bus": false,
"delay_rts_before_send": 1000,
"delay_rts_after_send": 2000
},
"unit_id": [
{
"type": "value",
"value": 30
},
{
"type": "range",
"begin": 40,
"end": 50
},
{
"type": "value",
"value": 55
}
]
},
{
"frame_type": "tcp",
"timeout_ms": 1000,
"ip_address": "192.168.3.2",
"ip_port": 503,
"unit_id": [
{
"type": "range",
"begin": 100,
"end": 110
}
]
}
]
}