WB-MR6C v.2 - не удается подключить по modbus

Здравствуйте. Имеется контроллер Wirenboard 7. Никак не удается подключить к нему модуль WB-MR6C v.2.
Питание контроллера 12в, питание модуля тоже. A и B разьемы корректно подключены, витая пара 30 см. При подаче питания мигает индикатор S раз в секунду. Нет никакой связи с устройством.
Скрипт for i in {1..247}; do echo -n "$i - "; D=modbus_client -mrtu /dev/ttyRS485-1 --debug -b9600 -pnone -s2 -a$i -t3 -o100 -r200 -c6 2>/dev/null | grep Data: | awk ‘gsub(“Data:”,“”)’ | sed -e ‘s/0x00/\\x/g’ -e ‘s/\s//g’; echo -e $D; done выдаёт прочерки по всем адресам. Заявленный адрес 219 (наклейка). systemctl stop wb-mqtt-serial перед этим делал.

То есть по RS485 к нему вообще не достучаться, как-будто его нет.

Пробовал перепрошивать:
C:\Users\user\Downloads>wb-mcu-fw-flasher_1.0.3.exe -d COM3 -a 219 -f mr6c__1.19.2_master_d9da626.wbfw
`
\.\COM3 opened successfully.
mr6c__1.19.2_master_d9da626.wbfw opened successfully, size 23696 bytes

Sending info block…
Error while sending info block: Unknown error

Error while sending info block: Unknown error

Error while sending info block: Unknown error
Error while sending info block.
Check connection, jump to bootloader and try again.
`

c -j тоже не помогает.

Добрый день. Поиск не найдет устройство, оно в режиме загрузчика. Попробуйте автоматическое восстановление по инструкции Обновление прошивки Modbus-устройств Wiren Board — Wiren Board

Добрый день. Это тоже не помогает:

Уточню. Индикатор моргает только первые пару секунд и потом постоянно горит или же все время? В web интерфейсе настроен модуль?

Индикатор постоянно мигает.
WEB-интерфейс настроен.



Может у него адрес другой на самом деле?

Добрый день.
Советую перебрать адреса используя так:

for i in {1..247}; do echo -n "$i - "; D=modbus_client -mrtu /dev/ttyRS485-1 --debug -b9600 -pnone -s2 -a$i -t3 -o100 -r290 -c12 2>/dev/null | grep Data: | awk ‘gsub(“Data:”,“”)’ | sed -e ‘s/0x00/\\x/g’ -e ‘s/\s//g’; echo -e $D;

Везде прочерки выдаёт. Я об этом кстати писал в первом посте, но заметил, что в вики команда такая:
for i in {1..247}; do echo -n "$i - "; D=`modbus_client -mrtu /dev/ttyRS485-1 --debug -b9600 -pnone -s2 -a$i -t3 -o100 -r200 -c6 2>/dev/null | grep Data: | awk 'gsub("Data:","")' | sed -e 's/0x00/\\\x/g' -e 's/\s//g'`; echo -e $D; done

А у вас такая:
for i in {1..247}; do echo -n "$i - "; D=`modbus_client -mrtu /dev/ttyRS485-1 --debug -b9600 -pnone -s2 -a$i -t3 -o100 -r290 -c12 2>/dev/null | grep Data: | awk 'gsub("Data:","")' | sed -e 's/0x00/\\\x/g' -e 's/\s//g'`; echo -e $D; done

Отличаются параметры -r290 и -c12

Не знаю на что это влияет, просто заметил разницу) Но и то и то не находит устройство.

Попробуйте восстановить доступ по инструкции, после чего если удачно пройдет заново установить адрес 219. А с модулем перед этим какие либо действия производились или это новый модуль?

root@wirenboard-AVZFRRBG:~# wb-mcu-fw-flasher -d /dev/ttyRS485-2 -a0 -u
/dev/ttyRS485-2 opened successfully.
Send reset UART settings and modbus address command...
Error: Connection timed out.
To flash FW on running device, run

Ничего не помогает. Смотрел похожие ветки форума, связи с ним просто нет. Пробовал так же 2й порт на контроллере.

Модуль новый. Купил пол-года назад, вместе с контроллером, лежал в шкафу. При подключении питания сразу мигал зелёным. С контроллером всё вроде бы ок.

А что покажет wb-mcu-fw-updater recover-all --debug?

