Internet in Linux via Mobile GPRS thru Bluetooth

Status
Not open for further replies.

arunks

Hey here is the aks
I m using bluetooth connectivity. .


I m successfult in pairing the laptop and my n70. . .


Rest i have asked in my previour post. .


So plz help
 

anantkhaitan

Burning Bright
Hey gr8 now Ubuntu supports easy pairing.. anyways I am giving the whole procedure because pathiks has totally messed up his first post :

1> Insert your bluetooth dongle and activate bluetooth service in your mobile. And open terminal/console

2> Discover your phone issuing following command to get your phone's MAC address
Code:
$ hcitool scan

3> Discover the channel alloted for DUN via
Code:
$ sdptool browse <mac add.>

4> Edit your /etc/bluetooth/rfcomm.conf file
Code:
$ sudo gedit /etc/bluetooth/rfcomm.conf

and paste this substituting <value> with appropriate value
Code:
rfcomm0
{
bind yes;
device <mac add.>;
channel <DUN channel>;
comment "My Phone";
}

5> Create your modem device
Code:
$ sudo rfcomm bind 0 <mac add.> <channel>

6> Now when everything is done you need a dialer to activate Internet, we will be using wvdial
Edit your /etc/wvdial.conf via
Code:
$ sudo gedit /etc/wvdial.conf
Paste this :
Code:
[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 3
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM1L3
FlowControl = CRTSCTS

[Dialer BT]
Username = aa
Password = aa
Phone = *99***1#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Inherits = Modem0
NOTE: Change Phone, Username, Password according to requirement. If you don't have username and password then keep it like only

7> Activate :
Code:
$ sudo wvdial BT
For deactivating press Ctrl+C
 
OP
Pathik

Pathik

Google Bot
anantkhaitan said:
Hey gr8 now Ubuntu supports easy pairing.. anyways I am giving the whole procedure because pathiks has totally messed up his first post :
What did i do??
btw i hav posted ur method on the first page too. :)
 

arunks

Hey here is the aks
thANX anantkhaitan

I have followed all steps given by as above

But i m getting problem that after modem initialization it disconnects..

See the whole communication here

aks@aks-laptop:~$ sudo wvdial BT
[sudo] password for aks:
Sorry, try again.
[sudo] password for aks:

WvDial<*1>:WvDial: Internet dialer version 1.56
WvDial<Err>: Cannot open /dev/rfcomm0: No such file or directory
WvDial<Err>: Cannot open /dev/rfcomm0: No such file or directory
WvDial<Err>: Cannot open /dev/rfcomm0: No such file or directory

aks@aks-laptop:~$ sudo rfcomm bind 0 00:17:4B:59:93:CD 3

aks@aks-laptop:~$ sudo gedit /etc/wvdial.conf

aks@aks-laptop:~$ sudo wvdial BT

WvDial<*1>: WvDial: Internet dialer version 1.56

WvModem<*1>: Cannot get information for serial port.

WvDial<*1>: Initializing modem.

WvDial<*1>: Sending: ATZ+CGDCONT=,,"airtelgprs.com"

WvDial Modem<*1>: ATZ+CGDCONT=,,"airtelgprs.com"

WvDial Modem<*1>: OK

WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2+FCLASS=0

WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2+FCLASS=0

WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATM1L3

WvDial Modem<*1>: ATM1L3

WvDial Modem<*1>: OK

WvDial<*1>: Modem initialized.

WvDial<*1>: Sending: ATDT*99#

WvDial<*1>: Waiting for carrier.

WvDial Modem<*1>: ATDT*99#

WvDial Modem<*1>: CONNECT

WvDial Modem<*1>: ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~

WvDial<*1>: Carrier detected. Starting PPP immediately.

WvDial<Notice>: Starting pppd at Sun Dec 16 20:09:17 2007

WvDial<Notice>: Pid of pppd: 5966

WvDial<*1>: Using interface ppp0

