<?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; huawei</title>
	<atom:link href="http://tensixtyone.com/tags/huawei/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>
		<item>
		<title>Howto: Debian Lenny &amp; Huawei E160G</title>
		<link>http://tensixtyone.com/perma/howto-debian-lenny-huawei-e160g</link>
		<comments>http://tensixtyone.com/perma/howto-debian-lenny-huawei-e160g#comments</comments>
		<pubDate>Thu, 07 Aug 2008 22:08:10 +0000</pubDate>
		<dc:creator>Andrew Williams</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[701]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[e160g]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[huawei]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networkmanager]]></category>

		<guid isPermaLink="false">http://tensixtyone.com/?p=364</guid>
		<description><![CDATA[So, in my last post I described how it was using the E160G with Debian. All in all it&#8217;s very good and i&#8217;ve not experienced any major issues, bar a few minor apt-get and NetworkManager issues. So, heres a quick rundown of how to get it on your machine. So first, you need to get [...]]]></description>
			<content:encoded><![CDATA[<p>So, in my last post I described how it was using the E160G with Debian. All in all it&#8217;s very good and i&#8217;ve not experienced any major issues, bar a few minor apt-get and NetworkManager issues. So, heres a quick rundown of how to get it on your machine.</p>
<p>So first, you need to get the hardware to work correctly under Debian. Plug in your E160G and check dmesg to see if the device recognises correctly. If you see ttyUSB0/ttyUSB1 appear you can skip this step.</p>
<p>First, you need to download USB_Modeswitch:</p>
<pre># wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.4.tar.bz2
# tar jxvf usb_modeswitch-0.9.4.tar.bz2
# cd usb_modeswitch-0.9.4/
# ./compile.sh</pre>
<p>Now you have the usb_modeswitch program, as this will be executed by udev it needs to be in a sensible location, personally i&#8217;d copy it to /usr/local/sbin/</p>
<pre># cp usb_modeswitch /usr/local/sbin/</pre>
<p>Also, you need to grab the latest config file from the usb_modeswitch website and put it into /etc</p>
<pre># wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.conf
# sudo mv usb_modeswitch.conf /etc/</pre>
<p>Now, by default the config file comes with the section commented out, so edit the file and uncomment the section for the E220 (which is essentially the same device).</p>
<pre># sudo $EDITOR /etc/usb_modeswitch.conf</pre>
<p>One last step, you need to add a small configuration file to udev to detect the E160G and run usb_modeswitch, put this file in you /etc/udev/rules.d/ folder:</p>
<pre>SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1",
  RUN+="/usr/local/sbin/usb_modeswitch"</pre>
<p>Restart udev, and plug in your E160G&#8230;</p>
<pre>sudo /etc/init.d/udev restart</pre>
<p>and you should see something similar to:</p>
<pre>[   16.085904] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB0
[   16.086033] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB1</pre>
<p>So, the device is detected and you have your USB ports, first a quick overview. The E160G shows two serial ports, one is a data port, the other is for control signals. NetworkManager only makes use of one of these ports but the Vodafone Connection Manager uses both. Now you have a choice, install Network Manager 0.7 to gain native GPRS/UMTS data support or use another package. I went for Network Manager, while it&#8217;s still in beta and i&#8217;ve had a few run-ins in the past with it I decided to give it a go.</p>
<p>So, it was a simple case of adding the 0.7 repositories to /etc/apt/sources.list, updating, then installing the needed packages.</p>
<pre># echo "deb http://debs.michaelbiebl.de/ unstable main" &gt;&gt; /etc/apt/sources.list
# apt-get update
# apt-get -t unstable install network-manager</pre>
<p>You might need to remove any old Network Manager packages before you do this, as network-manager-openvpn collides with the new package.</p>
<p>Hopefully thats give you the overview you needed, and you should be up and running!</p>
]]></content:encoded>
			<wfw:commentRss>http://tensixtyone.com/perma/howto-debian-lenny-huawei-e160g/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
