Прошивка не прошла, устройство не отвечает…
root@wirenboard-A6RC2UEN:~# wb-mcu-fw-updater update-fw /dev/ttyRS485-1 -a11 --debug
2023-12-12 21:08:16,121 Will run: fuser /dev/ttyRS485-1
2023-12-12 21:08:17,413 Clients of /dev/ttyRS485-1: 1620
2023-12-12 21:08:17,423 Will run: ps -o cmd= 1620
2023-12-12 21:08:18,017 Will run: fuser -k -STOP /dev/ttyRS485-1
2023-12-12 21:08:19,503 Reading /usr/lib/wb-release for releases info
2023-12-12 21:08:19,510 Got releases info:
2023-12-12 21:08:19,540 defaultdict(<function parse_releases.. at 0xa6004b68>, {‘RELEASE_NAME’: ‘unstable.latest’, ‘SUITE’: ‘testing’, ‘TARGET’: ‘wb6/bullseye’, ‘REPO_PREFIX’: ‘’})
2023-12-12 21:08:19,550 GET: http://fw-releases.wirenboard.com/
2023-12-12 21:08:21,497 Set {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 2} to /dev/ttyRS485-1
2023-12-12 21:08:21,511 /dev/ttyRS485-1 response_timeout → 0.20
2023-12-12 21:08:21,535 Set {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 2} to /dev/ttyRS485-1
2023-12-12 21:08:21,569 /dev/ttyRS485-1 response_timeout → 0.20
2023-12-12 21:08:21,580 Will find serial port settings for (/dev/ttyRS485-1 : 11; response_timeout: 0.20)…
2023-12-12 21:08:21,752 Has found serial port settings: {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 2}
2023-12-12 21:08:22,273 /dev/ttyRS485-1 11:
2023-12-12 21:08:22,670 WBMR2m 4264129205 mr2mG 1.20.3 81701
2023-12-12 21:08:22,855 Removing device: {‘slaveid’: 11, ‘port’: ‘/dev/ttyRS485-1’, ‘fw_signature’: ‘mr2mG’}
2023-12-12 21:08:23,000 FW releases files: [‘http://fw-releases.wirenboard.com/fw/by-signature/release-versions.yaml’]
2023-12-12 21:08:23,017 Looking to http://fw-releases.wirenboard.com/fw/by-signature/release-versions.yaml (suite: testing)
2023-12-12 21:08:23,027 GET: http://fw-releases.wirenboard.com/fw/by-signature/release-versions.yaml
2023-12-12 21:08:32,383 FW version for mr2mG on release testing: 1.20.4 (endpoint: fw/by-signature/mr2mG/main/1.20.4.wbfw)
2023-12-12 21:08:32,413 GET: http://fw-releases.wirenboard.com/fw/by-signature/mr2mG/main/1.20.4.wbfw
2023-12-12 21:08:33,415 Trying to get fname from content-disposition
2023-12-12 21:08:33,423 Got fname: mr2mG__1.20.4_master_f4ca222.wbfw
2023-12-12 21:08:33,447 http://fw-releases.wirenboard.com/fw/by-signature/mr2mG/main/1.20.4.wbfw => /var/lib/wb-mcu-fw-updater/mr2mG__1.20.4_master_f4ca222.wbfw
2023-12-12 21:08:33,461 fw (mr2mG 11 on /dev/ttyRS485-1):
2023-12-12 21:08:33,487 Update: 1.20.3 → 1.20.4 (mr2mG 11 /dev/ttyRS485-1)
2023-12-12 21:08:33,663 Flashing approved for “mr2mG” (/dev/ttyRS485-1 : 11)
2023-12-12 21:08:34,596 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa600fb80>, 128) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-12 21:08:34,803 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa600fb80>, 128) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-12 21:08:35,024 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa600fb80>, 128) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-12 21:08:35,231 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa600fb80>, 128) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-12 21:08:35,446 f = read_u16(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa600fb80>, 128) not succeed (try 5/5): No communication with the instrument (no answer)
2023-12-12 21:08:35,448 Set {‘baudrate’: 9600, ‘parity’: ‘N’, ‘stopbits’: 2} to /dev/ttyRS485-1
2023-12-12 21:08:35,449 /dev/ttyRS485-1 response_timeout → 0.20
2023-12-12 21:08:35,450 /dev/ttyRS485-1 response_timeout → 5.00
2023-12-12 21:08:41,440 Flashing /var/lib/wb-mcu-fw-updater/mr2mG__1.20.4_master_f4ca222.wbfw
2023-12-12 21:08:41,451 /dev/ttyRS485-1 response_timeout → 6.00
2023-12-12 21:08:41,775 /dev/ttyRS485-1 response_timeout → 5.00
94%|#############################################################################################################6 |180/1922023-12-12 21:09:50,720 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [8166, 16291, 2704, 52666, 59624, 22999, 5471, 48945, 15036, 26917, 17183, 23467, 40902, 44330, 7660, 14261, 17982, 39699, 33618, 49443, 59054, 50544, 38919, 29928, 57613, 52368, 13508, 49449, 56445, 49778, 26937, 5353, 1870, 23479, 17022, 52280, 37116, 37014, 32701, 13085, 55466, 2913, 36517, 33215, 53788, 34864, 8516, 39200, 40667, 11833, 52646, 5910, 7750, 28939, 2415, 20169, 5505, 25979, 12620, 30015, 8663, 42782, 27576, 19930, 31593, 35320, 65514, 21468]) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-12 21:09:55,913 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [8166, 16291, 2704, 52666, 59624, 22999, 5471, 48945, 15036, 26917, 17183, 23467, 40902, 44330, 7660, 14261, 17982, 39699, 33618, 49443, 59054, 50544, 38919, 29928, 57613, 52368, 13508, 49449, 56445, 49778, 26937, 5353, 1870, 23479, 17022, 52280, 37116, 37014, 32701, 13085, 55466, 2913, 36517, 33215, 53788, 34864, 8516, 39200, 40667, 11833, 52646, 5910, 7750, 28939, 2415, 20169, 5505, 25979, 12620, 30015, 8663, 42782, 27576, 19930, 31593, 35320, 65514, 21468]) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-12 21:10:01,090 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [8166, 16291, 2704, 52666, 59624, 22999, 5471, 48945, 15036, 26917, 17183, 23467, 40902, 44330, 7660, 14261, 17982, 39699, 33618, 49443, 59054, 50544, 38919, 29928, 57613, 52368, 13508, 49449, 56445, 49778, 26937, 5353, 1870, 23479, 17022, 52280, 37116, 37014, 32701, 13085, 55466, 2913, 36517, 33215, 53788, 34864, 8516, 39200, 40667, 11833, 52646, 5910, 7750, 28939, 2415, 20169, 5505, 25979, 12620, 30015, 8663, 42782, 27576, 19930, 31593, 35320, 65514, 21468]) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-12 21:10:06,469 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [8166, 16291, 2704, 52666, 59624, 22999, 5471, 48945, 15036, 26917, 17183, 23467, 40902, 44330, 7660, 14261, 17982, 39699, 33618, 49443, 59054, 50544, 38919, 29928, 57613, 52368, 13508, 49449, 56445, 49778, 26937, 5353, 1870, 23479, 17022, 52280, 37116, 37014, 32701, 13085, 55466, 2913, 36517, 33215, 53788, 34864, 8516, 39200, 40667, 11833, 52646, 5910, 7750, 28939, 2415, 20169, 5505, 25979, 12620, 30015, 8663, 42782, 27576, 19930, 31593, 35320, 65514, 21468]) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-12 21:10:11,748 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [8166, 16291, 2704, 52666, 59624, 22999, 5471, 48945, 15036, 26917, 17183, 23467, 40902, 44330, 7660, 14261, 17982, 39699, 33618, 49443, 59054, 50544, 38919, 29928, 57613, 52368, 13508, 49449, 56445, 49778, 26937, 5353, 1870, 23479, 17022, 52280, 37116, 37014, 32701, 13085, 55466, 2913, 36517, 33215, 53788, 34864, 8516, 39200, 40667, 11833, 52646, 5910, 7750, 28939, 2415, 20169, 5505, 25979, 12620, 30015, 8663, 42782, 27576, 19930, 31593, 35320, 65514, 21468]) not succeed (try 5/5): No communication with the instrument (no answer)
94%|##############################################################################################################2 |181/1922023-12-12 21:10:16,943 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [4675, 49671, 56063, 56931, 24763, 64478, 37425, 35408, 37522, 7103, 1643, 31030, 34040, 60537, 63955, 7095, 54381, 54977, 58250, 955, 58495, 61117, 43338, 14661, 16770, 32690, 45622, 30779, 59219, 17970, 43879, 64689, 37392, 34121, 23217, 44971, 60512, 25451, 64107, 14249, 58290, 37098, 56967, 42107, 56124, 12460, 33770, 33346, 43441, 47581, 13638, 61836, 58068, 30438, 37099, 33478, 50661, 32005, 30678, 36390, 19529, 51485, 65262, 21272, 18950, 25950, 49998, 51962]) not succeed (try 1/5): No communication with the instrument (no answer)
2023-12-12 21:10:22,029 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [4675, 49671, 56063, 56931, 24763, 64478, 37425, 35408, 37522, 7103, 1643, 31030, 34040, 60537, 63955, 7095, 54381, 54977, 58250, 955, 58495, 61117, 43338, 14661, 16770, 32690, 45622, 30779, 59219, 17970, 43879, 64689, 37392, 34121, 23217, 44971, 60512, 25451, 64107, 14249, 58290, 37098, 56967, 42107, 56124, 12460, 33770, 33346, 43441, 47581, 13638, 61836, 58068, 30438, 37099, 33478, 50661, 32005, 30678, 36390, 19529, 51485, 65262, 21272, 18950, 25950, 49998, 51962]) not succeed (try 2/5): No communication with the instrument (no answer)
2023-12-12 21:10:27,169 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [4675, 49671, 56063, 56931, 24763, 64478, 37425, 35408, 37522, 7103, 1643, 31030, 34040, 60537, 63955, 7095, 54381, 54977, 58250, 955, 58495, 61117, 43338, 14661, 16770, 32690, 45622, 30779, 59219, 17970, 43879, 64689, 37392, 34121, 23217, 44971, 60512, 25451, 64107, 14249, 58290, 37098, 56967, 42107, 56124, 12460, 33770, 33346, 43441, 47581, 13638, 61836, 58068, 30438, 37099, 33478, 50661, 32005, 30678, 36390, 19529, 51485, 65262, 21272, 18950, 25950, 49998, 51962]) not succeed (try 3/5): No communication with the instrument (no answer)
2023-12-12 21:10:32,342 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [4675, 49671, 56063, 56931, 24763, 64478, 37425, 35408, 37522, 7103, 1643, 31030, 34040, 60537, 63955, 7095, 54381, 54977, 58250, 955, 58495, 61117, 43338, 14661, 16770, 32690, 45622, 30779, 59219, 17970, 43879, 64689, 37392, 34121, 23217, 44971, 60512, 25451, 64107, 14249, 58290, 37098, 56967, 42107, 56124, 12460, 33770, 33346, 43441, 47581, 13638, 61836, 58068, 30438, 37099, 33478, 50661, 32005, 30678, 36390, 19529, 51485, 65262, 21272, 18950, 25950, 49998, 51962]) not succeed (try 4/5): No communication with the instrument (no answer)
2023-12-12 21:10:37,596 f = write_u16_regs(<wb_modbus.bindings.WBModbusDeviceBase object at 0xa601d220>, 8192, [4675, 49671, 56063, 56931, 24763, 64478, 37425, 35408, 37522, 7103, 1643, 31030, 34040, 60537, 63955, 7095, 54381, 54977, 58250, 955, 58495, 61117, 43338, 14661, 16770, 32690, 45622, 30779, 59219, 17970, 43879, 64689, 37392, 34121, 23217, 44971, 60512, 25451, 64107, 14249, 58290, 37098, 56967, 42107, 56124, 12460, 33770, 33346, 43441, 47581, 13638, 61836, 58068, 30438, 37099, 33478, 50661, 32005, 30678, 36390, 19529, 51485, 65262, 21272, 18950, 25950, 49998, 51962]) not succeed (try 5/5): No communication with the instrument (no answer)
94%|###########################################################################################################################################################5 |181/192
2023-12-12 21:10:37,608 Flashing fw to (/dev/ttyRS485-1 11; response_timeout: 0.20s) has failed!
2023-12-12 21:10:37,628
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/fw_flasher.py”, line 120, in _send_data
self.instrument.write_u16_regs(
File “/usr/lib/python3/dist-packages/wb_modbus/bindings.py”, line 42, in wrapper
return f(self, *args, **kwargs)
File “/usr/lib/python3/dist-packages/wb_modbus/bindings.py”, line 69, in wrapper
raise thrown_exc
File “/usr/lib/python3/dist-packages/wb_modbus/bindings.py”, line 63, in wrapper
return f(*args, **kwargs)
File “/usr/lib/python3/dist-packages/wb_modbus/bindings.py”, line 274, in write_u16_regs
self.device.write_registers(beginning, values)
File “/usr/lib/python3/dist-packages/wb_modbus/minimalmodbus.py”, line 885, in write_registers
self._generic_command(
File “/usr/lib/python3/dist-packages/wb_modbus/minimalmodbus.py”, line 1139, in _generic_command
payload_from_slave = self._perform_command(functioncode, payload_to_slave)
File “/usr/lib/python3/dist-packages/wb_modbus/minimalmodbus.py”, line 1203, in _perform_command
response = self._communicate(request, number_of_bytes_to_read)
File “/usr/lib/python3/dist-packages/wb_modbus/instruments.py”, line 161, in _communicate
self._write_to_bus(request)
File “/usr/lib/python3/dist-packages/wb_modbus/instruments.py”, line 251, in _write_to_bus
raise minimalmodbus.NoResponseError(“No communication with the instrument (no answer)”)
wb_modbus.minimalmodbus.NoResponseError: No communication with the instrument (no answer)
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 577, in flash_alive_device
_do_flash(modbus_connection, downloaded_fw, mode, erase_settings, force=force)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/update_monitor.py”, line 515, in _do_flash
direct_flash(fw_fpath, modbus_connection, erase_settings, force=force)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/update_monitor.py”, line 385, in direct_flash
flasher.flash_in_bl(fw_fpath)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/fw_flasher.py”, line 161, in flash_in_bl
self._send_data(data_block)
File “/usr/lib/python3/dist-packages/wb_mcu_fw_updater/fw_flasher.py”, line 126, in _send_data
six.raise_from(FlashingError, e)
File “”, line 3, in raise_from
wb_mcu_fw_updater.fw_flasher.FlashingError
2023-12-12 21:10:37,785 Has saved db to /var/lib/wb-mcu-fw-updater/devices.jsondb
2023-12-12 21:10:37,798 Will run: fuser -k -CONT /dev/ttyRS485-1