forked from wirenboard/wb-mqtt-serial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-milur.json
59 lines (59 loc) · 1.43 KB
/
config-milur.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
{
"debug": false,
"ports": [
{
"port_type" : "serial",
"path" : "/dev/ttyNSC0",
"protocol": "milur",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": true,
"response_timeout_ms": 500,
"devices": [
{
"name": "Milur 305.32R (test)",
"id": "milur305.32r-test",
"slave_id": 255,
"enabled": true,
"frame_timeout_ms": 150,
"channels": [
{
"name": "Phase A voltage",
"reg_type": "param",
"address": 100,
"format": "u24",
"type": "voltage",
"scale": 0.001
},
{
"name": "Phase B voltage",
"reg_type": "param",
"address": 101,
"format": "u24",
"type": "voltage",
"scale": 0.001
},
{
"name": "Phase C voltage",
"reg_type": "param",
"address": 102,
"format": "u24",
"type": "voltage",
"scale": 0.001
},
{
"name": "Total consumption",
"reg_type": "energy",
"address": 118,
"format": "bcd32",
"type": "power_consumption",
"scale": 0.01
}
]
}
]
}
]
}