Skip to content

Eth interface no longer receives SYSTEM_EVENT_ETH_CONNECTED event #4778

Closed
@TD-er

Description

@TD-er

Hardware:

Board: Olimex ES32 Gateway EA
Core Installation version: 1.0.3
IDE name: Platform.io
Flash Frequency: ?40Mhz?
PSRAM enabled: ?no? ?yes?
Upload Speed: ?115200?
Computer OS: Windows 10

Description:

On previous ESP32 SDK v3.2.3-14-gd3e562907 ETH works just fine on my project (ESPEasy)
However, with the latest version of the code on this repo it is no longer possible to run Ethernet via DHCP.
Static IP works just fine, but DHCP does not.

Found this issue, but cannot test it as I have no idea how to set the mentioned build flag: #4499

What I observed is that the SYSTEM_EVENT_ETH_DISCONNECTED is received just fine if I disconnect the ethernet connector, but SYSTEM_EVENT_ETH_CONNECTED is not seen by my code.

The ethernet device is receiving data as it does pick up UDP packets broadcasted on my network.

It does receive SYSTEM_EVENT_ETH_GOT_IP, but the IP addresses are all 255.255.255.255

12850 : Info   : ETH MAC: BC:DD:C2:F2:31:0C IPv4: 255.255.255.255 (ESPEasy) GW: 255.255.255.255 SN: 255.255.255.255 FULL_DUPLEX 100Mbps

When I disconnect the ethernet cable and reconnect it, I do get the SYSTEM_EVENT_ETH_GOT_IP twice: (line with Info : ETH MAC)

128838 : Error  : ETH Disconnected
128858 : Info   : EVENT: ETHERNET#Disconnected
128861 : Debug  : EVENT: ETHERNET#Disconnected Processing time:3 milliSeconds
132839 : Info   : ETH MAC: BC:DD:C2:F2:31:0C IPv4: 255.255.255.255 (be-2005001-207) GW: 255.255.255.255 SN: 255.255.255.255 FULL_DUPLEX 100Mbps
132840 : Info   : ETH MAC: BC:DD:C2:F2:31:0C IPv4: 255.255.255.255 (be-2005001-207) GW: 255.255.255.255 SN: 255.255.255.255 FULL_DUPLEX 100Mbps
[E][WiFiGeneric.cpp:738] hostByName(): DNS Failed for 0.pool.ntp.org
133646 : Debug More : NTP  : NTP host 0.pool.ntp.org (0.0.0.0) queried
134648 : Debug More : NTP  : No reply

When I revert to an older SDK it all works just fine.

The used ETH chip is LAN8710A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions