Mobile Broadband Bluetooth Dialup Networking in Ubuntu 8.04


Turn on bluetooth on your phone and Computer/Laptop.If you’ve already tried connecting them before, delete any reference to your bluetooth phone’s ID from your computer. To do this, type Alt+F2 and then type the following :

gksudo nautilus /var/lib/bluetooth/

( Enter password to give permission )

Now delete all files/folders there. Then turn off & then turn on computer’s bluetooth device. Then scan bluetooth device from your phone and add your computer as paired device.

( Enter the same pass code in both phone and computer. )

Now find the MAC address of your phone by typing the following command :

hcitool scan

Copy the MAC address. It looks like XX:XX:XX:XX:XX:XX

Now we need to find out what channel to connect to. For this type the following command :

sdptool browse XX:XX:XX:XX:XX:XX

( XX:XX:XX:XX:XX:XX <– This is your phone’s MAC address here )

In my case it looks like

siddhartha@ubuntu:~$ hcitool scan
Scanning …
00:19:2D:C1:D3:E1    Neo
siddhartha@ubuntu:~$ sdptool browse 00:19:2D:C1:D3:E1
Browsing 00:19:2D:C1:D3:E1 …
Service Name: Dial-up networking
Service RecHandle: 0x1018f
Service Class ID List:
“Dialup Networking” (0×1103)
“Generic Networking” (0×1201)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 1            <—– Find this channel number
Language Base Attr List:
code_ISO639: 0x656e
encoding:    0x6a
base_offset: 0×100
Profile Descriptor List:
“Dialup Networking” (0×1103)
Version: 0×0100

Service Name: Nokia PC Suite
Service RecHandle: 0×10190
Service Class ID List:
“Serial Port” (0×1101)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 15
Language Base Attr List:
code_ISO639: 0x656e
encoding:    0x6a
base_offset: 0×100

The Channel number for Dial-up Networking is pointed above. Now configure the bluez. Just type the following command in the terminal :

sudo gedit /etc/bluetooth/rfcomm.conf

Add the following text at the end :

rfcomm0 {
bind yes;
device XX:XX:XX:XX:XX:XX;          <—– Insert your phone’s MAC address here
channel 1;
comment “Mobile Dialup”;
}

Now restart bluetooth service by typing the following command :

sudo /etc/init.d/bluetooth restart

Then configuring PPP. Just run the following in terminal :

sudo gedit /etc/ppp/peers/BluetoothDialup

Now you see a blank text file. Then paste the following on the file

debug
noauth
connect “/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup”
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0

Save and close the BluetoothDialup file. Then run the following :

gksudo gedit /etc/chatscripts/BluetoothDialup

Now you see a blank text file. Then paste the following text on the text file, replacing your-apn and your-data-profile-number with the APN & data-profile-number from your data services provider. If you don’t know your apn (access point name) contact with your operator’s help line.

TIMEOUT 35
ECHO ON
ABORT ‘\nBUSY\r’
ABORT ‘\nERROR\r’
ABORT ‘\nNO ANSWER\r’
ABORT ‘\nNO CARRIER\r’
ABORT ‘\nNO DIALTONE\r’
ABORT ‘\nRINGING\r\n\r\nRINGING\r’
” \rAT
OK ‘AT+CGDCONT=1,”IP”,”your-apn-here”‘     <—– Insert access point name (APN)
OK ATD*99#    <—– Insert your-data-profile-number-here
CONNECT “”

Save and close the file.

To connect run the following command in terminal :

pon BluetoothDialup

To disconnect type the following command in terminal :

poff BluetoohDialup

One Response to “Mobile Broadband Bluetooth Dialup Networking in Ubuntu 8.04”

  1. bob Says:

    as a consequence of you for your report and it helped me in preparing my college assignment.


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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.