Internet in Linux via Mobile GPRS thru Bluetooth

Status
Not open for further replies.

infra_red_dude

Wire muncher!
Hmmm.. not sure about the internet thingy. Wait for someone to reply who's been using it.

To safely remove hardware - right click on the drive icon > Unmount Volume.
 

krazzy

Techtree Reviewer
Hmmm.. not sure about the internet thingy. Wait for someone to reply who's been using it.

To safely remove hardware - right click on the drive icon > Unmount Volume.

Ok thanks for the usb tip.

This what I typed in the terminal:
prasad@Prasad:~$ sudo wvdialconf /etc/wvdial.conf
[sudo] password for prasad:
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
prasad@Prasad:~$ sudo gedit /etc/wvdial.conf
prasad@Prasad:~$ sudo wvdial
WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
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>: Modem initialized.
WvDial<Err>: Configuration does not specify a valid phone number.
WvDial<Err>: Configuration does not specify a valid login name.
WvDial<Err>: Configuration does not specify a valid password.
prasad@Prasad:~$

This is my wvdial.conf file:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
; Phone = *99***1#
ISDN = 0
; Password = b
; Username = a
Modem = /dev/ttyACM0
Baud = 460800
 

krazzy

Techtree Reviewer
In Airtel Mobile Office there is no username and password to give. In Windows I used to leave those fields blank. Why do things have to be so complicated in Linux? I have lost half my hair in trying to make this thing work. I tried all the tutorials and followed them properly. Still it doesn't work.
 

infra_red_dude

Wire muncher!
When in the dayz I used to use Airtel GPRS in Chandigarh the username was my cellphone number prefixed by 91 and the password was 1234. Not sure if things haf changed now.

But why are the phone number, username and password in wvdial preceded by a ; ?
 

ThinkFree

Technomancer
In Airtel Mobile Office there is no username and password to give. In Windows I used to leave those fields blank. Why do things have to be so complicated in Linux? I have lost half my hair in trying to make this thing work. I tried all the tutorials and followed them properly. Still it doesn't work.

In windows you have to install the drivers and pc suitefor your phone but in linux its like plug and play.
 

anantkhaitan

Burning Bright
@ krazzy

Perhaps the problem is with your mobile not Ubuntu because for Nokia sets modem should be manually initialized, so try this..

In the file wvdial.conf
Append this:
Code:
Init3 = AT+CGDCONT=1,”IP”,”airtelgprs.com”,”",0,0
After this line:
Code:
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

So your new file should look like this:
Code:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”airtelgprs.com”,”",0,0
Modem Type = USB Modem
Phone = *99***1#
ISDN = 0
Password = b
Username = a
Modem = /dev/ttyACM0
Baud = 460800

Then trying dialing and report your error here..
 

anantkhaitan

Burning Bright
^^
I remember my window$ days when I used this extra string for modem initialization using Mobile Office, specially for Nokia sets.. And there is no harm in trying...
 

mehulved

18 Till I Die............
His only problem is, atleast for now, that his username, password and phone lines are commented out.
 

krazzy

Techtree Reviewer
Guys guys, chill. I don't have Ubuntu anymore on my PC. Since the internet was not working, I uninstalled it and installed XP again (since there is only enough space for one OS on my HDD). I was running out of patience and having to pay 15 bucks for Mobile Office for a day and only using it on your phone and not on the PC is a waste.

In windows you have to install the drivers and pc suitefor your phone but in linux its like plug and play.
Plug and play?? Dude are we talking about the same OS here?

And as for Windows, PC suite is only required if you wanna connect it through the USB cable. If want to connect it through Bluetooth, the way I do, then there is no need for PC Suite. I just install the drivers for the built-in bluetooth in my lappy, and a couple of clicks later, I'm online. No need to mess with some terminal and type some mumbo jumbo. Perfect for a n00b like me. And I used the same number that I was talking about earlier - *99***#.

So I think I'll just be sticking to Windows, I guess. An OS without internet is no more useful than my appendix to me. ;-)
 
Last edited:

ThinkFree

Technomancer
Please help. I am connecting using data cable and wvdial.conf looks like that

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = *99#
ISDN = 0
Username = none
Init1 = ATZ
Password = none
Modem = /dev/ttyACM0
Baud = 46080
stupid mode = 1

But when I try to connect I get the following message in terminal

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Jul 18 12:30:44 2008
--> Pid of pppd: 5719
--> pppd: �[06][08]H�[06][08]
--> Using interface ppp0
--> pppd: �[06][08]H�[06][08]
--> pppd: �[06][08]H�[06][08]
--> pppd: �[06][08]H�[06][08]
--> pppd: �[06][08]H�[06][08]
--> pppd: �[06][08]H�[06][08]
--> pppd: �[06][08]H�[06][08]
--> pppd: ��[06][08]H�[06][08]
--> pppd: ��[06][08]H�[06][08]
--> Disconnecting at Fri Jul 18 12:30:51 2008
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Disconnecting at Fri Jul 18 12:31:13 2008
 

mehulved

18 Till I Die............
What ISP?
I setup GPRS on my sister's Nokia 3500 Classic, with hutch connection, it was all too easier than I thought.
 

vincentvega15

Right off the assembly line
Hi everybody. I was surfing the Internet trying to find a way to connect my laptop when I will be on holiday and I stumbled upon this topic which seemed to be exactly what I needed.

However, following the instructions on the previous pages what I get is the following:
[root@dhcppc0 ]# wvdial GPRS
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: ATM0
ATM0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
~[7f]}#@!}!}!} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&R3n[7f][12]I~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}"} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&R3n[7f]^$~
--> PPP negotiation detected.
--> Starting pppd at Sat Jul 26 19:45:53 2008
--> pid of pppd: 7113
--> Using interface ppp0
--> pppd: e
--> pppd: e
--> pppd: e
--> pppd: e
--> pppd: e
--> local IP address ****.***.***.***
--> pppd: e
--> remote IP address ***.***.***.***
--> pppd: e
--> primary DNS address ***.***.***.***
--> pppd: e
--> secondary DNS address ***.***.***.***
--> pppd: e
Then, if I open any browser, it takes a *LOT* of time trying to load the page, and without any result.

I also tried to type
sudo route add default ppp0
as someone suggested on page 4, but without any improvement.

I run Fedora 6.

Any ideas? Any help would be greatly appreciated.

Many thanks.
 

Faun

Wahahaha~!
Staff member
Hi everybody. I was surfing the Internet trying to find a way to connect my laptop when I will be on holiday and I stumbled upon this topic which seemed to be exactly what I needed.

However, following the instructions on the previous pages what I get is the following:
Then, if I open any browser, it takes a *LOT* of time trying to load the page, and without any result.

I also tried to type as someone suggested on page 4, but without any improvement.

I run Fedora 6.

Any ideas? Any help would be greatly appreciated.

Many thanks.
I think its
sudo route add default gw ppp0
 

vincentvega15

Right off the assembly line
Hi again!

Thanks ThinkFree!! Finally it works!
I'm very happy ! I'm at once Win and cables free now !

I also followed the T159 suggestion but I had back
ppp0: Unknown host

I also miss the last step, I don't know how to get disconnected: I tried the Ctrl+C signal and I got

Caught signal #2! Attempting to exit gracefully...
--> Terminating on signal 15
--> pppd: e
--> Connect time 1.0 minutes.
--> pppd: e
--> pppd: e
--> pppd: e
--> Disconnecting at Sun Jul 27 12:59:53 2008

It looks like a violence..I cannot accept it!

Could you help me again?
 
Status
Not open for further replies.
Top Bottom