WvDial<*1>: Disconnecting at Sun Dec 16 20:09:25 2007

WvDial<*1>: The PPP daemon has died: A modem hung up the phone (exit code = 16)

WvDial<*1>: man pppd explains pppd error codes in more detail.

WvDial<Notice>: Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.

WvDial<Notice>: Auto Reconnect will be attempted in 5 seconds
 

anantkhaitan

Burning Bright
Have you edited /etc/bluetooth/rfcomm.conf ??
Post the output of:
Code:
$ sdptool browse 00:17:4B:59:93:CD
After issuing wvdial post the output(last lines) of
Code:
$ cat /var/log/messages
Also try Restarting your bluetooth services and then wvdial:
Code:
$ sudo /etc/init.d/bluetooth restart

Recommend you first try with USB.. If you are successful then goto Bluetooth.

pathiks said:
What did i do??
Nothing man.. i was talking of a platform independent procedure..this Distro Tags which may confuse a newcomer.. You know better!!
 
Last edited:

arunks

Hey here is the aks
contents of sdptool browse <my macadd>

Code:
aks@aks-laptop:~$ sdptool browse 00:17:4B:59:93:CD

Browsing 00:17:4B:59:93:CD ...

Service Name: Hands-Free Audio Gateway

Service RecHandle: 0x10008

Service Class ID List:

"Handfree Audio Gateway" (0x111f)

"Generic Audio" (0x1203)

Protocol Descriptor List:

"L2CAP" (0x0100)
  "RFCOMM" (0x0003)

Channel: 1

Language Base Attr List:

code_ISO639: 0x454e
  encoding:    0x6a

base_offset: 0x100
Profile Descriptor List:

"Handfree Audio Gateway" (0x111f)

Version: 0x0101

Service Name: Headset Audio Gateway

Service RecHandle: 0x10009

Service Class ID List:

"Headset Audio Gateway" (0x1112)

  "Generic Audio" (0x1203)

Protocol Descriptor List:

  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)

    Channel: 2

Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Headset" 

(0x1108)
    Version: 0x0100

Service Name: OBEX File Transfer
Service RecHandle: 0x1000a
Service Class ID List:
  "OBEX 

File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "OBEX 

File Transfer" (0x1106)
    Version: 0x0100

Service Name: SyncMLClient
Service RecHandle: 0x1000b
Service Class ID List:
  

UUID 128: 00000002-0000-1000-8000-0002ee000002
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 

11
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile 

Descriptor List:
  "" (0x00000002-0000-1000-8000-0002ee000002)
    Version: 0x0100

Service Name: Nokia OBEX PC Suite 

Services
Service RecHandle: 0x1000c
Service Class ID List:
  UUID 128: 00005005-0000-1000-8000-0002ee000001
Protocol 

Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 12
  "OBEX" (0x0008)
Language Base Attr List:
  

code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "" 

(0x00005005-0000-1000-8000-0002ee000001)
    Version: 0x0100

Service Name: OBEX Object Push
Service RecHandle: 0x1000d
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    

Channel: 9
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile 

Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0100

Service Name: Imaging
Service RecHandle: 0x1000e
Service 

Class ID List:
  "Imaging Responder" (0x111b)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 

15
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile 

Descriptor List:
  "Imaging" (0x111a)
    Version: 0x0100



Service Name: Dial-Up Networking

Service RecHandle: 0x1000f

Service Class ID List:

"Dialup Networking" (0x1103)

Protocol Descriptor List:
"L2CAP" (0x0100)
  "RFCOMM" (0x0003)

Channel: 3
Language Base Attr List: code_ISO639: 0x454e

  encoding:    0x6a

  base_offset: 0x100

Profile Descriptor List:

"Dialup Networking" (0x1103)

Version: 0x0100

hello
i have posted the output of sdptool above. .
so plz go thru it and reply solving my problem
 
Last edited:

anantkhaitan

