Discard all SMS message content in Quectel EC25

I have a Quectel EC25 LTE module. I use this device for MO and MT SMS test. That is, the module periodically sends or receives SMS. I want if module received MT SMS, it provides delivery report but do not store sms content in it’s storage. Or if send SMS, received delivery report but do not store message content in it’s storage. Because the maximum SMS storage is 255. And if this memory volume is full, new SMS will not be accepted. I know that I can clear the memory using the following command, but I have to run the following AT Command intermittently.

AT+CMGD=1,4

Or can I increase the storage of SMS. It is worth noting that I set SMS storage to ME:

AT+CPMS="ME","ME","ME"

Maybe use AT+CNMI=0,2

See 3GPP 27.005, section 3.4 for further information on modes for this command.

I run your AT command. But I got the following error:

AT+CNMI=0,2                             
+CMS ERROR: 303 

Please run the test syntax AT+CNMI=? to see which command values your modem supports.

Example:

AT+CNMI=?
+CNMI: (0-2),(0-3),(0,2),(0-2),(0,1)
OK

The result:

AT+CNMI=?                                                                    
+CNMI: (0-2),(0-3),(0,2),(0-2),(0,1)

Which of the following is good for my work? I want, if I send a SMS, I can received the delivery report, but I can discard SMS content, so that the memory is not full. Also for MT SMS.

It is worth noting that if i run AT+CNMI=0,2, I get the following error:

AT+CNMI=0,2                             
+CMS ERROR: 303 

Please try: AT+CNMI=2,2,0,0,0

1 Like