Connect Ubuntu to Windows Mobile 3GI connected a netbook running Ubuntu Jaunty 9.04 (UNR) to a Windows Mobile 6.1 (WM6) phone using bluetooth to get mobile broadband access. The Windows Mobile phone has "Internet Sharing" which allows the phone to act as a wireless router and dhcp server giving bluetooth devices access to the phone's data plan.
Ubuntu Setup
- Right click on the bluetooth icon and select Preferences
- Select "Always Visible"
- Pair the Windows Mobile phone with your Ubuntu laptop (Start --> Settings --> Connections --> Bluetooth --> Add new device...)
- Install pand and enable pand on boot
sudo -s
aptitude update
aptitude install bluez-compat
echo "PAND_ENABLED=1" >> /etc/default/bluetooth
/etc/init.d/bluetooth restart
5. Display current bluetooth pairings so that you can get the BD address of the phone
cat /var/lib/bluetooth/*/names
6. Add a section to your ''/etc/network/interfaces'' where 00:XX:XX:XX:XX:XX is the BD address you got from the names file above.
iface bnep0 inet dhcp
pre-up /usr/bin/pand --connect 00:XX:XX:XX:XX:XX -n
post-down /usr/bin/pand --kill 00:XX:XX:XX:XX:XX
Connect
Windows Mobile Phone
- Go to: Start --> Programs --> Internet Sharing
- Set the PC Connection to Bluetooth PAN
- Click Connect
(Bluetooth will be started automatcially on the phone).
Ubuntu
- Open a terminal and connect
sudo ifup bnep0
Disconnect
Ubuntu
sudo ifdown bnep0
Windows Mobile Phone
- Disable bluetooth to save your battery
|