Ubuntu Linux, Treo 650, Bluetooth, DUN (dial up networking), T-Mobile


Here is how I did it. There are probably more efficient and better ways. Make all modifications as root. I am using a belkin USB bluetooth adapter.

1. Modify /etc/default/bluez-utils.

Specifically, find the DUND_ENABLED and DUND_OPTIONS variables. Make these two lines look like:


# Run dund -- this allows ppp logins. 1 for enabled, 0 for disabled.

DUND_ENABLED=1


# Arguments to dund: defaults to acting as a server

DUND_OPTIONS="--listen –persist"


2. Modify /etc/bluetooth/rfcomm.conf to be the following:

rfcomm0 {

bind yes;

# Bluetooth address of the device (treo)

device AA:BB:CC:DD:EE:FF;

# RFCOMM channel for the connection

channel 1;

# Description of the connection

comment "TREO Bluetooth device";

}


Of course, change the MAC address AA:BB:CC:DD:EE:FF to your phone's MAC address. You can find this by enabling bluetooth on your phone, making it discoverable, and scanning for it via

hcitool scan


Other useful hcitool options are:

hcitool cc AA:BB:CC:DD:EE:FF

hcitool con

hcitool dc AA:BB:CC:DD:EE:FF


3. Restart bluetooth:

/etc/init.d/bluez-utils restart


4. Create the following in /etc/ppp/peers :

/etc/ppp/peers/t-mobile


/dev/rfcomm0

115200

crtscts

#debug

idle 300

lcp-echo-failure 0

lcp-echo-interval 0

local

lock

noauth

#nodetach

noipdefault

noproxyarp

defaultroute

usepeerdns


ipparam tmobile

password tmobile

remotename tmobile

user ''


connect "/usr/sbin/chat -f /etc/ppp/peers/t-mobile-connect"

disconnect "/usr/sbin/chat -f /etc/ppp/peers/t-mobile-disconnect"


/etc/ppp/peers/t-mobile-connect

SAY 'Starting GPRS connect script\n'

TIMEOUT 10

ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED

'' ATZ

OK 'AT+CGDCONT=3,"IP","internet2.voicestream.com"'

#OK 'AT+CGDCONT=3,"IP","wap.voicestream.com"'

SAY 'Dialing...\n'

OK ATD*99***1#

CONNECT ' '


/etc/ppp/peers/t-mobile-disconnect

SAY 'Starting GPRS disconnect script\n'

"" \K

"" +++ATH0


5. Enable bluetooth/dial-up networking on your treo. Add your laptop as a trusted device.

Connect as follows (as root):

pon t-mobile or pppd call t-mobile


You can check your status through hcitool con. Disconnect via:

poff t-mobile