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
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
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.
If nothing else, your little example rewrite doesn't take into account that the connect will fail.
I knew somebody would point that out. It's just an example to show the problem, not real code.
Thanks Dave
Well, the small examples have an extraordinary way of sneaking themselves into production code somehow :)
Point taken, not this time though :-)
I should also mention that I am running RTX with round robin task switching, and there is also an ethernet interface.
I tried calling modem_dial() directly, and without even calling PPP_connect() it starts to try to send IPCP frames!
What triggers the PPP daemon to start the link negotiation?
Another observation: adjusting the timeouts for PPP in netconfig appears to have no effect. The initial packets are sent 2 seconds apart, even when I set all the timeouts to 10 seconds.
View all questions in Keil forum