<?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>Ahsun Taquveem Chohan &#187; Linux</title>
	<atom:link href="http://ahsun.xenoglaux-solutions.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://ahsun.xenoglaux-solutions.com</link>
	<description>The Blog for computer scientists</description>
	<lastBuildDate>Sat, 04 Dec 2010 08:47:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Access the internet in Ubuntu via Bluetooth-enabled mobile phones</title>
		<link>http://ahsun.xenoglaux-solutions.com/2009/05/04/access-the-internet-in-ubuntu-via-bluetooth-enabled-mobile-phones/</link>
		<comments>http://ahsun.xenoglaux-solutions.com/2009/05/04/access-the-internet-in-ubuntu-via-bluetooth-enabled-mobile-phones/#comments</comments>
		<pubDate>Mon, 04 May 2009 09:29:11 +0000</pubDate>
		<dc:creator>Ahsun Taquveem Chohan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[acer]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[aspire]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[dial]]></category>
		<category><![CDATA[dialup]]></category>
		<category><![CDATA[gprs]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[pair]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ahsun.xenoglaux-solutions.com/2009/05/04/access-the-internet-in-ubuntu-via-bluetooth-enabled-mobile-phones/</guid>
		<description><![CDATA[Many mobile phones now come equipped with a Bluetooth modem which can be configured easily in Ubuntu to access the internet without installing proprietary drivers or software. 1. Check local Bluetooth availability on PC Login as root and enter hciconfig in the terminal to check that the Bluetooth devices in PC is on. Typical output [...]]]></description>
			<content:encoded><![CDATA[<p>Many mobile phones now come equipped with a Bluetooth modem which can be configured easily in Ubuntu to access the internet without installing proprietary drivers or software.</p>
<p><span id="more-65"></span></p>
<h3>1. Check local Bluetooth availability on PC</h3>
<p>Login as <strong>root</strong> and enter <span style="font-family: Courier New;">hciconfig</span> in the terminal to check that the Bluetooth devices in PC is on. Typical output should appear as shown below:</p>
<blockquote>
<p><span style="background-color: #ffffff; font-family: Courier New;">hci0 : Type: USB</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">BD Address: </span><span style="background-color: #ffffff; font-family: Courier New;">00:19:7E:DF:51:02 ACL MTU: </span><span style="background-color: #ffffff; font-family: Courier New;">1017:8 SCO MTU: 64:8</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">UP RUNNING PSCAN ISCAN</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">RX bytes:957 acl:0 sco:0 </span><span style="background-color: #ffffff; font-family: Courier New;">events:26 errors:0</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">TX bytes:603 acl:0 sco:0 </span><span style="background-color: #ffffff; font-family: Courier New;">commands:26 errors:0</span></p></blockquote>
<h3>2. Discover the phone</h3>
<p>Set the phone’s Bluetooth to discoverable and enter <span style="font-family: Courier New;">hcitool</span> scan in the terminal. This will display the phone’s name and MAC address (not it down )</p>
<h3>3. Verify dial-up networking (DUN) profile</h3>
<p>Enter <span style="font-family: Courier New;">sdptool browse</span> to view the phone’s Bluetooth profiles. If DUN exists, it will be listed as follows:</p>
<blockquote><p><span style="font-family: Courier New;">service Name: Dial-up Networking</span></p>
<p><span style="font-family: Courier New;">Sevice RecHandle: 0&#215;10002</span></p>
<p><span style="font-family: Courier New;">Service Class ID List:</span></p>
<p><span style="font-family: Courier New;">“Dialup Networking” (0&#215;1103)</span></p>
<p><span style="font-family: Courier New;">“Generic Networking” (0&#215;1103)</span></p>
<p><span style="font-family: Courier New;">Protocol Descriptor List:</span></p>
<p><span style="font-family: Courier New;">“L2CAP” (0&#215;0100)</span></p>
<p><span style="font-family: Courier New;">“RFCOMM” (0&#215;0003)</span></p>
<p><span style="font-family: Courier New;">Channel: 2</span></p>
<p><span style="font-family: Courier New;">Profile Descriptor List: </span></p>
<p><span style="font-family: Courier New;">“Dialup Networking” (0&#215;1103)</span></p>
<p><span style="font-family: Courier New;">Version: 0&#215;0100</span></p></blockquote>
<p>Note down the channel value.</p>
<h3>4. Set a passkey(optional)</h3>
<p>Edit the <span style="font-family: Courier New;">/etc/bluetooth/hcid.conf</span> file and set the passkey to four zeros (0000) in the Options section</p>
<blockquote>
<p><span style="background-color: #ffffff;"># Default PIN code for </span><span style="background-color: #ffffff;">incoming connections</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">passkey “0000”;</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">Ensur[e the following values for these settings:</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">autoinit yes;</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">security auto;</span></p>
<p><span style="background-color: #ffffff; font-family: Courier New;">pairing multi;</span></p></blockquote>
<h3>5. Edit the RFCOMM file</h3>
<p>Edit <span style="font-family: Courier New;">/etc/bluetooth/rfcomm.conf</span> to bind the DUN channel over the phone with RFCOMM for connectivity as follows:</p>
<blockquote><p><span style="font-family: Courier New;">rfcomm0 {</span></p>
<p><span style="font-family: Courier New;">bind yes;</span></p>
<p><span style="font-family: Courier New;">device 00:1C:A4:96:03:CC;</span></p>
<p><span style="font-family: Courier New;">channel 2;</span></p>
<p><span style="font-family: Courier New;">comment “Example Bluetooth device”;</span></p>
<p><span style="font-family: Courier New;">}</span></p></blockquote>
<h3>6. Restart Bluetooth</h3>
<p>Enter <span style="font-family: Courier New;">/etc/init.d/bluetooth/restart</span></p>
<h3>7. Pair the devices</h3>
<p>Use the phone to scan for the PC and enter the passkey to pair the two. Successful pairing means the PC and phone have authenticated each other.</p>
<h3>8. Configure wvdial</h3>
<p>Edit <span style="font-family: Courier New;">/etc/wvdial.conf</span> and add a new Dialer entry with service provider specific settings</p>
<blockquote>
<p><span style="font-family: Courier New;">[Dialer Phone]</span></p>
<p><span style="font-family: Courier New;">Modem                =        /dev/rfcomm0</span></p>
<p><span style="font-family: Courier New;">Phone                 =        ATD*99***2#</span></p>
<p><span style="font-family: Courier New;">Username           =        According to your service provider</span></p>
<p><span style="font-family: Courier New;">Password            =       According to your service provider</span></p></blockquote>
<p>Use the dialer name (Phone, in this case) to go online –<span style="font-family: Courier New;">wvdial Phone </span>– and enjoy surfing.</p>
<h1><span style="color: #ff0000;">NOTE:</span></h1>
<ul>
<li><span style="color: #ff0000; font-size: x-small;">The mobile phone should have an activated GPRS service.</span></li>
<li><span style="color: #ff0000; font-size: x-small;">Internet usage will be charged by the service provider</span></li>
<li><span style="color: #ff0000; font-size: x-small;">The above guide was tested with Ubuntu 7.10 (Gutsy) on an Acer Aspire 4730z</span></li>
</ul>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://ahsun.xenoglaux-solutions.com/2009/05/04/access-the-internet-in-ubuntu-via-bluetooth-enabled-mobile-phones/" target="_blank"><img src="http://ahsun.xenoglaux-solutions.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://ahsun.xenoglaux-solutions.com/2009/05/04/access-the-internet-in-ubuntu-via-bluetooth-enabled-mobile-phones/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://ahsun.xenoglaux-solutions.com/2009/05/04/access-the-internet-in-ubuntu-via-bluetooth-enabled-mobile-phones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

