#332

  Переглядів 130,175

Andreas Spiess

Andreas Spiess

4 роки тому

In this video, I would like to remind you of a handy ESP32 concept: Over the air or OTA update. A simple and efficient replacement of the Serial cable for devices which are not easily reachable, or for barebone ESP32 modules. And, as usual, I will add a few tricks and helpers.
In this video, we will:
- Learn how to use ESP32 OTA
- Create a basic sketch template for all our new projects
- I will show you some tricks like remote debugging
- If this simple OTA is not enough, I will show you other frameworks
- And, as usual, I included a “one last thing”
I am a proud Patreon of GreatScott!, Electroboom, Electronoobs, EEVblog, and others.
Links:
Sketches: github.com/SensorsIot/ESP32-OTA
ESP32 Dev board: s.click.aliexpress.com/e/_dVt... and s.click.aliexpress.com/e/_d7D...
Standard ESP32 Dev board: amzn.to/2Axh24B
ESP32 barebone PCB: s.click.aliexpress.com/e/_dZ6...
Telnetstream: github.com/jandrassy/TelnetSt...
WiFiManager for ESP32 (and ESP8266): github.com/tzapu/WiFiManager/...
IOTappstory.com: iotappstory.com/
The links above usually are affiliate links which support the channel (no additional cost for you).
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
My Patreon Page: / andreasspiess
Discord: / discord
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
My Amazon.com shop: www.amazon.com/shop/andreassp...
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For Amazon.de: amzn.to/2r0ZCYI
For Amazon UK: amzn.to/2mxBaJf
For ebay.com: ebay.to/2DuYXBp
profile.php?...
/ spiessa
www.instructables.com/member/...
Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
As an Amazon Associate, I earn from qualifying purchases

