Переферия отвалилась

Купил демонстрационный стенд.

Пытался добавить новое устройство WB-MR6C V2 в ветку ttyRS485-1 в настройках серийных портов в веб-интерфейсе, после чего отвалились все остальные устройства в той ветке, в которую хотел добавить, теперь по команде:

for i in {1…247}; do echo -n "$i - "; D=modbus_client -mrtu /dev/ttyRS485-1 --debug -a$i -t3 -r200 -s2 -c6 -pnone 2>/dev/null | grep Data: | awk 'gsub("Data:","")' | sed -e 's/0x00/\\\x/g' -e 's/\s//g'; echo -e $D; done

отвечает только устройство WBMRGB с адресом 2, хотя он первоначально был на 78м, все остальные адреса не отвечают, хотя индикаторы S горят зелеными.

Добрый день.
Пойдем по порядку:
Дайте пожалуйста содержимое /etc/wb-mqtt-serial.conf
И покажите вывод

systemctl status wb-mqtt-serial |grep Active

Если не “Active: active (running) "
то запустите “руками””

/usr/bin/wb-mqtt-serial -c /etc/wb-mqtt-serial.conf

и покажите вывод.

Здравствуйте,

root@wirenboard-ATAE4KQV:~# systemctl status wb-mqtt-serial |grep Active
Active: active (running) since Sat 2020-12-19 16:48:18 UTC; 2h 43min ago

Вроде как активно

Активно, а скрипт поиска запускался при запущенном wb-mqt-serial&
Ну и сколько устройств подключено? Вообще - светую по одному подключать к порту и “находить” каждое. Адреса точно сменились? (могла быть замененый записью в соответствующий регистр например)

подключены все приборы что в чемоданчике + дополнительное оборудование которое я пытался добавить
перед поиском запускал
service wb-mqtt-serial stop

поиск выдает только диммер светодиодных лент:
1 -
2 - WBMRGB
3 -
4 -
5 -

247 -

все остальное не видит

как быть если щит уже смонтрован с устройствами на шине и я хочу подключить контроллер?

Даже если зит смонтирован - можно отключить A и B клеммы RS-485.
и подключить на порт только одно устройство, попробовать к нему обратиться по адресу “0”, если не отвечает - сбросить параметры связи по инструкции

подключился к модулю реле по адресу 2. похоже на то контроллер все оборудование пытается записать на этот адрес

Нет, точно не контроллер. Я просил выложить содержимое /etc/wb-mqtt-serial.conf
Вообще - адрес можно поменять для всех устройств с помощью скрипта, да. Поэтому и прошу подключать по одному.

