]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blobdiff - Linux/imode_on_iPAQ_running_Familiar.shtml
Verwijder verouderde bestanden.
[www.vanrenterghem.biz.git] / Linux / imode_on_iPAQ_running_Familiar.shtml
diff --git a/Linux/imode_on_iPAQ_running_Familiar.shtml b/Linux/imode_on_iPAQ_running_Familiar.shtml
deleted file mode 100644 (file)
index 6294ec3..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
-   <meta name="author" content="Frederik Vanrenterghem" />
-   <meta name="Description" content="Personal homepage - GNU/Linux stuff - Connecting to i-Mode with iPAQ" />
-   <title>vanrenterghem.biz - GNU/Linux - Connecting to i-Mode with iPAQ</title>
-<link rel="stylesheet" href="/styles/header.css" type="text/css" />
-<link rel="stylesheet" href="/styles/main.css" type="text/css" />
-</head>
-<body>
-<!--#include virtual='/header.shtml' -->
-
-<h1>i-Mode connection for the iPAQ</h1>
-<h2>Introduction</h2>
-<p>
-A while back, my father donated his old iPAQ to me. Being a fan of free software, I immediately decided to put an alternative operating system on the unit. With <a href="http://familiar.handhelds.org/">Familiar</a>, a free alternative was available, and it even provided me with a <em>dpkg</em> lookalike <em>ipkg</em>! 
-With this system set up, I could do most things one can do with a PDA - maintain a calendar, take notes, play music, ... When cradled, I could connect it to the Internet via my desktop PC.
-Obviously a PDA isn't meant to be cradled all the time, so I had to find a way to connect it to the net while on the road as well.
-The hard part turned out to be finding a bluetooth card I could use with this OS, as at the time of writing this document, not a whole lot of Compact Flash cards are supported yet - partly because some manufacturers don't provide specifications required to write the drivers, partly because the ARM kernel used in Familiar isn't fully at par with the one used on i386 systems yet.
-In this document, I outline the steps necessary to get on the net via i-Mode (~GPRS) using a Bluetooth-capable phone.
-</p>
-
-<h2>Hard- and software</h2>
-<ul>
-<li>Compaq iPAQ 3955 (h3900 series)</li>
-<li>Nokia Bluetooth CF Card DTL-1</li>
-<li>Motorola V500 camera phone</li>
-<li><a href="http://familiar.handhelds.org/">Familiar Linux</a></li>
-</ul>
-<h2>Provider</h2>
-<p>
-Belgian wireless carrier <a href="http://base.be/">Base</a> with <a href="http://www.imode.be/">I-mode</a>
-</p>
-<h2>Steps</h2>
-<h3>Get Bluetooth working</h3>
-<p>
-There's various HOWTO's available on getting Bluetooth functioning on (Familiar) Linux. Tip: use <a href="http://www.bluez.org/">Bluez</a>. If you are using the Opie image of Familiar 0.8.2, 
-you will have to replace <em>/bin/bluepin</em> with a shell script like this one:
-</p>
-<code>
-#!/bin/sh<br />
-echo -n PIN:<br />
-cat /etc/bluetooth/pin<br />
-exit 0<br />
-</code>
-<h3>Find the hardware address of the phone</h3>
-<p>
-Use hcitool to find the various bluetooth devices in your neighbourhood. Provided you've made the phone broadcast its presence, it should show up in the scan.
-</p>
-<code>
-~ # hcitool scan<br />
-Scanning ...<br />
-&nbsp;&nbsp;&nbsp;&lt;address&gt;   &lt;friendly name&gt;
-</code>
-<h3>Find the channel for dial-up networking</h3>
-<p>
-Check on what channel the phone provides dial-up networking (DUN): 
-</p>
-<code>
-sdptool search --bdaddr &lt;bd&gt; DUN
-</code>
-<p>
-where <em>&lt;bd&gt;</em> is the hardware address of your mobile phone as detected by hcitool scan.
-</p>
-<h3>Bind rfcomm</h3>
-<p>
-I decided to bind <em>/dev/rfcomm0</em> to the DUN channel of my phone.
-</p>
-<code>
-/etc/init.d # cat bind_dun<br />
-rfcomm bind 0 &lt;bdaddr&gt; &lt;channel&gt;<br />
-mknod -m 666 /dev/rfcomm0 c 216 0<br />
-</code>
-<h3>Configure PPP</h3>
-<p>
-I assume you have the point-to-point protocol set up on your device already. If not, <code>ipkg search *ppp*</code> is your friend.
-</p>
-<p>
-On Familiar 0.8.x, the pppd options were changed versus 0.7.x. The file now only contains a minimal <code>lock</code> as option. I 
-prefer the following:
-</p>
-<code>
----------------- cut and paste from here ----------------<br />
-cat &gt; /etc/ppp/options &lt;&lt; EOF<br />
--detach<br />
-defaultroute<br />
-nocrtscts<br />
-lock<br />
-noauth<br />
-lcp-echo-interval 5<br />
-lcp-echo-failure 3<br />
-usepeerdns<br />
-115200<br />
-local<br />
-asyncmap 0<br />
-EOF<br />
------------------------- end cut ------------------------<br />
-</code>
-<p>
-Now you'll need a chat script to tell the phone what to do.
-</p>
-<code>
----------------- cut and paste from here ----------------<br />
-cat &gt; /etc/ppp/chat.imode &lt;&lt; EOF<br />
-ABORT "BUSY"<br />
-"" "\d"<br />
-SAY "reseting modem\n"<br />
-"" "atz"<br />
-SAY "dialing\n"<br />
-OK 'AT+cgdcont=1,"IP","portalmmm.nl"'<br />
-OK "ATD*99#"<br />
-TIMEOUT 60<br />
-CONNECT ''<br />
-SAY "connected\n"<br />
-EOF<br />
------------------------- end cut ------------------------<br />
-
-</code>
-<p>
-You'll also need to provide some additional options for <em>pppd</em>:
-</p>
-<code>
----------------- cut and paste from here ----------------<br />
-cat &gt; /etc/ppp/peers/imode  &lt;&lt; EOF<br />
-debug <br />
-noauth <br />
-usepeerdns<br />
-/dev/rfcomm0 115200<br />
-115200<br />
-local<br />
-nocrtscts<br />
-defaultroute<br />
-noipdefault<br />
-connect '/usr/sbin/chat -f /etc/ppp/chat.imode -r /dev/console'<br />
-EOF<br />
------------------------- end cut ------------------------<br />
-</code>
-<h3>Get connected</h3>
-<p>
-Start <em>pppd</em> as follows:
-</p>
-<code>
-~ # pppd call imode
-</code>
-<p>
-If all goes well (and only if you changed the <em>/etc/ppp/options</em> file), you should see something like this:
-</p>
-<code>
-reseting modem<br />
-dialing<br />
-connected<br />
-Serial connection established.<br />
-using channel 1<br />
-Using interface ppp0<br />
-Connect: ppp0 <--> /dev/rfcomm0<br />
-</code>
-
-<h3>Check routing</h3>
-<p>
-As I had a default route already (via the USB connection in the cradle), I had to replace it:
-</p>
-<code>
-route del default<br />
-route add default ppp0<br />
-</code>
-<h3>Set proxy</h3>
-<p>
-In order to browse the net, you'll need to set the proxy still. In casu I use <code>http://10.10.100.10:5080</code>.
-</p>
-<h2>Photo</h2>
-<p>
-... and obviously no HOWTO document is truly complete without some sort of picture.
-</p>
-<p>
-<img src="http://frederik.gotdns.org:1976/Pictures/varia/ipaq_running_Familiar_Linux_connected_to_internet_via_bluetooth_to_Motorola_V500.jpg" alt="Picture of Compaq iPAQ and Motorola V500 camera phone" title="iPAQ connected via bluetooth phone to internet" />
-</p>
-<!--#include virtual='/footer.shtml' -->
-</body>
-</html>
-
-