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
1. at /etc/ppp/peers
a file called simyo
/dev/rfcomm0
115200
crtscts
#debug
idle 300
lcp-echo-failure 0
lcp-echo-interval 0
local
lock
noauth
#nodetach
noipdefault
noproxyarp
defaultroute
usepeerdns
ipparam eplus
password eplus
remotename eplus
user ''
connect "/usr/sbin/chat -f /etc/chatscripts/simyo-connect"
disconnect "/usr/sbin/chat -f /etc/chatscripts/simyo-disconnect"
2. at /etc/chatscripts/
a file called simyo-connect
SAY 'Starting GPRS connect script\n'
TIMEOUT 10
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
'' ATZ
OK 'AT&F+CGDCONT=1,"IP","INTERNET.EPLUS.DE";+CGQREQ=1,0,0,0,5,1'
SAY 'Dialing...\n'
OK ATD*99***1#
CONNECT ' '
and a file called simyo-disconnect
SAY 'Starting GPRS disconnect script\n'
"" \K
"" +++ATH0
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 ]
Oktober 4, 2007
· admin · No Comments
Posted in: Allgemein, Palm
Leave a Reply
You must be logged in to post a comment.