содержимое файла:

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
...
...
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 1 input(s) @ 39 of device modbus:2: Serial protocol error: request timed out
modbus: read 1 input(s) @ 121 of device modbus:2
Write: 02 04 00 79 00 01 e0 20
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:56: Serial protocol error: request timed out
device modbus:56 disconnected
device modbus:23 disconnected
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 1 holding(s) @ 8 of device modbus:56
Write: 38 03 00 08 00 01 00 a1
ModbusRTU::ReadRegisterRange(): failed to read 1 input(s) @ 121 of device modbus:2: Serial protocol error: request timed out
modbus: read 6 coil(s) @ 0 of device modbus:2
Write: 02 01 00 00 00 06 bc 3b
ReadFrame: 02 01 01 00 51 CC
modbus: read 6 discrete(s) @ 0 of device modbus:2
Write: 02 02 00 00 00 06 f8 3b
ReadFrame: 02 02 01 00 A1 CC
modbus: read 1 discrete(s) @ 7 of device modbus:2
Write: 02 02 00 07 00 01 08 38
ReadFrame: 02 02 01 00 A1 CC
device modbus:19 disconnected
device modbus:68 disconnected
device modbus:78 disconnected
device modbus:11 disconnected
device modbus:14 disconnected
device modbus:21 disconnected
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:56: Serial protocol error: request timed out
Init: CH1 L1 turns: setup register <modbus:23:<unspec>: 5216> <-- 1986
modbus: write 1 <unspec>(s) @ 5216 of device modbus:23
Write: 17 06 14 60 07 c2 0d 73
modbus: read 2 holding(s) @ 270 of device modbus:68
Write: 44 03 01 0e 00 02 aa a1
WARNING: device 'modbus:23' register '<modbus:23:<unspec>: 5216>' setup failed: Serial protocol error: failed to write <unspec> @ 5216: Serial protocol error: request timed out
device modbus:56 disconnected
device modbus:23 disconnected
Init: CH1 L1 turns: setup register <modbus:23:<unspec>: 5216> <-- 1986
modbus: write 1 <unspec>(s) @ 5216 of device modbus:23
Write: 17 06 14 60 07 c2 0d 73
Connected with code 0
ModbusRTU::ReadRegisterRange(): failed to read 2 holding(s) @ 270 of device modbus:68: Serial protocol error: request timed out
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
WARNING: device 'modbus:23' register '<modbus:23:<unspec>: 5216>' setup failed: Serial protocol error: failed to write <unspec> @ 5216: Serial protocol error: request timed out
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 3 holding(s) @ 6 of device modbus:14
Write: 0e 03 00 06 00 03 e5 35
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 1 holding(s) @ 8 of device modbus:56
Write: 38 03 00 08 00 01 00 a1
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:56: Serial protocol error: request timed out
device modbus:56 disconnected
device modbus:23 disconnected
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 1 holding(s) @ 8 of device modbus:56
Write: 38 03 00 08 00 01 00 a1
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 3 holding(s) @ 6 of device modbus:14: Serial protocol error: request timed out
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 4 holding(s) @ 0 of device modbus:78
Write: 4e 03 00 00 00 04 4a 36
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:56: Serial protocol error: request timed out
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Init: CH1 L1 turns: setup register <modbus:23:<unspec>: 5216> <-- 1986
modbus: write 1 <unspec>(s) @ 5216 of device modbus:23
Write: 17 06 14 60 07 c2 0d 73
WARNING: device 'modbus:23' register '<modbus:23:<unspec>: 5216>' setup failed: Serial protocol error: failed to write <unspec> @ 5216: Serial protocol error: request timed out
device modbus:56 disconnected
device modbus:23 disconnected
ModbusRTU::ReadRegisterRange(): failed to read 4 holding(s) @ 0 of device modbus:78: Serial protocol error: request timed out
modbus: read 1 holding(s) @ 8 of device modbus:56
Write: 38 03 00 08 00 01 00 a1
modbus: read 1 holding(s) @ 8 of device modbus:21
Write: 15 03 00 08 00 01 06 dc
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:56: Serial protocol error: request timed out
Init: CH1 L1 turns: setup register <modbus:23:<unspec>: 5216> <-- 1986
modbus: write 1 <unspec>(s) @ 5216 of device modbus:23
Write: 17 06 14 60 07 c2 0d 73
Connected with code 0
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:21: Serial protocol error: request timed out
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
WARNING: device 'modbus:23' register '<modbus:23:<unspec>: 5216>' setup failed: Serial protocol error: failed to write <unspec> @ 5216: Serial protocol error: request timed out
device modbus:56 disconnected
device modbus:23 disconnected
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Init: CH1 L1 turns: setup register <modbus:23:<unspec>: 5216> <-- 1986
modbus: write 1 <unspec>(s) @ 5216 of device modbus:23
Write: 17 06 14 60 07 c2 0d 73
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 2 holding(s) @ 270 of device modbus:19
Write: 13 03 01 0e 00 02 a7 46
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
WARNING: device 'modbus:23' register '<modbus:23:<unspec>: 5216>' setup failed: Serial protocol error: failed to write <unspec> @ 5216: Serial protocol error: request timed out
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 1 holding(s) @ 8 of device modbus:56
Write: 38 03 00 08 00 01 00 a1
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 2 holding(s) @ 270 of device modbus:19: Serial protocol error: request timed out
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:56: Serial protocol error: request timed out
device modbus:56 disconnected
device modbus:23 disconnected
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
modbus: read 1 input(s) @ 2 of device modbus:11
Write: 0b 04 00 02 00 01 90 a0
modbus: read 1 holding(s) @ 8 of device modbus:56
Write: 38 03 00 08 00 01 00 a1
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:56: Serial protocol error: request timed out
Init: CH1 L1 turns: setup register <modbus:23:<unspec>: 5216> <-- 1986
modbus: write 1 <unspec>(s) @ 5216 of device modbus:23
Write: 17 06 14 60 07 c2 0d 73
ModbusRTU::ReadRegisterRange(): failed to read 1 input(s) @ 2 of device modbus:11: Serial protocol error: request timed out
modbus: read 1 holding(s) @ 8 of device modbus:2
Write: 02 03 00 08 00 01 05 fb
ReadFrame: FF FF FF FF FF
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
WARNING: device 'modbus:23' register '<modbus:23:<unspec>: 5216>' setup failed: Serial protocol error: failed to write <unspec> @ 5216: Serial protocol error: request timed out
device modbus:56 disconnected
device modbus:23 disconnected
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: Init: CH1 L1 turns: setup register <modbus:23:<unspec>: 5216> <-- 1986
modbus: write 1 <unspec>(s) @ 5216 of device modbus:23
Write: 17 06 14 60 07 c2 0d 73
ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ffConnected with code 0

