ESP32 Issue during the OTA update

Suresh
Posts: 6
Joined: Wed May 03, 2023 5:16 am

ESP32 Issue during the OTA update

Postby Suresh » Tue Nov 07, 2023 9:38 am

Hi Team,

Please find the details regarding the OTA Issue.


Build environment:

Code: Select all

SDK: ESP-IDF v4.3.3
Device: ESP32
Component: OTA

Issue:


Facing the issue during the OTA update,


While OTA-binary downloading turns off the internet(Router is still On but only internet goes off) OTA task timeout is not happening, Task is stuck inside the OTA download loop continuously.

From the debug traces I can see the following traces, whenever the internet is disconnected.

Code: Select all

E (116767) TRANSPORT_BASE: esp_tls_conn_read error, errno=No more processes
W (116767) HTTP_CLIENT: esp_transport_read returned:-26880 and errno:11

Code snippet:

Code: Select all

Using the advanced_https_ota_example.c 

advanced_ota_example_task()

esp_err_t ota_finish_err = ESP_OK;
    esp_http_client_config_t config = {
        .url = CONFIG_EXAMPLE_FIRMWARE_UPGRADE_URL,
        .cert_pem = (char *)server_cert_pem_start,
        .timeout_ms = CONFIG_EXAMPLE_OTA_RECV_TIMEOUT,
        .keep_alive_enable = true,
    };

Please note that the same case tested with is ESP-IDF v5.1.1 and working as expected.

As latest sdk migration currently not possible, please help me to resolve the issue using ESP-IDFv4.4.3

hmalpani
Posts: 11
Joined: Tue May 02, 2023 9:22 am

Re: ESP32 Issue during the OTA update

Postby hmalpani » Fri Nov 10, 2023 8:43 am

Hello @Suresh

This issue has been resolved on the latest release/v4.4 branch. This fix will be included in the next 4.4.x release. You can cherry-pick the commit: https://github.com/espressif/esp-idf/co ... 9736015307

Hope this help.

Thanks
Harshit Malpani

Suresh
Posts: 6
Joined: Wed May 03, 2023 5:16 am

Re: ESP32 Issue during the OTA update

Postby Suresh » Wed Nov 15, 2023 11:12 am

@hmalpani,


Thanks a lot its working with this fix.



Regards,
Suresh

Who is online

Users browsing this forum: No registered users and 72 guests