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.
7 Comments:
I have "+CMS ERROR: 500" on huawei e1550
Coverage Ok
Service Center Ok
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'
Make sure you have the text sending service enabled with your provider.
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?
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
You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks
Tangki Panel
Many on-line casinos merely work ‘out of the box’ when it comes to of|in relation to} mobile play. Simply go to the net casino of your selection utilizing a mobile browser. All the software you will want will download as half of} the web page that you are browsing, so find a way to|you presumably can} get pleasure from all the advantages of 카지노사이트 mobile reside vendor casino play with out downloading a reside casino app.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home