[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Opinions on using lwIP for making application GPRS-chip
From: |
Sergio R. Caprile |
Subject: |
Re: [lwip-users] Opinions on using lwIP for making application GPRS-chipset-agnostic |
Date: |
Fri, 21 Aug 2015 09:16:28 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
What I would do, if I were in your shoes, is to write my app for lwIP,
and then either use PPP for those TCP/IP capable GPRS modules and a
layer-2 interface (netif) for the other ones.
This way, your app is always the same and you only change code for what
is below layer-3. You'll have to write your own netif, though.
lwIP is a TCP/IP stack which communicates to "the outside world" via
interfaces called "netif". Basically you can run it on top of everything
where you can write a netif for.
The git HEAD contains working PPP code, stable 1.4.1 is OK for
everything else but PPP and IPv6, although the maintainers recommend
using git HEAD now because 1.5.0 is just around the corner.
Your app will be written for lwIP using one of several APIs available.
The 'RAW' API, a poem for bare metal lovers; 'netconn' API, more
suitable for RTOS accolites; and 'socket' API for the full-OS minds.
Pick your own, and please, read the wiki
http://lwip.wikia.com/
--
- Re: [lwip-users] Opinions on using lwIP for making application GPRS-chipset-agnostic,
Sergio R. Caprile <=