Go Down

Topic: Arduino uno programming over OTA with ESP8266 (Read 5947 times) previous topic - next topic

Itsch

Hello  :)

I have a Arduino uno and use the ESP8266 as shield to communicate with the Blynk App. And now i want the sktech load over wifi to the Arduino uno. I finde this tutorial
https://www.sistemasorp.es/2014/11/11/programando-un-arduino-remotamente-con-el-modulo-esp8266/

but its very complicated. can somebody give me a easy way to do this ?


Thank you in advance :)

Juraj

that tutorial is old. and it is still complicated.

there are more way to use Blynk with esp8266. which one do you use?
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Itsch

Hello Juraj :)

I have connect my Arduino uno to Blynk with this tutorial
https://www.youtube.com/watch?v=kNAfwOh8FoY

It use the Blynk sketch builder and the Arduino is connected as in the picture but I left out the resistances


I hope you can help me :)

Juraj

you use AT commands esp8266 firmware (under the hood of Blynk). for AT firmware the OTA mentioned in your post is the only option.

what esp8266 module do you have?

you could use WiFiLink firmware. it is supported by Blink and has OTA support. I used it in my main Arduino project last year.

first step is to replace AT firmware in esp8266 with WiFiLink firmware. can you do it?


I maintain WiFi Link. It was created by arduino.org and orphaned after merge of Arduino companies.

https://github.com/jandrassy/arduino-firmware-wifilink
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Itsch

Thank you :)

i have the ESP 8266-01


for the Blynk connection i flash the ESP with this Programm: „ESP_DOWNLOAD_TOOL_V2.4"
 to the firmware: AT version:1.1.0.0

i try it with WiFiLink

what musst i do wenn i have the WiFiLink firmware on my ESP to connect with Blynk and load the Sketch OTA ?


Juraj

what musst i do wenn i have the WiFiLink firmware on my ESP to connect with Blynk and load the Sketch OTA ?


you will use WiFiLink library from GitHub and it has Blynk example
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Itsch

Hello Juraj :)

I try the tutorial but i dont can verify the sketch at first time the library "ArduinoJson.h" was missing
dan I instaled this and the new problem was:

"no matching function for call to 'esp8266::MDNSImplementation::MDNSResponder::setInstanceName(String&)'"

can you help me ? :)

Juraj

Hello Juraj :)

I try the tutorial but i dont can verify the sketch at first time the library "ArduinoJson.h" was missing
dan I instaled this and the new problem was:

"no matching function for call to 'esp8266::MDNSImplementation::MDNSResponder::setInstanceName(String&)'"

can you help me ? :)
use esp8266 Arduino core package 2.4.2, not 2.5 beta
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Itsch

Thanks it fixed, but i don´t understand the "Atmega sketch OTA upload support" tutorial i have some questions about it

1. how can i change GPIO5 to GPIO0 in the libary ?

2. What musst i write in the Python ? the sketch thet i wold upload on the Arduino uno ? it not work

3. What musst i do with the arduino-tool-mcu-ota, it do not open





Juraj

Thanks it fixed, but i don´t understand the "Atmega sketch OTA upload support" tutorial i have some questions about it

1. how can i change GPIO5 to GPIO0 in the libary ?

2. What musst i write in the Python ? the sketch thet i wold upload on the Arduino uno ? it not work

3. What musst i do with the arduino-tool-mcu-ota, it do not open

1. io 5 is set in esp8266-serial-arduinouno-hacked.cpp

the arduino-tool-mcu-ota was made by arduino.org for WiFiLink and was not integrated to Arduino IDE.

the default upload tool in IDE is called ArduinoOTA. I added a support for it to dfu library source code available here. With this version you can use the default upload tool in IDE .
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Itsch

sorry i forgot the pictures at the last question, i don´t understand what i musst do with de Python

Juraj

sorry i forgot the pictures at the last question, i don´t understand what i musst do with de Python
you don't. use version of the dfu library I linked in previous comment
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Itsch

i don´t need Python ? i have the dfu library but it not works, i don´t have a port to OTA upload

Juraj

i don´t need Python ? i have the dfu library but it not works, i don´t have a port to OTA upload
the port is propagated over mdns by the firmware with or without dfu library. it always takes some time before it shows up. try to restart the IDE
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Itsch

#14
Jan 05, 2019, 07:07 pm Last Edit: Jan 05, 2019, 07:08 pm by Itsch
it dose not work :/

1. i installed Arduino IDE 1.8.8

2. i installed esp8266 version 2.4.2 from the Board menu

3. i have the tools/ESP8266FS/tool/esp8266fs.jar folder in the Sketchbook Location

4. i have the Arduino Frimware Esp folder in the Skech book Location

but i have no port, i try it multiple times


i need something network configuration in the ArduinoFirmwareEsp Sketch ?


sure I do not need the program python?


what could be the problem?


Thanks for your help

Go Up