Hi there,

I was wondering if there is any way to get out of a "sitting" situation from a GSM module when, i.e., a AT+CMGS is misissued.

This situation I'll discribe further on should actually not appear since the program takes care to send "clean" SMSs.

Since my project is about a GSM monitoring system, I would like to make sure the modem will always be functional even if something goes wrong.

In this example, I've omitted the CTRL-Z command to terminate the message. This leads the module to hang showing ">" lines (yellow highlight).

Name:  000630.png
Views: 1152
Size:  6.1 KB


Appart from the next line +CMTI: "SM",0 indicating an incoming message, the next lines (braun highlight) are commands issued by my PIC but not recognized and therefore not executed. AAMOF, these three last lines are preceeded by a ">", the one that is probably waiting for AT+CMGS command termination.

Unfortunately, sending a CTRL-Z does not finally terminate the AT+CMGS command and my module is stuck here until...I switch it OFF.

Is there a way to get out of this trap?