lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] ppp stack of lwip with uc/os


From: Prateek Jain
Subject: Re: [lwip-users] ppp stack of lwip with uc/os
Date: Mon, 30 Jan 2006 12:22:02 +0530

Hi Xiao,
 
  Use the following calls in the order. You have to add network interface too (use netif_add API).
 
 sys_init();
 mem_init();
 memp_init();
 pbuf_init();
 pppInit();
 
//Send modem commands here to initialize the  modem and dialing the number through your UART.
 
 pppSetAuth(PPPAUTHTYPE_PAP,(char *) iLogin,(char *) iPassword);
    
    gPPPID = pppOpen(LineDeviceFD, Your_PPPCallback, NULL);

Your callback Your_PPPCallback will be called once PPP is established.
 
Hope it helps.
 
Regards,
Prateek
 
On 1/18/06, xiao hu <address@hidden> wrote:
I connect GPRS modem to UART1 of LPC2138.I am trying
use the ppp stack
for lwip with uc/osII.But i have no idear about the
it.I don't no how to
use the ppp stack of lwip.
Could anyone give me some documents about it or tell
me
somthings about it.



Thanks !
____________________________

ZLG LPC2138
address@hidden
____________________________







___________________________________________________________
雅虎1G免费邮箱百分百防垃圾信
http://cn.mail.yahoo.com/


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]