Skip to content

colins44/gsm-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

gsm-sms

A small python script that allows you to send, receive and delete SMS's using a USB GSM dongle modem

I created this using a HUAWEI E220 modem and a vodaphone sim card, not sure but i gues it should work with other modems

first find and install the driver software for your particular modem

Next set up and connect to your modem within network settings, set the APN to your network (Look up your networks APN online) set the phone number ( you can use default #99*, or your number no country code) and chose GPRS 3G as modem type

Next find the USB directory that your modem is plugged into by running $ ls /dev/tty* within terminal. Find the path to your modem and set that to the modem path within the sms.py file

run the sms.py file in your shell

to send sms type:

sendsms('number','text that you want to send')

eg:

sendsms('0711100011','this is the message im sending')

to read all sms's on your sim card:

read_all_sms()

To read just the read sms's:

read_read_sms()

To read the unread sms's on your sim card:

read_unread_sms()

to delete all sms's from the sim card:

delete_all_sms()

to delete just the read sms's from the sim card:

delete_read_sms()

all positive commands when speaking to the GSM modem return an "OK" message

Software is free to do as you wish with commercial or otherwise (thin it's a MIT licence), a very simple script enjoy

About

A small python script that allows you to send, receive and delete SMS's using a USB GSM dongle modem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages