Обновление прошивки MAI6

ранее оставлял завку по поводу прошивки mai6

Модуль заменили, но теперь при попытке обновления другое высыпает.

root@wirenboard-AZQM5XVE:~# wb-mcu-fw-updater update-bl -a 31 /dev/ttyRS485-2 --debug
2023-12-28 20:32:12,166 Will run: fuser /dev/ttyRS485-2
2023-12-28 20:32:12,329 Clients of /dev/ttyRS485-2: 8553
2023-12-28 20:32:12,331 Will run: ps -o cmd= 8553
2023-12-28 20:32:12,434 Will run: fuser -k -STOP /dev/ttyRS485-2
2023-12-28 20:32:12,600 Reading /usr/lib/wb-release for releases info
2023-12-28 20:32:12,603 Got releases info:
2023-12-28 20:32:12,604 defaultdict(<function parse_releases.. at 0xb5e43bf8>, {‘RELEASE_NAME’: ‘unstable.latest’, ‘SUITE’: ‘testing’, ‘TARGET’: ‘wb7/bullseye’, ‘REPO_PREFIX’: ‘’})
2023-12-28 20:32:12,605 GET: http://fw-releases.wirenboard.com/
2023-12-28 20:32:13,136 Set {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 2} to /dev/ttyRS485-2
2023-12-28 20:32:13,137 /dev/ttyRS485-2 response_timeout → 0.20
2023-12-28 20:32:13,138 Set {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 2} to /dev/ttyRS485-2
2023-12-28 20:32:13,139 /dev/ttyRS485-2 response_timeout → 0.20
2023-12-28 20:32:13,140 Will find serial port settings for (/dev/ttyRS485-2 : 31; response_timeout: 0.20)…
2023-12-28 20:32:13,346 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-28 20:32:13,550 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-28 20:32:13,754 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-28 20:32:13,958 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-28 20:32:14,162 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-28 20:32:14,163 Trying serial port settings: (9600, ‘N’, 2)
2023-12-28 20:32:14,164 Set {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 2} to /dev/ttyRS485-2
2023-12-28 20:32:14,367 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-28 20:32:14,571 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-28 20:32:14,775 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-28 20:32:14,978 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-28 20:32:15,182 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-28 20:32:15,183 Trying serial port settings: (9600, ‘N’, 1)
2023-12-28 20:32:15,184 Set {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 1} to /dev/ttyRS485-2
2023-12-28 20:32:15,387 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-28 20:32:15,591 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-28 20:32:15,794 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-28 20:32:15,998 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-28 20:32:16,201 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-28 20:32:16,202 Trying serial port settings: (9600, ‘O’, 2)
2023-12-28 20:32:16,203 Set {‘baudrate’: 9600, ‘parity’: ‘O’, ‘stopbits’: 2} to /dev/ttyRS485-2
2023-12-28 20:32:16,406 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-28 20:32:16,610 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-28 20:32:16,813 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-28 20:32:17,017 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-28 20:32:17,221 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-28 20:32:17,222 Trying serial port settings: (9600, ‘O’, 1)
2023-12-28 20:32:17,223 Set {‘baudrate’: 9600, ‘parity’: ‘O’, ‘stopbits’: 1} to /dev/ttyRS485-2
2023-12-28 20:32:17,426 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-28 20:32:17,629 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-28 20:32:17,833 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-28 20:32:18,036 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-28 20:32:18,239 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-28 20:32:18,240 Trying serial port settings: (9600, ‘E’, 2)
2023-12-28 20:32:18,241 Set {‘baudrate’: 9600, ‘parity’: ‘E’, ‘stopbits’: 2} to /dev/ttyRS485-2
2023-12-28 20:32:18,445 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-28 20:32:18,648 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-28 20:32:18,852 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-28 20:32:19,056 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-28 20:32:19,259 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-28 20:32:19,260 Trying serial port settings: (9600, ‘E’, 1)
2023-12-28 20:32:19,261 Set {‘baudrate’: 9600, ‘parity’: ‘E’, ‘stopbits’: 1} to /dev/ttyRS485-2
2023-12-28 20:32:19,464 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-28 20:32:19,667 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-28 20:32:19,871 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-28 20:32:20,074 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-28 20:32:20,277 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xb5e39c70>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-28 20:32:20,278 Trying serial port settings: (115200, ‘N’, 2)
2023-12-28 20:32:20,279 Set {‘baudrate’: 115200, ‘parity’: ‘N’, ‘stopbits’: 2} to /dev/ttyRS485-2
2023-12-28 20:32:20,384 Has found serial port settings: {‘baudrate’: 115200, ‘parity’: ‘N’, ‘stopbits’: 2}
2023-12-28 20:32:20,698 /dev/ttyRS485-2 31:
2023-12-28 20:32:21,012 WBMAI6 150973 wb-mai6-15 2.0.7 1403
2023-12-28 20:32:21,118 Removing device: {‘slaveid’: 31, ‘port’: ‘/dev/ttyRS485-2’, ‘fw_signature’: ‘wb-mai6-15’}
2023-12-28 20:32:21,223 bootloader version has specified manually: latest
2023-12-28 20:32:21,224 Retrieving latest bootloader version number for wb-mai6-15
2023-12-28 20:32:21,226 GET: http://fw-releases.wirenboard.com/bootloader/by-signature/wb-mai6-15/main/latest.txt
2023-12-28 20:32:22,397 Flashing bootloader to (/dev/ttyRS485-2 31; response_timeout: 0.20s) has failed!
2023-12-28 20:32:22,400
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/fw_downloader.py”, line 47, in read_remote_file
ret = get_request(url_path)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/fw_downloader.py”, line 42, in get_request
raise WBRemoteStorageError(url_path)
wb_mcu_fw_updater.fw_downloader.WBRemoteStorageError: http://fw-releases.wirenboard.com/bootloader/by-signature/wb-mai6-15/main/latest.txt

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/bin/wb-mcu-fw-updater”, line 90, in _update_alive_device
update_monitor.flash_alive_device(modbus_connection, mode, branch, version, force, erase_settings)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/update_monitor.py”, line 567, in flash_alive_device
downloaded_fw, specified_fw_version = _do_download(fw_signature, specified_fw_version, branch_name, mode)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/update_monitor.py”, line 500, in _do_download
version = downloader.get_latest_version_number(fw_sig) # to guess, is reflash needed or not
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/fw_downloader.py”, line 140, in get_latest_version_number
return read_remote_file(url_path)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/fw_downloader.py”, line 50, in read_remote_file
six.raise_from(RemoteFileReadingError, e)
File “”, line 3, in raise_from
wb_mcu_fw_updater.fw_downloader.RemoteFileReadingError
2023-12-28 20:32:22,413 Has saved db to /var/lib/wb-mcu-fw-updater/devices.jsondb
2023-12-28 20:32:22,415 Will run: fuser -k -CONT /dev/ttyRS485-2
root@wirenboard-AZQM5XVE:~#

Добрый день.
Сожалению, что вы вновь столкнулись проблемой прошивки устройства.
Для полноты информации пришлите диагностический архив, версию ПО контроллера.
В присланном вами логе вижу по сути ошибку скачивания прошивки загрузчика. Обращусь с данной проблемой к разработчикам. Отпишусь вам о результате.

diag_output_AZQM5XVE_2023-12-29-09.35.32.zip (311,4 КБ)

К сожалению, загрузчик версии 1.3.0 для модуля с вашей сигнатурой пока не доступен. Разработчики ответили, что исправят данную проблему в течение недели. Мы вам сообщим. И можно будет обновиться.
Не критичен ли для вас такой срок?
Приносим свои извинения за сложившуюся ситуацию.

Нет, просто стараюсь держать актуальную версию по

1 Like

Тогда как разработчики починят, я в теме сообщу. Спасибо за обратную связь.
С наступающим Новым Годом.

И вас с наступающим

Продублирую и в данную тему.
Коллеги сообщили, что появился релиз загрузчика для wb-mai6-15. Можете обновляться.