Detect if RJ45 cable is plugged in (ESP32-POE-ISO)

Started by marcovit, August 09, 2022, 04:10:58 PM

Previous topic - Next topic



I am trying to connect the ESP32-POE-ISO board to Ethernet (if there is a cable plugged in) and otherwise Wifi.

Is there a way to detect if the ethernet cable is plugged in? (or a beter solution)

There isn't a timeout available for ETH.begin and starting the Wifi together with ETH results in some weird things like not able to scan wifi networks.


I hope someone can still answer my question regarding detecting the ethernet cable detection. We were planning to use this board for our customers.


Well there should be multiple ways to do it. The best idea is to read the LAN8710 user guide and datasheet for what is the register that gets triggered. Even if everything else fails you can easily see the LEDs activity when cable is plugged and Ethernet is established, maybe if you can't figure out how to read LAN8710 (I think REGOFF and nINTSEL) consider leading LEDs related pins to GPIO and checking their state.
Technical support and documentation manager at Olimex