[lwip-users] Anybody interested in converting simulated FreeRTOS/uIP project to lwIP?

79 views
Skip to first unread message

FreeRTOS Info

unread,
May 30, 2011, 12:51:27 PM5/30/11
to Mailing list for lwIP users

Hi list,

There is a lot of communication on this list about using lwIP in a
multitasking environment. For a long time I have planned on creating an
example as a reference, but time is always a problem.

However, now I have the following convenient development setup using
uIP, that could be converted to replace uIP with lwIP. Note this all
runs under Windows in a simulated/emulated environment, so no target
hardware is required. Also, no software investment is required as only
free tools are used:

+ FreeRTOS being simulated in a Win32 environment - where a Windows
thread is created for each FreeRTOS task, and the FreeRTOS scheduler
controls which thread runs when (as if it were real real time, but just
simulated real time). This builds using both the *free* MSVC 2010
Express Edition, and the *free* Eclipse/MingW/CDT combo, so no software
investment is required.

+ A FreeRTOS demo project that uses the above mentioned Win32 simulator,
that includes a task that runs the uIP TCP/IP stack, with a simple web
server. Currently the project is using MSVC 2010 Express, but could be
ported over to use Eclipse/MingW simulator setup instead.

+ A WinPCap driver that allows you to create a virtual network node
(virtual IP address and virtual MAC address). This then allows you to
have the FreeRTOS/uIP/webserver running on the same machine as a web
browser - using one IP/MAC address combo for the FreeRTOS simulation exe
and another IP/MAC address combo for the web browser. You can then open
a web browser and connect to the web server using the virtual addresses,
all on a single machine (no actual network is required - does that make
sense?).

I'm not sure how most of lwIP development is done currently, but this
setup (with or without FreeRTOS) would make an easy and convenient
development and test bed (maybe it is done on Windows or Linux already?).

If somebody wanted to take this project, convert the uIP web server to
an lwIP web server, and send it back to me, I could then host it along
with FreeRTOS, hopefully maintain it, and document it, and hopefully add
extra example functionality over time. The result would then (hopefully
again, am I saying that too often) be a good development and test bed,
and an excellent example of how to use lwIP in a multitasking environment.

Ideally the example would use the sockets interface, as this is most
familiar to users of other stacks. It would also require an experienced
lwIP user to convert the project, as there is no point having a
reference design if it has been configured incorrectly.

Is anybody interested? If so, I can be contacted on r (dot) barry (at)
freertos.org.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers.
More than 7000 downloads per month.

_______________________________________________
lwip-users mailing list
lwip-...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

gold...@gmx.de

unread,
May 30, 2011, 1:47:47 PM5/30/11
to Mailing list for lwIP users
FreeRTOS Info wrote:
> I'm not sure how most of lwIP development is done currently, but this
> setup (with or without FreeRTOS) would make an easy and convenient
> development and test bed (maybe it is done on Windows or Linux already?).
There's a windows port which I'm using for development. It has a pcap
driver (which currently only works under windows/with winpcap, but I
have successfully used it under linux, too), multithreading support
(directly wrapping the win32 API). This port is available in the contrib
module in CVS (and in the contrib download ZIP), and I guess it's the
main port used for development currently. It also has a (raw API) http
server and some other example applications included (from contrib/apps).

So it looks like what you want is already there, only it doesn't seem to
be well known :-(

Simon

FreeRTOS Info

unread,
May 30, 2011, 2:16:52 PM5/30/11
to Mailing list for lwIP users
Hi Simon,

Thanks for the info. That will of course lessen the time I would need
to create a FreeRTOS version, and make it more feasible for me to do
that (at last) myself. Probably starting with the contrib version would
be the best plan.


Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers.
More than 7000 downloads per month.

Claudius Zingerli

unread,
May 31, 2011, 4:48:43 AM5/31/11
to Mailing list for lwIP users
Hi Richard,

On 2011/5/30 18:51 PM, FreeRTOS Info wrote:
> If somebody wanted to take this project, convert the uIP web server to
> an lwIP web server, and send it back to me, I could then host it along
> with FreeRTOS, hopefully maintain it, and document it, and hopefully add
> extra example functionality over time. The result would then (hopefully
> again, am I saying that too often) be a good development and test bed,
> and an excellent example of how to use lwIP in a multitasking environment.


I think, Stefano Olivieri already did the work at:
http://www.stf12.org/developers/Home.html -> Download ->
Cortex_STM32F107, or ask google for FreeRTOS + lwip + STM32
I'm currently trying to create a project using updated libraries (STM32
port, FreeRTOS 7.0.1, currently lwIP 1.3.2, update to lwIP 1.4.0 if time
allows).


Regards,

Claudius, proud owner of the book :)

Richard Barry

unread,
May 30, 2011, 12:17:36 PM5/30/11
to Mailing list for lwIP users
Hi list,

I'm not sure how most of lwIP development is done currently, but this


setup (with or without FreeRTOS) would make an easy and convenient
development and test bed (maybe it is done on Windows or Linux already?).

If somebody wanted to take this project, convert the uIP web server to


an lwIP web server, and send it back to me, I could then host it along
with FreeRTOS, hopefully maintain it, and document it, and hopefully add
extra example functionality over time. The result would then (hopefully
again, am I saying that too often) be a good development and test bed,
and an excellent example of how to use lwIP in a multitasking environment.

Ideally the example would use the sockets interface, as this is most


familiar to users of other stacks. It would also require an experienced
lwIP user to convert the project, as there is no point having a
reference design if it has been configured incorrectly.

Is anybody interested?

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers.
More than 7000 downloads per month.

_______________________________________________

Stefano OLIVERI

unread,
Jun 1, 2011, 5:32:45 AM6/1/11
to Mailing list for lwIP users
Hi Claudius,

First of all, let me say that the work exist thanks to the contribution of many people, starting from Paul (the work made on STR9), Ben (to move from the closed IAR toolchain to Eclipse+GCC), Richard and so on.

Actually I started to working at Cortex_STM32F107 demo in order to update to lwIP version 1.4.0. The demo build with success but it doesn't work. At the moment I'm busy with other activity (like a FatFS demo, etc.) and I have to spend little effort for this update.

I can send you the development version. If you are interested we can try to cooperate to this activity. Let me know by emailing me at "software[at]stf12.net".

Regards,
Stefano

Reply all
Reply to author
Forward
0 new messages