Page 1 of 1

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

Posted: Tue Mar 20, 2018 1:33 pm
by Daniel
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.

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

Posted: Tue Mar 20, 2018 1:51 pm
by Gfast2
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

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

Posted: Wed Mar 21, 2018 1:35 am
by Daniel
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.

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

Posted: Wed Mar 21, 2018 6:49 am
by chegewara
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)

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

Posted: Wed Mar 21, 2018 7:42 am
by Vader_Mester
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!

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

Posted: Wed Mar 21, 2018 2:23 pm
by chegewara
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.

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

Posted: Thu Mar 22, 2018 1:08 am
by Daniel
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 .

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

Posted: Thu Mar 22, 2018 1:26 am
by chegewara
Hi,
you need to use this library in place components/cpp_utils
https://github.com/nkolban/esp32-snippe ... /cpp_utils

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

Posted: Thu Mar 22, 2018 12:54 pm
by Daniel
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.

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

Posted: Thu Mar 22, 2018 1:56 pm
by chegewara
It does not matter how you do it, the only matter is if it works for you.