Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AT+CMGL="ALL" command return only OK

Manufacturer: huawei

Model: E3533

Revision: 22.318.27.00.00

IMEI: 353934033009021

+GCAP: +CGSM,+DS,+ES

AT+CMGS command work well.

OK
AT+CMGS="99667788"

> test sms
+CMGS: 45

OK

AT+CMGL="ALL"

OK
AT+CPMS="SM"

+CPMS: 0,40,0,40,0,40

OK
AT+CPMS=?

+CPMS: ("SM","ME"),("SM","ME"),("SM","ME")

OK
AT+CMGL="ALL"

OK
like image 771
tsogtgerel.ts Avatar asked Jan 05 '18 13:01

tsogtgerel.ts


People also ask

What is CMGL?

Using the +CMGL AT Command to List SMS Messages of a Certain Status from a Message Storage Area. The AT command +CMGL (command name in text: List Messages) is used to list messages of a certain status (for example, "received unread" and "received read") from a message storage area.

What is at CMGF?

The AT command +CMGF (command name in text: Message Format) is used to select the operating mode of the GSM/GPRS modem or mobile phone. It takes one parameter. The value of the parameter can either be 0 or 1.


1 Answers

Most common reason for returning OK would be that there are no messages stored in memory.

To check if that's the case run the reading command without setting the Preferred Storage.

like image 174
Tahir Shakir Avatar answered Sep 28 '22 05:09

Tahir Shakir