-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample.json
145 lines (145 loc) · 5.54 KB
/
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"Port": 4840,
"disabled,ModbusRTUs":
[
{
"NamespaceIndex": 1,
"NodeID": "KFR-35GW",
"DisplayName": "Air Conditioner KFR-35GW",
"Description": "a smart air conditioner with a temperature sensor and a humidity sensor",
"QualifiedName": "Air Conditioner",
"SerialMode": "RS485",
"DeviceLocation": "/dev/ttyUSB0",
"MB_MachineAddress": 1,
"Baud": 9600,
"Parity": "N",
"DataBits": 8,
"StopBits": 1,
"Variables":
[
{
"NamespaceIndex": 1,
"NodeID": "Switch-1",
"DisplayName": "Air Conditioner Switch-1",
"Description": "a coil value controlling the air conditioner to turn on and off",
"QualifiedName": "Air Conditioner Switch",
"VariableType": "CoilStatus",
"VariableAddress": 0,
"BitOffset": 1,
"InitialValue": 0
},
{
"NamespaceIndex": 1,
"NodeID": "WIFI-Connected-1",
"DisplayName": "Air Conditioner WIFI-Connected-1",
"Description": "a coil value indicating whether the air conditioner is connected to WIFI",
"QualifiedName": "Air Conditioner WIFI Connected",
"VariableType": "InputStatus",
"VariableAddress": 1,
"BitOffset": 2
},
{
"NamespaceIndex": 1,
"NodeID": "Temp-1",
"DisplayName": "Setted Temperature Temp-1",
"Description": "setted temperature of the air conditioner",
"QualifiedName": "Setted Temperature",
"VariableType": "HoldingRegister",
"DataType": "UINT16",
"VariableAddress": 2,
"InitialValue": 25
},
{
"NamespaceIndex": 1,
"NodeID": "Temp-2",
"DisplayName": "Indoor Temperature Temp-2",
"Description": "temperature sensor on the air conditioner",
"QualifiedName": "Indoor Temperature",
"VariableType": "InputRegister",
"DataType": "FLOAT",
"ByteOrder": "abcd",
"VariableAddress": 4
},
{
"NamespaceIndex": 1,
"NodeID": "Humid-1",
"DisplayName": "Indoor Humidity Humid-1",
"Description": "humidity sensor on the air conditioner",
"QualifiedName": "Indoor Humidity",
"VariableType": "InputRegister",
"DataType": "UINT32",
"VariableAddress": 8
}
]
}
],
"ModbusTCPs":
[
{
"NamespaceIndex": 1,
"NodeID": "KFR-35GW-2",
"DisplayName": "Air Conditioner KFR-35GW-2",
"Description": "a smart air conditioner with a temperature sensor and a humidity sensor",
"QualifiedName": "Air Conditioner",
"MB_MachineAddress": 1,
"IP": "127.0.0.1",
"Port": 5502,
"Variables":
[
{
"NamespaceIndex": 1,
"NodeID": "Switch-1",
"DisplayName": "Air Conditioner Switch-1",
"Description": "a coil value controlling the air conditioner to turn on and off",
"QualifiedName": "Air Conditioner Switch",
"VariableType": "CoilStatus",
"VariableAddress": 0,
"BitOffset": 0,
"InitialValue": 1
},
{
"NamespaceIndex": 1,
"NodeID": "WIFI-Connected-1",
"DisplayName": "Air Conditioner WIFI-Connected-1",
"Description": "a coil value indicating whether the air conditioner is connected to WIFI",
"QualifiedName": "Air Conditioner WIFI Connected",
"VariableType": "InputStatus",
"VariableAddress": 10000,
"BitOffset": 0
},
{
"NamespaceIndex": 1,
"NodeID": "Temp-1",
"DisplayName": "Setted Temperature Temp-1",
"Description": "setted temperature of the air conditioner",
"QualifiedName": "Setted Temperature",
"VariableType": "HoldingRegister",
"DataType": "UINT16",
"VariableAddress": 40000,
"InitialValue": 26
},
{
"NamespaceIndex": 1,
"NodeID": "Temp-2",
"DisplayName": "Indoor Temperature Temp-2",
"Description": "temperature sensor on the air conditioner",
"QualifiedName": "Indoor Temperature",
"VariableType": "InputRegister",
"DataType": "FLOAT",
"ByteOrder": "abcd",
"VariableAddress": 20000
},
{
"NamespaceIndex": 1,
"NodeID": "Humid-1",
"DisplayName": "Indoor Humidity Humid-1",
"Description": "humidity sensor on the air conditioner",
"QualifiedName": "Indoor Humidity",
"VariableType": "InputRegister",
"DataType": "UINT32",
"VariableAddress": 20004
}
]
}
]
}