My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

PyHumod

A package for connecting to IP networks and sending SMS messages with Huawei USB modems. To see how to read and execute incoming messages check sms_exec.py. If you have any questions regarding pyhumod, join the mailing list.

Download PyHumod 0.03

Basic usage

For most users the following should work:

$ python
Python 2.5.4 (r254:67916, May 21 2009, 22:07:14)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import humod
>>> m=humod.Modem()
>>> m.show_model()
'E270'
>>> m.enable_textmode(True)
>>> m.sms_send('+353?????????', 'hello world')
52
>>> m.connect()
>>> m.disconnect()

Installation

$ wget http://pyhumod.googlecode.com/files/pyhumod-0.03.tar.gz
$ tar xzf pyhumod-*.tar.gz
$ cd pyhumod-*
$ sudo python setup.py install

Module Dependencies:

  • humod.humodem: Queue, threading, time, serial, os
  • humod.actions,humod.at_commands: re
  • humod.detect: dbus

For other info, check out pyhumod wiki or the official blog.

Powered by Google Project Hosting