root@wirenboard-AVZFRRBG:~# wb-mcu-fw-updater recover-all --debug
2023-03-21 09:38:53,811 Will run: killall -STOP wb-mqtt-serial
2023-03-21 09:38:53,855 Reading /usr/lib/wb-release for releases info
2023-03-21 09:38:53,857 Got releases info:
2023-03-21 09:38:53,858 	defaultdict(<function parse_releases.<locals>.<lambda> at 0xb65c84b0>, {'REPO_PREFIX': '', 'RELEASE_NAME': 'wb-2207', 'TARGET': 'wb7/stretch', 'SUITE': 'stable'})
2023-03-21 09:38:53,859 GET: http://fw-releases.wirenboard.com/
2023-03-21 09:38:54,553 Will probe all devices on enabled serial ports of /etc/wb-mqtt-serial.conf:
2023-03-21 09:38:54,556 Probing WB-MR6C (port: /dev/ttyRS485-1, slaveid: 219, uart_params: 9600N2, response_timeout: 0.50)...
2023-03-21 09:38:54,559 MinimalModbus debug mode. Create serial port /dev/ttyRS485-1
2023-03-21 09:38:54,561 MinimalModbus debug mode. Closing serial port /dev/ttyRS485-1
2023-03-21 09:38:54,562 Set {'stopbits': 2, 'baudrate': 9600, 'parity': 'N'} to /dev/ttyRS485-1
2023-03-21 09:38:54,563 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:38:54,564 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 already exists
2023-03-21 09:38:54,564 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 is closed. Opening.
2023-03-21 09:38:54,565 MinimalModbus debug mode. Closing serial port /dev/ttyRS485-1
2023-03-21 09:38:54,566 Set {'stopbits': 2, 'baudrate': 9600, 'parity': 'N'} to /dev/ttyRS485-1
2023-03-21 09:38:54,567 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:38:54,568 Set {'stopbits': 2, 'baudrate': 9600, 'parity': 'N'} to /dev/ttyRS485-1
2023-03-21 09:38:54,571 MinimalModbus debug mode. Will write to instrument (expecting 17 bytes back): 'Û\x03\x00È\x00\x06W\x0c' (DB 03 00 C8 00 06 57 0C)
2023-03-21 09:38:54,571 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:54,572 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:54,573 MinimalModbus debug mode. No sleep required before write. Time since previous read: 63366.95 ms, minimum silent period: 4.01 ms.
2023-03-21 09:38:55,075 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:38:55,076 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:38:55,077 f = read_string(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b6b0>, 200, 6) not succeed (try 1/3)
2023-03-21 09:38:55,080 MinimalModbus debug mode. Will write to instrument (expecting 17 bytes back): 'Û\x03\x00È\x00\x06W\x0c' (DB 03 00 C8 00 06 57 0C)
2023-03-21 09:38:55,080 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:55,081 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:55,082 MinimalModbus debug mode. No sleep required before write. Time since previous read: 7.44 ms, minimum silent period: 4.01 ms.
2023-03-21 09:38:55,584 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:38:55,585 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:38:55,586 f = read_string(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b6b0>, 200, 6) not succeed (try 2/3)
2023-03-21 09:38:55,588 MinimalModbus debug mode. Will write to instrument (expecting 17 bytes back): 'Û\x03\x00È\x00\x06W\x0c' (DB 03 00 C8 00 06 57 0C)
2023-03-21 09:38:55,589 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:55,590 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:55,591 MinimalModbus debug mode. No sleep required before write. Time since previous read: 7.31 ms, minimum silent period: 4.01 ms.
2023-03-21 09:38:56,093 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:38:56,094 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:38:56,095 f = read_string(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b6b0>, 200, 6) not succeed (try 3/3)
2023-03-21 09:38:56,096 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 already exists
2023-03-21 09:38:56,097 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 is closed. Opening.
2023-03-21 09:38:56,098 MinimalModbus debug mode. Closing serial port /dev/ttyRS485-1
2023-03-21 09:38:56,099 Set {'stopbits': 2, 'baudrate': 9600, 'parity': 'N'} to /dev/ttyRS485-1
2023-03-21 09:38:56,099 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:38:56,102 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): 'Û\x03\x00\x80\x00\x01\x96Ø' (DB 03 00 80 00 01 96 D8)
2023-03-21 09:38:56,103 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:56,104 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:56,105 MinimalModbus debug mode. No sleep required before write. Time since previous read: 12.05 ms, minimum silent period: 4.01 ms.
2023-03-21 09:38:56,607 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:38:56,608 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 500.9 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:38:56,609 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b770>, 128) not succeed (try 1/3)
2023-03-21 09:38:56,611 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): 'Û\x03\x00\x80\x00\x01\x96Ø' (DB 03 00 80 00 01 96 D8)
2023-03-21 09:38:56,612 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:56,613 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:56,614 MinimalModbus debug mode. No sleep required before write. Time since previous read: 7.34 ms, minimum silent period: 4.01 ms.
2023-03-21 09:38:57,116 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:38:57,117 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 500.9 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:38:57,118 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b770>, 128) not succeed (try 2/3)
2023-03-21 09:38:57,120 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): 'Û\x03\x00\x80\x00\x01\x96Ø' (DB 03 00 80 00 01 96 D8)
2023-03-21 09:38:57,121 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:57,122 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:57,123 MinimalModbus debug mode. No sleep required before write. Time since previous read: 7.30 ms, minimum silent period: 4.01 ms.
2023-03-21 09:38:57,625 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:38:57,626 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:38:57,627 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b770>, 128) not succeed (try 3/3)
2023-03-21 09:38:57,628 Setting params 9600-N-2 to port /dev/ttyRS485-1
2023-03-21 09:38:57,628 Set {'stopbits': 2, 'baudrate': 9600, 'parity': 'N'} to /dev/ttyRS485-1
2023-03-21 09:38:57,629 /dev/ttyRS485-1 response_timeout -> 1.50
2023-03-21 09:38:57,634 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): 'Û\x10\x10\x00\x00\x10 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x005Ã' (DB 10 10 00 00 10 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 35 C3)
2023-03-21 09:38:57,635 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:57,637 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:57,637 MinimalModbus debug mode. No sleep required before write. Time since previous read: 12.93 ms, minimum silent period: 4.01 ms.
2023-03-21 09:38:59,140 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:38:59,141 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 1502.0 ms. Timeout for reading: 1500.0 ms.

