<?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>Peterism &#187; modem</title>
	<atom:link href="http://peterchuang.com/blog/tag/modem/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterchuang.com/blog</link>
	<description>NOT just random thoughts</description>
	<lastBuildDate>Mon, 13 Jun 2011 10:52:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tethering HTC Mogul and Touch Cruise with Ubuntu (8.10 and 9.04b)</title>
		<link>http://peterchuang.com/blog/2008/11/124/</link>
		<comments>http://peterchuang.com/blog/2008/11/124/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 01:31:54 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[mogul]]></category>
		<category><![CDATA[sprint]]></category>
		<category><![CDATA[tether]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://peterchuang.com/blog/?p=124</guid>
		<description><![CDATA[With the ever-expanding 3G or 3.5G coverage, it is now quite convenient to use your 3.xG phone as a modem to get your notebook connected. While the process for tethering WM6 with a Windows machine is pretty strait-forward, it may require a bit more work if you have Ubuntu. Here I will try to summarize how I manage to get my Mogul tethered with Ubuntu Intrepid. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">*Update Dec 24, 2009:  Just tried tethering with my Toshiba NB205-N312/BL, which I installed <a href="http://www.ubuntu.com/GetUbuntu/download-netbook" target="_blank">Ubuntu Netbook Remix</a> (9.10). Turns out that tethering is even easier.  RNDIS already works out of the box for the 2.6.31-15 kernel.  There is nothing to do on the netbook.  Just skip to step 2 to modify the phone&#8217;s registry.</span></p>
<p>*Updated July 22, 2009:  If you are looking to tether your Mogul with Windows XP/Vista, please read <a title="Tether Your Sprint Mogul with Windows XP " href="http://peterchuang.com/blog/2009/07/216/">this related post</a>.</p>
<p>*Updated March 30, 2009:  Yesterday, I upgraded my Intrepid(8.10) to Jaunty (9.04) Beta following the easy instruction at <a href="http://www.ubuntu.com/testing/jaunty/beta">http://www.ubuntu.com/testing/jaunty/beta</a>.  I&#8217;m happy to report that tethering still works perfectly as it did in 8.04 and 8.10.</p>
<p>I have a Sprint Mogul, which is made by the Taiwanese handset maker HTC.  I used to be able to tether it with my laptop which runs Windows XP Pro SP3, enjoying Sprint&#8217;s speedy EvDO RevA network at around 1mbps/300kbps (down/up).  That was before I updated Mogul&#8217;s ROM to Windows Mobile 6.1.  It&#8217;s especially handy when travelling on the road, as was the case when I drove from Kansas City back to Northern California a few months ago.  It also comes in handy when going to a coffee shop that doesn&#8217;t have free Wifi.  Ever since I updated the ROM in my Mogul to WM6.1, I started getting &#8220;Error 67&#8243; on the device when trying to start Internet Sharing.  Following <a href="http://forum.ppcgeeks.com/showthread.php?t=31896&amp;highlight=internet+sharing" target="_blank">here</a>, I was finally able to get it to work.</p>
<p>That would take care of Internet Sharing (tethering) in Windows, but my primary OS is Ubuntu, now running Intrepid Ibex.  I need to to get the packets flowing between Ubuntu and WM6.1.  I have it working now.  <span style="text-decoration: line-through;"><strong>If you want the details, please leave me a reply.  I figure I won&#8217;t spend the time detailing it if no one wants to know. </strong></span></p>
<p>Most of the information are gathered from various posts on other forums or blogs.  I will attempt to re-organize them in a more straight forward way for Sprint Mogul users running WM6.1 with laptop running Ubuntu 8.10, although it may still work for similar setups.</p>
<h3>1. Get rndis-lite.</h3>
<p>You need to get the source from its svn repository and compile it.<br />
*Please note that the rndis project evolves over time, so you may need to make a few adjustments.<br />
On 4/19/2010, I found rndis-lite&#8217;s ViewVC repo at <a href="http://synce.svn.sourceforge.net/viewvc/synce/trunk/usb-rndis-lite/">http://synce.svn.sourceforge.net/viewvc/synce/trunk/usb-rndis-lite/</a>.  You can download the tarball at http://synce.svn.sourceforge.net/viewvc/synce/trunk/usb-rndis-lite.tar.gz?view=tar by executing:</p>
<pre class="brush: plain; auto-links: false; title: ; notranslate">
wget -O usb-rndis-lite.tar.gz http://synce.svn.sourceforge.net/viewvc/synce/trunk/usb-rndis-lite.tar.gz
</pre>
<p>Extract it, then run the usual <em>make </em>and <em>make install</em> afterwards to compile it.  </p>
<p>The following block of shell commands is from the old instruction for your reference.</p>
<pre class="brush: plain; auto-links: false; title: ; notranslate">
sudo -s
apt-get install subversion
svn co http://synce.svn.sourceforge.net/viewvc/synce/trunk/usb-rndis-ng/
cd usb-rndis-lite/
make
./clean.sh
make install
</pre>
<p>Then you&#8217;ll need to modify your /etc/network/interfaces with your preferred text editor.  vim is used here:</p>
<pre class="brush: bash; title: ; notranslate">vim /etc/network/interfaces</pre>
<p>Add the following lines:</p>
<pre class="brush: plain; title: ; notranslate">auto rndis0
iface rndis0 inet dhcp
</pre>
<p>Reboot Ubuntu.  Once it&#8217;s reboots, plug your Mogul via a USB cable to your laptop.</p>
<h3>2.  Modify your Mogul&#8217;s registry.</h3>
<p>There are couple of ways to modify your Mogul&#8217;s registry.  I downloaded a free WM program called <strong>PHM Registry Editor (v0.70)</strong> from <a title="PHM Registry Editor" href="http://freewareppc.com/utilities/phmregistryeditor.shtml">here</a>.<strong> </strong>Once the app is installed on your Mogul, fire it up and browse to My Device-&gt;HKEY_LOCAL_MACHINE-&gt;Comm-&gt;Internet Sharing-&gt;Setings.  There is a registry key named &#8220;ForceCellConnection&#8221; which is currently set to &#8220;Phone as Modem&#8221;.  Change it to &#8220;Sprint PCS&#8221;.  Save your registry settings and quit the program.  You may need to reboot your Mogul, too.</p>
<h3>3.  Tether and Surf.</h3>
<p>Now that both the laptop and Mogul have been setup, you should be ready to go.  When you plug your Mogul into your laptop&#8217;s USB port, you should see the EVDO icon change to a double arrow, indicating a connection established with your laptop.  A network interface called &#8220;rndis0&#8243; or &#8220;eth1&#8243; should display with your do a &#8220;ifconfig&#8221;.  I have had to re-setup my laptop several times, sometimes I get &#8220;rndis0&#8243; and sometimes I get &#8220;eth1&#8243;, not sure why.  Anyway, I see that I have an network interface named &#8220;eth1&#8243; with IP of 169.254.2.2, and that I can ping the Mogul at 169.254.2.1.  I have also setup Synce to sync my contacts and calendar, but that&#8217;s another story.  Anyway, on your Mogul, go to Internet Sharing.  Make sure the dropdown for PC Connection says USB, and click on &#8220;Connect&#8221; at the bottom.  If all goes well, you should wait a few second (takes about 7 seconds for me) and the DHCP server on the phone should assign a new ip for your interface at &#8220;eth1&#8243; (or &#8220;rndis0&#8243;).  My eth1 now has an IP address of 192.168.0.102 and I can get hop on Sprint&#8217;s speedy EVDO RevA network with my laptop running Ubuntu Intrepid.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterchuang.com/blog/2008/11/124/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

