Internet in Linux via Mobile GPRS thru Bluetooth

Status
Not open for further replies.

Akshay

Cyborg Agent
Can I hav d choice of using bluetooth or cable as medium of conn.? Rite now I m using cable to connect n cant connect thru BT (whn cable is removed). But I think it is coz of conflict in d wvdial.conf.

So how can I decide which conn. to usen remove conflict if ne?
 

gary4gar

GaurishSharma.com
Akshay said:
Can I hav d choice of using bluetooth or cable as medium of conn.? Rite now I m using cable to connect n cant connect thru BT (whn cable is removed). But I think it is coz of conflict in d wvdial.conf.

So how can I decide which conn. to usen remove conflict if ne?
Akshay when asking question in open source section first tell what you did, give all the details like in this post u should have given your wvdial.conf file. we here aren't mind readers

Refer:How To Ask a Question Here


a choice of connection can used bur for this you need to write different setting for different connection under different section of the same config file.

for more help read
Code:
man wvdial
man wvdialconf
 
Last edited:

Akshay

Cyborg Agent
wvdial.conf -

[Dialer Defaults]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Modem Type = USB Modem

ISDN = 0

New PPPD = yes

Phone = *99#

Modem = /dev/ttyACM0

Username = b

Password = a

Baud = 460800

As of now I hav removed d lines (as given in d 1st post) for Bluetooth (I had added those lines below d above one but it didnt help)

I cud successfully reach just b4 the point of making conn. thru bluetooth. Error given in BT
sudo wvdial GPRS
-

--> WvDial: Internet dialer version 1.56
--> Warning: section [Dialer GPRS] does not exist in wvdial.conf.
--> Cannot open /dev/ttyACM0: Device or resource busy
--> Cannot open /dev/ttyACM0: Device or resource busy
--> Cannot open /dev/ttyACM0: Device or resource busy

If I add bluetooth lines to above wvdial file, it returns error in

line - that modem does not exist.
 

anantkhaitan

Burning Bright
friend u should have different profiles for BT and USB cable.. ok here I have written for you..
Replace ur existing /etc/wvdial.conf with this:
Code:
[Dialer BT]
Modem = /dev/rfcomm0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = a
Password = b

[Dialer USB]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = a
Password = b

Then issue:
1> For Bluetooth:
Code:
$ sudo wvdial BT

2> For USB:
Code:
$ sudo wvdial USB
 

Akshay

Cyborg Agent
Thnx a lot Anant... Tryin it out...

@anant

Cant connect thru BT but can connect thru USB. I chngd my wvdial file to wht u hav posted. Now chk whr things r goin wrng -

hcitool scan

returns

Scanning ...
00:17:4B:A7:D3:F5 Akshay

akshay@AAG:~$ rfcomm bind 0 00:17:4B:A7:D3:F5

returns -

Can't create device: Operation not permitted

akshay@AAG:~$ mknod /dev/rfcomm0 c 216 0
returns

mknod: `/dev/rfcomm0': File exists

akshay@AAG:~$ sudo wvdial BT
returns

--> WvDial: Internet dialer version 1.56
--> Cannot open /dev/rfcomm0: No such device
--> Cannot open /dev/rfcomm0: No such device
--> Cannot open /dev/rfcomm0: No such device
 
Last edited:

anantkhaitan

Burning Bright
@Akshay
Perhaps your rfcomm0 is already present there..anyways try this:
Edit ur /etc/bluetooth/rfcomm.conf via
Code:
sudo gedit /etc/rfcomm.conf
and Paste this
Code:
rfcomm0 {
        bind yes;
        device <mac-address>;
        channel 1;
        comment "My Phone";
        }

Then try dailing via
Code:
$ sudo wvdial BT


And a correction : I am Anant not Anand :)
 

Akshay

Cyborg Agent
@Anant

sudo wvdial BT
returns -

--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ERROR
--> Bad init string.
--> Cannot open /dev/rfcomm0: Input/output error
--> Cannot open /dev/rfcomm0: Connection refused

I hav set d BT as authorised...
 

aditya.shevade

Console Junkie
Hi

I have no idea and no knowledge about anything related to mobile phones. One of my friends, however, was trying to connect to the net using his w700 phone.

He has Ubuntu 7.04 installed. He told me that, he is receiving the output as shown, for the cable. But there is absolutely no data transfer at all. But the S/W says that he is connected to the internet. (The connected symbol appears on the phone).

Any ideas what might be wrong? He does not have an account here, so he asked me to post this. If you guys need any more info to solve the problem, then I will ask him to write everything in detail.

Aditya
 

kaustav_geek

1337 |)00|) \m/
Akshay, it seems that the rfcomm device is not being created.
Use this piece of code :
Code:
mknod /dev/rfcomm0 c 216 0
Also, try binding your phone using :
Code:
rfcomm bind 0 <Device id of ur fone> 1
And make sure that you have root privileges in all the steps. You might use sudo, or login as root.
 

Akshay

Cyborg Agent
@kaustav

I hav already tried both d commands (mentioned in post 67) but dey r not helping eithr...
 

anantkhaitan

Burning Bright
Ok Akshay try this:
Code:
$ rfcomm show 0
if it returns something like this then its ok else proceed
Code:
rfcomm0: <your mac add> channel 1 clean

1> Create a new device
Code:
$ sudo rfcomm bind 1 <mac add> <channel for DUN "perhaps 1">

2> Then replace rfcomm0 with rfcomm1 in following file(s)

/etc/bluetooth/rfcomm.conf EDITED
/etc/wvdial.conf

Hope u know how to edit ;) anyways
Code:
$ sudo gedit <filename>
 
Last edited:

Akshay

Cyborg Agent
Tryin it out Anant...

EDITED -

I tried all d steps u mentioned but I m gettin foll. error -
--> WvDial: Internet dialer version 1.56
--> Cannot open /dev/rfcomm1: Input/output error
--> Cannot open /dev/rfcomm1: Connection refused
--> Cannot open /dev/rfcomm1: Connection refused

I hope thr isnt a prb wit my cell. (its Nokia N72)
 
Last edited:

gary4gar

GaurishSharma.com
aditya.shevade said:
Hi

I have no idea and no knowledge about anything related to mobile phones. One of my friends, however, was trying to connect to the net using his w700 phone.

He has Ubuntu 7.04 installed. He told me that, he is receiving the output as shown, for the cable. But there is absolutely no data transfer at all. But the S/W says that he is connected to the internet. (The connected symbol appears on the phone).

Any ideas what might be wrong? He does not have an account here, so he asked me to post this. If you guys need any more info to solve the problem, then I will ask him to write everything in detail.

Aditya
He has to set the DNs address
System>administration>netowork>DNS tab

add the dns address
 

mehulved

18 Till I Die............
Akshay said:
Tryin it out Anant...

EDITED -

I tried all d steps u mentioned but I m gettin foll. error -


I hope thr isnt a prb wit my cell. (its Nokia N72)
Looks like it maybe permissions problem. Give me the output of the following 2 commands
Code:
ls -l /etc/rfcomm*
and
Code:
groups
 

kaustav_geek

1337 |)00|) \m/
@ Mehul
Why permissions ? In case he's a root, doesn't he have all the permissions by default , unless ofcourse its not modified?
 

mehulved

18 Till I Die............
I believe he's getting those errors while dialing out. I don't think he's dialing out as root.
 
Status
Not open for further replies.
Top Bottom