Skip to content
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

OTA using SIM800 #152

Closed
thbl opened this issue Apr 13, 2018 · 8 comments
Closed

OTA using SIM800 #152

thbl opened this issue Apr 13, 2018 · 8 comments

Comments

@thbl
Copy link

thbl commented Apr 13, 2018

Hi Guys
Does any one have an example on how to do a OTA over sim800 and arduino ?
-Or how/where can i get startet with it ? :)

@hubaksis
Copy link
Contributor

I have successfully made OTA for ESP8266. In general:

  1. Send a request to the server.
  2. Read raw response to some kind of memory using read method
uint8_t file_buffer[512];

 while (client->available()){
int read = client->read(file_buffer, sizeof(file_buffer) - 1);
//save file_buffer somewhere
}
  1. Update.

So, you need to find out if it's possible to make OTA for arduino and how it works. There is no problems downloading a file using TinyGSM.

@kamrulroky
Copy link

@hubaksis after downloading the bin file where did you save the file and how do you upload the file from there. I am really a rookie to this, trying OTA for esp8266 using SIM800. can you share some details how its done, please

@hubaksis
Copy link
Contributor

hubaksis commented Apr 15, 2018

File is saved to the SPIFFS (docs here)
Then you need to perform an update from SPIFFS.
Update: example is here

@thbl
Copy link
Author

thbl commented Apr 16, 2018

Thanks @hubaksis !

@roysG
Copy link

roysG commented Sep 19, 2021

Thanks

@lucasromeiro
Copy link

Hi guys, I have a problem.

I use esp32 and a sim800l modem.
I need to do OTA update safely, so there is no risk of a device breaking with a failed update.
However, apparently the tinygsm communication object is not supported for the standard OTA update function.
I have a large program, almost 1mb of code.
I looked at people downloading the BIN file for SPIFFS and then updating. Is this 100% safe? Is there a risk of failure and killing equipment that is remote?
I tried to implement it but I couldn't because the . BIN is too big.

Maybe if I change the file system to 1M of program and 3M of SPIFFS. It is possible?

If there is another way, can you help me?

@mudgalp
Copy link

mudgalp commented Apr 19, 2022

i'm also facing same problem as you are facing @lucasromeiro
please help anyone.

Thank you

@gotnull
Copy link

gotnull commented Jan 14, 2023

And update on this? (Pun not intended).

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

No branches or pull requests

8 participants