Is there any app to upgrade the code by using OTA?

Daniel
Posts: 14
Joined: Tue Jan 09, 2018 12:55 pm

Is there any app to upgrade the code by using OTA?

Postby Daniel » Tue Mar 20, 2018 1:33 pm

Dear anyone:
I have a project which must upgrad through OTA, so Is there any app or demo to upgrade the code by using OTA?For example, nrf Toolbox is very useful app to upgrade code for NRF51822. And what I need app is like the nrf Toolbox.Thank you.
Best wishes!
Daniel.
Last edited by Daniel on Wed Mar 21, 2018 1:05 am, edited 1 time in total.

User avatar
Gfast2
Posts: 171
Joined: Fri Aug 11, 2017 1:52 am

Re: Is there any app to upgrade the code by using OTA?

Postby Gfast2 » Tue Mar 20, 2018 1:51 pm

Hi Daniel,

do you mean just a demo or a app running on smartphone?

If you means just a OTA demo:

Code: Select all

~/esp/esp-idf/examples/system/ota


is a demo update esp32 from a simple http webserver.

cheers

gfast2

Daniel
Posts: 14
Joined: Tue Jan 09, 2018 12:55 pm

Re: Is there any app to upgrade the code by using OTA?

Postby Daniel » Wed Mar 21, 2018 1:35 am

Gfast2 wrote:Hi Daniel,

do you mean just a demo or a app running on smartphone?

If you means just a OTA demo:

Code: Select all

~/esp/esp-idf/examples/system/ota


is a demo update esp32 from a simple http webserver.

cheers

gfast2


Dear gfast2
Thank you very much for your reply.The demo does not seem to be so easy to upgrade code as I image.If the customers want to upgrade the program, it's not so convenient.So,Is there a more convenient app running on smartphone ?Thanks.

chegewara
Posts: 196
Joined: Wed Jun 14, 2017 9:00 pm

Re: Is there any app to upgrade the code by using OTA?

Postby chegewara » Wed Mar 21, 2018 6:49 am

You can modify demo code a bit and write some client app on android or iPhone that can let user to provide server address and port, path and file name that will be used to OTA update.

This is my OTA example which is based on OTA demo:
https://github.com/chegewara/esp32-ota-with-ble-setup

and this is simple demo app on android that works with esp32 code:
https://play.google.com/store/apps/deta ... 2_ota_demo

(sometimes can be issue to update from this app because all bin images are hosted on my home server)

User avatar
Vader_Mester
Posts: 134
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: Is there any app to upgrade the code by using OTA?

Postby Vader_Mester » Wed Mar 21, 2018 7:42 am

chegewara wrote:You can modify demo code a bit and write some client app on android or iPhone that can let user to provide server address and port, path and file name that will be used to OTA update.

This is my OTA example which is based on OTA demo:
https://github.com/chegewara/esp32-ota-with-ble-setup

and this is simple demo app on android that works with esp32 code:
https://play.google.com/store/apps/deta ... 2_ota_demo

(sometimes can be issue to update from this app because all bin images are hosted on my home server)


Maaaaaaaaan this is something I was looking for, for a long time!
There are 2 types of programmer people: The Expert programmer and The Smart programmer

The Expert programmer easily writes any code from scratch.
The Smart programmer uses his google/github powers first ;)

chegewara
Posts: 196
Joined: Wed Jun 14, 2017 9:00 pm

Re: Is there any app to upgrade the code by using OTA?

Postby chegewara » Wed Mar 21, 2018 2:23 pm

Vader_Mester wrote:Maaaaaaaaan this is something I was looking for, for a long time!


Feel free to reuse it, modify or do whatever you want.

Daniel
Posts: 14
Joined: Tue Jan 09, 2018 12:55 pm

Re: Is there any app to upgrade the code by using OTA?

Postby Daniel » Thu Mar 22, 2018 1:08 am

chegewara wrote:You can modify demo code a bit and write some client app on android or iPhone that can let user to provide server address and port, path and file name that will be used to OTA update.

This is my OTA example which is based on OTA demo:
https://github.com/chegewara/esp32-ota-with-ble-setup

and this is simple demo app on android that works with esp32 code:
https://play.google.com/store/apps/deta ... 2_ota_demo

(sometimes can be issue to update from this app because all bin images are hosted on my home server)


Thank you very much.That's what I want .You do better than the official.But I can't successfully compile the source code. :( :( :(,It looks like the file CPPNVS.h is missing .

chegewara
Posts: 196
Joined: Wed Jun 14, 2017 9:00 pm

Re: Is there any app to upgrade the code by using OTA?

Postby chegewara » Thu Mar 22, 2018 1:26 am

Hi,
you need to use this library in place components/cpp_utils
https://github.com/nkolban/esp32-snippe ... /cpp_utils

Daniel
Posts: 14
Joined: Tue Jan 09, 2018 12:55 pm

Re: Is there any app to upgrade the code by using OTA?

Postby Daniel » Thu Mar 22, 2018 12:54 pm

chegewara wrote:Hi,
you need to use this library in place components/cpp_utils
https://github.com/nkolban/esp32-snippe ... /cpp_utils



Thank you very much, although I didn't make it like you said. :( That is your code not mine.

chegewara
Posts: 196
Joined: Wed Jun 14, 2017 9:00 pm

Re: Is there any app to upgrade the code by using OTA?

Postby chegewara » Thu Mar 22, 2018 1:56 pm

It does not matter how you do it, the only matter is if it works for you.

Who is online

Users browsing this forum: loboris and 9 guests