2023-03-21 09:38:59,142 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b770>, 4096, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) not succeed (try 1/3)
2023-03-21 09:38:59,148 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): 'Û\x10\x10\x00\x00\x10 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x005Ã' (DB 10 10 00 00 10 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 35 C3)
2023-03-21 09:38:59,148 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:38:59,150 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:38:59,150 MinimalModbus debug mode. No sleep required before write. Time since previous read: 10.44 ms, minimum silent period: 4.01 ms.
2023-03-21 09:39:00,653 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:39:00,655 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 1502.0 ms. Timeout for reading: 1500.0 ms.

2023-03-21 09:39:00,655 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b770>, 4096, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) not succeed (try 2/3)
2023-03-21 09:39:00,661 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): 'Û\x10\x10\x00\x00\x10 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x005Ã' (DB 10 10 00 00 10 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 35 C3)
2023-03-21 09:39:00,662 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:39:00,663 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:39:00,664 MinimalModbus debug mode. No sleep required before write. Time since previous read: 10.67 ms, minimum silent period: 4.01 ms.
2023-03-21 09:39:02,166 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:39:02,168 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 1502.0 ms. Timeout for reading: 1500.0 ms.

2023-03-21 09:39:02,168 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb627b770>, 4096, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) not succeed (try 3/3)
2023-03-21 09:39:02,169 Setting params to port /dev/ttyRS485-1 back
2023-03-21 09:39:02,170 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:39:02,170 No answer:
2023-03-21 09:39:02,171 	WB-MR6C (219, /dev/ttyRS485-1)
2023-03-21 09:39:02,172 
2023-03-21 09:39:02,173 0 recovered, 0 was already working, 0 not recovered and 1 not answered to recover cmd.
2023-03-21 09:39:02,177 Has saved db to /var/lib/wb-mcu-fw-updater/devices.jsondb
2023-03-21 09:39:02,178 Will run: killall -CONT wb-mqtt-serial
root@wirenboard-AVZFRRBG:~# 

А если снять клемму с модуля, запустить ту же команду и подключить клемму? И приложите лог результата пожалуйста.

Снял зеленую клемму с подключенными 4-мя проводами с модуля, запустил команду на контроллере. В процессе выполнения поставил клемму обратно:

