I'm monitoring the modem for new sms messages about once per second. I am doing this with debugging active so I can see all of the modem activity in my serial interface. At some point my code hangs and it always seems the modem fails to return the OK after the AT+CMGL="REC UNREAD" command. The code runs for several days before it encounters this phenomena.
Has anyone a suggestion for trapping this event and recovering control?