There is no universal solution for that. It depends on implementation of AT command parser and sometimes there is difference between modems FW versions.
In my programs I repeat command 3 times, if there is no valid reply, then just reset modem. I tried few times to make error handler for modem comm, and in 90% error cases it end up resetting modem.




Bookmarks