-
Notifications
You must be signed in to change notification settings - Fork 441
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
[Feature Request] Port these libraries lwIP_w5100, lwIP_w5500 and lwIP_enc28j60 from ESP8266 #775
Comments
I have an ENC28 and a W5500S(thanks, WizNet!), but not the other two. Do you have a W5100 or W5500 to test on? It's in the queue, but only so many hours in the day. When they get ported everything |
Good news the tasks are in the queue.
Totally understand. I get the same constraint, even if I'd like to help port them. I have W5100 and W5500 to test. BTW, is that possible to add DNSServer library or code into the core or WiFi lib ? I'm trying to port DNSServer library, but having some issue with UDP packet receiving. Everything will be done much faster by you, as previous maintainer of ESP8266 core. |
@khoih-prog Try #779. DNSServer just built fine with trivial fixes (WDT reset ignore, remove obsolete BIT() macro). |
Thanks for the DNSServer. Still have the same issue in arduino-pico/libraries/WiFi/src/WiFiUdp.cpp Lines 182 to 184 in 7be4729
Test code
|
Strange, No more problem with arduino-pico/libraries/WiFi/src/WiFiUdp.cpp Lines 182 to 184 in 7be4729
|
Yeah, I just went back and checked the WiFiUDP example to make sure things were good. At this point I think it may be "routing" related since the UDP code doesn't know or care if in AP or STA mode. This looks to take some digging. An easy verification would to make the WiFiUDP example run over an AP not STA and verify failure. Plus that would be a simpler test on a known good code block for any fix (i.e. I did not dig into the DNS server guts so maybe there are 8266-specific assumptions somewhere). |
Thinking out loud, LWIP UDP while in AP mode can't be completely borked. The DHCP server does give addresses out therefore it is able to receive and send UDP packets. So something in this core is looking at a received UDP packet and saying, "nope...not for me." |
@khoih-prog well, that was obvious. DHCP server gave 8.8.8.8 hardcoded as DNS server, not the GW IP. Check the latest DNSServer PR for the update. I now see DNS requests being processed by the AP. |
Wow. Amazingly quick and the bug is fixed. Now Captive Portal for DNSServer is working now when entering any non-existing site, such as Would you like me to make a PR for the examples for DNSServer Captive Portal Code used for the test
|
Is that possible to add WebServer library, similar to ESP8266WebServer into the core ? It's required for certain WebServer apps, with simpler way to use, such as
I can help if you'd like. |
It's in the queue. First I'm looking into HTTPClient (and want to fix the odd requirements we have on the 8266/32 which catch folks by surprise) then the web server. Lots of stuff in this here queue. :) |
Wow. Glad to know. |
I'm interested in this. |
WIP - Builds and can get a DHCP address using W5500. Lots of infrastructure work still required: [ ] Separate CYW43 stuff and LWIP stuff (mutex, etc.) [ ] Add async worker for pumping frames [ ] Real LWIP-only mutex [ ] Should WiFiClient be available as TCPClient? etc. Fixes #775
WIP - Builds and can get a DHCP address using W5500. Lots of infrastructure work still required: [ ] Separate CYW43 stuff and LWIP stuff (mutex, etc.) [ ] Add async worker for pumping frames [ ] Real LWIP-only mutex [ ] Should WiFiClient be available as TCPClient? etc. Fixes #775
Enable use of wired Ethernet modules as first-class LWIP citizens. All networking classes like MDNS, WebServer, HTTPClient, WiFiClient, and OTA can use a wired Ethernet adapter just like built-in WiFi. Two examples updated to show proper use. Uses the Async Context support built into the Pico SDK. When running on the Pico it will use the CYW43 async instance. Uses modified wired Ethernet drivers, thanks Nicholas Humfrey! Note, the classic, non-LWIP integrated `Ethernet` and related libraries should still work fine (but not be able to use WebServer/HTTPS/etc.) Fixes #775
Hi @earlephilhower
As you've done so great work for lwIP_CYW43, lwIP_Ethenet and cyw43 WiFi libraries, could you please, when having time, port these libraries :
from ESP826 to this powerful and popular core.
Those LwIP-based libraries would be used in newly-created Async-related libraries, similar to those for RP2040W, as in Libraries created / updated to support RASPBERRY_PI_PICO_W using CYW43439 WiFi #757
The text was updated successfully, but these errors were encountered: