LWIP - david-macmahon/wiki_convert_test GitHub Wiki
LWIP is a light-weight network stack designed for use in embedded systems. It is BSD licensed, so members of the CASPER group adapted it for use on our radio astronomy hardware.
We only use LWIP on IBOBs, since later boards all run a full-featured Debian GNU/Linux operating system. For information on connecting to IBOBs with LWIP, see Interacting with CASPER Instruments.
Features
From the source website:
- lwIP is a small independent implementation of the TCP/IP protocol suite that has been developed by Adam Dunkels at the Computer and Networks Architectures (CNA) lab at the Swedish Institute of Computer Science (SICS).
- The focus of the lwIP TCP/IP implementation is to reduce resource usage while still having a full scale TCP. This making lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM.
Usage
To use LWIP, you just need to include an LWIP block in your Simulink design. There are two modes available: TCP and UDP.
TCP mode is the default. It is fully integrated into the toolflow, so you don't need to do anything extra.
UDP mode is newer, and it is not yet fully integrated into the toolflow. So, you need to download a patch:
{{bit|6q05d3bE_udp_patch.tar.gz|udp_patch.tar.gz}}
install instructions enclosed, then, you can proceed as usual.
For information on controlling an IBOB, see Interacting with CASPER Instruments.