Using my mobile phone as a Bluetooth modem

Having got the bluetooth adator working on my AAO a few days ago, I thought it time to look at getting the modem in the phone working. So I revisited the site that helped me with the bluetooth installation and continued with that. So first:

$ sudo yum install bluez-gnome gnome-ppp

Assuming everything is set up from before and you’ve connected to your mobile phone you should be able to type

$ sudo hcitool scan

to get the MAC address of your mobile. You’ll need this. Next type

$ sudo sdptool records XX:XX:XX:XX:XX:XX

where XX are the numbers of your MAC address. This will give details of how your AAO needs to talk to the mobile phone. You are looking for the DUN (Dial Up Networking) service.

Service Name: Dial-up Networking

and the associated channel number (in my case)

Channel : 1

Now you need to edit the /etc/bluetooth/rfcomm.conf file to read something like this;

# RFCOMM configuration file.

rfcomm0 {
# Automatically bind the device at startup
bind yes;

# Bluetooth address of the device attached to the Acer
device [MAC ADDRESS – eg 00:11:22:33:44:55];

# RFCOMM channel for the connection – use the channel number
# for DUN found with the sdptool records command…
channel [CHANNELNO];

# Description of the connection
comment “My_Bluetooth”;

A reboot is required now so type:

$ sudo reboot

Once you’re back up, get your terminal back up and type

$ sudo gnome-ppp

This will bring up the modem connection dialogue.  The settings I used for Orange (Pay As You Go in my case) were;

Username: user
Password: pass
Remember Password = ticked
Phone Number: *99#

Device: /dev/rfcomm0
Type: Analog Modem
Speed: 115200
Phone line: Tone
Wait for dialtone: unticked

Init strings: (I don’t seem to have an Init1!?)
Init 2: ATQ0 V1 E1 S0=0 &C1 &D2
Init 3: AT+CGDCONT=1,”IP”,”orangeinternet”

I got these details from the Orange support site but another useful site is the GPRS information site.

Connections: I have nothing ticked.

Having entered all this, I closed the setup page and hit Connect. In the terminal window behind gnome-ppp I could see the dialog between the Acer and the phone and…

PPP Connected!!!!

NOTE: It sounds simple enough but I had a shed load of times that the Acer and the Sony Ericsson wouldn’t talk to each other through the “rfcomm0”.  In the end, rebooting with the correct settings in the /etc/bluetooth/rfcomm.conf file and then calling sudo gnome-ppp seemed to do the trick.


Bluetooth Working on Linpus & Aspire One A150

After some hunting around I found a useful website for getting things working on the Acer Aspire One that is installed with Linpus Lite Linux.  I got a cheap USB bluetooth dongle which when plugged into the Aspire would simply see the USB device:

$ lsusb
 ID 1131:1004 Integrated System Solution Corp.

What is needed are the appropriate programs and drivers to communicate with the bluetooth dongle and their devices.

So first; I got the required packages.  The easiest way is to use ‘yum’ which required

$ sudo yum install bluez-gnome bluez-hcidump bluez-lib bluez-utils gnome-bluetooth

The second part is slightly harder.  This is because kernel modules are required.  These are small bits of the core operating system that need to exist for bluetooth (or anything that needs to work with hardware).

There are two files required: (see comments below for recent versions of these files)

Download the kernel modules pack bluetooth.tgz (compiled using a vanilla kernel), extract the files and copy them to the folder /lib/modules/

Now download bluetooth2.tgz, extract and copy the drivers to /lib/modules/

Note: Each tgz file expands into its own ‘bluetooth‘ folder so the simplest way to install these files is to copy them into the …/drivers/net and …/kernel/drivers folder (one per location as per the above instructions) and then issue the command tar xvfz <filename>. If you get an error during the copy or extraction, make sure you are using sudo.

$ cd /lib/modules/
$ sudo tar xvfz /home/user/Downloads/bluetooth2.tgz
$ cd net
$ sudo tar xvfz /home/user/Downloads/bluetooth.tgz


$ sudo depmod
$ sudo /etc/init.d/bluetooth start


$ /usr/bin/bluetooth-applet

And I had the Bluetooth icon on the taskbar and I could connect to a phone with the appropriate PassKey, etc. and transfer files.

Acer Aspire One

Got myself an Acer Aspire One today from Amazon. AOA 150 – Ab

It is a linux machine so it works really well straight out of the box. The plan is to simply use it for web and email usage and some older games that I never finished playing like some old Bioware RPGs and Civilisation. I’m going to install XP onto Virtualbox to do this.

I also plan to install a bluetooth USB adapter (£8) and use my mobile phone as a modem to connect to the web when I’m out and about!

I should also be able to blog and twitter a bit more too.

Given what I’ve been trying to achieve on this blog so far, I’ll also use it for simple programming for games and robots.

%d bloggers like this: