Howto setup Vodacom 3g Nokia bluetooth modem on Ubuntu

April 4, 2009...... at 1:12 pm | Posted in geek | 2 Comments

Having just finished setting up my N82 as a bluetooth modem, I thought I would briefly document the steps required.

Plug in your bluetooth dongle (Cafe Viva is selling them for R79)

Make your phone bluetooth temporarily visible

open a terminal and type:
hcitool scan

highlight the MAC_address (eg 00:12:34:5E:D4:E2) of your phone and type:
sdptool browse MAC_address

look for the channel associated with the service Dial-Up Networking or DUN (in my case Channel:4):
Service Name: Dial-Up Networking
Service RecHandle: 0x10052
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

Edit the /etc/bluetooth/rfcomm.conf file and uncomment the bind, device, channel lines and fill in the correct info:
sudo nano /etc/bluetooth/rfcomm.conf

rfcomm0 {
#       # Automatically bind the device at startup
        bind yes;
#
#       # Bluetooth address of the device
       device 00:12:34:5E:D4:E2;
#
#       # RFCOMM channel for the connection
        channel 4;
#
#       # Description of the connection
        comment “Nokia Bluetooth DUN”;
}

Save the file Ctl-x, Y

restart your bluetooth service:
sudo /etc/init.d/bluetooth/restart

and you should now have your bluetooth modem bound to the rfcomm0 device, type ls /dev/rf* to check that it is there.

On the desktop right click the bluetooth icon in the system tray and under preferences set your Bluetooth to temporarily visible.

From your phone pair your devices and make your PC an authorised device

In a terminal create a file called chat-gprs:
sudo nano /etc/ppp/chat-gprs

“” ATZ OK
AT+CGDCONT=1,”IP”,”internet”
OK “ATD*99***1#”
CONNECT

Ctl-x, Y

Create a file called vodacom:
sudo nano /etc/ppp/peers/vodacom

/dev/rfcomm0 921600
connect ‘/usr/sbin/chat -v -f /etc/ppp/chat-gprs’
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local

Ctl-x,Y

now type:
pon vodacom

You should get an error message saying only users who are members of the dip group can access this service. So add your self to the group:
System Menu -> Administration -> Users and Groups -> Unlock
You -> Properties -> User Priviledges
Tick Connect to Internet using a modem
Ok

Log-off and log back on

In a terminal type:
pon vodacom

viola

to prevent firefox starting up in offline mode all the time:
fire-up firefox
in the address bar type:
about:config
set toolkit.networkmanager.disable to false

Advertisements

2 Comments »

RSS feed for comments on this post. TrackBack URI

  1. Hi,

    Thanks for the post. I managed to get my phone connected, but I’m unable to ping from my pc. Here is my output after running `pon vodacom`:
    AT
    OK
    ATE0
    OK

    OK

    OK

    CONNECT
    Serial connection established.
    Using interface ppp0
    Connect: ppp0 /dev/rfcomm0
    PAP authentication succeeded
    Cannot determine ethernet address for proxy ARP
    local IP address 41.14.42.229
    remote IP address 10.6.6.6
    primary DNS address 196.207.36.251
    secondary DNS address 196.207.36.254

    And my ifconfig:
    ppp0 Link encap:Point-to-Point Protocol
    inet addr:41.14.42.229 P-t-P:10.6.6.6 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:3 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:54 (54.0 B) TX bytes:54 (54.0 B)

    But when I try to ping the DNS (196.207.36.251) it just times out.

    Any ideas?

    • Two thing spring to mind:
      1. Check that you have nameservers defined (cat /etc/resolv.conf)
      2. Check that internet traffic is routing correctly (route -n)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: