Hi,
we have 3 ESP32-POE-ISO and 1 works abserlutly fine and 2 not
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
#define ETH_PHY_POWER 12
#include <ETH.h>
static bool eth_connected = false;
void WiFiEvent(WiFiEvent_t event)
{
switch (event) {
case SYSTEM_EVENT_ETH_START:
Serial.println("ETH Started");
//set eth hostname here
ETH.setHostname("esp32-ethernet");
break;
case SYSTEM_EVENT_ETH_CONNECTED:
Serial.println("ETH Connected");
break;
case SYSTEM_EVENT_ETH_GOT_IP:
Serial.print("ETH MAC: ");
Serial.print(ETH.macAddress());
Serial.print(", IPv4: ");
Serial.print(ETH.localIP());
if (ETH.fullDuplex()) {
Serial.print(", FULL_DUPLEX");
}
Serial.print(", ");
Serial.print(ETH.linkSpeed());
Serial.println("Mbps");
eth_connected = true;
break;
case SYSTEM_EVENT_ETH_DISCONNECTED:
Serial.println("ETH Disconnected");
eth_connected = false;
break;
case SYSTEM_EVENT_ETH_STOP:
Serial.println("ETH Stopped");
eth_connected = false;
break;
default:
break;
}
}
with this Code we din't get an IP adress from our DHCP on 2 Boards. 1 Board works fine. The not working boards LED working all on the Seriell Monitor we get ETH Connected and nothing else it hangs up than and don't fire SYSTEM_EVENT_ETH_GOT_IP.
We tested the wifi connect then and it works fine on all boards but we need the POE to power up the boards.
Can someone give us a little help on this problem, the LED's for the connection looking fine.
We also try Static IP but dosn't work too
Each board has the Ethernet interface tested here empirically after manufacturing. So it is likely some sort of software or configuration issue. Try this example:
https://github.com/espressif/arduino-esp32/blob/1.0.3/libraries/WiFi/examples/ETH_LAN8720/ETH_LAN8720.ino
And follow the instructions here:
https://www.olimex.com/Products/IoT/ESP32/_resources/Arudino-ESP32.txt
The last few times someone encountered similar issue it turned out to be some improper network configuration, unrelated to the the ESP32-POE-ISO. For example here: https://www.olimex.com/forum/index.php?topic=7158.0
Hi thanks for the input i try it out but without success the problem is the board works like 2 - 3 month and then without any changes it stops working.
Starts with ETH Connected ETH Disconnected randomly and than nothing.
I try different Switches and differend networks but all the same with POE or no POE. But wenn i switch my sketch to wifi it works greate.