Tuesday, February 05, 2008

EDGE/GPRS via Bluetooth

After buying a new Nokia 3110c thought to give a try to connecting to EDGE internet via Bluetooth. I personally use Grameen Phone's gpinternet package. In this how-to I'm going to to show the whole procedure.

In Ubuntu 7.10 Bluetooth service should be on by default. So just check for the device

$sudo hcitool scan

It showed my Nokia 3110c

Scanning ... 00:1D:FD:36:9E:DB Nokia 3110c

Note down this ID, we'll need that later.

If the command does not work for you, you need to manually start the Bluetooth service.

$sudo /etc/init.d/bluetooth start

Now we need to edit some configuration file ...

$vim /etc/bluetooth/hcid.conf

Just make sure these lines are in that file

options {

autoinit yes;

security auto;

pairing multi;

passkey "1234";

}

device {

name "%h-%d";

class 0x000100;

iscan enable; pscan enable;

discovto 0;

lm accept;

lp rswitch,hold,sniff,park;

}


Now we need to insert our Bluetooth phones ID into another file.

$sudo vim /etc/bluetooth/rfcomm.conf

rfcomm0 {

bind yes;

#Insert your device ID here
device 00:1D:FD:36:9E:DB;

channel 1;

comment "Nokia 3110c"
}


Time to prepare our Dial-up connection


$sudo vim /etc/ppp/peers/gpinternet


/dev/rfcomm0 460800 connect '/usr/sbin/chat -v -f /etc/ppp/chat-gpinternet'

crtscts

modem -detach

noccp

defaultroute

usepeerdns

noauth

ipcp-accept-remote

ipcp-accept-local

noipdefault



We'll need to edit another file, this file will contains service provider specific modem codes

$sudo vim /etc/ppp/chat-gpinternet

'' ATZ OK AT+CGDCONT=1,"IP","gpinternet"

OK "ATD*99***1#"

CONNECT ''

Everything is done, just fire up the modem.

$sudo pppd call gpinternet

It will ask you to enter some pass code for the pairing, after that dial-up connection will start and you can browse with your modem.

Back to Blogging

After a failed attempt last year to get back to blogging, I'm trying it again this year. I really wanted to get back, but got busy will...