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.

Monday, August 31, 2009

PyHumod Developers Guide ...

A very short developers guide has been published in response to mistletoe's request on the mailing list. I hope you'll find it useful.

http://code.google.com/p/pyhumod/wiki/DevelGuide


Saturday, August 1, 2009

PyHumod 0.02 is out and up for grabs.

The final version of PyHumod 0.02 with SIM Phonebook manipulation support has been released. Some of the interesting changes include:
  • I tried to clean up some code by removing duplication,
  • enforced installation of /etc/ppp/options file (required by pppd),
  • list_messages() does not return a list of strings anymore, but a nested list of 5-element lists containing: message index, message status, sender number, ??, date+time.

You can get the source here:

Sunday, July 19, 2009

PyHumod 0.02-beta with Event Handling out!

New PyHumod 0.02-beta with improved support for MacOS X and event handling is out and up for grabs at:

Pyhumod: Better support for MacOS X

Last week I improved support for MacOS X by
  • defaulting to MacOS specific serial port names
  • Changing serial port baud rate to 115200, which is a default one for the modem and MacOS' pppd likes it much better too.
Use the mercurial repository to get the latest features:

hg clone https://pyhumod.googlecode.com/hg/ pyhumod