Burning Bright
I am not getting where exactly is the problem.. a stupid question are you able to browse net via your mobile device?? .. Or perhaps you have not edited your /etc/bluetooth/rfcomm.conf file
Ok proceed like this:
1> Restart bluetooth services:
Code:
$ sudo /etc/init.d/bluetooth restart

2> Issue this:
Code:
$ sudo wvdial BT

3>Post the output(last lines) of:
Code:
$ cat /var/log/messages
 

arunks

Hey here is the aks
ya i m able to browse all sites in my mobile phone

yes i have edited the /etc/bluetooth/rfcomm.conf file also as told by u..

ok i will post the output of $ cat /var/log/messages in a short time
 
Last edited:

arunks

Hey here is the aks
here is output


Dec 19 12:11:28 aks-laptop kernel: [ 24.004000] ACPI: Sleep Button (CM) [SLPB]
Dec 19 12:11:28 aks-laptop kernel: [ 24.108000] ACPI: AC Adapter [AC0] (on-line)
Dec 19 12:11:30 aks-laptop kernel: [ 26.736000] ppdev: user-space parallel port driver
Dec 19 12:11:31 aks-laptop kernel: [ 27.200000] audit(1198046490.940:3): type=1503 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=5260 profile="/usr/sbin/cupsd"
Dec 19 12:11:31 aks-laptop kernel: [ 27.300000] apm: BIOS not found.
Dec 19 12:11:31 aks-laptop kernel: [ 27.604000] Failure registering capabilities with primary security module.
Dec 19 12:11:31 aks-laptop dhcdbd: Started up.
Dec 19 12:11:31 aks-laptop kernel: [ 27.784000] Bluetooth: L2CAP ver 2.8
Dec 19 12:11:31 aks-laptop kernel: [ 27.784000] Bluetooth: L2CAP socket layer initialized
Dec 19 12:11:31 aks-laptop kernel: [ 27.816000] [fglrx] Maximum main memory to use for locked dma buffers: 803 MBytes.
Dec 19 12:11:31 aks-laptop kernel: [ 27.816000] [fglrx] module loaded - fglrx 8.37.6 [May 25 2007] on minor 0
Dec 19 12:11:32 aks-laptop kernel: [ 27.836000] ACPI: PCI Interrupt 0000:01:05.0[A] -> GSI 17 (level, low) -> IRQ 18
Dec 19 12:11:32 aks-laptop kernel: [ 28.028000] Bluetooth: RFCOMM socket layer initialized
Dec 19 12:11:32 aks-laptop kernel: [ 28.028000] Bluetooth: RFCOMM TTY layer initialized
Dec 19 12:11:32 aks-laptop kernel: [ 28.028000] Bluetooth: RFCOMM ver 1.8
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total GART = 130023424
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] free GART = 114032640
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] max single GART = 114032640
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total LFB = 134217728
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] free LFB = 119828480
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] max single LFB = 119828480
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total Inv = 0

Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] free Inv = 0

Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] max single Inv = 0

Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total TIM = 0

Dec 19 12:11:41 aks-laptop kernel: [ 37.048000] hda-intel: Invalid position buffer, using LPIB read method instead.


Dec 19 12:17:50 aks-laptop syslogd 1.4.1#21ubuntu3: restart.

Dec 19 12:31:28 aks-laptop -- MARK --

Dec 19 12:51:28 aks-laptop -- MARK --
Dec 19 13:11:28 aks-laptop -- MARK --

Dec 19 13:31:28 aks-laptop -- MARK --

Dec 19 13:51:28 aks-laptop -- MARK --

Dec 19 14:11:28 aks-laptop -- MARK --

Dec 19 14:15:00 aks-laptop kernel: [ 7436.420000] PPP generic driver version 2.4.2


Dec 19 14:15:00 aks-laptop pppd[6149]: pppd 2.4.4 started by aks, uid 1000

Dec 19 14:15:00 aks-laptop pppd[6149]: Using interface ppp0

