Here is a how to use your Cingular Blackjack 3G phone as a bluetooth DUN modem on a Lenovo X41 tablet pc running Ubuntu Edgy. Since this is wireless, this will allow you to charge your phone at the same time as opposed to using the usb cable for a modem. We all know how long the batteries last on this phone!
Notes:
After I did this setup when I reboot I sometimes get an SDP server error. Need to investigate this. After my first time connecting, I had a problem getting an IP address via wifi.
You can also make a quick script to do this procedure and put it on your desktop as a link.
Make sure your bluetooth is enabled on your laptop (or desktop)
Make sure the USB connection on the phone is set to Active Sync.
Turn on internet sharing BT PAN on the Blackjack
Enter your bt phone mac address where the X’s are below. XX:XX:XX:XX:XX:XX
In a terminal run:
$ killall dhcpcd /*didn’t seem to do anything - I think this is where I had the wifi ip problem*/
$ pand -K /*didn’t seem to do anything*/
$ sudo modprobe bnep
$ hcitool scan
Scanning …
XX:XX:XX:XX:XX:XX SGH-i60 #this is your phone bt mac address and bt id
$ sudo pand –role PANU –service NAP –connect XX:XX:XX:XX:XX:XX –nodetach
pand[18984]: Bluetooth PAN daemon version 3.7
pand[18984]: Connecting to XX:XX:XX:XX:XX:XX
pand[18984]: bnep0 connected
$ sudo pand –role PANU –service NAP –connect 00:18:AF:4B:2C:44 –nodetach
pand[19011]: Bluetooth PAN daemon version 3.7
pand[19011]: Connecting to XX:XX:XX:XX:XX:XX
pand[19011]: bnep0 connected
$ sudo dhclient bnep0
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/bnep0/00:0e:9b:dd:59:c8
Sending on LPF/bnep0/00:0e:9b:dd:59:c8
Sending on Socket/fallback
DHCPDISCOVER on bnep0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 192.168.0.1
DHCPREQUEST on bnep0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.68 — renewal in 128459 seconds.
$ ping www.google.com
PING www.l.google.com (216.239.37.99) 56(84) bytes of data.
64 bytes from va-in-f99.google.com (216.239.37.99): icmp_seq=1 ttl=239 time=153 ms
64 bytes from va-in-f99.google.com (216.239.37.99): icmp_seq=2 ttl=240 time=183 ms
64 bytes from va-in-f99.google.com (216.239.37.99): icmp_seq=3 ttl=240 time=149 ms
— www.l.google.com ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 149.729/162.114/183.031/14.877 ms
If you need to disconnect all you need to do is “disconnect” the BT PAN on the Cingular Blackjack and when you want to reconnect run
$ sudo pand –role PANU –service NAP –connect XX:XX:XX:XX:XX:XX –nodetach
$ sudo dhclient bnep0
..and you are back online

