I'm writing a linux program which interact with gsm modem through AT-commands. Sometimes the modem respond on at+cmgl="all"
command and return sms messages, sometimes the modem doesn't respond on this command(no answer, no ok, no error).
I use Python and pySerial, but it doesn't matter, because I tested the modem via bash terminal, send commands to the modem via echo
and read answers from the modem via cat /dev/ttyUSB0
. The same situation (sometimes it responds, sometimes not).
AT
command and have gotOK
in response. But the modem doesn't answer toAT+CMGL="ALL"
command sometimes. – George"ALL"
and not"all"
(because"ALL"
is the only correct choice)? – hlovdal