OTEthernet not working with ESP32 through ethernet port #272
Unanswered
SilviaUTAP
asked this question in
Q&A
Replies: 1 comment
-
|
use the ESP32 platforms ArduinoOTA library. in version 3 you can use it with the platform's Ethernet library or if you don't like it, try my EthernetESP32 library |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to use ArduinoOTA library by Juraj Andrassy to upgrade the firmware of an ESP32 through ethernet port. (this discussion may be releated to #204 but I am not sure)
hardware:
ESP32 devkit v1
W5500 module
Arduino IDE version: 2.3.6
What i did:
removed the bundled library from the boards package library folder (C:\Users\Usuario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\libraries)
copied platform.local.txt from "C:\Users\Usuario\Documents\Arduino\libraries\ArduinoOTA\extras\esp32" to "C:\Users\Usuario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0", where plataforma.txt resides.
edited OTEthernet example to use static IP address
uploaded edited sketch through com port
verified Arduino IDE showed the network port in Tools->Port menu and selected ethernet port
started to upgrade same sketch through ethernet port
entered the required password
After that i got this error:
El Sketch usa 328975 bytes (25%) del espacio de almacenamiento de programa. El máximo es 1310720 bytes.
Las variables Globales usan 21448 bytes (6%) de la memoria dinámica, dejando 306232 bytes para las variables locales. El máximo es 327680 bytes.
Sending invitation to 192.168.29.20 ..........
11:50:05 [ERROR]: No response from the ESP
Failed uploading: uploading error: exit status 1
scketch used:
/*
This example polls for sketch updates over Ethernet, sketches
can be updated by selecting a network port from within
the Arduino IDE: Tools -> Port -> Network Ports ...
Circuit:
W5100, W5200 or W5500 Ethernet shield attached
created 13 July 2010
by dlf (Metodo2 srl)
modified 31 May 2012
by Tom Igoe
modified 16 January 2017
by Sandeep Mistry
Ethernet version August 2018
by Juraj Andrassy
*/
#include <SPI.h>
#include <Ethernet.h>
#include <ArduinoOTA.h>
#define ETH_CS 5
//#define Serial SerialUSB
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 29, 19);
IPAddress dns(192, 168, 29, 1);
IPAddress gateway(192, 168, 29, 1);
IPAddress subnet(255, 255, 255, 0);
void setup() {
//Initialize serial:
Serial.begin(115200);
while (!Serial);
// start the Ethernet connection:
Ethernet.init(ETH_CS);
Ethernet.begin(mac, ip, dns, gateway, subnet);
Serial.println(Ethernet.localIP());
// start the OTEthernet library with internal (flash) based storage
ArduinoOTA.begin(Ethernet.localIP(), "Arduino", "password", InternalStorage);
}
void loop() {
// check for updates
ArduinoOTA.poll();
// add your normal loop code below ...
}
Any ideas on what can be happening?
Beta Was this translation helpful? Give feedback.
All reactions