I'm attempting to get PPP working. I have a socketmodem connected to an LPC2468 on uart 1. have the serial driver working.
Do I need to include Std_Modem.c in my project?
Where do I make changes to support my particular modem?
I'm not finding this obvious.
Dave
Thanks for the info. I included the modem driver, and got a little further.
The problem I am having now, is the PPP stack does not wait for the modem to connect before trying to bring up the link. The example you cited is for PPP listen, but my application dials out. Do you see a problem with this sequence?:
ppp_connect ("5551212","user","password"); while(!ppp_is_up()) ; file_upload(); ppp_close ();
Debug shows that PPP starts trying to send frames before the modem has connected. I set a breakpoint in the modem driver function modem_process() where it returns __TRUE, and it does not reach that point before PPP starts trying to send frames.
Thanks for any help.
Yes, you should add a modem driver to your project. It might be a Std_Modem.c which is a driver for a Standard hayes compatible modem. You can take it as a template and modify it for your own modem, if it is not hayes compatible.
Take a look to the HTTP_Demo example for MCB2140 evaluation board. This example is configured to run as PPP server with a null-modem driver. Windows PC can connect using the direct-cable connection modem.
It might run also on LPC2468, because the UART peripheral is the same on both devices.
Franc
View all questions in Keil forum