-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Eth interface no longer receives SYSTEM_EVENT_ETH_CONNECTED event #4778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just tested again with the latest code and it still is an issue. |
@TD-er I just tested against latest master and can not replicate your issue. |
I will try again to see if it is now maybe fixed. |
I use PlatformIO and when set to use the "staging" version, it uses
This does NOT work with LAN + DHCP, just as I described above. When using what PlatformIO calls With |
please provide minimal example sketch. I can not get it to fail :)
|
I compared my events with this example: And it sure has a lot of similarities. The problem seems to be I do get the However, given your output it does show the ETH Connected event in the serial output. Tested and tested and... well you get the idea ;) This is what I found in my code, what was working on older SDK/Arduino versions:
So that is again working. TL;DR |
|
The issue was actually that the value of INADDR_NONE changed in between 1.0.4 and 1.0.5 and |
Ah great :) |
By the way, I do see conflicting defines/usage for Here is the define: arduino-esp32/tools/sdk/include/lwip/lwip/inet.h Lines 70 to 71 in af11921
Here is an object constructed with the same name: arduino-esp32/cores/esp32/IPAddress.h Line 94 in af11921
But then lines like these don't make sense: (occuring at multiple locations) arduino-esp32/libraries/WiFi/src/ETH.cpp Line 121 in bd41334
Here is
And redefined:
This makes the order of included rather important to what value |
It is also defined here: https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/lwip/lwip/inet.h#L71
They conflict sometimes and the checks in |
It's local for the CPP file and does not interfere with any other code outside that file. |
Ah yes, overlooked it was in a .cpp |
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, butSYSTEM_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 all255.255.255.255
When I disconnect the ethernet cable and reconnect it, I do get the
SYSTEM_EVENT_ETH_GOT_IP
twice: (line withInfo : ETH MAC
)When I revert to an older SDK it all works just fine.
The used ETH chip is LAN8710A.
The text was updated successfully, but these errors were encountered: