Using your phone as a Bluetooth modem in Linux

Software Package Requirements:

  • wvdial
  • bluez
  • bluetooth

Install packages for Ubutun/Debian systems
sudo apt-get install wvdial bluez bluetooth

Steps to get your Bluetooth modem working

  1. Turn phone’s Bluetooth connection and set to discoverable mode
  2. Scan for your device:
    sudo hcitool scan
    Scanning ...
    00:11:22:33:44:55 MyPhone
  3. Search device to see if supports Dial-Up Networking (DUN) for use as a modem. Look out for RFCOMM channel
    sdptool search --bdaddr 00:11:22:33:44:55 DUN
    Searching for DUN on 00:11:22:33:44:55 ...
    Service Name: Dial-Up Networking
    Service RecHandle: 0x1000f
    Service Class ID List:
    "Dialup Networking" (0x1103)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 4
    Language Base Attr List:
    code_ISO639: 0x454e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Dialup Networking" (0x1103)
    Version: 0x0100
  4. Bind the modem on the RFCOMM Channel to a device
    sudo rfcomm bind /dev/rfcomm0 00:11:22:33:44:55 4
  5. Dial and connect (ensure your wvdial configuration is correct, for sample see below)
    sudo wvdial dstbt
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    --> Sending: AT+CGDCONT=,,"dst.internet"
    --> Modem initialized.
    --> Sending: ATDT*99#
    --> Waiting for carrier.
    ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
    --> Carrier detected. Waiting for prompt.
    ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
    --> PPP negotiation detected.
    --> Starting pppd at Wed Aug 19 23:45:04 2009
    --> Pid of pppd: 17558
    --> Using interface ppp0
    --> local IP address
    --> remote IP address
    --> primary DNS address
    --> secondary DNS address
  6. You’re connected! Surf and enjoy the Internet!

Sample wvdial configuration file

  • Stored in ~/.wvdialrc
  • Change “dst.internet” to your provider’s APN

[Dialer dstbt]

Modem = /dev/rfcomm0 # modem device
Baud = 115200 # 921600 / 460800 / 115200 / 57600

Init = ATZ # far card with no PIN
# Init = ATZ+CPIN=”0000″ # for card with PIN, replace 0000 with your PIN

# If you know your ISP’s APN, specify it instead of YOUR_ISP_APN below.
# There’s also an APN table at .
# use one of the following 3 options. change to your providers APN
Init2 = AT+CGDCONT=,,”dst.internet”
#Init2 = AT+CGDCONT=1,”IP”

# Most services/devices dial with *99# . A few seem to require *99***1#
Phone = *99#

# These often suffice, but your ISP might require different details. They’re
# often dummy details used for all users on the ISP, frequently the ISP’s
# name, but some ISP’s do require you to use a real username and password.
# any details possible
Username = internet
Password = internet

PS: bmobile customers change APN to “bmobilewap”


Using your phone as a Bluetooth modem

As a follow up to “Configuring your phone for mobile Internet (DST)”, in this post I’ll detail how to use  your phone as a Bluetooth modem freeing you from the mess of wires and also providing a way to utilize tethering without installing bloated phone software like the Nokia PC Suite. Using this method also allows DST users with 3G SIM cards and 3G/3.5G capable phones to enjoy the great speeds of DST’s Go! without having to subscribe the the DST Go! service or buying the Go! SIM card or buying the USB modem.


  • Phone with Bluetooth
  • Computer with Bluetooth
  • SIM card with credit (duh)

Requirements for high speed Internet over 3G/3.5G

  • 3G/3.5G phone in 3G mode (3G only or dual mode is acceptable but not GSM)
  • 3G SIM card
  • 3G phone signal (for Nokia phones it is shown with a little “3G” icon under the regular signal bar)

Note1: if phone/SIM does not meet 3G requirements or no 3G signal is available, the phone will fall back to slower GPRS / Edge connection, but the Internet will still be accessible.

Note2: Not all 3G/3.5G phones are created equally and each have a maximum 3G speed that it can obtain. This can hinder These details can be obtained online from places such as E.g. Nokia 6680 max 3G speed of 384 kbps, Nokia E51: max speed of 3.6 Mbps.

My current configuration setup:

  • Windows XP Professional
  • Using “dst.internet” as the access point
  • HP Compaq nx6320 notebook
  • Nokia E51 / Nokia 6680 / Nokia 3110c

The following is the brief outline of the procedure utilizing “My Bluetooth Places” software provided by WIDCOMM preinstalled with the notebook, however the concept stays the same over any computer / Bluetooth software:

  1. Pair phone and computer
  2. Configure phone as a Bluetooth modem
  3. Create network connection dialing *99#
  4. Optional: set extra initialization command to:
           where “dst.internet” is the access point to connect to

Despite the maximum speed defined in the modem settings is 921600 bps (= 900 kbps) which is less than 3.6 Mbps or 7.2 Mbps offered by Go! and typical phones, I have managed to get 1.5 Mbps connections using this Bluetooth method my previous speed tests so I’m not really sure what’s up with that.

Nokia Phones with Nokia PC Suite

Refer to this post. It is for USB connection, but follows the same concept

Detailed Pictorial

Continue reading “Using your phone as a Bluetooth modem”