How to use your bluetooth mobile phone as dial up modem in Ubuntu or Kubuntu.

Required aparatus:

  1. PC or Laptop
  2. Bluetooth device (some laptop has a built in bluetooth which also works fine)
  3. Bluetooth enabled mobile phone

Required software:

  1. bluez
  2. wvdial

Note: Usually all linux distros have this installed during OS installation. If you don’t have it then install it with this command: sudo apt-get install bluez and you can install the wvdial tool by using this command: sudo apt-get install wvdial

Time for action:

  1. Get your PC/Laptop, Bluetooh device and your bluetooh enabled mobile phone beside you.
  2. Switch on the bluetooth from your mobile phone and set is as discoverable mode.
  3. Now plug the bluetooth device to your pc or laptop.
  4. Open terminal and type this command to see the mac address of your mobile phone. Command: hcitool scan
  5. You will get a mac address something like this: 00:1a:4d:45:ef:1e
  6. Now you can ping your mobile phone from your pc now by using the following command: l2ping 00:1a:4d:45:ef:1e. Are you getting response? Ole ole :P
  7. Now we will get the Dialup Networking Channel of your mobile phone by typing the following command on your terminal: sudo sdptool search dun
  8. Find the word “Channel” and remember the number after channel. In my case it is Channel 2 So we have the mac and channel of our mobile phone ;)
  9. Okay, it’s time to setup the rfcomm thing of your pc. Let’s do it.
  10. Now add the following lines at the end of rfcomm.conf file
    rfcomm0 {
    bind yes;
    device 00:1a:4d:45:ef:1e;
    channel 2;
    comment “Nokia e63”;
    }
    replace the mac, channel and comment as your own.Type the following command in your terminal: sudo nano /etc/bluetooth/rfcomm.conf
  11. Now bind your mobile phone by using the following command: sudo rfcomm bind 0 00:1a:4d:45:ef:1e 2
  12. Now let’s write the wvdial configuration for your wvdialer.
  13. Open the wvdial.conf file with nano or vi or gedit by using this command: sudo nano /etc/wvdial.conf
  14. Delete everything and write the following text:
    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init3 = AT+CGDCONT=1,”IP”,”gpinternet”
    Modem Type = Analog Modem
    ISDN = 0
    Phone = *99***1#
    Modem = /dev/rfcomm0
    Username = xyz
    Password = xyz
    Baud = 115200

    Note: This will vary as per your internet provider. I used Grameen phone’s configuration here. Replace your own ISP’s APN and Phone number.

  15. Now unplug the blue tooth device and plug it again.
  16. Run the following command from terminal: sudo wvdial
  17. You will get promoted at your mobile phone to verify the connection by giving a pin number. Enter any pin number.
  18. After giving the pin from your mobile you will be asked to verify the pin from your pc.
  19. Verify and accept the connection.
  20. Now you should see that it gave you the connected ip address and some other things in your terminal which denotes that you are connected to the internet.
  21. Okay, we are done.
  22. Now do what ever you like to do in internet.

If you have any problem while setting up the bluetooth modem just shoot me a comment here. I will be right back to you with the solution soon :)

  1. guru:

    getting this error message.

    sudo wvdial
    –> WvDial: Internet dialer version 1.60
    –> Cannot open /dev/rfcomm0: Connection refused
    –> Cannot open /dev/rfcomm0: Connection refused
    –> Cannot open /dev/rfcomm0: Connection refused

    Thanks

  2. Finally I made it working with stupid mode.

    My wvdial Configuration is as follows:

    [Dialer Defaults]
    Modem = /dev/rfcomm0
    Baud = 460800
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ISDN = 0
    Phone = *99#
    Username = A
    Password = B
    Stupid Mode = 1

    Thanks

  3. saeed ahmed says:

    is it working if i try to connect the phone for the first time on the ubuntu? because its worked but need to detect this first on windows.

  4. Rajeshwar Mahato says:

    I tried all what u said but atlast all went vein when i typed sudo wvdial
    its giving me command not found
    screenshoot of what i get
    rajeshwarmahato@rajeshwarmahato-desktop:~$ sudo wvdial

    [sudo] password for rajeshwarmahato:

    sudo: wvdial: command not found

    rajeshwarmahato@rajeshwarmahato-desktop:~$ sudo wvdial

    sudo: wvdial: command not found

    rajeshwarmahato@rajeshwarmahato-desktop:~$

    please suggest what to do i used sony erricsson k320i,ubuntu 9.04 and aircel connection

  5. @Rajeshwar Mahato

    Please read the first paragraph again:
    “Note: Usually all linux distros have this installed during OS installation. If you don’t have it then install it with this command: sudo apt-get install bluez and you can install the wvdial tool by using this command: sudo apt-get install wvdial”

line
footer
Powered by Wordpress | Designed by Elegant Themes