This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Switch between PPP dial out and dial in.

Hi,
In my application I am using PPP to connect GSM/GPRS modem on serial port2. It is working.
I also can use a serial port 1 to establish PPP connection from PC to be able to display web pages of my device, only I have to exclude Std_Modem.cpp from the project and redirected all traffic in com_putchar, and com_getchar functions from port 2 to port 1.
So at the moment I can compile the project to do only one of two: initiate GSM/GPRS modem connection or wait for PPP serial cable connection from PC. Is there a way to be able to switch between waiting for PC connection if serial port 1 is connected and otherwise connect to GSM/GPRS modem?

Thanks in advance.

0