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.
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)
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?
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.