Internet connection with wvdial

Hi all

When I connect to internet, I get a series of wordings at the konsole. I dont know what that means. And the problem is, whenever I am not using the internet for more than 15 minutes, the internet disconnects automatically! saying PPP  daemon has died. :(
I am using a wireless broadband modem.
Here is the message I get. Can any one explain what those message means and why my internet disconnects automatically?

	 
	anish@thinkpad:~> sudo wvdial
	root's password:
	--> WvDial: Internet dialer version 1.60
	--> Initializing modem.
	--> Sending: ATZ
	OK
	--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
	ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
	OK
	--> Modem initialized.
	--> Idle Seconds = 300, disabling automatic reconnect.
	--> Sending: ATDT#777
	--> Waiting for carrier.
	ATDT#777
	CONNECT 3100000
	--> Carrier detected. Starting PPP immediately.
	--> Starting pppd at Thu Jun 28 17:54:01 2012
	--> Pid of pppd: 2725
	--> Using interface ppp0
	--> pppd: q[7f]
	--> pppd: q[7f]
	--> pppd: q[7f]
	--> local IP address 115.241.68.210
	--> pppd: q[7f]
	--> remote IP address 220.224.141.145
	--> pppd: q[7f]
	--> primary DNS address 220.226.6.104
	--> pppd: q[7f]
	--> secondary DNS address 220.226.100.40
	--> pppd: q[7f]
	--> Script /etc/ppp/ip-up run successful
	--> Default route Ok.
	--> Nameserver (DNS) Ok.
	--> Connected... Press Ctrl-C to disconnect
	--> pppd: q[7f]
	--> pppd: q[7f]
	--> pppd: q[7f]
	--> Connect time 97.6 minutes.
	--> pppd: q[7f]
	--> pppd: q[7f]
	--> pppd: q[7f]
	--> pppd: q[7f]
	--> Disconnecting at Thu Jun 28 19:31:39 2012
	--> The PPP daemon has died: Lack of LCP echo responses (exit code = 15)
	--> man pppd explains pppd error codes in more detail.
	--> I guess that's it for now, exiting
	--> Provider is overloaded(often the case) or line problem.
	--> The PPP daemon has died. (exit code = 15)
	anish@thinkpad:~>
	
Thanks,
Anish

> here is the message I get. Can any one explain what those message means

what you see is a record/log of the information sent back and forth
between your machine and your ISP, through your modem…

mostly you can ignore it unless you have problems…and, then you look
at the log to see what went wrong…

each line has a meaning…some i know, some i don’t but here goes:

→ WvDial: Internet dialer version 1.60

that is just the WvDial program telling you its version number

> → Initializing modem.
> → Sending: ATZ
> OK
> → Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
> ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
> OK

that is a series of codes sent from your software to the modem hardware
instructing it on what it should do to get ready (initialize) to
operate…each code has tells the modem a particular thing: like “ATZ”
tells it to use the factory presets, and the modem responds “OK”

then ATQ0 tells it to use “quiet mode” or otherwise the log would be
REALLY long…

then V1 tells it to give English answers…

on and on for each of those…see the standard codes here:
http://en.wikipedia.org/wiki/Hayes_command_set

> → Modem initialized.

and, when done, with no problems it tell you “I’m ready” by saying
“initalized”

> → Idle Seconds = 300, disabling automatic reconnect.

i don’t remember what the “idle seconds” means… maybe the number of
seconds the modem is allowed to try to do the ‘hand shake’ with the
ISP’s modem

> → Sending: ATDT#777

this says to dial the number 777

> → Waiting for carrier.

and, then it tells you it is waiting for the ISP’s modem to answer the phone

> ATDT#777

it tried to ring 777 again

> CONNECT 3100000

and, the ISP’s modem picked up, and a connection is made at ~3 MB per minute

> → Carrier detected. Starting PPP immediately.

PPP means Point-to-Point Protocol, a standard way for modems to talk to
each other…

so, now your modem and the ISP’s modem talks back and forth to agree on
the protocols to use and whatever…

> → Starting pppd at Thu Jun 28 17:54:01 2012
> → Pid of pppd: 2725
> → Using interface ppp0
> → pppd: q[7f]
> → pppd: q[7f]
> → pppd: q[7f]
> → local IP address 115.241.68.210

and it tell you what your machines IP is

> → pppd: q[7f]
> → remote IP address 220.224.141.145

and, the ISPs IP

> → pppd: q[7f]
> → primary DNS address 220.226.6.104

and the address of the ISP’s primary domain name server

> → pppd: q[7f]
> → secondary DNS address 220.226.100.40

and secondary

> → pppd: q[7f]
> → Script /etc/ppp/ip-up run successful

your machine runs a script locally to set up a route and

> → Default route Ok.
> → Nameserver (DNS) Ok.

it checks the DNS, and it is ok…

> → Connected… Press Ctrl-C to disconnect

so, you are connected to the net

> → pppd: q[7f]
> → pppd: q[7f]
> → pppd: q[7f]
> → Connect time 97.6 minutes.
> → pppd: q[7f]
> → pppd: q[7f]
> → pppd: q[7f]
> → pppd: q[7f]
> → Disconnecting at Thu Jun 28 19:31:39 2012

after being connected for almost 98 minutes the line is disconnected

> → The PPP daemon has died: Lack of LCP echo responses (exit code = 15)

that says that your (ppp) software has detected that there was nothing
talking back to you from the ISP…and it give a reason of 15

> → man pppd explains pppd error codes in more detail.

this is pain english saying "look open a terminal, type in “man pppd”
and read what the exit code 15 means: The link was terminated because
the peer is not responding to echo requests.

in other words your machine was asking for a response from the distant
partner, by nothing came back, so YOUR modem hung up (also)

> → I guess that’s it for now, exiting
> → Provider is overloaded(often the case) or line problem.

and, it tell you the answer to you other qustion “and why my internet
disconnects automatically?”

the software doesn’t really know what happened, but it GUESSES your
ISP’s system was overloaded…that is, maybe too many people were
trying to use the same cell tower and your ISP just hung up on you!

or maybe there were “line problems” between the cell tower and wherever…

OR no way to really know what happened except that your stuff was
working ok, but the ISPs either broke or got tired of holding the phone
open and you not sending data back and forth!! so, it unplugged you

> → The PPP daemon has died. (exit code = 15)

so, you say it happens if you don’t use the net for 15 minutes…which
makes sense to me…i GUESS your plan charges you for the data sent and
received–and, if you are connected for a long time without moving data
in and out the ISP is making NO money, but you are tying up a modem and
phone line the ISP is renting, so their side just hangs up the phone!
(making room for someone who WILL move data…)


dd

On 2012-06-28 20:34, dd@home.dk wrote:

I’ll add a few comments.

>> → Idle Seconds = 300, disabling automatic reconnect.
>
> i don’t remember what the “idle seconds” means… maybe the number of
> seconds the modem is allowed to try to do the ‘hand shake’ with the ISP’s
> modem

After 300 seconds of no network activity, the modem will disconnect. 5 minutes.

>> → Sending: ATDT#777
>
> this says to dial the number 777

and using tones.

>> CONNECT 3100000
>
> and, the ISP’s modem picked up, and a connection is made at ~3 MB per minute

second :slight_smile:

>> → pppd: q[7f]
>> → Script /etc/ppp/ip-up run successful
>
> your machine runs a script locally to set up a route and

You can use “/etc/ppp/ip-up.local” and “/etc/ppp/ip-down.local” to add your
own hooks.

>> → Default route Ok.
>> → Nameserver (DNS) Ok.
>
> it checks the DNS, and it is ok…

and the routing.

>
>> → Connected… Press Ctrl-C to disconnect
>
> so, you are connected to the net

and that you can use ctrl-c to break the connection.

>> → The PPP daemon has died. (exit code = 15)
>
> so, you say it happens if you don’t use the net for 15 minutes…which
> makes sense to me…i GUESS your plan charges you for the data sent and
> received–and, if you are connected for a long time without moving data in
> and out the ISP is making NO money, but you are tying up a modem and phone
> line the ISP is renting, so their side just hangs up the phone! (making
> room for someone who WILL move data…)

very possible.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)