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.
3 comments:
When I try this procedure then i got some problem in FEDORA 9 . It does not recognize /dev/rfcomm0 .
How can i get out of this problem .
And in your code you use ::
$sudo vim /etc/ppp/peers/gpinternet
after opening gpinternet file first line is as follows ::
/dev/rfcomm0 460800 connect '/usr/sbin/chat -v -f /etc/ppp/chat-gpinternet'
Here why "/dev/rfcomm0" is used beacause this one does not exist here .
Please Help me out of it
Try this one.
http://zaher14.blogspot.com/2008/10/edgegprs-via-bluetooth-in-linux-simpler.html
Great blog you got here. It would be great to read a bit more about that matter. The only thing that blog needs is a few pictures of some gizmos.
Alex Flouee
Cell phone jammer
Post a Comment