Sending sms message

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?

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.

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?

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) :laughing:

Best Regards,
Open AT Fan.

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?

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

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.

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.

+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.

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 :slight_smile:

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