НЕ успешное обновление выглядит вот так:
Не запущен режим "Обновление прошивки" на устройстве.
C:\Users\User\Downloads\p52_v01.03>ota_ble_client.exe
Searching for charger...
charger has not been found.
Traceback (most recent call last):
File "D:\work\git_orion_prj\tft-charger-esp32_cry\prepare_file\ota_ble_client.py", line 133, in <module>
File "asyncio\runners.py", line 190, in run
File "asyncio\runners.py", line 118, in run
File "asyncio\base_events.py", line 653, in run_until_complete
File "D:\work\git_orion_prj\tft-charger-esp32_cry\prepare_file\ota_ble_client.py", line 41, in send_ota
File "D:\work\git_orion_prj\tft-charger-esp32_cry\prepare_file\ota_ble_client.py", line 31, in _search_for_charger
AssertionError
[8692] Failed to execute script 'ota_ble_client' due to unhandled exception!
C:\Users\User\Downloads\p52_v01.03>
Ноутбук находится в "авиарежиме" или выключен Bluetooth приемник.
C:\Users\User\Downloads\p52_v01.03>ota_ble_client.exe
Searching for charger...
Traceback (most recent call last):
File "D:\work\git_orion_prj\tft-charger-esp32_cry\prepare_file\ota_ble_client.py", line 133, in <module>
File "asyncio\runners.py", line 190, in run
File "asyncio\runners.py", line 118, in run
File "asyncio\base_events.py", line 653, in run_until_complete
File "D:\work\git_orion_prj\tft-charger-esp32_cry\prepare_file\ota_ble_client.py", line 41, in send_ota
File "D:\work\git_orion_prj\tft-charger-esp32_cry\prepare_file\ota_ble_client.py", line 22, in _search_for_charger
File "bleak\__init__.py", line 242, in discover
File "bleak\__init__.py", line 152, in __aenter__
File "bleak\backends\winrt\scanner.py", line 241, in start
OSError: [WinError -2147020577] Устройство не готово
[7660] Failed to execute script 'ota_ble_client' due to unhandled exception!
P.S. это на Windows 11 (23H2)