<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tensixtyone &#187; gammu</title>
	<atom:link href="http://tensixtyone.com/tags/gammu/feed" rel="self" type="application/rss+xml" />
	<link>http://tensixtyone.com</link>
	<description>Rants of Andrew Williams / Nik_Doof</description>
	<lastBuildDate>Fri, 25 Jun 2010 10:58:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Howto: Send SMS using a Huawei E160G and Debian</title>
		<link>http://tensixtyone.com/perma/howto-send-sms-using-a-huawei-e160g-and-debian</link>
		<comments>http://tensixtyone.com/perma/howto-send-sms-using-a-huawei-e160g-and-debian#comments</comments>
		<pubDate>Fri, 17 Oct 2008 10:53:11 +0000</pubDate>
		<dc:creator>Andrew Williams</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[e160g]]></category>
		<category><![CDATA[gammu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[huawei]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mobile broadband]]></category>
		<category><![CDATA[three]]></category>

		<guid isPermaLink="false">http://tensixtyone.com/?p=433</guid>
		<description><![CDATA[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&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>People who use their Huawei E160G on <a href="http://www.three.co.uk/">Three</a> 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.</p>
<p>Similar functionality can be achieved in Linux, and it&#8217;s very useful if your like me and want to drop someone a message when you don&#8217;t have your phone around.</p>
<p>For this we&#8217;ll be using <a href="http://www.gammu.org/">Gammu</a>, which is a toolset for managing phones via the AT GSM command set. It was originally forked from <a href="http://www.gnokii.org/">Gnokii</a>, 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.</p>
<p>First of all, we need to grab the packages. As these are standard Debian packages you should have no issues.</p>
<pre># sudo apt-get install gammu</pre>
<p>Next, we need to configure Gammu to pickup the correct device. Check your dmesg for the serial port:</p>
<pre>
$ 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
</pre>
<p>Edit ~/.gammurc, or run gammu-config to change the device settings. Your ~/.gammurc file should look similar to:</p>
<pre>[gammu]
port = /dev/ttyUSB0
model =
connection = at19200
synchronizetime = yes
logfile =
logformat = nothing
use_locking =
gammuloc =
</pre>
<p>Give it a test by getting all the SMS from the device:</p>
<pre># gammu getallsms</pre>
<p>This should bring back all the SMS currently stored on the stick, which should include your login details for the Three website (unless you&#8217;ve deleted them). To send a SMS use the &#8220;sendsms&#8221; command:</p>
<pre>$ 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</pre>
<p>Gammu has a lot more tools and options to explore, now you have the basic config you can setup a <a href="www.gammu.org/wiki/index.php?title=Gammu:SMSD ">SMSD</a>, 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 <a href="http://www.gammu.org/wiki/index.php?title=Main_Page">Gammu Wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tensixtyone.com/perma/howto-send-sms-using-a-huawei-e160g-and-debian/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
