содержимое файла:
root@wirenboard-ATAE4KQV:~# cat /etc/wb-mqtt-serial.conf
{
"debug": true,
"ports": [
{
"path": "/dev/ttyRS485-1",
"devices": [
{
"slave_id": "68",
"device_type": "WB-MWAC"
},
{
"slave_id": "78",
"device_type": "WB-MRGBW-D"
},
{
"slave_id": "11",
"device_type": "WB-MS v.2"
},
{
"slave_id": "19",
"device_type": "WB-MIR"
},
{
"slave_id": "14",
"device_type": "WB-M1W2"
},
{
"slave_id": "21",
"device_type": "WB-MSW v.3"
},
{
"slave_id": "2",
"device_type": "WB-MR6C"
}
],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": true
},
{
"path": "/dev/ttyRS485-2",
"devices": [
{
"slave_id": "24",
"device_type": "milur305",
"protocol": "milur",
"enabled": false
},
{
"slave_id": "56",
"device_type": "WB-MR3"
},
{
"slave_id": "23",
"device_type": "WB-MAP12H fw2 (basic)",
"setup": [
{
"address": "0x1460",
"title": "CH1 L1 turns",
"value": "1986"
},
{
"address": "0x1461",
"title": "CH1 L2 turns",
"value": "1989"
},
{
"address": "0x1462",
"title": "CH1 L3 turns",
"value": "1988"
},
{
"address": "0x1463",
"title": "CH1 L1 Phi",
"value": "1460"
},
{
"address": "0x1464",
"title": "CH1 L2 Phi",
"value": "1923"
},
{
"address": "0x1465",
"title": "CH1 L3 Phi",
"value": "1691"
}
]
}
],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 1,
"poll_interval": 10,
"enabled": true,
"response_timeout_ms": 300
},
{
"path": "/dev/ttyMOD1",
"devices": [],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": false
},
{
"path": "/dev/ttyMOD2",
"devices": [],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": false
},
{
"path": "/dev/ttyMOD3",
"devices": [],
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"poll_interval": 10,
"enabled": false
}
]
}
по вашей команде выдача буквально бесконечная:
root@wirenboard-ATAE4KQV:~# /usr/bin/wb-mqtt-serial -c /etc/wb-mqtt-serial.conf
address: 0
address: 1
address: 2
address: 0
address: 1
address: 2
address: 3
address: 4
address: 5
address: 316
address: 318
address: 121
address: 270
address: 1
address: 0
address: 2
address: 3
address: 6
address: 7
address: 8
address: 32
address: 33
address: 34
address: 270
address: 4
address: 5
address: 2
address: 11
address: 6
address: 7
address: 121
address: 270
address: 121
address: 5001
address: 5002
address: 5300
address: 5301
address: 5302
address: 5303
address: 5304
address: 5305
address: 5306
address: 5100
address: 5101
address: 5102
address: 5103
address: 5104
address: 5105
address: 5106
address: 5200
address: 5201
address: 5202
address: 5203
address: 5204
address: 5205
address: 5206
address: 6
address: 7
address: 270
address: 5000
address: 6
address: 7
address: 8
address: 121
address: 270
address: 0
address: 1
address: 11
address: 8
address: 3
address: 9
address: 280
address: 283
address: 0
address: 10
address: 11
address: 97
address: 98
address: 5001
address: 5002
address: 5300
address: 5301
address: 5302
address: 5303
address: 5304
address: 5305
address: 5306
address: 5100
address: 5101
address: 5102
address: 5103
address: 5104
address: 5105
address: 5106
address: 5000
address: 121
address: 270
address: 0
address: 1
address: 2
address: 3
address: 4
address: 5
address: 8
address: 0
address: 1
address: 2
address: 3
address: 4
address: 5
address: 7
address: 32
address: 33
address: 34
address: 35
address: 36
address: 37
address: 39
address: 121
address: 0
address: 1
address: 2
address: 8
address: 0
address: 1
address: 2
address: 7
address: 32
address: 33
address: 34
address: 39
address: 121
address: 5136
address: 4337
address: 5138
address: 4338
address: 5140
address: 4339
address: 4344
address: 4349
address: 4350
address: 4351
address: 5142
address: 4341
address: 4866
address: 4874
address: 4882
address: 4285
address: 4612
address: 4644
address: 5144
address: 4342
address: 4868
address: 4876
address: 4884
address: 4286
address: 4616
address: 4648
address: 5146
address: 4343
address: 4870
address: 4878
address: 4886
address: 4287
address: 4620
address: 4652
address: 4864
address: 4872
address: 4880
address: 4284
address: 4608
address: 4640
address: 4345
address: 4346
address: 4347
address: 9238
address: 8437
address: 8962
address: 8970
address: 8978
address: 8381
address: 8708
address: 8740
address: 9240
address: 8438
address: 8964
address: 8972
address: 8980
address: 8382
address: 8712
address: 8744
address: 9242
address: 8439
address: 8966
address: 8974
address: 8982
address: 8383
address: 8716
address: 8748
address: 8960
address: 8968
address: 8976
address: 8380
address: 8704
address: 8736
address: 8441
address: 8442
address: 8443
address: 13334
address: 12533
address: 13058
address: 13066
address: 13074
address: 12477
address: 12804
address: 12836
address: 13336
address: 12534
address: 13060
address: 13068
address: 13076
address: 12478
address: 12808
address: 12840
address: 13338
address: 12535
address: 13062
address: 13070
address: 13078
address: 12479
address: 12812
address: 12844
address: 13056
address: 13064
address: 13072
address: 12476
address: 12800
address: 12832
address: 12537
address: 12538
address: 12539
address: 17430
address: 16629
address: 17154
address: 17162
address: 17170
address: 16573
address: 16900
address: 16932
address: 17432
address: 16630
address: 17156
address: 17164
address: 17172
address: 16574
address: 16904
address: 16936
address: 17434
address: 16631
address: 17158
address: 17166
address: 17174
address: 16575
address: 16908
address: 16940
address: 17152
address: 17160
address: 17168
address: 16572
address: 16896
address: 16928
address: 16633
address: 16634
address: 16635
Setting up devices at </dev/ttyRS485-1 9600 8 N2 timeout 500>
CreateDevice: wb-mwac_68 (WB-MWAC) @ 68 -- protocol: modbus
AddRegister: 0x7f94b238
AddRegister: 0x7f94b488
AddRegister: 0x7f94b758
AddRegister: 0x7f94b9f0
AddRegister: 0x7f94bc80
AddRegister: 0x7f94bf88
AddRegister: 0x7f94c200
AddRegister: 0x7f94c490
AddRegister: 0x7f94c720
AddRegister: 0x7f94c9b0
AddRegister: 0x7f94cc68
AddRegister: 0x7f94d0a0
AddRegister: 0x7f94d2f8
CreateDevice: wb-mrgbw-d_78 (WB-MRGBW-D) @ 78 -- protocol: modbus
AddRegister: 0x7f94d6d8
AddRegister: 0x7f94d7a0
AddRegister: 0x7f94d880
AddRegister: 0x7f94dca8
AddRegister: 0x7f94df38
AddRegister: 0x7f94e1f0
AddRegister: 0x7f94e4a8
AddRegister: 0x7f94e778
AddRegister: 0x7f94ea48
AddRegister: 0x7f94ed18
AddRegister: 0x7f94f0b0
CreateDevice: wb-ms_11 (WB-MS v.2) @ 11 -- protocol: modbus
AddRegister: 0x7f787e20
AddRegister: 0x7f788180
AddRegister: 0x7f788438
AddRegister: 0x7f788708
AddRegister: 0x7f7889d8
AddRegister: 0x7f788ca8
AddRegister: 0x7f788f60
AddRegister: 0x7f789218
CreateDevice: wb-mir_19 (WB-MIR) @ 19 -- protocol: modbus
AddRegister: 0x7f789628
AddRegister: 0x7f7898c0
AddRegister: 0x7f789b58
AddRegister: 0x7f789e10
AddRegister: 0x7f78a0c8
AddRegister: 0x7f78a380
AddRegister: 0x7f78a638
AddRegister: 0x7f78a8f0
AddRegister: 0x7f78aba8
AddRegister: 0x7f78ae60
AddRegister: 0x7f78b118
AddRegister: 0x7f78b3d0
AddRegister: 0x7f78b688
AddRegister: 0x7f78b940
AddRegister: 0x7f78bbf8
AddRegister: 0x7f94ef30
AddRegister: 0x7f78c1f8
AddRegister: 0x7f78c648
AddRegister: 0x7f78c900
AddRegister: 0x7f78cbb8
AddRegister: 0x7f78ce70
AddRegister: 0x7f78d128
AddRegister: 0x7f78d3e0
AddRegister: 0x7f78d698
AddRegister: 0x7fa3b5a0
AddRegister: 0x7fa3b880
AddRegister: 0x7fa3bb40
AddRegister: 0x7fa3bdf8
CreateDevice: wb-m1w2_14 (WB-M1W2) @ 14 -- protocol: modbus
...