Why I am not able to receive sms using AT commands?

Manish Basdeo picture Manish Basdeo · Nov 20, 2010 · Viewed 13.4k times · Source

I want to send / receive sms using AT commands from my computer to my mobile phone. I connected my phone to my computer using a USB port. My computer detects the modem and I am able to send sms from the computer to mobile phone. However, I am not able to receive sms in my computer..

I am presenting a sample of what I get from AT editor

AT+CMGF=1 OK

AT+CNMI=1,2,0,0,0 Error

What can I do to send this prob and why am I getting this Error?

Answer

David Costa picture David Costa · Nov 25, 2010

Every phone has different capabilities so you should check which values for each parameter are valid for your phone by sending it a

AT+CNMI=?

For example my phone doesn't support your example because mode 1 is not supported. For the full syntax of +CNMI you can consult the AT Manual of your manufacturer or the ETSI standard or read this brief tutorial http://www.cellular.co.za/at_etsi.htm

AT+CNMI is used anyway just to get a notification when a SMS arrives, in order to read the content of the stored SMS you have to use AT+CMGL= or AT+CMGR=.

Briefly: AT+CMGF=1 ;sets the text mode

AT+CMGL=? ;tells you which memories are available

AT+CSCS=? ;tells you which character sets are available

AT+CSCS="8859-1" ;sets Latin1 as the charset so that you can see eventually accented letters

AT+CMGL="ALL" ;prints every text message you have stored in your phone