eee & Debian & Internet & Windows Daantje on 04 Oct 2008 10:10 pm
How to get my EEE online through my HTC Touch Cruise…
I want to have internet all the time. And I have… I have a HTC Touch Cruise running Windows Mobile 6.1 Pro with a HSDPA connection. Now this is a way to connect the EEE to the HTC via bluetooth and use the windows mobile device as a gateway to the internet. By the way, I’m running Ubuntu-eee… If you are running Xandros, the default distro, try to Google on “Xandros bnep0 windows mobile”
First get the right software. Open a terminal and install the Bluez gnome utilities.
sudo apt-get update
sudo apt-get install bluez-gnome
Now open the file ‘/etc/default/bluetooth’ and be sure that the following is set;
BLUETOOTH_ENABLED=1
PAND_ENABLED=1
Now I did a reboot, you could restart some services, but I was lazy. Now, after you insert your Bluetooth dongle (or when you have it build in), you should have a bluetooth icon in the upper right corner. With that tool you should be able to pair with your Windows Mobile device. If you don’t know how, try it the other way around, use your mobile to pair with your eee. After the exchange op pins the two devices should be paired.
Open up the terminal again and do the following command to scan for your mobile…
sudo hcitool scan
You should get something like this;
Scanning ...
00:17:83:xx:xx:xx HTC_P3650
This is the mac address of your mobile device and you’ll need it later on to connect.
Okay, we have a working bluetooth dongle and we can see the mobile… Now some config we need to have to get the link working. Append the following to ‘/etc/network/interfaces‘;
iface bnep0 inet manual
down dhclient -r -pf /var/run/dhclient.$IFACE.pid $IFACE
down pand -K
up pand -Q -n
up dhclient -pf /var/run/dhclient.$IFACE.pid $IFACE
We are done configuring the eee. The following steps should be made every time you want to get the eee online:
Open on your Windows Mobile device the application ‘Internet Sharing’, you can find it in your Programs folder. Start a Bluetooth PAN connection and wait for it to start.
Open up a terminal on you eee and do:
sudo pand -c 00:17:83:xx:xx:xx -n
Ofcource, you’ll have to replace the 00:17:83:xx:xx:xx with the mac address of your device.
You should get this as result:
pand[8033]: Bluetooth PAN daemon version 3.26
pand[8033]: Connecting to 00:17:83:xx:xx:xx
pand[8033]: bnep0 connected
Now bring the network interface up and get an IP from the windows mobile device:
sudo ifup bnep0
Now wait for the following result, it should look something like this:
pand[8060]: Bluetooth PAN daemon version 3.26 pand[8060]: Inquiring pand[8060]: Searching for NAP on 00:17:83:xx:xx:xx pand[8060]: Connecting to 00:17:83:xx:xx:xx pand[8060]: Connect to 00:17:83:xx:xx:xx failed. Connection refused(111) pand[8060]: Searching for NAP on 00:16:CB:xx:xx:xx Internet Systems Consortium DHCP Client V3.0.6 Copyright 2004-2007 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ wifi0: unknown hardware address type 801 wifi0: unknown hardware address type 801 Listening on LPF/bnep0/00:10:60:a2:8c:dd Sending on LPF/bnep0/00:10:60:a2:8c:dd Sending on Socket/fallback DHCPREQUEST of 192.168.0.85 on bnep0 to 255.255.255.255 port 67 DHCPACK of 192.168.0.85 from 192.168.0.1 bound to 192.168.0.85 -- renewal in 111983 seconds.
YES! We have an IP! You can double check with the ‘ifconfig’ command, or just try to open up Firefox and start browsing ;) Now close your eee, walk to the pub, get a nice cold one. Open your eee and start browsing the net ;) w00t!
To get the interface down again, use:
sudo ifconfig bnep0 down
Most of the info I’ve used, can be found in this forum post. Ive written a little shell shell script to bring the connection up, because it’s hard to remember all of this after some beers ;)
#!/bin/sh
sudo pand -c 00:17:83:xx:xx:xx -n
sleep 5
sudo ifup bnep0
echo "Drink beer!"
Don’t forget to make the file executable with ‘chmod +x myscript.sh’, or something like that…
One Response to “How to get my EEE online through my HTC Touch Cruise…”
Leave a Reply
You must be logged in to post a comment.
on 08 Jun 2009 at 2:20 pm 1.Johan said …
This tutorial is awesome!! I’ve spent hours with pppd, synce and a lot of stuff to get this working, never thought it could have been this simple. Thank you very much!