SMS, GSM and 3G connectivity using Huawei modems in Python
Access SMS, GSM and 3G features of Huawei and compatible modems from your own apps via clean and pragmatic Python API.
For a kick-start see getting started or a sample app.
Clean API
When finished getting started the following should work for most users:
$ python3
...
>>> import humod
>>> m=humod.Modem()
>>> m.show_model()
'E270'
>>> m.enable_textmode(True)
>>> m.sms_send('+353?????????', 'hello world')
52
>>> m.connect()
>>> m.disconnect()
Supported features
- Connecting and disconnecting to the network with pppd
- Sending and receiving text messages
- Getting information about the SMS service center
- Enabling/disabling sms notifications
- Listing/reading/deleting messages
- Showing static device information
- Manufacturer, Model, Revision, Serial Number,
- IMEI number,
- Hardcoded operators,
- Locking operator
- Displaying dynamic device information
- Manipulating modem settings
- Event handling
- SIM Phonebook manipulation
- Sample applications
See also Development Guide.
For full enterprise texting solution using PyHumod see Texting Centre.