root@wirenboard-AVZFRRBG:~# wb-mcu-fw-updater recover-all --debug
2023-03-21 09:54:29,325 Will run: killall -STOP wb-mqtt-serial
2023-03-21 09:54:29,359 Reading /usr/lib/wb-release for releases info
2023-03-21 09:54:29,362 Got releases info:
2023-03-21 09:54:29,363 	defaultdict(<function parse_releases.<locals>.<lambda> at 0xb65bd4b0>, {'RELEASE_NAME': 'wb-2207', 'SUITE': 'stable', 'TARGET': 'wb7/stretch', 'REPO_PREFIX': ''})
2023-03-21 09:54:29,365 GET: http://fw-releases.wirenboard.com/
2023-03-21 09:54:29,959 Will probe all devices on enabled serial ports of /etc/wb-mqtt-serial.conf:
2023-03-21 09:54:29,962 Probing WB-MR6C (port: /dev/ttyRS485-1, slaveid: 219, uart_params: 9600N2, response_timeout: 0.50)...
2023-03-21 09:54:29,965 MinimalModbus debug mode. Create serial port /dev/ttyRS485-1
2023-03-21 09:54:29,967 MinimalModbus debug mode. Closing serial port /dev/ttyRS485-1
2023-03-21 09:54:29,968 Set {'stopbits': 2, 'parity': 'N', 'baudrate': 9600} to /dev/ttyRS485-1
2023-03-21 09:54:29,969 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:54:29,970 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 already exists
2023-03-21 09:54:29,970 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 is closed. Opening.
2023-03-21 09:54:29,972 MinimalModbus debug mode. Closing serial port /dev/ttyRS485-1
2023-03-21 09:54:29,973 Set {'stopbits': 2, 'parity': 'N', 'baudrate': 9600} to /dev/ttyRS485-1
2023-03-21 09:54:29,973 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:54:29,974 Set {'stopbits': 2, 'parity': 'N', 'baudrate': 9600} to /dev/ttyRS485-1
2023-03-21 09:54:29,977 MinimalModbus debug mode. Will write to instrument (expecting 17 bytes back): 'Û\x03\x00È\x00\x06W\x0c' (DB 03 00 C8 00 06 57 0C)
2023-03-21 09:54:29,977 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:29,979 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:29,979 MinimalModbus debug mode. No sleep required before write. Time since previous read: 1000914.76 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:30,481 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:30,482 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:54:30,483 f = read_string(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb62704b0>, 200, 6) not succeed (try 1/3)
2023-03-21 09:54:30,486 MinimalModbus debug mode. Will write to instrument (expecting 17 bytes back): 'Û\x03\x00È\x00\x06W\x0c' (DB 03 00 C8 00 06 57 0C)
2023-03-21 09:54:30,486 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:30,488 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:30,489 MinimalModbus debug mode. No sleep required before write. Time since previous read: 7.62 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:30,990 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:30,992 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:54:30,992 f = read_string(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb62704b0>, 200, 6) not succeed (try 2/3)
2023-03-21 09:54:30,995 MinimalModbus debug mode. Will write to instrument (expecting 17 bytes back): 'Û\x03\x00È\x00\x06W\x0c' (DB 03 00 C8 00 06 57 0C)
2023-03-21 09:54:30,996 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:30,997 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:30,998 MinimalModbus debug mode. No sleep required before write. Time since previous read: 7.42 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:31,499 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:31,501 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:54:31,501 f = read_string(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb62704b0>, 200, 6) not succeed (try 3/3)
2023-03-21 09:54:31,502 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 already exists
2023-03-21 09:54:31,503 MinimalModbus debug mode. Serial port /dev/ttyRS485-1 is closed. Opening.
2023-03-21 09:54:31,504 MinimalModbus debug mode. Closing serial port /dev/ttyRS485-1
2023-03-21 09:54:31,505 Set {'stopbits': 2, 'parity': 'N', 'baudrate': 9600} to /dev/ttyRS485-1
2023-03-21 09:54:31,506 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:54:31,509 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): 'Û\x03\x00\x80\x00\x01\x96Ø' (DB 03 00 80 00 01 96 D8)
2023-03-21 09:54:31,509 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:31,511 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:31,512 MinimalModbus debug mode. No sleep required before write. Time since previous read: 12.24 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:32,013 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:32,015 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:54:32,015 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb619c5b0>, 128) not succeed (try 1/3)
2023-03-21 09:54:32,018 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): 'Û\x03\x00\x80\x00\x01\x96Ø' (DB 03 00 80 00 01 96 D8)
2023-03-21 09:54:32,019 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:32,020 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:32,021 MinimalModbus debug mode. No sleep required before write. Time since previous read: 7.54 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:32,523 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:32,524 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.0 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:54:32,524 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb619c5b0>, 128) not succeed (try 2/3)
2023-03-21 09:54:32,527 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): 'Û\x03\x00\x80\x00\x01\x96Ø' (DB 03 00 80 00 01 96 D8)
2023-03-21 09:54:32,528 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:32,530 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:32,533 MinimalModbus debug mode. No sleep required before write. Time since previous read: 10.15 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:33,036 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:33,037 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 501.1 ms. Timeout for reading: 500.0 ms.