Dec 19 14:15:00 aks-laptop pppd[6149]: Connect: ppp0 <--> /dev/rfcomm0

Dec 19 14:15:03 aks-laptop pppd[6149]: PAP authentication succeeded

Dec 19 14:15:03 aks-laptop kernel: [ 7439.640000] PPP BSD Compression module registered

Dec 19 14:15:03 aks-laptop kernel: [ 7439.692000] PPP Deflate Compression module registered

Dec 19 14:15:05 aks-laptop pppd[6149]: LCP terminated by peer
Dec 19 14:15:08 aks-laptop pppd[6149]: Connection terminated.

Dec 19 14:15:08 aks-laptop pppd[6149]: Modem hangup
Dec 19 14:15:08 aks-laptop pppd[6149]: Exit.

Dec 19 14:15:25 aks-laptop pppd[6194]: pppd 2.4.4 started by aks, uid 1000

Dec 19 14:15:25 aks-laptop pppd[6194]: Using interface ppp0

Dec 19 14:15:25 aks-laptop pppd[6194]: Connect: ppp0 <--> /dev/rfcomm0

Dec 19 14:15:27 aks-laptop pppd[6194]: PAP authentication succeeded

Dec 19 14:15:29 aks-laptop pppd[6194]: LCP terminated by peer

Dec 19 14:15:32 aks-laptop pppd[6194]: Connection terminated.

Dec 19 14:15:32 aks-laptop pppd[6194]: Modem hangup

Dec 19 14:15:32 aks-laptop pppd[6194]: Exit
 

arunks

Hey here is the aks
now i m successful in connecting internet...but the problem is that no page in fireefox opens...it shws loading for long timw then it says"page not found"

plz tell me what to do now?????
 

arunks

Hey here is the aks
thanx praka

it worked and i m able to browse in my linux now..*gigasmilies.googlepages.com/36.gif

But sometimes it disconnects itself after sometime...
and plz tell me a simple way*gigasmilies.googlepages.com/58.gif as i always have to use command told by u.*gigasmilies.googlepages.com/s10.gif
 

keshavasiva

Banned
Hi all. Im new to this forum. I facing some problem using OpenSUSE 10.3 while connecting to GPRS via BT.

my wvdial.conf file is like this

Code:
[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 3
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM1L3
FlowControl = CRTSCTS

[Dialer BT]
Username = aa
Password = aa
Phone = *99***1#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Inherits = Modem0


[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyACM0
Phone = *99#
Idle Seconds = 300
Modem Type = Analog Modem
Baud = 230400
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Carrier Check = No
Password = xxx
Username = xxx
and the terminal o/p is lik this
Code:
linux-8swx:~ # wvdial BT
--> WvDial: Internet dialer version 1.56 (abuild@mandelbrot)
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
Im working as root and i did all the preliminary stuff like detecting and binding the device to a nod etc . I cant figure out the prob. can someone plzz help me.
 
Last edited:

krazzy

Techtree Reviewer
I'm not able to connect to Mobile Office in Ubuntu 7.10 via the USB connecting method given on first page. I get a "Configuration does not specify a valid phone number" error even though I entered *99***# which is the correct number. Please help.
 

infra_red_dude

Wire muncher!
^^^ if its not a typo then the number is wrong.. afaik its *99***1#. The number 1 (or 2,3,4..) indicates the profile number in the phone.
 

gary4gar

GaurishSharma.com
I'm not able to connect to Mobile Office in Ubuntu 7.10 via the USB connecting method given on first page. I get a "Configuration does not specify a valid phone number" error even though I entered *99***# which is the correct number. Please help.
try *99#
else, contact CC, and ask:)
its same for windows & Linux
 

krazzy

Techtree Reviewer
Tried every number. Get the same error.

Offtopic-can anyone tell me how to safely remove external drives from the pc running Ubuntu 7.10. There is no eject option anywhere.
 
Status
Not open for further replies.
Top Bottom