LwIP-based Ethernet libraries for W5x00 and ENC28J60 supporting many other boards #2
Replies: 2 comments 2 replies
-
there is very big difference between enc28j60 handling and w5x00. Wiznet chips have the TCP/IP stack in firmware, for enc28j60 the TCP/IP stack is in the UIPEthernet/EthernetENC library (the stack is the old uIP library, simpler predecessor of LwIP). Both Wiznet chips and Atmel ENC chips can run in a 'MAC level' mode used for example by the esp8288 lwip_w5500 and lwip_enc28j60 libraries. The STM32, Teensy 4 and ESP32 native Ethernet are 'MAC level' too I think. And many WiFi modules including the WiFi101 ATWIN1500 support the 'MAC level' too. (some are very cheap) The STM32 Arduino Ethernet library uses the STM made library based on LwIP https://github.com/stm32duino/LwIP. But they bundled the network interface with LwIP and wrote the Ethernet library using this LwIP library. Which is the wrong way. The LwIP and the Client, Server and UDP should be in one library and it should support libraries with the network interface implementation like the esp8266 WiFi library does with the lwip_* libraries. If I would implement an Arduino networking library based on LwIP, I would start fresh from LwIP source, but if you want to try it I would recommend you to start with the STM32 LwIP library and make it so it can accept the esp8266 lwip_* libraries (including the lwip_ppp one). The Arduino Client, Server and UDP implementation could be from the STM32 Ethernet library. |
Beta Was this translation helpful? Give feedback.
-
I see there already is STM32AsyncTCP library so it could use the enhanced STM LwIP with support for esp8266 lwip_* librarries |
Beta Was this translation helpful? Give feedback.
-
Hi @JAndrassy
As we discussed quite some time ago about implementing LwIP-based Ethernet library for W5x00 and ENC28J60 for other boards (SAMD, nRF52, megaAVR, RP2040, etc), besides what already done here
I'm thinking about doing something as follows, if time permitted
Any suggestion, help and/or idea are very well appreciate.
Regards,
Beta Was this translation helpful? Give feedback.
All reactions