Lwip Ppp Over Serial

Posted on  by
  1. Lwip Ppp Over Serial
Lwip 2.0.2

Hi, I managed to let my ST Nucleo with mbed OS connect to Internet using an Adafruit Fona (a serial 2G modem). I used the PPP layer included in the sal-stack-lwip module, using this library as reference: https://github.c&hellip.

I have used lwIP's PPP but am not sure what you mean by 'PPP driver from lwIP'. Do you need to use PPP-over-serial or PPP-over-Ethernet? I used PPPoS for which I had to: 1.

Implement the serial IO interface defined in sio.h (see reference implementations in contrib module) 2. Use the PPP APIs defined in ppp.h to establish, manage, and terminate a PPP link.

Take into consideration that: 1. As of lwIP 1.4.0 rc1, the APIs in ppp.h are not protected, i.e they should be called from the tcpip thread context. IMO, not all the APIs in ppp.h are actually public. On 5/5/2011 13:18, narke wrote: > Hi, > > Does anyone have experience in using the PPP driver from lwIP?

Is > there even any example? > _______________________________________________ lwip-users mailing list. > > Do you need to use PPP-over-serial or PPP-over-Ethernet? > > > I used PPPoS for which I had to: > > 1.

Lwip Ppp Over Serial

Implement the serial IO interface defined in sio.h (see reference > implementations in contrib module) > > 2. Use the PPP APIs defined in ppp.h to establish, manage, and terminate > a PPP link. Beside the PPP APIs, do you actually use the implementaion (.c files in netif/ppp directory)? > > > Take into consideration that: > > 1.

As of lwIP 1.4.0 rc1, the APIs in ppp.h are not protected, i.e they > should be called from the tcpip thread context. I think this only matters for NO_SYS == false case. IMO, not all the APIs in ppp.h are actually public. What does this mean? > Hi Yoav, > > Thanks for the answer, I put some comment inside your replies. > Please have a look at them. > > > On 5 May 2011 19:33, Yoav Nissim wrote: >> >> I have used lwIP's PPP but am not sure what you mean by 'PPP driver from >> lwIP'.

> I will be using PPP over serial, and the serial line is connected to a > GPRS modem. I am in a NO_SYS environment, i.e., embedded system > without OS. If your embedded system is not covered in the contrib module, you will have to implement the serial IO interfaces (sio_open, sio_close, sio_write, sio_read, etc.). >> Do you need to use PPP-over-serial or PPP-over-Ethernet? >> >> >> I used PPPoS for which I had to: >> >> 1. Implement the serial IO interface defined in sio.h (see reference >> implementations in contrib module) >> >> 2.

Virtual Router is a free, open source software based router for PCs running Windows 7 or Windows Server 2008 R2. Using Virtual Router, users can wirelessly. Free download virtual router v1.0. Virtual Router turns any Windows 7 or Windows 2008 R2 Computer into a Wifi Hot Spot using Windows 7's Wireless Hosted Network (Virtual Wifi) technology.

All Cutsheets for Stone Veneer. Download AutoCAD Hatch Patterns. You’re ready to use Centurion Stone hatch patterns on your next project. Royalty Free AutoCAD Stone, Hatch Patterns - Cultured Stone, Ledgestone, Stonework & Masonry Hatch Patterns, Free Download. Veneer

Lwip Ppp Over Serial

Use the PPP APIs defined in ppp.h to establish, manage, and terminate >> a PPP link. > Beside the PPP APIs, do you actually use the implementaion (.c files > in netif/ppp directory)?

I think I see what you meant by 'lwIP PPP driver' - the location of the ppp directory is somewhat confusing. As opposed to the other files under the netif directory, the files under netif/ppp are not a sample or a skeleton. They _are_ the PPP client and API implementation (based on pppd code). This means they all have to be compiled into lwIP for you to be able to use PPP and its APIs (unless of course you decide to implement/import your own PPP engine - which I recommend against.). >> >> Take into consideration that: >> >> 1. As of lwIP 1.4.0 rc1, the APIs in ppp.h are not protected, i.e they >> should be called from the tcpip thread context.

> I think this only matters for NO_SYS == false case. I believe so, although I cannot be absolutely certain. IMO, not all the APIs in ppp.h are actually public. > What does this mean? I mean that I am not sure that all the functions defined in ppp.h should actually be called by someone looking to use PPP. I only use pppInit, pppOverSerialOpen, pppHup, pppClose and possibly a couple of others. > > > Hi Narke, > > See my inlined replies.

> > > On 5/5/2011 15:12, narke wrote: > >> Hi Yoav, >> >> Thanks for the answer, I put some comment inside your replies. >> Please have a look at them.