ESP32S3 OTA fail over 4G connection

FabITA123
Posts: 2
Joined: Tue Jul 11, 2023 3:14 pm

ESP32S3 OTA fail over 4G connection

Postby FabITA123 » Mon Nov 20, 2023 10:34 am

I'm implementing a OTA via 4G modem connected to S3 module. I'm using ESP-IDF 4.4.3.
The file image is about 1.2Mb.
With one Sim Card it works fine. If I change the Sim Card (another Operator) the OTA fail with:

I (60168) HTTP_CLIENT: Body received in fetch header state, 0x3fcd17e7, 205
I (60168) esp_https_ota: Starting OTA...
I (60168) esp_https_ota: Writing to partition subtype 16 at offset 0x210000
...
E (124368) esp-tls-mbedtls: read error :-0x0050:
E (124368) TRANSPORT_BASE: esp_tls_conn_read error, errno=Connection reset by peer
W (124368) HTTP_CLIENT: esp_transport_read returned:-80 and errno:104
E (124368) TRANSPORT_BASE: poll_read select error 104, errno = Connection reset by peer, fd = 61
E (124368) esp_https_ota: data read -1, errno 0
E (124368) FwUpg: Complete data was not received.

It systematically fails.
I have monitored the esp <-> modem uart and I don't seen strange behaviours.

Can somebody help me to understand the cause of this problem? Thanks

Who is online

Users browsing this forum: No registered users and 93 guests