Исчезло устройство WB-MWAC

Добрый день!
Что произошло, исчезло устройство WB_MWAC, в консоли не определяется, соответственно не могу его обновить.

Добрый день.
Опишите пожалуйста подробнее, какой контроллер, как (к какому порту, в каком порядке, если есть еще устройства на этом же порту) подключено, как себя ведет светодиод Status, какие действия поводились (команды, ответы на них)

Контроллер WB6, порт 485-1, на этом же порту сидят устройства в следующе последовательности WB-MWAC, WB-MR6CU, WB-MSW v3. Светодиод статуса мигает раз в секунду.
Вот такие команды
wb-mcu-fw-updater update-fw /dev/ttyRS485-1 -a152
2022-02-26 10:44:45,460 Will find serial port settings for (/dev/ttyRS485-1 : 152)…
2022-02-26 10:44:58,314 Device is disconnected or slaveid/port is wrong
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
После этой команды определились адреса только 2 устройств из 3

В бутлоадере. А после чего?
Типичная причина - ошибки на шине в момент обновления прошивки.
Советую recover сделать

Запустил
wb-mcu-fw-updater update-fw /dev/ttyRS485-1 -a 152
2022-02-26 15:56:54,781 Will find serial port settings for (/dev/ttyRS485-1 : 152)…
2022-02-26 15:57:07,303 Device is disconnected or slaveid/port is wrong

recover

wb-mcu-fw-updater recover /dev/ttyRS485-1 -a 152
2022-02-26 16:01:42,536 Device (/dev/ttyRS485-1 : 152) is not in bootloader mode!
Check device’s connection or slaveid/port

Судя по выводу - неконтакт шины. Проверьте еще раз соединение, запустите с добавлением --debug

Проверил контакт, все нормально. На шине это устройство стоит первым, другие работают. Что значит добавить

[quote=“BrainRoot, post:9, topic:10518”]
debug
[/quote] Напишите всю команду

wb-mcu-fw-updater --debug recover /dev/ttyRS485-1 -a 152

wb-mcu-fw-updater --debug recover /dev/ttyRS485-1 -a 152
2022-02-26 16:51:12,482 Will run: killall -STOP wb-mqtt-serial
2022-02-26 16:51:12,589 Reading /usr/lib/wb-release for releases info
2022-02-26 16:51:12,598 Got releases info:
defaultdict(<function parse_releases.. at 0xa6294b70>, {‘TARGET’: ‘wb6/stretch’, ‘REPO_PREFIX’: ‘’, ‘SUITE’: ‘testing’, ‘RELEASE_NAME’: ‘wb-2201’})
2022-02-26 16:51:12,609 MinimalModbus debug mode. Create serial port /dev/ttyRS485-1
2022-02-26 16:51:12,620 MinimalModbus debug mode. Closing serial port /dev/ttyRS485-1
2022-02-26 16:51:12,631 Opening and closing port /dev/ttyRS485-1 to write settings
2022-02-26 16:51:12,645 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): ‘\x98\x03\x00\x80\x00\x01\x98+’ (98 03 00 80 00 01 98 2B)
2022-02-26 16:51:12,653 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2022-02-26 16:51:12,659 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2022-02-26 16:51:12,665 MinimalModbus debug mode. No sleep required before write. Time since previous read: 204782688.65 ms, minimum silent period: 4.01 ms.
2022-02-26 16:51:12,772 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2022-02-26 16:51:12,779 MinimalModbus debug mode. Response from instrument: ‘’ () (0 bytes), roundtrip time: 101.1 ms. Timeout for reading: 100.0 ms.

2022-02-26 16:51:12,791 MinimalModbus debug mode. Will write to instrument (expecting 7 bytes back): ‘\x98\x03\x00\x80\x00\x01\x98+’ (98 03 00 80 00 01 98 2B)
2022-02-26 16:51:12,797 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2022-02-26 16:51:12,805 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2022-02-26 16:51:12,813 MinimalModbus debug mode. No sleep required before write. Time since previous read: 40.69 ms, minimum silent period: 4.01 ms.
2022-02-26 16:51:12,920 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2022-02-26 16:51:12,928 MinimalModbus debug mode. Response from instrument: ‘’ () (0 bytes), roundtrip time: 100.9 ms. Timeout for reading: 100.0 ms.

