Internet Connection in Linux via Mobile

Status
Not open for further replies.

Cool G5

Conversation Architect
Here is what i get after setting Baud rate to 115200 :

Code:
[Gaurav@localhost ~]$ su
Password: 
[root@localhost Gaurav]# wvdial
--> 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.  Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
--> Starting pppd at Sun Mar 30 22:02:01 2008
--> Pid of pppd: 2876
--> Using interface ppp0
--> pppd: [18]��[08]���[08]
--> pppd: [18]��[08]���[08]
--> pppd: [18]��[08]���[08]
--> pppd: [18]��[08]���[08]
--> pppd: [18]��[08]���[08]
--> pppd: [18]��[08]���[08]
--> Disconnecting at Sun Mar 30 22:02:08 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
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
Caught signal 2:  Attempting to exit gracefully...
--> Disconnecting at Sun Mar 30 22:02:13 2008
 

gary4gar

GaurishSharma.com
Code:
#wvdial conf for Airtel Mobile office

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 230400
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = A
Password = B
Stupid Mode = 1

Try using this conf
is the above phone number does not work then try *99***1#
 
Last edited:

Cool G5

Conversation Architect
No Gary it isn't working. :(
Does it requires to install any pc suite or related software?
 

Cool G5

Conversation Architect
Sorry for that.

I just replaced wvdial content with the one you posted.I also tried changing the dialling number & baud rate, but no success.

Here is what i get,when i dial :

Code:
[root@localhost Gaurav]# wvdial 
--> 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***1# 
--> Waiting for carrier. 
ATDT*99***1# 
CONNECT 
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~ 
--> Carrier detected.  Starting PPP immediately. 
--> Starting pppd at Tue Apr  1 21:41:45 2008 
--> Pid of pppd: 2747 
--> Using interface ppp0 
--> pppd: �eo[08][18]]o[08] 
--> pppd: �eo[08][18]]o[08] 
--> pppd: �eo[08][18]]o[08] 
--> pppd: �eo[08][18]]o[08] 
--> pppd: �eo[08][18]]o[08] 
--> pppd: �eo[08][18]]o[08] 
--> Disconnecting at Tue Apr  1 21:41:50 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 
ATZ 
OK 
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 
OK
 

gary4gar

GaurishSharma.com
the cause for disconnection is
ERROR - 16 The link was terminated by the modem hanging up

means some wrong info in wvdial.conf, thats why modem didn't connect but dunno how to fix this.
 

vin_king

Right off the assembly line
1.Connect the mobile via USB cable.

2. Open terminal and type su to become root.

3. It will ask for the root password, type in there.

4. Then Issue this command
Code:
wvdialconf /etc/wvdial.conf
Phone wud b detected as Modem

5. Then to Edit this file, open it in a Text Editor
Code is
Code:
kwrite  /etc/wvdial.conf
When we issued command in point 4, it showed the address of ur phone that in which USB port it has been connected. note it down from there.
"Modem = /dev/***"

6. When Text Editor opens the file, erase everything from there and Paste the following:
Code:
[Dialer Defaults]
Modem = /dev/ttyUSB0  # <-- Replace it with the reading you got 
Phone = *99#
Username = aa
Password = bbc
Baud = 230400
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Carrier Check = No

The mOdem has been configured successfully.

To dial the internet conenction type
Code:
wvdial
If eerything goes fine it wud say that connected successfully.
Press Ctrl+C to disconnect.

SOURCE-- Chester
i am using bsnl internet in mobile 199 plan wen i connect it in fedora as u said everything goes right bt wen i enter wvdial it says enter passwd ,username
as in window it doesnt require bt wen i choose a username ,passwd then it error that not correct passwd
is there any special passwd 4 bsnl?
help me plz!
 
Status
Not open for further replies.
Top Bottom