GPRS via Bluetooth and Nokia 9300

May 28, 2006

(Update: Instructions for connecting via the DKU2 cable now at the end of the post.)
This is how I made the GPRS Internet connection working from my Ubuntu Dapper laptop via a Nokia 9300 and Bluetooth. I found this info on an Ubuntu forums thread, kudos go to emperon:

  1. Have a working bluetooth setup.
  2. hcitool scan gives you your phone’s BD address. Make a note of this.
  3. sdptool search DUN will show you the appropriate channel to use. Make a note of this.
  4. Check that you have a 4-number code in /etc/bluetooth/pin unless your phone and the machine are very friendly already. Your phone may ask for this number later.
  5. Type rfcomm bind /dev/rfcomm0 X:X:X:X:X:X YY (where X:X:X:X:X:X is the BD address and YY is the channel number).
  6. Type rfcomm and check that the channel is either “clear” or “closed”.
  7. Create /etc/ppp/peers/gprs with the following contents:
    /dev/rfcomm0
    connect '/usr/sbin/chat -v -f /etc/ppp/peers/gprs.chat'
            noauth
            defaultroute
            usepeerdns
            lcp-echo-interval 65535
            debug
  8. Create /etc/ppp/peers/gprs.chat with the following contents:
    TIMEOUT                 15        
    ECHO                    ON
    HANGUP                  ON      
    ''                      AT
    OK                      ATZ     
    OK                      ATD*99*#
    (NOTE: *99*# above is the number to call. This one works for Sonera in Finland and many other providers, but call your friendly provider helpdesk and make sure you have the correct one.)
  9. Initiate bluetooth pairing between your phone and the computer.
  10. Make the call: sudo pppd call gprs
  11. Surf away!

Here’s instructions for connecting via the DKU2 cable supplied with the 9300. Cables are uncool and sometimes get in the way, but the procedure is simpler. This info comes mostly from gr0kzer0 in another forum thread:

  1. Install wvdial.
  2. Connect the cable.
  3. Run wvdialconf /etc/wvdial.conf
  4. Edit the /etc/wvdial.conf just created. Look at the last four lines, we edit the Phone, Password and Username lines (the username and password are bogus ones. wvdial wants non-empty ones but you can enter Batman’s credentials there if you like), and additionally force the modem into Stupid Mode.
    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    Baud = 460800
    New PPPD = yes
    Modem = /dev/ttyACM0
    ISDN = 0
    Phone = *99#
    Password = foo
    Username = bar
    Stupid Mode = 1

    (NOTE: Again try to find a suitable phone number)
  5. Now you should be able to dial out with wvdial or GNOME PPP.

Technorati Tags: , , , ,

2 Responses to “GPRS via Bluetooth and Nokia 9300”


  1. topyli, I owe you one. Be it coffee, beer, wine. I owe you.


  2. [...] This is how I made my Nokia 9300’s file system available to my Ubuntu Dapper box. I can now copy/move files around, as well as edit files on the phone just like I could earlier with the 9210. You need a working Bluetooth setup. See my earlier Bluetooth related HOWTO on how to find out your phone’s Bluetooth address with the hcitool and how to setup a PIN so you can pair the devices in a friendly fashion. Then you need the key ingredient, p3nfs. Download the ARCH Linux binary package and the corresponding nfsapp SIS installer for the 9300/9500. [...]


Leave a Reply

You must be logged in to post a comment.