2022-02-26 16:51:12,938 Setting params 9600-N-2 to port /dev/ttyRS485-1
2022-02-26 16:51:12,943 Opening and closing port /dev/ttyRS485-1 to write settings
2022-02-26 16:51:12,970 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): ‘\x98\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\x00Kµ’ (98 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 4B B5)
2022-02-26 16:51:12,977 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2022-02-26 16:51:12,984 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2022-02-26 16:51:12,991 MinimalModbus debug mode. No sleep required before write. Time since previous read: 71.18 ms, minimum silent period: 4.01 ms.
2022-02-26 16:51:13,369 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2022-02-26 16:51:13,377 MinimalModbus debug mode. Response from instrument: ‘\x98\x90\x04\x9dìX\x04\x04’ (98 90 04 9D EC 58 04 04) (8 bytes), roundtrip time: 371.7 ms. Timeout for reading: 500.0 ms.

2022-02-26 16:51:13,405 MinimalModbus debug mode. Will write to instrument (expecting 8 bytes back): ‘\x98\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\x00Kµ’ (98 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 4B B5)
2022-02-26 16:51:13,412 MinimalModbus debug mode. Opening port /dev/ttyRS485-1
2022-02-26 16:51:13,420 MinimalModbus debug mode. Clearing serial buffers for port /dev/ttyRS485-1
2022-02-26 16:51:13,426 MinimalModbus debug mode. No sleep required before write. Time since previous read: 57.26 ms, minimum silent period: 4.01 ms.
2022-02-26 16:51:13,679 MinimalModbus debug mode. Closing port /dev/ttyRS485-1
2022-02-26 16:51:13,688 MinimalModbus debug mode. Response from instrument: ‘X$ù\x98\x90\x04\x9dì’ (58 24 F9 98 90 04 9D EC) (8 bytes), roundtrip time: 245.8 ms. Timeout for reading: 500.0 ms.

2022-02-26 16:51:13,701 Setting params to port /dev/ttyRS485-1 back
2022-02-26 16:51:13,704 Opening and closing port /dev/ttyRS485-1 to write settings
2022-02-26 16:51:13,714 Device (/dev/ttyRS485-1 : 152) is not in bootloader mode!
Check device’s connection or slaveid/port
2022-02-26 16:51:13,733 Has saved db to /var/lib/wb-mcu-fw-updater/devices.jsondb
2022-02-26 16:51:13,740 Will run: killall -CONT wb-mqtt-serial
root@wirenboard-AVV36KSB:~#

Устройство не отвечает на запрос адреса. Пожалуй, надо оставлять его одно на шине и выполнить прошивку так:
Сервисная утилита wb-mcu-fw-flasher — Wiren Board,%D0%B5%D1%81%D0%BB%D0%B8%D1%83%D1%81%D1%82%D1%80%D0%BE%D0%B9%D1%81%D1%82%D0%B2%D0%BE_%D0%B2_%D1%80%D0%B5%D0%B6%D0%B8%D0%BC%D0%B5_%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D1%87%D0%B8%D0%BA%D0%B0

Если устройство одно, то адрес можно указать 0

Ничего у меня не получается с WB MWAC, он так и не определяется в интерфейсе, не могли бы вы удаленно все поправить?

Добрый день.
Да, могу.
Оставьте одно устройство на порту, его питание временно переключите на V_out контроллера.

Все сделал, можно подключаться

Порт занят чем-то посторонним, что блокировало его и не давало устройству прошиться. Процесс остановлен, устройство (в bootloader) прошито и отвечает на Modbus.

Эта тема была автоматически закрыта через 7 дней после последнего ответа. В ней больше нельзя отвечать.