Saturday, June 13, 2009

Setting up GP internet connection via bluetooth in Fedora Core 10

I am going to describe below how I managed to setup/configure Grameen phone wireless internet connection in Linux Fedora Core 10 using bluetooth modem.

1)Got the mac id by writing this command in terminal
hcitool scan

2)got the channel num from terminal by typing
sdptool search DUN

mine was channel 1

3)then I edited /etc/bluetooth/rfcomm.conf in this way

rfcomm0 {
bind yes;
device 00:21:08:75:6C:CD;
channel 1;
comment "Bluetooth PPP Connection";
}

device and channel are the values I found in step 1 & 2

Thats the end of configuration.

Now I need to dial. I dialed using a dialer . There are other ways as well.

First I created the dialer

4) I went to system->administration->network

went to hardware tab, chose new,

then modem device: /dev/rfcomm0
baud rate: 460800

that created the modem.

5) then I chose edit
chose the following tab and did this:
provider ->phone number: *99***1#
advanced->modem initialization string :\rAT OK 'AT+CGDCONT=1,"IP","gpinternet"' OK ATD*99***1# CONNECT"

Now the dialer should be ready.

Then I went to terminal and wrote:

6)rfcomm connect 00:21:08:75:6C:CD

it gave me msg : rfcomm connect 00:21:08:75:6C:CD

7)from system->administration->network i chose the newly created modem. and chose activate.

It connected me to the internet.

hope this helps you. I might have missed something. But this should work. There might be easier ways. But this is how I could connect after trying several ways.

Have fun :))