D
@Xykon I had several other units I tried to fix and get online that still wouldn't flash OTA.
When I ran your debug commands, it did go thru.
>>> import pycom
>>> pycom.nvs_set('pybytes_debug', 5)
>>> ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8020,len:8
load:0x3fff8028,len:2140
ho 0 tail 12 room 4
load:0x4009fa00,len:19760
entry 0x400a05bc
ssl_params={'ca_certs': '/flash/cert/pycom-ca.pem'}
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8020,len:8
load:0x3fff8028,len:2140
ho 0 tail 12 room 4
load:0x4009fa00,len:19760
entry 0x400a05bc
ssl_params={'ca_certs': '/flash/cert/pycom-ca.pem'}
LIS2HH12 not imported
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8020,len:8
load:0x3fff8028,len:2140
ho 0 tail 12 room 4
load:0x4009fa00,len:19760
entry 0x400a05bc
ssl_params={'ca_certs': '/flash/cert/pycom-ca.pem'}
LIS2HH12 not imported
ssl_params={'ca_certs': '/flash/cert/pycom-ca.pem'}
WMAC: 807D3A937CD8
Firmware: 1.20.2.r1
Pybytes: 1.6.0
Attempting to connect with network wifi
Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
WLAN connected? False
Wifi connection attempt: 1
WLAN connected? False
(ssid='AREDN-20-v3', bssid=b'$\xa4<t\xfd#', sec=0, channel=1, rssi=-36)
(ssid='DesertIslandSupplyCo', bssid=b"X\x90C'\x9a&", sec=3, channel=11, rssi=-41)
(ssid='Ericsson2.4G-2-1', bssid=b'\x00\rgv\xb6\xc9', sec=0, channel=1, rssi=-48)
(ssid='AREDN-20-v3', bssid=b'hrQn.\xe0', sec=0, channel=1, rssi=-51)
(ssid='ATTqsHdTxi_Ext', bssid=b'\xc4A\x1e^\xe0E', sec=3, channel=11, rssi=-52)
(ssid='Red_Mountain_Makers', bssid=b'\xf0\x9f\xc2=!b', sec=3, channel=6, rssi=-56)
(ssid='ATTqsHdTxi', bssid=b'\xf8-\xc0dUp', sec=3, channel=11, rssi=-56)
(ssid='ATT6SH58Na', bssid=b'\xec\xa9@\xbb\xe8p', sec=3, channel=6, rssi=-59)
(ssid='Red_Mountain_Makers', bssid=b'\xa0\x8ex2\x9f\xae', sec=3, channel=6, rssi=-63)
(ssid='ATTqsHdTxi_Ext_Ext', bssid=b'\xc4A\x1e^\xe0G', sec=3, channel=11, rssi=-64)
(ssid='DesertIslandSupplyCo', bssid=b'hrQ\x84Y\x9e', sec=3, channel=11, rssi=-67)
(ssid='DIRECT-3D-HP OfficeJet Pro 7740', bssid=b'B\xb04vj=', sec=3, channel=6, rssi=-74)
(ssid='woodrow hall-guest', bssid=b'\xc0\xc1\xc0\xc6@\x86', sec=0, channel=11, rssi=-83)
(ssid='OpenEVSE_1678039', bssid=b'^\xcf\x7f\x19\x9a\xd7', sec=3, channel=1, rssi=-84)
(ssid='Red_Mountain_Makers', bssid=b'\x00\x1d~\x97\xf8\x96', sec=3, channel=11, rssi=-86)
WiFi connection established
MQTT Protocol
Packet sent. (Length: 118)
This is PybytesProtocol.start_MQTT
Packet sent. (Length: 44)
Connected to MQTT mqtt.pybytes.pycom.io
Pybytes connected successfully (using the built-in pybytes library)
This is pack_info_message()
__pack_message: b'010404a00581000000'
MQTT Protocol
Packet sent. (Length: 50)
Pybytes configuration read from /flash/pybytes_config.json
Pycom MicroPython 1.20.2.r1 [v1.11-a5aa0b8] on 2020-09-09; LoPy4 with ESP32
Pybytes Version: 1.6.0
Type "help()" for more information.
>>> This is PybytesProtocol.__process_recv_message()
This is PybytesLibrary.unpack_message(message=b'\x85')
Performing OTA
Requesting: manifest.json?current_ver=1.20.2.r1&sysname=LoPy4&wmac=807d3a937cd8&ota_slot=0x210000 to software.pycom.io:443 with SSL? True
Wrapping socket
Sending request
Result: b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Fri, 27 Nov '
Requesting: downloads/appimg/firmware_LoPy4_1.20.2.r2-pybytes.bin to software.pycom.io:443 with SSL? True
Wrapping socket
Sending request
Result: b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Fri, 27 Nov '
Sending OTA result back 2
__pack_message: b'0502'
MQTT Protocol
Packet sent. (Length: 47)
ets Jun 8 2016 00:22:57
rst:0x7 (TG0WDT_SYS_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8020,len:8
load:0x3fff8028,len:2140
ho 0 tail 12 room 4
load:0x4009fa00,len:19760
entry 0x400a05bc
ssl_params={'ca_certs': '/flash/cert/pycom-ca.pem'}
LIS2HH12 not imported
ssl_params={'ca_certs': '/flash/cert/pycom-ca.pem'}
WMAC: 807D3A937CD8
Firmware: 1.20.2.r2
Pybytes: 1.6.1
Attempting to connect with network wifi
Initialized watchdog for WiFi and LTE connection with timeout 1260000 ms
WLAN connected? False
Wifi connection attempt: 1
WLAN connected? False
(ssid='DesertIslandSupplyCo', bssid=b"X\x90C'\x9a&", sec=3, channel=11, rssi=-40)
(ssid='AREDN-20-v3', bssid=b'hrQn.\xe0', sec=0, channel=1, rssi=-46)
(ssid='Ericsson2.4G-2-1', bssid=b'\x00\rgv\xb6\xc9', sec=0, channel=1, rssi=-48)
(ssid='ATTqsHdTxi_Ext', bssid=b'\xc4A\x1e^\xe0E', sec=3, channel=11, rssi=-52)
(ssid='ATT6SH58Na', bssid=b'\xec\xa9@\xbb\xe8p', sec=3, channel=6, rssi=-53)
(ssid='Red_Mountain_Makers', bssid=b'\xf0\x9f\xc2=!b', sec=3, channel=6, rssi=-55)
(ssid='ATTqsHdTxi', bssid=b'\xf8-\xc0dUp', sec=3, channel=11, rssi=-56)
(ssid='Red_Mountain_Makers', bssid=b'\xa0\x8ex2\x9f\xae', sec=3, channel=6, rssi=-60)
(ssid='AREDN-20-v3', bssid=b'hrQf\x9e\xf0', sec=0, channel=1, rssi=-62)
(ssid='ATTqsHdTxi_Ext_Ext', bssid=b'\xc4A\x1e^\xe0G', sec=3, channel=11, rssi=-64)
(ssid='HVP_b82ca091985a', bssid=b'\xb8,\xa0\x91\x98b', sec=5, channel=6, rssi=-65)
(ssid='DesertIslandSupplyCo', bssid=b'hrQ\x84Y\x9e', sec=3, channel=11, rssi=-66)
(ssid='DIRECT-3D-HP OfficeJet Pro 7740', bssid=b'B\xb04vj=', sec=3, channel=6, rssi=-72)
(ssid='OpenEVSE_1678039', bssid=b'^\xcf\x7f\x19\x9a\xd7', sec=3, channel=1, rssi=-84)
(ssid='Red_Mountain_Makers', bssid=b'\x00\x1d~\x97\xf8\x96', sec=3, channel=11, rssi=-85)
(ssid='ATT-WI-6871', bssid=b'\xb0\xc1\x9e\x14mH', sec=3, channel=6, rssi=-90)
WiFi connection established
MQTT Protocol
Packet sent. (Length: 118)
This is PybytesProtocol.start_MQTT
Packet sent. (Length: 44)
Connected to MQTT mqtt.pybytes.pycom.io
Pybytes connected successfully (using the built-in pybytes library)
This is pack_info_message()
__pack_message: b'010404a00582000000'
MQTT Protocol
Packet sent. (Length: 50)
Pybytes configuration read from /flash/pybytes_config.json
Pycom MicroPython 1.20.2.r2 [v1.11-3a7776d] on 2020-11-23; LoPy4 with ESP32
Pybytes Version: 1.6.1
Type "help()" for more information.
>>>