2023-03-21 09:54:33,037 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb619c5b0>, 128) not succeed (try 3/3)
2023-03-21 09:54:33,039 Setting params 9600-N-2 to port /dev/ttyRS485-1
2023-03-21 09:54:33,040 Set {'stopbits': 2, 'parity': 'N', 'baudrate': 9600} to /dev/ttyRS485-1
2023-03-21 09:54:33,040 /dev/ttyRS485-1 response_timeout -> 1.50
2023-03-21 09:54:33,046 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): 'Û\x10\x10\x00\x00\x10 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x005Ã' (DB 10 10 00 00 10 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 35 C3)
2023-03-21 09:54:33,047 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:33,048 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:33,049 MinimalModbus debug mode. No sleep required before write. Time since previous read: 13.55 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:34,552 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:34,553 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 1502.0 ms. Timeout for reading: 1500.0 ms.

2023-03-21 09:54:34,554 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb619c5b0>, 4096, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) not succeed (try 1/3)
2023-03-21 09:54:34,559 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): 'Û\x10\x10\x00\x00\x10 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x005Ã' (DB 10 10 00 00 10 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 35 C3)
2023-03-21 09:54:34,560 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:34,562 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:34,562 MinimalModbus debug mode. No sleep required before write. Time since previous read: 10.62 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:36,065 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:36,066 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 1502.0 ms. Timeout for reading: 1500.0 ms.

2023-03-21 09:54:36,067 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb619c5b0>, 4096, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) not succeed (try 2/3)
2023-03-21 09:54:36,072 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): 'Û\x10\x10\x00\x00\x10 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x005Ã' (DB 10 10 00 00 10 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 35 C3)
2023-03-21 09:54:36,073 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2023-03-21 09:54:36,074 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2023-03-21 09:54:36,075 MinimalModbus debug mode. No sleep required before write. Time since previous read: 10.06 ms, minimum silent period: 4.01 ms.
2023-03-21 09:54:37,578 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2023-03-21 09:54:37,579 MinimalModbus debug mode. Response from instrument: '' () (0 bytes), roundtrip time: 1502.0 ms. Timeout for reading: 1500.0 ms.

2023-03-21 09:54:37,580 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb619c5b0>, 4096, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) not succeed (try 3/3)
2023-03-21 09:54:37,580 Setting params to port /dev/ttyRS485-1 back
2023-03-21 09:54:37,581 /dev/ttyRS485-1 response_timeout -> 0.50
2023-03-21 09:54:37,581 No answer:
2023-03-21 09:54:37,583 	WB-MR6C (219, /dev/ttyRS485-1)
2023-03-21 09:54:37,584 
2023-03-21 09:54:37,586 0 recovered, 0 was already working, 0 not recovered and 1 not answered to recover cmd.
2023-03-21 09:54:37,589 Has saved db to /var/lib/wb-mcu-fw-updater/devices.jsondb
2023-03-21 09:54:37,591 Will run: killall -CONT wb-mqtt-serial
root@wirenboard-AVZFRRBG:~# 

Товарищи, подскажите, всё-таки этот модуль совсем мёртвый или есть шанс вернуть его к жизни? Просто нужно будет его скоро использовать, и если придется делать возврат/замену/заказ нового, то лучше начать эту процедуру по-быстрее, потому что это тоже дело не быстрое с учетом времени доставки в СПБ.

Вот ещё этикетка с него, вдруг пригодится.

Подключал контроллер к компьютеру через преобразователь USB-RS485 с запущенной программой эмулятора Modbus Slave https://www.modbustools.com/download.html. Команды с контроллера выполняются, например:

modbus_client --debug -mrtu -b9600 -pnone -s2 /dev/ttyRS485-1 -a1 -t0x03 -r01
Opening /dev/ttyRS485-1 at 9600 bauds (N, 8, 2)
[01][03][00][01][00][01][D5][CA]
Waiting for a confirmation...
<01><03><02><00><04><B9><87>
SUCCESS: read 1 of elements:
        Data: 0x0004

Таким образом можно сделать вывод, что со стороны контроллера всё нормально.

Давайте мы бесплатно поменяем вам оборудование. Курьер привезёт новое оборудование и заберёт старое:

  • WB-MR6C v.2

Для возврата напишите, пожалуйста, письмо на info@wirenboard.com.

В письме укажите:

  1. ссылку на эту тему,
  2. серийный номер устройства, если есть,
  3. ваш действующий телефон, адрес доставки, ФИО получателя.
1 лайк

Дополнительно к заменяемому модулю сделал ещё один заказ: 193723.

Попросили указать его здесь, чтобы всё вместе привезти.

Новые модули привезли, в том числе и замену этого. Всё сразу подключилось, всё работает. Спасибо за замену.

Нерабочий модуль сегодня забрал курьер.