Howto: Send SMS using a Huawei E160G and Debian
People who use their Huawei E160G on Three will know that in the Windows client you can send and receive SMS, this will come at some minor cost of £0.10 per SMS, and you can add bundles onto your mobile broadband account to make this cheaper.
Similar functionality can be achieved in Linux, and it’s very useful if your like me and want to drop someone a message when you don’t have your phone around.
For this we’ll be using Gammu, which is a toolset for managing phones via the AT GSM command set. It was originally forked from Gnokii, which was a similar toolset for Nokia handsets. As the E160G opens a serial port with access to the AT command set this is a relatively easy tool to setup.
First of all, we need to grab the packages. As these are standard Debian packages you should have no issues.
# sudo apt-get install gammu
Next, we need to configure Gammu to pickup the correct device. Check your dmesg for the serial port:
$ dmesg|grep tty [12321.308078] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB0 [12321.308275] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB1
Edit ~/.gammurc, or run gammu-config to change the device settings. Your ~/.gammurc file should look similar to:
[gammu] port = /dev/ttyUSB0 model = connection = at19200 synchronizetime = yes logfile = logformat = nothing use_locking = gammuloc =
Give it a test by getting all the SMS from the device:
# gammu getallsms
This should bring back all the SMS currently stored on the stick, which should include your login details for the Three website (unless you’ve deleted them). To send a SMS use the “sendsms” command:
$ gammu sendsms text 07874454543 Enter message text and press ^D: Test Message!!!!!1! Sending SMS 1/1....waiting for network answer..OK, message reference=2
Gammu has a lot more tools and options to explore, now you have the basic config you can setup a SMSD, which can expose the ability to send SMS to a network. Also, Gammu has a python interface so you can possibly build your own frontend client for sending SMS. For more details explore the Gammu Wiki.

i will have to give tihs a try with the acer one. could be useful.
zabouth
18 Oct 08 at 10:14 am
swamytk, You tried Huawei E160G phone with gammu, whereas i’ve nokia 6600 and nokia 3310 which i want to use with gammu to make it my home SMS gateway. Actually I’d prefer 3310 because i can dedicate that old phone for that job but problem is that is not working now properly, whereas it was just working fine for two months, I followed the following guide
http://www.syednetworks.com/opensourc-sms-gateway-using-gammu-and-mysql
Now from last few days my PC do not recognize my phone even i changed cable but same happend. Can you help me what can be done here?
saher
25 Oct 08 at 8:51 pm