Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AT+CMGS returns ERROR

I am using SIM900 GSM module connect to my AVR Microcontroller. I tested it with FT232 to see transmitting data. First Micro sends AT it will response OK

AT OK
AT+CMGF=1 OK
AT+CMGS="+9893XXXXXX" returns ERROR and doesn't show ">"

Could anybody advise me what to do?

like image 748
Mohammad Farahi Avatar asked Feb 03 '14 08:02

Mohammad Farahi


People also ask

What is the meaning of AT CMGF 1?

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. The values 0 and 1 refer to SMS PDU mode and SMS text mode respectively.

What is CMS error?

NOTE: The +CMS ERROR indicates an error related to a mobile equipment or network. If the error is the result code for any of the commands in a command line, none of the following commands in the same command line are executed. (Neither ERROR nor OK will be returned.)


1 Answers

Command AT+CSCS? will answer You what type of sms-encoding is used. Properly answer is "GSM", and if not, You should set it by command AT+CSCS="GSM".

And remember about "Ctrl+Z" (not "Enter") as a finish of sms text, please.

like image 86
yuriygorskyy Avatar answered Oct 02 '22 14:10

yuriygorskyy