LWIP version and ESP32

ibrahimdanish
Posts: 1
Joined: Sun Oct 08, 2017 10:52 am

LWIP version and ESP32

Postby ibrahimdanish » Sun Oct 08, 2017 11:05 am

Hi,

I want to know which version of LWIP ESP32 is currenlty using? From the source files, it seems like ESP32 took version 1.5 which is quite old and from there ESP32 is doing modifications and upgrades of its own. Whereas the LWIP latest stable version is 2.3.

My other question is that why ESP32 does not just pull the latest stable version of LWIP and keep the porting code seperate from the LWIP source code? This in order to use the latest LWIP while maintaining the portability.

Is there any guideline how to use the latest LWIP version?

Regards,

Ibrahim

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: LWIP version and ESP32

Postby kolban » Sun Nov 19, 2017 4:08 pm

I'm going to guess ... if we look here:

https://savannah.nongnu.org/news/?group=lwip

We see that lwIP 2.0.0 was released in November 2016. The ESP32 (and ESP-IDF stack) were already available and being actively used. At that time, we were still waiting on core drivers such as Bluetooth, I2C and SPI so I would imagine all attention was being given to them.

From a personal perspective, if I am bringing a new product to market (eg. the ESP32) I'd try and make it as stable as possible so using an older release of lwIP that had already proven itself sounds like a plan. Looking at the release date of 1.5, it seems to be towards the end of 2015 which probably means that it is about 24 months old. In my mind, that's still pretty recent.

Are there identified bug fixes or features or performance enhancements that we can point to in lwIP latest that are impacting us in ESP32 land?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
Gfast2
Posts: 182
Joined: Fri Aug 11, 2017 1:52 am

Re: LWIP version and ESP32

Postby Gfast2 » Mon Nov 20, 2017 1:07 am

Hi Ibrahim,

Older colleague told me, there are still some 8-bit Stuff in Satellite, the reason is very simple: Know-How & Test. The more complexer the system is, the more overhead developers are facing and more time to spend on debugging and testing.

Till a system / Platform is "bug-free" in real, the ecnomic system has markt them as "deprecated" for years. :oops:

So it sounds to me, we have to take care our decisions. Things are not always as simple as "The newser the better", it is very often true though. ;)

Cheer2

Gfast2

User avatar
mjahamel
Posts: 2
Joined: Thu Nov 16, 2017 1:32 am

Re: LWIP version and ESP32

Postby mjahamel » Mon Nov 27, 2017 2:21 am

> Are there identified bug fixes or features or performance enhancements that we can point to in lwIP latest that are impacting us in
> ESP32 land?

I believe there is: LwIP 2.0 has support for https in the httpd application (via an altcp layer). I have been building a captive-portal WiFi configuration app for the ESP32. This is basically working, but is subject to the rather serious objection that it passes the WiFi SSID and password that the user specifies across in plaintext over an unencrypted link. There are several ways of dealing with this, but https would be the nicest and has a lot of other applications.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: LWIP version and ESP32

Postby kolban » Mon Nov 27, 2017 4:46 am

I'd always assumed that LwIP dealt exclusively with the TCP/IP layers and higher levels dealt with application protocols delivered over the sockets. In the ESP-IDF, we have SSL processing via the mbedtls functions. There are also a number of HTTP libraries for either making/sending HTTP requests or for processing incoming HTTP requests (web server/http server). These also seem to support SSL.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: LWIP version and ESP32

Postby WiFive » Mon Nov 27, 2017 4:49 am

mjahamel wrote:> Are there identified bug fixes or features or performance enhancements that we can point to in lwIP latest that are impacting us in
> ESP32 land?

I believe there is: LwIP 2.0 has support for https in the httpd application (via an altcp layer). I have been building a captive-portal WiFi configuration app for the ESP32. This is basically working, but is subject to the rather serious objection that it passes the WiFi SSID and password that the user specifies across in plaintext over an unencrypted link. There are several ways of dealing with this, but https would be the nicest and has a lot of other applications.
Not really if it is using wpa2 psk. There are other http servers that support tls like https://github.com/chmorgan/libesphttpd and https://github.com/warmcat/lws-esp32-factory

User avatar
Gfast2
Posts: 182
Joined: Fri Aug 11, 2017 1:52 am

Re: LWIP version and ESP32

Postby Gfast2 » Mon Nov 27, 2017 9:21 am

WiFive wrote:
mjahamel wrote:> Are there identified bug fixes or features or performance enhancements that we can point to in lwIP latest that are impacting us in
> ESP32 land?

I believe there is: LwIP 2.0 has support for https in the httpd application (via an altcp layer). I have been building a captive-portal WiFi configuration app for the ESP32. This is basically working, but is subject to the rather serious objection that it passes the WiFi SSID and password that the user specifies across in plaintext over an unencrypted link. There are several ways of dealing with this, but https would be the nicest and has a lot of other applications.
Not really if it is using wpa2 psk. There are other http servers that support tls like https://github.com/chmorgan/libesphttpd and https://github.com/warmcat/lws-esp32-factory
Hi WiFive,

any disscusion about a list of webservers that works great on ESP32?

AFAIK, mongoose, libhttpd, kolban's WebServer.

Cheers

Gfast2

Who is online

Users browsing this forum: Baidu [Spider] and 80 guests