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();
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.
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 <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
____________________________
___________________________________________________________
雅虎1G免费邮箱百分百防垃圾信
http://cn.mail.yahoo.com/
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
