ESP32-EVB Rev K Ethernet not working under ESPEasy

Started by simat, July 06, 2023, 05:32:16 PM

Previous topic - Next topic

simat

Hi,

I've been using ESPeasy for a while now to post DS1820 temperature values into Domoticz with a ESP32-WROOM-32E over wifi.  I've now purchased a Olimex ESP32-EVB board that has onboard LAN8710A ethernet but I can't get the ethernet to work.

I know that the Olimex board is supported as it is mentioned in the documentation https://espeasy.readthedocs.io/en/latest/Hardware/Hardware.html and direct support is also mentioned in https://github.com/letscontrolit/ESPEasy/pull/3229

Ethernet Settings are as follows

Preferred Network Medium = Ethernet
Ethernet Phy Type = LAN8710
Ethernet Phy Address = 0
GPIO > Ethernet MDC Pin = GPIO-23 
GPIO < Ethernet MIO pin = GPIO-18
GPIO > Ethernet Power pin = None
Ethernet Clock = External crystal osc.

as per TD-ers entry in https://github.com/letscontrolit/ESPEasy/pull/3229/commits/c70055558f5634a744a147899b44904b029cfede
I've also set
i2c_sda = 13;
i2c_scl = 16;

I've check these pins on the Olimex board datasheet - Rev K https://github.com/OLIMEX/ESP32-EVB/blob/master/HARDWARE/REV-K/ESP32-EVB_Rev_K.pdf

I've tried setting static IPs on the interface but still doesn't work.  WIFI is fine.

Does anyone have any suggest for futher diagnosis of the problem ?

ESP32-D0WDQ5-V3 with ESPEasy_mega_20230623_custom_ESP32_4M316k_ETH.factory.bin  have also tried normal release.

Best regards

Simon.

simat

OK, getting somewhere now,  I changed the Ethernet Power Pin to GPIO32 which is one of the relays on the ESP32-EVB board.

The ethernet now works but we lose control of the RELAY as if we turn the relay off, we would loose network access.


What should the power pin be ?

***LOG BEFORE Power Pin Change****

INIT : Booting version: ESP_Easy_mega_20230623_custom_ESP32_4M316k_ETH, (GitHub Actions) mega-20230623 (ESP32 SDK 4.4.5.230614)
180 : Info   : INIT : Free RAM:248412
181 : Info   : INIT : Cold Boot - Restart Reason: CPU0: RTC Watch dog reset digital core and rtc module CPU1: for APP CPU, reseted by PRO CPU
182 : Info   : FS   : Mounting...
211 : Info   : FS   : Mount successful, used 141815 bytes of 290156
229 : Info   : CRC  : Settings CRC           ...OK
278 : Info   : CRC  : SecuritySettings CRC   ...OK
342 : Info   : INIT : SPI not enabled
375 : Info   : INIT : Free RAM:243176
407 : Info   : INFO : Plugins: 26  (ESP32 SDK 4.4.5.230614)

408 : Info   : ETH PHY Type: LAN8710/LAN8720 PHY Addr: 0 Eth Clock mode: External crystal oscillator MDC Pin: 23 MIO Pin: 18 Power Pin: -1
409 : Error  : ETH: Settings not correct!!!   <-**********

410 : Info   : Set Network mode: WiFi
512 : Info   : WIFI : Set WiFi to STA
610 : Info   : WiFi : Event STA Started
718 : Info   : WiFi : Start network scan all channels
6934 : Info   : WiFi : Scan finished, found: 5
6936 : Info   : WiFi : Best AP candidate: BTHomeHub2-AA55 60:26:EF:3B:4B:82 Ch:11 (-77dBm) - gn
6938 : Info   : WiFi : Added known candidate, try to connect
6939 : Info   : WIFI : Arduino wifi status: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
6943 : Info   : Webserver: start
8296 : Info   : WD   : Uptime 0 ConnectFailures 0 FreeMem 194176 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED

***LOG AFTER POWER PIN SET TO GPIO32****

INIT : Booting version: ESP_Easy_mega_20230623_custom_ESP32_4M316k_ETH, (GitHub Actions) mega-20230623 (ESP32 SDK 4.4.5.230614)
180 : Info   : INIT : Free RAM:248412
181 : Info   : INIT : Cold Boot - Restart Reason: CPU0: Vbat power on reset CPU1: for APP CPU, reseted by PRO CPU
182 : Info   : FS   : Mounting...
211 : Info   : FS   : Mount successful, used 141815 bytes of 290156
229 : Info   : CRC  : Settings CRC           ...OK
279 : Info   : CRC  : SecuritySettings CRC   ...OK
342 : Info   : INIT : I2C
344 : Info   : INIT : SPI not enabled
376 : Info   : INIT : Free RAM:242452
408 : Info   : INFO : Plugins: 26  (ESP32 SDK 4.4.5.230614)

409 : Info   : ETH PHY Type: LAN8710/LAN8720 PHY Addr: 0 Eth Clock mode: External crystal oscillator MDC Pin: 23 MIO Pin: 18 Power Pin: 32
410 : Info   : ETH power ON
811 : Info   : ethResetGPIOpins()   <**** HAPPY ETHERNET ***


2442 : Info   : ETH IP   : Static IP : 10.0.32.55 GW: 10.0.32.241 SN: 255.255.255.0 DNS: 8.8.8.8
2446 : Info   : ETH event: Started
2447 : Info   : ETH event: Connected
2447 : Info   : ETH event: Got IP
2498 : Info   : Webserver: start
2499 : Info   : processEthernetConnected()
2500 : Info   : ETH IP   : Static IP : 10.0.32.55 GW: 10.0.32.241 SN: 255.255.255.0 DNS: 8.8.8.8
2502 : Info   : ETH event: Got IP
2503 : Info   : ETH MAC: E0:5A:1B:66:54:C7 Static IP: 10.0.32.55 (ESP-Ethernet-2) GW: 10.0.32.241 SN: 255.255.255.0 DNS: 8.8.8.8/0.0.0.0 FULL_DUPLEX 100Mbps   duration: 54 ms
2504 : Info   : WIFI : Arduino wifi status: WL_NO_SHIELD 255 ESPeasy internal wifi status: DISCONNECTED
2505 : Info   : UDP : Start listening on port 8266
2506 : Info   : firstLoopConnectionsEstablished
3832 : Info   : WD   : Uptime 0 ConnectFailures 0 FreeMem 206172 EthSpeedState Link Up Full Duplex 100Mbps ETH status: Conn. IP Init
33832 : Info   : WD   : Uptime 1 ConnectFailures 0 FreeMem 205920 EthSpeedState Link Up Full Duplex 100Mbps ETH status: Conn. IP Init
63832 : Info   : WD   : Uptime 1 ConnectFailures 0 FreeMem 205928 EthSpeedState Link Up Full Duplex 100Mbps ETH status: Conn. IP Init

simat

Setting for ETHERNET power to GPIO23 also enables the interface

406 : Info : ETH PHY Type: LAN8710/LAN8720 PHY Addr: 0 Eth Clock mode: External crystal oscillator MDC Pin: 23 MIO Pin: 18 Power Pin: 23
407 : Info : ETH power ON
808 : Info : ethResetGPIOpins()

This must be a bug within ESPeasy. 

Still, from boot I can access the device within 2 seconds, nice !!