-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
WebServer and ASyncWebServer do not work with Ethernet #3580
Comments
Here is a backtrace using the webserver library Debug Messages:
|
arduino-libraries/Ethernet#88 (comment) Additionally this may be relevant to the issue? Not sure what the right direction to go towards for fixing this is? |
It seems a similar problem was seen earlier in ESP32's client.h and was fixed by bringing the ESP32 core in line with the Arduino core: #2755 |
So i believe then the issue comes from the Sever.h file? Esp32 has virtual void begin(uint16_t port=0) =0; and Arduino has virtual void begin() =0; That can be changed, but will likely break other things in the esp32 core, which should also then be brought in line with the arduino core. Im not super familiar but what is the difference between the two in practice when calling the being function? |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
I'm also having this issue. Was a resolution ever figured out? |
@ivoh95 and others, thanks for starting this issue thread. problem: cause Ideally, would confirm using an inline debugger. This issue caused me to discover existence of JTAG inline debugging, am currently awaiting ESP-PROG debug board from digikey. Am new to ESP32, started tinkering last week. workaround/fix Backtrace: 0x4008c434:0x3ffb1d70 0x4008c665:0x3ffb1d90 0x40088869:0x3ffb1db0 0x40123442:0x3ffb1df0 0x4012371e:0x3ffb1e10 0x401124d4:0x3ffb1e30 0x4011253d:0x3ffb1e50 0x40113b08:0x3ffb1e70 0x40113bf4:0x3ffb1ea0 0x401688c5:0x3ffb1ec0 0x40134b39:0x3ffb1f10 0x400d1d6a:0x3ffb1f30 0x400d1075:0x3ffb1f80 0x400d443f:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0
|
It probably needs the tcpip adapter loaded. WiFi.mode will set that, but you should be able to get there without WiFi if you:
Note that this will be deprecated in IDF4, and the new function will be esp_netif_init() in esp_netif.h. Perhaps it makes sense to add that somewhere in the ETH initialization. |
Did you manage to get it working correctly and could share your experience with us? Many thanks in advance ;D |
Hello, Unfortunately this does not work for me:
It would be really nice, if there is a working solution out there :-) |
Hello aaronse, |
Hi All, @ivoh95 did you ever make any progress on this? For me the below does the trick, meaning that the ESP stops restarting, I manage to get an IP but the webserver just isn't there..
Wishing everybody a Happy New Year! |
Hello! @ivoh95 Would you mind sharing your experience on this topic? Take care and wish you a good ending for 2020! |
Just as @alainkovacs |
Hi all, same issue for me, i can build the project, the ESP32 doesn't reboot, i got an ip address but it's impossible to comunicate with the server. Seems like LWIP doesn't know anything of the ethernet library and inboud packets. |
I have exactly the same problem |
I currently got a webserver functioning with the Ethernet module using the AWOT library. Maybe it might help you. |
same problem here: we would like to serve a web page on wifi and ethernet, same time, or at least setichable at run time with w5500 |
Hi, i have a same promblem i trying to sever a one api from async web server with ethernet, but want reuse my code wrote with same lib. thanks |
any solutions? |
With Arduino 3.x you can use Ethernet and PPP the same as WiFi (Our Ethernet library, not external ones) |
with the exception: my EthernetESP32 library |
It is still based on our Ethernet library. I meant ones that talk to the ETH chips directly through SPI |
I managed to handle using awot, the framework similar to express but for esp boards. |
Is this possible to do this and have this Library ESPAsyncWebServer work as a Web Socket Async server? |
Hardware:
Board: ESP32 Dev Module + w5500 chip
Core Installation version: 1.0.4
IDE name: Arduino IDE and Platform.io
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Windows 10
Description:
I have been trying to get the arduino webserver library or asyncwebserver library working over Ethernet with the built in Ethernet library for a few days now and failing miserably. I am using a w5500 Ethernet chip and it works fine in other projects using udp or tcp messages with no issue, using the exact same hardware setup. The issue arises as soon as i use either webserver library and call the begin function the esp32 crashes and reboots. Ive tried platformio and the arduino ide with the latest core, and 1.0.3 and results are the same.
Ive used the webserver examples for both libraries and both work perfectly fine over wifi, but as soon as i switch it to using Ethernet, crashes happen when begin is called.
I believe the issue stems from the esp32 core and some nonstandard implementations of the server begin function? Despite my attempts i have not been able to figure out how to fix this issue.
Any suggestions on what to try next? Any more information or data i could provide?
The sketch will crash in the same way even without the w5500 hardware attached so that to test and confirm all that is needed is a esp32 dev board. Ive attached one of the webserver examples modified for Ethernet instead of wifi.
Thanks for any assistance!
Sketch: (leave the backquotes for code formatting)
Debug Messages:
The text was updated successfully, but these errors were encountered: