Tuesday, September 29, 2009

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.

Sunday, September 13, 2009

PyHumod 0.03 released for downloads.

Latest PyHumod can be downloaded from:

The changes include:

Sunday, September 6, 2009

DevelGuide updated + some changes in the source.

I found some time to update PyHumod Developer's Guide. The wikidoc has been extended by the event handling section. I also worked on the source code in the mercurial repository and today's changes include:
  • deprecation of *_pbent, all SMS-related and entering Text/PDB mode commands. I will update the documentation reflecting it as soon as pyhumod-0x03 is available for download. I must admit I didn't put a lot of thought initially into the naming of the methods and they were a little random. From version 0.03 on, all SMS related Modem() methods will start with sms_* prefix, the phone book related ones with pbent_* prefix and so on.
  • Code cleanup to avoid repetition. See _common_enable for details.
  • Enabling CLIP (Calling line identification presentation). This will be useful in conjunction with event handler, as it tells you who (what number) is actually calling you.