read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
read noise: ff
WARNING: device 'modbus:23' register '<modbus:23:<unspec>: 5216>' setup failed: Serial protocol error: failed to write <unspec> @ 5216: Serial protocol error: request timed out
ModbusRTU::ReadRegisterRange(): failed to read 1 holding(s) @ 8 of device modbus:2: Serial protocol error: invalid crc
modbus: read 6 input(s) @ 32 of device modbus:2
Write: 02 04 00 20 00 06 71 f1
ReadFrame: FF FF FF FF FF FF FF FF 60
read noise: 30
read noise: 18
read noise: 0d
read noise: 00
read noise: 00
read noise: 00
read noise: 00
read noise: 00
read noise: 00
read noise: 00
read noise: 00
read noise: 00
read noise: 00
read noise: ed
read noise: 1a
Subscription succeeded.ModbusRTU::ReadRegisterRange(): failed to read 6 input(s) @ 32 of device modbus:2: Serial protocol error: invalid crc
modbus: read 1 input(s) @ modbus: read 1 holding(s) @ 8 of device modbus:56
Write: 38 03 00 08 00 01 00 a1
39 of device modbus:2
Write: 02 04 00 27 00 01 81 f2

Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ReadFrame: 02 04 02 00 00 FD 30
modbus: read 1 input(s) @ 121 of device modbus:2
Write: 02 04 00 79 00 01 e0 20
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ReadFrame: 02 04 02 5E 6C C5 7D
new val for <modbus:2:input: 121>: 5e6c
register value change: <modbus:2:input: 121> <- 24.172
channel Supply voltage device id: wb-mr6c_2 -- topic: /devices/wb-mr6c_2/controls/Supply voltage <-- 24.172
modbus: read 6 coil(s) @ 0 of device modbus:2
Write: 02 01 00 00 00 06 bc 3b
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
ReadFrame: 02 01 01 00 51 CC
modbus: read 6 discrete(s) @ 0 of device modbus:2
Write: 02 02 00 00 00 06 f8 3b
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
Subscription succeeded.
...

Не, ее нужно использовать толко если wb-mqtt-serial нормальным образом не стартует.
Получилось восстановить адреса?

после переноса в щиток, каким-то невероятным, магическим образом, я снова смог управлять реле с WebUI, но скриптом поиска я могу видеть только RGB диммер и тот модуль реле, который мне удалось прошить подключив отдельно (WBMR6C), он появился по адресу 95. Остальные модули, например WBIO управляются с гуи, но невидимы из консоли

WBIO “из консоли” - видны только через I2С, не через modbus_client. Чудес не бывает.
У вас судя по конфигу
78 - MRGBW
11 - MS v2
19 - MIR
14 - M1W2
21 - MSW v3
2 - MR6C

И на втором:
56 - MR3
23 - MAP12H

Все работают?

не все.
2 - MR6C перестал быть видимым, хотя работает аналогово на кнопку.
но появился его близнец на 95м адресе
еще есть модуль протечек WBWM-AC 68, который начал пищать и к которому я также не могу доступиться

можно подробнее про I2С, как я могу увидеть оборудование?

в webui вижу такую картинку по IO модулю

когда я подключаю устройства по одному, они получают адрес 2
я подключился к датчику температур с Addr 100, далее я запускаю команду по смене адреса (взял ее из history):

modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a100 -t0x06 -r128 14
Data to write: 0xe
Opening /dev/ttyRS485-1 at 9600 bauds (N, 8, 2)
[64][06][00][80][00][0E][00][13]
Waiting for a confirmation...
ERROR Connection timed out: select
ERROR occured!

выдает ошибку, но документация говорит что это нормально.
далее запускаю скрипт поиска, но устройство снова находится по адресу 2

Перед тем как менять надо проверить что адрес (ну или вообще какой-либо регистр) читатется

Так, при изменении адреса устройство отвечает. У нас в вики написано:

Сообщение об ошибке не должно пугать: устройства Modbus не отвечают на команды, отправленные на широковещательный адрес. Проверим, сохранился ли адрес в адресном регистре:

Именно про широковещательный запрос. А вы обращаетесь по адресу.
https://wirenboard.com/wiki/Определение_и_изменение_Modbus-адреса_устройств_Wirenboard
Дайте ссылку пожалуйста на страничку, если другая, поправлю.

Итак, давайте по порядку:
Подключите только MR6C на второй порт и остановив wb-mqtt-serial запустите скрипт поиска. Потом - попробуйте сначала прочитать регистр,Ж а потом его изменить.
Изменение адреса, пример:

modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-2 -a99 -t0x06 -r128 98
Data to write: 0x62
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[63][06][00][80][00][62][01][89]
Waiting for a confirmation...
<63><06><00><80><00><62><01><89>
SUCCESS: written 1 elements!

должно происходить без ошибок.

Просмотр шин:

i2cdetect -l

Поиск на шине:

i2cdetect -y 1

Но мы ведь обсуждаем modbus устройства?