Replies: 20 comments
-
with Optiboot you have to use my_boards or Mega Core for upload to Mega. The Arduino AVC platform uses upload settings for the standard bootloader |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. Thanks to this, the file upload was successful. This time I'm running OTASketchDownload.ino. When I run it, a 301 error occurs in the serial. I'll show you the code and serial I use. Is there anything I need to fix? The bin file used in the path is here. Please help me😭😭 OTASketchDownload.ino
Serial
|
Beta Was this translation helpful? Give feedback.
-
the Ethernet library doesn't support secure connection (https) |
Beta Was this translation helpful? Give feedback.
-
There was such a problem! I will refer to it and test it. I am testing with OTASketchDownloadWifi.ino. An error occurs in the library, which version did you use? I am using version 1.8.14. |
Beta Was this translation helpful? Give feedback.
-
WiFiNINA library is not supported on Arduino Mega |
Beta Was this translation helpful? Give feedback.
-
If so, you should use the http download link in the OTASketchDownload.ino example. Thanks for your help😊😊 I'll test it and come back. |
Beta Was this translation helpful? Give feedback.
-
hmm.. I tried several times to insert a link in http format. However, when I created the link, only the https format link was created. How can I create a link in http format? I hope it isn't too difficult... |
Beta Was this translation helpful? Give feedback.
-
most public sites don't allow insecure http |
Beta Was this translation helpful? Give feedback.
-
It would be great if https format was supported. So would it be better to use a local server? If you know of any other method than this, please share😊😊 |
Beta Was this translation helpful? Give feedback.
-
other way in which way? I don't know what arduino libraries are still able to connect to public sites. many fail on newer versions of the secure protocol. my WiFiEspAT library with Jiri Bilek's firmware in esp8266 may be able to connect to public sites. Or with an ESP32 with AT firmware. |
Beta Was this translation helpful? Give feedback.
-
Oh... I can't change from mega2560 to another board. And you can't use SD cards either. So how can I use the OTA function? |
Beta Was this translation helpful? Give feedback.
-
WiFiEspAT is for esp8266 or esp32 as WiFi adapter. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for letting me know, but I definitely have to complete the OTA function on the mega2560. It's okay if you don't use WiFiEspAT. Feel free to use other examples. Is there any way to do OTA on mega2560? I really want this to succeed😭😭 |
Beta Was this translation helpful? Give feedback.
-
so upload from IDE works. you have to code other transports in your sketch. you can do a download, but for https sites you have to use a network adapter which handles the encryption, because Mega doesn't have the computing power to do the encryption. |
Beta Was this translation helpful? Give feedback.
-
The reason I said that I had to use mega was because I couldn't use ESP32. This is how I understood it. Maybe I'm misunderstanding something? Anyway, I have no choice but to use mega, and I have to use OTA on mega. And I understand why I can't use https format in mega. Whatever method you use to do OTA on mega is fine. I would be grateful if you could tell me how to do it. |
Beta Was this translation helpful? Give feedback.
-
WiFiEspAT is used in anything else than esp to communicate wit the AT firmware in esp sorry I thought you have upload from the IDE working. what is the problem with that? did you read https://github.com/JAndrassy/ArduinoOTA/blob/master/README.md ? |
Beta Was this translation helpful? Give feedback.
-
I read Read.me. Let me explain my situation now.
What I'm curious about here is this Q1. Can I create a link in http format? If you can make it, how can you make it? Q2. Is there a way to test OTA on mega with an example other than the OTASketchDownload.ino example? Sorry for the many questions. |
Beta Was this translation helpful? Give feedback.
-
why did you start with an advanced example? |
Beta Was this translation helpful? Give feedback.
-
Oh, I'm sorry. I have already tested the OTEthernet example. |
Beta Was this translation helpful? Give feedback.
-
ok. then my job is done. the ArduinoOTA library works |
Beta Was this translation helpful? Give feedback.
-
First of all, sorry for my bad English.
I am using Arduino Mega 2560, and uploaded optiboot_atmega2560.hex as the bootloader.
I downloaded ArduinoOTA as a zip file and added the library.
I am trying to upload by selecting Arduino Mega or Mega 2560.
I'm trying to upload a basic Blink example now, but the upload fails.
I wish I could tell you what the reason is
This is an image for reference.
Beta Was this translation helpful? Give feedback.
All reactions