1
votes

I can finally make a phone call, receive, and answer it. But if I try to send an SMS I receive CMS ERROR: 500. The GSM modem I am using is Telit GL865-Quad module. Since the Call function is working, what's preventing the SMS to work? please enlightenment me. The Sim Card works fine on my phone to rule out some of the problems. I am using a hyperterminal to type the commands at 19200 speed. This is the user guide with commands for your own convenience.

To send an SMS:

AT+CMGF=1 // Select Text Mode
OK
AT+CMGW=”+xxxxxxxxxxxx” // my number
> Hi
>
+CMGW: 8

OK
AT+CMSS=8

Error: +CMS ERROR: 500

Any ideas to what the error means, since its unknown error? What are some commands to type out to pinpoint the problem?

I would appreciate your help, thanks!

2
Any suggestions to try?Ammar
Have you set the SMS gateway number ? developershome.com/sms/cscaCommand.aspandroidFan
I tried that and its really not working, I have simple mobile and the SMSC is +12063130004.Ammar
Have you tried following the example in section 3.7.8 of the user guide exactly - i.e. including everything there but substituting your own number to send it to? For example you do no include the AT+CNMI command in your example above. If you have what output do you get?Mick
@Mick, I tried it now, still got the same error.Ammar

2 Answers

1
votes

+CMS ERROR: 500 is unfortunately a very generic error message.

I have a few suspicions which may solve your problem:

1) Timing problem

Writing an SMS to the SIM card will take a "significant" amount of time. Between writing the SMS to SIM and sending the SMS wait a couple of seconds.

2) Check that the SMS really did get written to SIM

Using the CMGR command you can verify if the SMS is written to SIM and it's current status.

For example:

AT+CMGR=8

Alternatives:

You can always send an SMS directly without storing on the SIM. This is generally a more favored approach for multiple reasons including SMS sending is quicker and SIM lifetime is extended due to reduced read/writes.

This can be achieved by using:

AT+CMGS=<destination address>
>Hi

You can additionally use the CNMI command to prevent incoming messages being stored on the SIM and being output directly to the console/telnet connection.

0
votes

Replying on a 7 year old thread - sorry.

Make sure you terminate your message "Hello" with ASCII SUB (0x1A)