Bring your Linux Laptop online using the Treo 650
This time I have a small How-To:
Bring your Linux laptop online using your Treo 650 and GPRS (using Simyo as provider)
What to do on the Treo 650:
Switch on Bluetooth and enable “Netzwerk-Einwahl” (dial-up networking, DUN). Your might need firmware 1.12 on your Treo 650 to have this option in the Bluetooth preference panel.
What to do on your Linux (Ubuntu) laptop:
Install the bluez-packets (bluez-utils). Next you use
hcitool scan to find your Treo and get its hardware address. The address looks like
00:07:E0:07:E6:A3 and is unique for any Bluetooth device. You can connect to the device using:
rfcomm connect /dev/rfcomm0 00:07:E0:07:E6:A3
You should now have a serial connection between your laptop and your Treo.
Next we need to configure the scripts to dial in and hangup. In our example we use a German prepaid provider which has a quite cheap data plan, Simyo.
You create some files
/etc/ppp/peers a file called
connect "/usr/sbin/chat -f /etc/chatscripts/simyo-connect"
disconnect "/usr/sbin/chat -f /etc/chatscripts/simyo-disconnect"
/etc/chatscripts/ a file called
SAY 'Starting GPRS connect script\n'
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
CONNECT ' '
and a file called
SAY 'Starting GPRS disconnect script\n'
Now you enter a
pon simyo and you are online. With
poff you can bring the connection down and with
plog you can see some log infos about the ppp0 connection.
One problem I had was the
default route. After the connection was established,
ifconfig did show me the ppp0 connection and the assigned IP address,
plog told me also I was connected and even the Treo had the GPRS indication (2 green arrows on the signal reception gadget). I was using the ethernet connection (eth0) during the setup to look for help in the internet. After unplugging the network cable the laptop still had the old route (192.168.0.1) stored as default route. I had to manually enter
route add default gw 10.121.30.0 to add a route to the new mobile connection.
[ Another link doing the same for Windows: http://www.makezine.com/blog/archive/2005/06/howto_legal_dun.html ]