Perhaps I wasn’t completely clear in my question.
In order to send a +++ command, I need to send it manually through the serial port, but I don’t want to mess with the PPP library which might be using the port for something else at that same time.
I’m not completely sure that using the RS232.lib and the PPP.lib libraries on the same port at the same time is safe.
So my question is: how can I go to command mode using the PPP library to make sure everything runs smoothly?
You are correct. There is no DynamicC API funcition to check GPRS signal, but it is not hard to implement.
Some time ago you proposed to use the +++ command. I agree, and It is also possible to use the DTR pin for the same purpouse.
My concern is that I have no way of telling DynamicC PPP library that I am going to “get in the middle” of the communication to use the serial port for myself. How can I be sure that I won’t crash the PPP library or that the library will send rubish on the serial port while I am trying to get in the middle?