Troubleshooting "AtCommandError: +CMS ERROR: 500"

If AtCommandError exception is thrown with "+CMS ERROR: 500" output, it literally means "SMS could not be sent" (which you must have figured out by now). Those are the possible reasons:
  • You lost coverage.
    In this case, the modem will typically seem to hang for 10-15 seconds. The delay is caused by an attempt to scan and associate with the cellular network. Run get_networks() on humodem.Modem's instance to see what networks are in range.
  • You use wrong Service Senter.
    Run get_service_center() on a humod.Modem's instance to see your service center; you can set a new value with set_service_center().
  • Potentially everything that prevents an SMS from being sent.

5 Comments:

Blogger iphone said...

I have "+CMS ERROR: 500" on huawei e1550
Coverage Ok
Service Center Ok

October 2, 2009 at 12:18 PM  
Anonymous Anonymous said...

I'm having this error but I think I have good signal. I can connect with gnome's NetworkManager, but I want to send/receive SMS messages.

What else can I do to diagnose why I can't send sms?
Here you have a transcript:

Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import humod
>>> m = humod.Modem()
>>> m.get_networks()
[[2, '', '', '74801', 2], [1, 'CTI Movil URY', 'CTI URY', '74810', 2], [3, 'MOVISTAR', 'Movistar', '74807', 2]]
>>> m.get_service_center()
('+59899998932', 145)
>>> m.get_rssi()
19
>>> m.enable_textmode(True)
>>> m.get_detailed_error()
'No cause information available'
>>> m.sms_send('+59899271234', 'Testing message')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.6/dist-packages/humod/at_commands.py", line 136, in sms_send
result = self.ctrl_port.return_data()
File "/usr/local/lib/python2.6/dist-packages/humod/humodem.py", line 181, in return_data
errors.check_for_errors(input_line)
File "/usr/local/lib/python2.6/dist-packages/humod/errors.py", line 35, in check_for_errors
raise AtCommandError, input_line
humod.errors.AtCommandError: +CMS ERROR: 500
>>> m.get_detailed_error()
'No cause information available'
>>> m.get_rssi()
19
>>> m.sms_list()
[]
>>> m.show_model()
'E226'

April 3, 2010 at 2:54 PM  
Blogger oozie said...

Make sure you have the text sending service enabled with your provider.

April 4, 2010 at 11:55 PM  
Blogger Unknown said...

I'm also having this error. My networks and service center are fine, and as I'm able to receive SMS via pyhumod with no problem, I dont think the problem is the signal.

Any other thoughts on this?

June 28, 2010 at 6:23 AM  
Blogger Robert said...

I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information. Types of Bolts

January 24, 2019 at 3:30 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home