КОМЕНТАРІ: 632
@georglinde3910
@georglinde3910 4 роки тому
"It always sits in the in the first row!" - brilliant! :-D
@PranavSharma2504
@PranavSharma2504 4 роки тому
@@nutsandguts2871 Maybe 17 other people (including me) get impressed easily too, then. Edit: 31 now
@gerdkah6064
@gerdkah6064 4 роки тому
5:44 so OTA is also a subscriber ^v^
@systemofapwne
@systemofapwne 3 роки тому
Or you just sort your projects differently and use a better IDE (like MS Visual Studio Code + Platform.io) instead of the limited Arduino IDE. Yet, I like his videos for being "always straight and basic" (which unfortunately implies to also fallback to arduino IDE)
@WistrelChianti
@WistrelChianti 3 роки тому
@@PranavSharma2504 it was a great joke! (made me laugh anyhow =D)
@bowiejudah1617
@bowiejudah1617 2 роки тому
i guess Im asking randomly but does anyone know a trick to get back into an Instagram account..? I was stupid lost my password. I appreciate any tricks you can offer me!
@tonyp4894
@tonyp4894 11 днів тому
Andreas, I spent over a week trying to get OTA Basic from the Examples to work with my ESP32 Cam. Finally, I gave up and used your OTA template and it worked the first time and every time since. I can't thank you enough for taking the time to help me and those less fortunate in electronics knowledge. You're a HERO. :))
@AndreasSpiess
@AndreasSpiess 11 днів тому
Glad I could help!
@pcost
@pcost 4 роки тому
Hello Andreas! I always wait anxiously for new videos from you, no matter the subject, I know that I will learn lots of things! Greetings from Canada! 🙌
@AndreasSpiess
@AndreasSpiess 4 роки тому
During the last weeks you did not have to wait for too long ;-) It must be late in Canada...
@PranavSharma2504
@PranavSharma2504 4 роки тому
Same here! Of all the UKpostsrs, @Andreas Spiess is my all-time favorite! A perfect mix of information, experimentation, and humor!
@teddavis1840
@teddavis1840 3 роки тому
Grüezi Andreas, thanks for the many hours you devote to your viewers. I appreciate your dry humour very much. I tried to find if you have created any videos on motors and actuators without success. Monitoring & control systems would seem a natural progression to your sensor projects - LoRa especially. Hopp Schwiiz!
@PeterAlbronda
@PeterAlbronda 4 роки тому
Again a wonderful presentation with much practical information in a short time. Each Sunday morning I am looking forward to your high value information, thank you!
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome! And thank you for your nice words.
@listerdave1240
@listerdave1240 4 роки тому
Thanks a lot for this tutorial. I had been wanting (and needing) to do OTA for a long time but always wrongly assumed it would be very difficult and had in fact tried a few times without success but after watching your video I got it working in a few minutes in one of my projects.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad I could help!
@isilverboy
@isilverboy 3 роки тому
I'm seeing and seeing again your videos. They are very useful and help me to speed up my projects. Thank you very much for your work here, really!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you like them! And they help you in saving your valuable time.
@krishnanov21
@krishnanov21 4 роки тому
Just when I needed it! Thank you🙌
@AndreasSpiess
@AndreasSpiess 4 роки тому
Perfect!
@Marc_Miller
@Marc_Miller 3 роки тому
​@@AndreasSpiess I'm having trouble finding your video shown at 6:19 talking about using the FTDI board to read the serial connection. Which video was that in?
@borishruby7131
@borishruby7131 3 роки тому
Hello Andreas! I really love your videos and can't wait for another one. I like the way you do it. I didn't know something like this is possible in ESP32 at all! By the way, it works also on ESP8266 as I've just found out. Thanks a lot and keep up the great work! Greetings from Slovakia!
@leadeddeveloper9575
@leadeddeveloper9575 4 роки тому
Thank you for your video, I like those ESP videos so much. Also, I'm planning to use ESP in my new project on my channel. It is a very exciting controller!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Go for it!
@santopino2546
@santopino2546 4 роки тому
Excellent, finally something that I will surely personally use. Thank you.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad it was helpful!
@paulrichard8912
@paulrichard8912 4 роки тому
Always enjoy your tutorials and your github contributions. Thanks for the time and effort you put into these.
@AndreasSpiess
@AndreasSpiess 4 роки тому
My pleasure!
@VildanAkchurin
@VildanAkchurin 10 місяців тому
Copying and pasting from sketch example works right away! PuTTY debugging works as a charm. Thank you for the clear explanation and extended OTA debugging.
@AndreasSpiess
@AndreasSpiess 9 місяців тому
Glad it helped!
@Sean_Cockrell
@Sean_Cockrell 4 роки тому
Thanks for this video, will most defiantly be testing OTA and remote debugging on my next project.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Great!
@jeffbornes3986
@jeffbornes3986 2 роки тому
I love the way that you did this... You made this so user friendly THANK YOU.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You're welcome!
@massimomalesci352
@massimomalesci352 4 роки тому
Great video, Andreas, and very well explained!!!! Greetings from Italy! And I always sit in the first row!!!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@michaeldreher1372
@michaeldreher1372 3 роки тому
You really nail it down in 10 minutes, that's great
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you!
@kallereunanen1575
@kallereunanen1575 4 роки тому
This video was useful! Thanks a lot for a very dense set of excellent tips!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad you can use it!
@bombenlps7950
@bombenlps7950 4 роки тому
Thank you so much, i was just thinking of a way to upload code onto a smart bulb in the future without having to resolder all the connections. But i didnt know about OTA, you are a life saver. Thank you!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad it helped!
@AndrewDanne
@AndrewDanne 4 роки тому
This is so cool. 1. I am just starting to learn morse code. 2. I am just getting my head around ESZP32 and 8266. 3. I am working on a battery-powered automation controlled relay and am searching for information on very very low power devices (which you have previously covered). I really enjoy your ideas and how you go about explaining them. OTA will really help with all these projects.
@AndreasSpiess
@AndreasSpiess 3 роки тому
If you want to learn morse you have to have a look at my first videos. And if you are interested I have an updated version for the ESP32...
@MArifinDobson
@MArifinDobson 4 роки тому
I am proud to say that I am enrolling in an IoT program from ASIT (Andreas-Spiess-Institute-of-Technology). and "ASIT" in the first row. Love it, awesome as always~
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad you think so! ASIT - I love it!
@MArifinDobson
@MArifinDobson 3 роки тому
@@AndreasSpiess Thank you prof :D
@DaddyBusAdventures
@DaddyBusAdventures 4 роки тому
Danka viel mohl Andreas. I've played around with OTA but the debugging trick I was not aware off. Time to do some testing on my RV project where I have 8266's deployed to handle various tasks in the RV.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I am not sure if everything works the same on the ESP8266. But you can try
@JulioSalim
@JulioSalim 3 роки тому
Andreas, you are "The Man". Thanks!
@ClementsProjects
@ClementsProjects 4 роки тому
Thanks Andreas for the explainations. I worked with this beast during the last weeks and you complete informations i needed. Thank you !
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad it helped!
@hygri
@hygri 4 роки тому
Cool. I'd certainly like to see your take on RTOS, I've been using parts of it in my sketches and it looks incredibly powerful... A video from the guy with the Swiss accent would probably help many of us to get off the ground. Thanks!!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Maybe in the future, as I said...
@hygri
@hygri 4 роки тому
@@AndreasSpiess Fingers crossed ;)
@mr.anonymous298
@mr.anonymous298 3 роки тому
I always learn something new or interesting from your great videos! Thank you very much.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad to hear that!
@tonysfun
@tonysfun 3 роки тому
Just in nick of time for me Andreas! Thanks for several tips that will make our lives easier! You are just a machine that keeps going and going further than the battery commercial!
@AndreasSpiess
@AndreasSpiess 3 роки тому
I just have a schedule ;-) And you never know how long you live in my age...
@tonysfun
@tonysfun 3 роки тому
@@AndreasSpiess I agree! I'm not the youngest either, but I have plans too.... I just admire you and the amount of work you can do!!! Wishing you health - the rest can be purchased.
@ivanlogghe90
@ivanlogghe90 3 роки тому
Very helpful tutorial! This opens so many "ports" ;-) for new projects !!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you!
@bobpaydar3210
@bobpaydar3210 3 роки тому
thanks for your all’s videos you provided to us, very helpful for me and thank again 👍🏻
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad to hear that!
@DerTou
@DerTou 4 роки тому
Thank you, I have learned a lot of useful things from your videos. Looking forward to more ESP32 content :)
@AndreasSpiess
@AndreasSpiess 3 роки тому
More to come!
@DanielLopez-kt1xt
@DanielLopez-kt1xt 3 роки тому
And just by the work of your magic, i can program my esp32 ota... thank you very much! Your videos couldn't be easier to understand. This capability is perfect for an mqtt smart house.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad it worked!
@raguaviva
@raguaviva 4 роки тому
I know it is Sunday when I see a new video From Andreas! So good!
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@patrickm9953
@patrickm9953 3 роки тому
You made it very easy. Great tutorial
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad to hear that!
@mattmanandeddie
@mattmanandeddie 4 роки тому
Oh Thank You! I never knew you could debug over WiFi, that will make things easier. I've done an OTA update before where I forgot to add OTA code block to new sketch. I did a Face Palm, back when you could touch your face. :) Can't wait to see more on the long range 2.4Ghz radio.
@AndreasSpiess
@AndreasSpiess 4 роки тому
If you refer to the satellite project I assume I will continue this or next week.
@HimalayanPathik
@HimalayanPathik 2 роки тому
Thank you so much for this awesome tute. I am now able to solve my year-old problem. Very accurate and informative tutorial. God bless you.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad it helped!
@dogastus
@dogastus 4 роки тому
Another excellent and useful video - thank you!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad you enjoyed it!
@avejst
@avejst 4 роки тому
Great walkthrough 👍 Thanks for sharing 👍😀
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks for the visit
@B4x4
@B4x4 3 роки тому
Thank you for another great episode. Please make the RTOS episode.
@AndreasSpiess
@AndreasSpiess 3 роки тому
We will see...
@Jungmin_Seo
@Jungmin_Seo 4 роки тому
wow.. The code works flawlessly. Thanks!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You're welcome!
@Taran72
@Taran72 4 роки тому
Wow! I had no idea it was possibile to update the Arduino this way. Thank you for getting us know.
@AndreasSpiess
@AndreasSpiess 4 роки тому
It is not for the Arduino, it is for the Esp32
@Taran72
@Taran72 4 роки тому
@@AndreasSpiess , ohhhhh...ok. got it as you can see I'm not familiar with the different processors. :) thank you for the clarification.
@gaanpagla8417
@gaanpagla8417 3 роки тому
Brilliant video. Now I don't have to find my data cable which has a tendency to disappear whenever I need it . Thanks so much !
@AndreasSpiess
@AndreasSpiess 3 роки тому
And you even do not have to find your ESP as long as it has Wi-Fi connection ;-)
@Thorathome
@Thorathome 3 роки тому
This tutorial got me quickly onto OTA for my ESP8266 & 32s, thanks. Your helpful piece of #include code makes OTA smooth for both 8266 and ESP32s. I especially like the RTOS ESP32 twist. It works. Onward to TelNet for debugging OTA and to see how this all works with Blynk, which I use all the time. Thanks, Andreas. Much appreciated.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You're welcome!
@Thorathome
@Thorathome 3 роки тому
@@AndreasSpiess This quickstart into OTA is fabulous. Your code made it easy to get my Blynk-enabled ESP32s and 8266s updating OTA with little/no problems. All very quickly, thank you. (Change the 7 to an 8 in OTA.h line 23, and it's PERFECT!) Good intro to TelNet and PuTTY as well. So simple with your guidance. Thank you once again. Most helpful.
@avieleliyahu6199
@avieleliyahu6199 4 роки тому
Thank you, an educational and fun video as usual 😄
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad you enjoyed it!
@sergeykorzukhin2132
@sergeykorzukhin2132 4 роки тому
So it is time for some refactoring in my projects :) Thank you Andreas!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@WacKEDmaN
@WacKEDmaN 4 роки тому
funny that.. i was just setting up OTA on my ESP8266!... Great minds think alike!! :P nice info..as usual..Thanks Andreas :)
@AndreasSpiess
@AndreasSpiess 4 роки тому
My pleasure!
@msuc5vette
@msuc5vette 4 роки тому
@@AndreasSpiess This is awesome, will the example sketch work with an ESP8266 though? The video indicated it would need someone to contribute a compatible version. I am still working through how to include the #include libraries
@WacKEDmaN
@WacKEDmaN 4 роки тому
@@msuc5vette try this one i setup after watching.... i was using a version already in ESP_AsyncFSBrowser.. i just added esp8266s needed libs wrapped in #ifdef. the ArduinoOTA calls would complain during compile on esp8266 so i fixed them too.. github.com/WacKEDmaN/ESP32-OTA/blob/master/0TA_Template_Sketch/OTA.h
@stonecoldcnc
@stonecoldcnc 4 роки тому
@@WacKEDmaN Thanks for that, seems to work fine on the Wemos D1 board but not on the ESP-07, [ERROR]: Bad Answer: ERR: ERROR[4]: Not Enough Space
@WacKEDmaN
@WacKEDmaN 3 роки тому
@@stonecoldcnc make sure the partitions are set correct... im also guessing the low flash memory ESP (eg 512k/1Mb) chips wont be able to support OTA
@saeedkizzy
@saeedkizzy 4 роки тому
thanks for sharing.RTOS is a great tool in such systems.can't wait to see more about that :)
@AndreasSpiess
@AndreasSpiess 4 роки тому
Maybe...
@OldCurmudgeon3DP
@OldCurmudgeon3DP 4 роки тому
Very useful video, sir. I'm happy to see more code taking advantage of the ESP32. Dev boards are close enough to the 8266 in price that it's worth using the 32s even for simple projects. The extra uart is nice for Nextion screens. ITead just needs to rework their editor to be a little more user friendly.
@AndreasSpiess
@AndreasSpiess 4 роки тому
The ESP32 has many advantages. So there is no real benefit in investing into ESP8266.
@Beatfreak19831
@Beatfreak19831 4 роки тому
A great and useful video! Thanks Andreas!
@AndreasSpiess
@AndreasSpiess 4 роки тому
My pleasure!
@ZookeeperJohnG
@ZookeeperJohnG Місяць тому
Super helpful, thank you!🥸
@AndreasSpiess
@AndreasSpiess Місяць тому
You are welcome!
@djayers
@djayers 4 роки тому
Very helpful, thanks Andreas.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome.
@temyraverdana6421
@temyraverdana6421 4 роки тому
Mr. Andreas thanks, this video is amazing! Thanks!
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome!
@pascallongpre7797
@pascallongpre7797 3 роки тому
Awesome content! Thanks a lot!
@robertnickels1527
@robertnickels1527 3 роки тому
Thank you for this great tutorial, subscribed immediately - although I suspect it's getting crowded in the first row! I have Telnet remote debugging working on the ESP-01, all that's needed is to add "#include TelnetStream" and add "TelnetStream.begin();" in Setup. And I've only been playing with ESP-01 for a few days ;-)
@AndreasSpiess
@AndreasSpiess 3 роки тому
Welcome aboard of the channel!
@EXMattix
@EXMattix 3 роки тому
Thanks for all of your videos, you are going to be my favorite youtuber about microcontroller. But I recommended that if you call another video for more details, you could link in a box that video in the video. Thanks anyways for the good stuff.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome! Usually I place a card in the upper right corner if I mention another video.But maybe I forgot one or the other :-(
@EXMattix
@EXMattix 3 роки тому
@@AndreasSpiess yeah, maybe there is a issue with cards, but it's easy to find the video because of the numbering of your videos.
@souzamce
@souzamce 4 роки тому
Always very good classes
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you! 😃
@Zalo29
@Zalo29 4 роки тому
Good tricks Andreas. Creating a mock-up sketch with OTA&credentials , so smart I've been using remoteDebug to get a serial port when deployed, but recently I've got some troubles with websockets. I'll try your telnet suggestion. Thank you so much! BTW, I encourage you to dig into FreeRTOS as it gives you a lot more possibilities to manage many tasks concurrently
@AndreasSpiess
@AndreasSpiess 4 роки тому
I also had problems with other remote debugging libraries together with OTA. This one worked.
@santorcuato
@santorcuato 4 роки тому
Useful and necessary if you have sensors not on your workshop table but somewhere in the roof...
@AndreasSpiess
@AndreasSpiess 4 роки тому
Exactly!
@chahilpatel2993
@chahilpatel2993 4 роки тому
Perfect Timing 👌
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you think so!
@electronic7979
@electronic7979 4 роки тому
It was a video with useful information. I liked it
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad to hear that
@OsoPolarClone
@OsoPolarClone 4 роки тому
Very interesting video. THANKS!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@meinsda5983
@meinsda5983 4 роки тому
Great Work Andreas! What would we do without you ;)
@AndreasSpiess
@AndreasSpiess 4 роки тому
Just drink a Sunday beer in a sunny Beergarden ? ;-)
@meinsda5983
@meinsda5983 4 роки тому
@@AndreasSpiess Yes! I hope if you stay next time in vienna we have time together to do this and talking about technical news...
@DDBerlin
@DDBerlin 4 роки тому
Andreas, thanksfor the video. I'm sure you already know, but just for the records: OTA also works absolutelyflawless with ESP8266
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are right.
@MrgnUTube
@MrgnUTube 3 роки тому
Thank you so much for this vidéo Andreas :)
@AndreasSpiess
@AndreasSpiess 3 роки тому
My pleasure!
@vivekchauhan7468
@vivekchauhan7468 4 роки тому
As always great video...
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you!
@sblantipodi
@sblantipodi 4 роки тому
Wonderful videos, as always
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad you like them!
@necrodrucifver
@necrodrucifver 7 місяців тому
I am going to experiment setting the handler on the setup, expecting been able to upload code only when the bard is rebooted, thank you! Very nice videos, please consider a video to code read protection on esp32
@AndreasSpiess
@AndreasSpiess 7 місяців тому
As I like open source I have no need for code protection ;-)
@stonecoldcnc
@stonecoldcnc 4 роки тому
Thank you very much for that, very helpful explanation. Could you please explain what this line is for "unsigned long entry;" in the 0TA_Template_Sketch.ino?
@AndreasSpiess
@AndreasSpiess 3 роки тому
Maybe I forgot to delete it if it is not used
@peerappel2012
@peerappel2012 4 роки тому
Thanks very much! More information about RTOS would be great imo. Also cant the otahandle function be called every once in a while by a timer interrupt? Especially as it doesnt take to much time anyways.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Try it, maybe it will work. I do would not like this structure.
@michaeldreher1372
@michaeldreher1372 3 роки тому
​@@AndreasSpiess Use another thread, not an interrupt.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Another task did not work :-(
@michaeldreher1372
@michaeldreher1372 3 роки тому
​@Andreas Spiess : I tried it and also and had some problems, but I was able to fix them: 1. I had to reduce the sleep time between the calls to 5ms (10ms is too long) 2. I had to increase the stack size to at least 1900 byte, (1800 byte is not enough) call this in setup(): TaskHandle_t xOTATaskHandle = NULL; xTaskCreate( vOTATaskCode, "OTA", 2048, NULL, 1, &xOTATaskHandle); define the task function and remove the 'ArduinoOTA.handle()' call from loop(): void vOTATaskCode( void * pvParameters ) { for(;;) { sleep(5); ArduinoOTA.handle(); } }
@WistrelChianti
@WistrelChianti 3 роки тому
@@michaeldreher1372 @Andreas Spiess I've managed to get this working slightly differently to Michael but had to change a few things. Mind if I send a pull request with the updates? (I'll have to do them in a tidy way first, currently code is full of debug prints)
@MrBMohandes
@MrBMohandes 4 роки тому
Very nice video. Enjoyed it
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thanks for the visit
@JBoek30
@JBoek30 3 роки тому
Wow vielen Dank ! nice Erweiterung/Erleichterung Klasse Zusammenstellung ! klappt auf anhieb : 7
@AndreasSpiess
@AndreasSpiess 3 роки тому
Sollte eigentlich ;-) Vielen Dank für's Feedback.
@starlingwatch3921
@starlingwatch3921 9 місяців тому
Greutzi Andreas, I'm back in Zürich 18 Aug to 21, part of my older son's wedding. I'm even planning to do the Limmat swim! I hope you are having a great holiday. Thanks for this video. I am writing a BLE-based logger for ESP32 devices and will post it to the Reflections repository on Github in the coming weeks. It will support multiple devices logging to what looks like local Serial, and a central logger will display the logs. It will also work over an Internet connection to a central log server. If you already have seen something like this please let me know, so I don't waste my time re-inventing the wheel. -Frank
@AndreasSpiess
@AndreasSpiess 8 місяців тому
There are loggers like github.com/jandrassy/TelnetStream (I even made a video about it, if I remember right). But all go via WiFi. I wish you a pleasant stay in Switzerland and hope the weather will be fine for the wedding! At the moment, we have quite a lot of rain (which is suitable for nature, of course).
@starlingwatch3921
@starlingwatch3921 8 місяців тому
@@AndreasSpiess merci!
@jstro-hobbytech
@jstro-hobbytech 2 роки тому
This is a great video. Best explanation on how to do it. I know I'm a little late but credit where credit is due. I use the wemos d1 and have never had to reset after an ota update. My only complaint is that espressif should've released a more powerful board by now. They're the best other than a pi zero or whatever the new wifi mini pi is called. Anything pi related in Canada that isn't a Pico is at least 115 dollars where as an esp32 is about 20 now. More program memory and a faster cpu like the teensy has been doing for years but the teensy is 60cad.
@AndreasSpiess
@AndreasSpiess 2 роки тому
I most of the time use the ESP32 which is much stronger than the ESP8266 and not much more expensive...
@jstro-hobbytech
@jstro-hobbytech 2 роки тому
@@AndreasSpiess the chip shortage has affected esp32 modules. Where you used to get 5 for 30 dollars, 2 for 30 is the going rate while the 8266 is now 5 for 50. It's made me realize (which is somewhat contradictory to what I said previously) the 8266 can do alot of the same things I need without any appreciable notice in lag for some of the devices I make. They're nothing special, just iot devices that do simple things usually lighting related. Haha. I've been doing alot more circuit stuff recently, like learning more about passive component along with digital logic ics, respectively. I have more of a software background than hardware and I find that more interesting learning wise.
@drmocm
@drmocm 4 роки тому
Very interesting. I also have a trick for when you use a battery driven device that sleeps a lot, e.g. a sensor like the bme680. In that case loop is never reached and the device goes to sleep very fast. So, I use a loop in the setup that looks for the bme680 and in that loop I add the OTA handle. All I have to do is disconnect the sensor and the device keeps looping and I can connect via OTA. You could use a switch or button to disconnect the sensor.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Great tip! Thanks!
@blunoz2907
@blunoz2907 4 роки тому
Great video as always. What do you think about offloading the OTA functionality to the second core? Might keep the main sketch cleaner. Also I’ve struggled to get remote debug working with Platform IO. Would love you to delve into this in a future video.
@AndreasSpiess
@AndreasSpiess 4 роки тому
1. I see no advantage to "offload" 41 microseconds to another core. Maybe in another process would be a possibility. 2. I will not cover platformIO on this channel other than teasers. Most of my viewers are on Arduino IDE
@toddpichler8578
@toddpichler8578 3 роки тому
Hello Andreas, Thank you for another great example. I finally got it working but I struggled a bit because I decided to use VSCode and PlatformIO (one of your other awesome videos). The part that stumped me was the way PlatformIO automatically selects the upload connection. Normally that is a good thing but I wanted to test the OTA connection. It turns out I needed to add a line to the platform.ini file like this "upload_port = " where "" is the value printed to the serial monitor. Maybe that will help someone else. Thanks again!
@AndreasSpiess
@AndreasSpiess 3 роки тому
There were a few other comments about the same fact. So you are not the only ;-)
@JohnJCouture
@JohnJCouture 3 роки тому
Andreas, great job! Works like a charm. is there a way to SET the upload IP address? The IPAddress command doesn't seem to work. I suspect it has to do with the placement of the IPAddress command?
@AndreasSpiess
@AndreasSpiess 3 роки тому
The IP address is usually given by your network.
@alanesq1
@alanesq1 4 роки тому
I have been very impressed using the OTA option to upload the bin file from a web browser rather than via the Arduino IDE. This is very handy if you have created a ESP project for someone else as you can send them the bin file and they can update it themselves. You can see how I use it here: github.com/alanesq/BasicWebserver
@msuc5vette
@msuc5vette 4 роки тому
this also looks like a very cools solution, however Arduino IDE is rejecting the library zip file, even after renaming the subfolder. Any advise, or a tutorial link?
@alanesq1
@alanesq1 4 роки тому
​@@msuc5vette Hi, You need to manually unzip the file and copy the files to your arduino library folder. BTW - I have just noticed I give the wrong password in the instructions, it should be 12345678 I have just uploaded a newer version of the sketch which asks for a password to access OTA (Not very secure but a lot better than nothing)
@AndreasSpiess
@AndreasSpiess 4 роки тому
@alanesq: This is where IOTappstory began...
@stupossibleify
@stupossibleify 4 роки тому
Thanks Andreas, your chosen topics are always interesting and very relevant. OTA is simpler than I thought. By the way, at the start of your videos are you saying "Greeting UKpostsrs" or "Pretty UKpostsrs"? Either is fine 😁
@nkronert
@nkronert 4 роки тому
He says "Grüezi UKpostsrs", which is Swiss for "Hello UKpostsrs" :-)
@stupossibleify
@stupossibleify 4 роки тому
@@nkronert thank you!
@WistrelChianti
@WistrelChianti 3 роки тому
haha I always wondered too :D now I know :D
@MatejRajcan
@MatejRajcan 4 роки тому
This video already helped me at 2:50... i never thought there are different partitioning schemes on ESP32s, since i had only 4 option in that menu by using a Lolin32 option. I am writing thing with lots of libraries and i run out of space. I will try these, i think it will help already.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Available partitions depend on the board you select.
@alexanderm6862
@alexanderm6862 4 роки тому
Thx for some interesting things
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@ejennings98
@ejennings98 4 роки тому
Excellent Video! I am more inspired to use ESP32's for future projects. Is there a way to manually set the IP address for the ESP32 so the OTA has a fixed IP?
@AndreasSpiess
@AndreasSpiess 4 роки тому
I think so, but I do it on my router to be sure to not have collisions.
@Marc_Miller
@Marc_Miller 3 роки тому
I'm having trouble finding the video shown at 6:19 talking about using the FTDI board to read the serial connection. Which video was that in?
@AjinkyaMahajan
@AjinkyaMahajan 4 роки тому
Thank you ✨😊
@AndreasSpiess
@AndreasSpiess 4 роки тому
You’re welcome 😊
@muriloteixeira4430
@muriloteixeira4430 4 роки тому
Thanks Andreas for not only being succinct, organized and creating very useful content. You are also fun and your videos are pleasurable. Now in addition to being a channel subscriber, I’ll put a zero at the beginning of my youtube username lol
@AndreasSpiess
@AndreasSpiess 3 роки тому
Good practice if you want to be first!
@kevinfine9303
@kevinfine9303 3 роки тому
Hi Andreas, very useful video, as always. You've helped me a lot with my projects! I wanted to mention a correction to your description of OTA. It appears that the ESP32 maintains two areas of memory, OTA1 and OTA2. The Esspressif OTA mechanism always loads the new firmware in the unused portion, and, if successful, switches over the boot pointer to the new area of memory. Thus the previous firmware is not written over as implied in the video, and is available for a rollback. This from docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/ota.html Again, thanks for all your help, and also, Grüezi from Yverdon!
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are right. Because it happens on the background I did not want to make it more complicated than necessary.
@difegam3
@difegam3 4 роки тому
Thank you so much!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You're welcome!
@erwinkooi6669
@erwinkooi6669 4 роки тому
Hi Andreas, great video as always! Do you know if this is also possible with VS Code and platformio? I completely switched over from the Arduino ide (which is great for starters, but not so much when you have large and diverse projects.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I think it is possible, too
@MasseyLee
@MasseyLee 4 роки тому
@@AndreasSpiess Did you stop using PlatformIO and go back to Arduino IDE ?
@MennoLauwerens
@MennoLauwerens 4 роки тому
Yes, it also works from platformIO. I use it all the time.
@ulwur
@ulwur 4 роки тому
@@MennoLauwerens do you mind showing or explaining how you did the template stuff and how to do the wireless uploading?
@MennoLauwerens
@MennoLauwerens 4 роки тому
@@ulwur Just set these options in platformio.ini: board_build.partitions = min_spiffs.csv ; See:github.com/espressif/arduino-esp32/tree/master/tools/partitions ;upload_port = COM5 upload_protocol = espota upload_port = 192.168.0.35 ; IP of the ESP32 The rest is identical to this video.
@Aemilindore
@Aemilindore 4 роки тому
So helpful. Thanks
@AndreasSpiess
@AndreasSpiess 4 роки тому
You're welcome!
@vipulbumb9003
@vipulbumb9003 4 роки тому
Excellent 👍 Work Perfect
@AndreasSpiess
@AndreasSpiess 3 роки тому
Great!
@PranavSharma2504
@PranavSharma2504 4 роки тому
Hey The Guy With The Swiss Accent! It would be great to expand the template sketch to incorporate Access Point and Captive Portal for setting the credentials, instead of hardcoding them. Then they will survive network changes too! On the side, would you like to take a look at Rust for ESP32? It seems to be gaining some traction and aims to be a production-focused language.
@AndreasSpiess
@AndreasSpiess 4 роки тому
As I said: WiFiManager does that, if you need it
@PranavSharma2504
@PranavSharma2504 4 роки тому
@@AndreasSpiess ooh! I didn't notice wifimanager was already in place 😅
@johnpricejoseca1705
@johnpricejoseca1705 2 роки тому
Hi Andreas, thanks for another great video. I was wondering: Would the ArduinoOTA.handle() call be a candidate to live in an RTOS Task? -- This way, you might not need to scatter calls to it all over the code. Thoughts? Thanks again.
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are right. Maybe you watch my RTOS video. There I place it in the loop(task)
@johnpricejoseca1705
@johnpricejoseca1705 2 роки тому
@@AndreasSpiess you are ahead of me! :)
@wjhoogervorst
@wjhoogervorst 4 роки тому
Thanks, just what I needed. With my ESP8266 I use ESP8266HTTPUpdateServer, but on my ESP32 I could not get the ESP32 version of this functionality working properly. Now I will switch to this way of OTA update, until I get the Webupdate working.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Good plan!
@foskolo
@foskolo 3 роки тому
Grüezi Andreas, great video again! The sketches I dowloaded from your link are quite different from them of the video ("#define ESP32_RTOS " at the begin of the "0TA_Template_Sketch" for example ). Can I use them without changes with an ESP32 (except SSID and password of course)? Thank you!
@AndreasSpiess
@AndreasSpiess 3 роки тому
I do not remember the details. I would just try it ;-)
@hafey80
@hafey80 2 роки тому
very helpful... Tanks
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome
@Thorathome
@Thorathome 3 роки тому
Thanks, Andreas. Just the two hints on creating your own sketch templates and #include "MY_WIFI_CREDENTIALS.h" made my day. Brilliant time-savers.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad it helped!
@javierpelaez1
@javierpelaez1 4 роки тому
Good job as always!! I would like you to record a video about OTA using SIM800 + Atmega328. Probably using a flash chip as Moteino guys use for LoRa upgrade firmware OTA.
@AndreasSpiess
@AndreasSpiess 4 роки тому
This topic is way too special for this channel :-(
@javierpelaez1
@javierpelaez1 4 роки тому
@@AndreasSpiess ok, I could understand. I mean update an Arduino device firmware via gprs chip. Maybe an example doing from fttp and a esp32 chip could be other possibility. Anyway, thanks for your videos and channel!!
@user-xp6ms4wq2v
@user-xp6ms4wq2v 3 роки тому
Thanks for tutorial! Also one note - better to disable all interrupts right in begining of on ArduinoOTA.onStart function. As I see on my sketch with Ticker library - OTA not likes if someone interrupts it while transmission ) So I called .detach commands in begining of OTA.onStart
@AndreasSpiess
@AndreasSpiess 3 роки тому
If you do not attach interrupts it should not be a problem, I assume. But disabling them is for sure not wrong.
@VladimirErmakov
@VladimirErmakov 4 роки тому
Also small note about upload: image was uploaded to one of two partitions (free one), then if all ok and md5 match, bootloader would be told to switch to use that partition. So nothing to memmove. (i may be not accurate, digging into the code a few years ago to check what's wrong with http ota, and i don't know what is used for SPIFFS, because i only use it to store config.json).
@AndreasSpiess
@AndreasSpiess 3 роки тому
I think you are right.
@mplacona
@mplacona 4 роки тому
As usual you oust a video about a functionality I’m currently working on and it ends up being massively useful. Can your template be used by an esp-8266 as well? I like using the wemos d1 mini because of its size.
@mplacona
@mplacona 4 роки тому
Answering my own question: No. But i have made a few changes to it and published it here and now it works well with the ESP8266 github.com/mplacona/ESP8266-OTA
@HiruS22
@HiruS22 4 роки тому
@@mplacona Thanks, I was wondering the same
@collinsabraham8590
@collinsabraham8590 Рік тому
Hello Andreas, thanks a lot for the tutorial, I am new to microcontrollers and I have a little question. Please is it possible to link the Esp32 to the python IDE over the air just as you've done, but in a way that it sends data from a sensor, directly to the IDE so that I can manipulate the data with other blocks of code within the IDE?
@AndreasSpiess
@AndreasSpiess Рік тому
You can use MicroPython with the ESP32.
Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Переглядів 188 тис.
Китайка и Хеликоптер😂😆
00:18
KITAYKA
Переглядів 1,2 млн
Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Переглядів 145 тис.
The EASY Guide To Over-The-Air (OTA) Updates With ArduinoOTA
11:52
Programming Electronics Academy
Переглядів 15 тис.
ESP32 - DEBUGGING your ESP-IDF code using JTAG [VS CODE]
19:53
451 Which Processor can kill the ESP32?
11:24
Andreas Spiess
Переглядів 330 тис.
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 707 тис.
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Переглядів 276 тис.
ESP-IDF ESP-32 HTTP/HTTPS OTA(Over The Air) Firmware Update
15:06
Embedded Hacks
Переглядів 12 тис.
#224 🛑 STOP using Serial.print in your Arduino code! THIS is better.
26:39
Лучший телефон на андроиде?
0:25
Опросный
Переглядів 34 тис.
Компьютерная мышь за 50 рублей
0:28
dizzi
Переглядів 14 тис.
У Nokia 3310 появился конкурент
0:36
AndroHack
Переглядів 1,7 млн
NOTHING PHONE 2A - НЕОБЫЧЕН ВО ВСЕМ!
30:39
DimaViper
Переглядів 50 тис.
Распаковка айфона в воде😱 #shorts
0:25
НЭКС
Переглядів 529 тис.
ИГРОВОЙ ПК c WILDBERRIES за 40 тысяч рублей
30:17
Ремонтяш
Переглядів 471 тис.