Skip to content

OTA via dashboard and arduino IDE (MEGH-3772) #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Michiel-FMI-ImProvia opened this issue Aug 22, 2022 · 13 comments · Fixed by espressif/arduino-esp32#7324
Open

OTA via dashboard and arduino IDE (MEGH-3772) #161

Michiel-FMI-ImProvia opened this issue Aug 22, 2022 · 13 comments · Fixed by espressif/arduino-esp32#7324

Comments

@Michiel-FMI-ImProvia
Copy link

Is it possible to do the OTA updates via the https://dashboard.insights.espressif.com when using the Arduino IDE?
up until now I get an Error when using RMaker.enableOTA(OTA_USING_TOPICS); and the ESP reboots

@github-actions github-actions bot changed the title OTA via dashboard and arduino IDE OTA via dashboard and arduino IDE (MEGH-3772) Aug 22, 2022
@JohnMacrae
Copy link

JohnMacrae commented Aug 22, 2022

I raised it in 2021 here( espressif/arduino-esp32#5420) It has been studiously ignored despite prodding. Problem is that Arduino version is precompiled so we're pretty powerless to help

@Michiel-FMI-ImProvia
Copy link
Author

Yeah, I saw your item. It would be amazing if it was possible to upload via the dashboard and all the devices get the new firmware. Another option is to try it via the ESP-IDF but then I need time to learn how this works. It's just that there is some OTA code in the arduino examples, and it bugs me that it seems to have no functionality.

@shahpiyushv
Copy link
Collaborator

shahpiyushv commented Aug 22, 2022

Low heap memory seems to be the root cause for this. Since Arduino has pre compiled libraries which are common across all esp32 specific modules, there are quite some things pulled in even when not used actively. Getting to a stage wherein the RAM usage will be reduced, but without affecting any other functionality/examples of Arduino will take some time.

@JohnMacrae
Copy link

JohnMacrae commented Aug 22, 2022 via email

@Michiel-FMI-ImProvia
Copy link
Author

Low heap memory seems to be the root cause for this. Since Arduino has pre compiled libraries which are common across all esp32 specific modules, there are quite some things pulled in even when not used actively. Getting to a stage wherein the RAM usage will be reduced, but without affecting any other functionality/examples will take some time.

I can imagine that this is not a simple problem. Maybe mention this in the Arduino examples to not get people's hopes up.
In short if I want to use Rainmaker OTA it's smarter to learn the ESP-IDF language.

@JohnMacrae
Copy link

There is a workaround @Michiel-FMI-ImProvia . Use Arduino OTA https://youtu.be/V-g45CFSFr4

@Michiel-FMI-ImProvia
Copy link
Author

Oh I am so exited!! Will watch that video with intense attention!!!

@JohnMacrae
Copy link

JohnMacrae commented Sep 6, 2022 via email

@me-chiel
Copy link

me-chiel commented Sep 6, 2022

exactly....

@sanketwadekar
Copy link
Contributor

Hi @JohnMacrae,
We are aware of this crash and are working on the fixes. We will fix this issue in the upcoming release of ESP32 Arduino.
Regards,
Sanket

@Michiel-FMI-ImProvia
Copy link
Author

Hi @JohnMacrae, We are aware of this crash and are working on the fixes. We will fix this issue in the upcoming release of ESP32 Arduino. Regards, Sanket

any idea when this release will happen? This functionality sounds so amazing.

@JohnMacrae
Copy link

JohnMacrae commented Oct 11, 2022 via email

@sanketwadekar
Copy link
Contributor

Hello,
Arduino 2.0.6 has been released, which fixes the OTA crash issues seen previously. If you face low memory errors like
esp-tls-mbedtls: mbedtls_ssl_setup returned -0x7F00, please reboot your device once. Doing a reboot after successful provisioning and then starting OTA is recommended.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants