# Sending sms message

**URL:** <https://forum.sierrawireless.com/t/sending-sms-message/240>\
**Category:** Open AT\
**Created:** [January 23, 2006, 2:56am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240 "2006-01-23T02:56:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimba81](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jimba81](https://forum.sierrawireless.com/u/jimba81)\
**Post date:** [January 23, 2006, 2:56am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/1 "2006-01-23T02:56:31Z")

</div>

Hello guys,

I have a problem when I tried to send a sms message.

I have downloaded the ‘Ping\_GPRS’ sample application to the hardware and I send AT command via the hyper terminal.

AT commands that I’ve tried are:

(1) AT+CMGS="+6421xxxxxxx" (NZ vodafone).  
(2) \> test!!! (ctrl+z)  
(3) ERROR

I am getting ERROR, looks like the message never got sent.

Any idea?

---

<div class="post-metadata">

**Author:** ![OpenAT\_Fan](https://avatars.discourse-cdn.com/v4/letter/o/f07891/32.png) [@OpenAT\_Fan](https://forum.sierrawireless.com/u/OpenAT_Fan)\
**Post date:** [January 23, 2006, 6:14am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/2 "2006-01-23T06:14:45Z")

</div>

Hi,  
Try executing the command after giving AT+CMEE=1 command. This would enable the “+CMS ERROR” codes. After checking the +CMS error code received you can find the cause of the problem.  
However, I don’t think that the problem might be caused due to the embedded application.

Best Regards,  
Open AT Fan.

---

<div class="post-metadata">

**Author:** ![jimba81](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jimba81](https://forum.sierrawireless.com/u/jimba81)\
**Post date:** [January 24, 2006, 1:47am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/3 "2006-01-24T01:47:20Z")

</div>

I have tried it and I’m getting following error:

atz  
OK  
AT+CMEE=1  
OK  
AT+CMGS=“+64212769509”

> test  
> +CMS ERROR: 512

Any idea?

---

<div class="post-metadata">

**Author:** ![OpenAT\_Fan](https://avatars.discourse-cdn.com/v4/letter/o/f07891/32.png) [@OpenAT\_Fan](https://forum.sierrawireless.com/u/OpenAT_Fan)\
**Post date:** [January 24, 2006, 2:32pm UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/4 "2006-01-24T14:32:17Z")

</div>

Hi,  
The error “+CMS ERROR: 512” stands for “MM establishment failure”. You can find the meaning of the error codes in the Appendices to AT command interface guide.pdf document.

This error represents that the mobility management layer of GSM is not established/error in establishment.  
Usually, this error comes when you try to send SMS before allowing the module to register on to the network. You can enable the +CREG unsolicted indications (using the command AT+CREG=1) and try sending the SMS after receiving +CREG: 1 indication.  
Also make sure that the sim you are using works fine (this you can test by using that sim with your mobile phone and then trying to send an sms) 😆

Best Regards,  
Open AT Fan.

---

<div class="post-metadata">

**Author:** ![crystal](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@crystal](https://forum.sierrawireless.com/u/crystal)\
**Post date:** [February 17, 2006, 8:56am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/5 "2006-02-17T08:56:17Z")

</div>

Hello guys,

I am a beginner in studing Open AT, I have downloaded the ‘Ping\_GPRS’ sample application to the hardware and I send AT command via the hyper terminal ,and send a sms message successfully.But I have another confusion about the “Ping\_GPRS” sample have another function ,and how to start those function?

---

<div class="post-metadata">

**Author:** ![sanabiovilela](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sanabiovilela](https://forum.sierrawireless.com/u/sanabiovilela)\
**Post date:** [February 17, 2006, 4:08pm UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/6 "2006-02-17T16:08:31Z")

</div>

Hi crystal, you should read the ping\_gprs.html file that is in your project folder.

YouÂ´ll see how to activate itÂ´s functions.

Best Regards,

Henrique

---

<div class="post-metadata">

**Author:** ![salinajellykid](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@salinajellykid](https://forum.sierrawireless.com/u/salinajellykid)\
**Post date:** [April 18, 2006, 11:51pm UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/7 "2006-04-18T23:51:27Z")

</div>

I have similiar problem.

When I try to send a message:

at+cmgs=“+18587618690”

> hello!   
> +CMS ERROR: 96

and I looked up the error code means:  
Invalid mandatory information.

And I know that I need to set Service Center Address, but I do know how set? Anybody knows? I’m using US T-mobile carrier.

---

<div class="post-metadata">

**Author:** ![Jay](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@Jay](https://forum.sierrawireless.com/u/Jay)\
**Post date:** [June 5, 2006, 9:26am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/8 "2006-06-05T09:26:33Z")

</div>

Set the Service Center Address using the AT+CSCA command.  
Set also the other SMS parameters (for TEXT mode) with AT+CSMP command.  
Then save these settings with AT+CSAS command.

Check the AT Commands Interface Guide for more details.

---

<div class="post-metadata">

**Author:** ![zekaya](https://avatars.discourse-cdn.com/v4/letter/z/a88e4f/32.png) [@zekaya](https://forum.sierrawireless.com/u/zekaya)\
**Post date:** [August 15, 2006, 8:07am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/9 "2006-08-15T08:07:27Z")

</div>

+CMS ERROR: 512  
This error may result from invalid IMEI number assigned to the module. In this case the module can’t register itself to the network. AT+CREG command lets you to see the registration status.

---

<div class="post-metadata">

**Author:** ![karthick.kr](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@karthick.kr](https://forum.sierrawireless.com/u/karthick.kr)\
**Post date:** [September 28, 2006, 7:36am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/10 "2006-09-28T07:36:59Z")

</div>

hi

The main reason for SMS Failure is due to Improper SMSC number setting.

Make Sure that your SMSC number begins with International code(i.e. +91 for India) and so on 🙂

---

<div class="post-metadata">

**Author:** ![Micheler](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@Micheler](https://forum.sierrawireless.com/u/Micheler)\
**Post date:** [November 29, 2008, 4:58am UTC](https://forum.sierrawireless.com/t/sending-sms-message/240/11 "2008-11-29T04:58:00Z")

</div>

Hi, Im using the Q24 module and I’m trying to send sms messages. I’ve followed the documentation and I get +CMS ERROR:96.  
This is what I typed up:

at+cnmi=0,1,1,1,0  
at+csmp=17,169,0,0  
at+cmgf=1  
at+csca=“+33608080706”  
at+cmgs=9795400744

> test\<0x1A\>test  
> +CMS ERROR: 28

before i used to get +CMS ERROR:96  
Is it something in regards to the csca number? How do I know what number is suppose to go in here?

Thanks
