LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2012, 05:23 AM   #1
ununun
Member
 
Registered: Jun 2011
Posts: 82

Rep: Reputation: Disabled
pppd lcp request timeout


i am trying to use my usb modem in gentoo x86_64 using wvdial.

wvdialconf detects my modem on /dev/ttyUSB3

Code:
# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3   
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB3<*1>: ATQ0 V1 E1 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB3<*1>: Modem Identifier: ATI -- Manufacturer: "Micromax"
ttyUSB3<*1>: Speed 9600: AT -- OK
ttyUSB3<*1>: Max speed is 9600; that should be safe.
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB4<*1>: ATQ0 V1 E1 -- OK
ttyUSB4<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB4<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB4<*1>: Modem Identifier: ATI -- Manufacturer: "Micromax"
ttyUSB4<*1>: Speed 9600: AT -- OK
ttyUSB4<*1>: Max speed is 9600; that should be safe.
ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB3.
Modem configuration written to /etc/wvdial.conf.
ttyUSB3<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB4<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
Code:
# wvdial
--> WvDial: Internet dialer version 1.61
--> 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: ATS7=60 S30=0 S0=0
ATS7=60 S30=0 S0=0
OK
--> Sending: AT+CGDCONT=1,"ip","www"
AT+CGDCONT=1,"ip","www"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 7200000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Jan 15 14:49:22 2012
--> Pid of pppd: 3540
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> Using interface ppp0
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> Disconnecting at Sun Jan 15 14:49:52 2012
--> 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
--> 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: ATS7=60 S30=0 S0=0
ATS7=60 S30=0 S0=0
OK
--> Sending: AT+CGDCONT=1,"ip","www"
AT+CGDCONT=1,"ip","www"
OK
--> Modem initialized.
--> 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: ATS7=60 S30=0 S0=0
ATS7=60 S30=0 S0=0
OK
--> Sending: AT+CGDCONT=1,"ip","www"
AT+CGDCONT=1,"ip","www"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
ERROR
--> Invalid dial command.
--> Disconnecting at Sun Jan 15 14:49:58 2012
pppd debug log
Code:
Jan 15 14:49:22 kne pppd[3540]: pppd options in effect:
Jan 15 14:49:22 kne pppd[3540]: debug		# (from /etc/ppp/options)
Jan 15 14:49:22 kne pppd[3540]: -detach		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: idle 0		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: logfd 6		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: dump		# (from /etc/ppp/options)
Jan 15 14:49:22 kne pppd[3540]: noauth		# (from /etc/ppp/peers/wvdial)
Jan 15 14:49:22 kne pppd[3540]: name kne		# (from /etc/ppp/peers/wvdial)
Jan 15 14:49:22 kne pppd[3540]: user ''		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: usehostname		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: 9600		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: lock		# (from /etc/ppp/options)
Jan 15 14:49:22 kne pppd[3540]: crtscts		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: modem		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: noipdefault		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: defaultroute		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: usepeerdns		# (from command line)
Jan 15 14:49:22 kne pppd[3540]: pppd 2.4.5 started by kio, uid 0
Jan 15 14:49:22 kne pppd[3540]: using channel 1
Jan 15 14:49:22 kne pppd[3540]: Using interface ppp0
Jan 15 14:49:22 kne pppd[3540]: Connect: ppp0 <--> /dev/ttyUSB3
Jan 15 14:49:22 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:25 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:28 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:31 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:34 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:37 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:40 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:43 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:46 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:49 kne pppd[3540]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x44a92f0a> <pcomp> <accomp>]
Jan 15 14:49:52 kne pppd[3540]: LCP: timeout sending Config-Requests
Jan 15 14:49:52 kne pppd[3540]: Connection terminated.
Jan 15 14:49:52 kne pppd[3540]: Modem hangup
Jan 15 14:49:52 kne pppd[3540]: Exit.
i thought it was auth (in windows auth is set to none)
so i added noauth in /etc/ppp/options

but still the same error.

thanks

Last edited by ununun; 01-17-2012 at 06:58 AM.
 
Old 01-18-2012, 05:59 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
This is not an authentication problem, as the connection fails far too early for that.

The critical error message is "LCP: timeout sending Config-Requests". Basically, pppd is unable to establish even a layer 2 connection with the peer. I'm not sure what the problem could be, but this caught my eye:
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB3<*1>: Modem Identifier: ATI -- Manufacturer: "Micromax"
And then, a little further down:
ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB4<*1>: Modem Identifier: ATI -- Manufacturer: "Micromax"
So actually, your modem is detected on both ttyUSB3 and ttyUSB4. Do you have two such devices? Have you tried using ttyUSB4 instead of ttyUSB3?

Then there's this:
ttyUSB4<*1>: Speed 9600: AT -- OK
ttyUSB4<*1>: Max speed is 9600; that should be safe.
...which matches the "9600" parameter to pppd, but may not go to well with this:
ATDT*99#
CONNECT 7200000
That may be entirely cosmetic, although it would explain why pppd isn't getting any replies.

Are you sure the service you're connecting to uses ppp for authentication? I've seen a few setups where logins were done in plaintext before the ppp process started.

Have you tried connecting with a terminal emulator? You should see the ppp data from the peer as a lot of garbage characters on the screen as soon as you connect.
 
Old 01-21-2012, 03:32 AM   #3
ununun
Member
 
Registered: Jun 2011
Posts: 82

Original Poster
Rep: Reputation: Disabled
thanks ser olmy

i tried usb4 and volla i am connected to internet.

thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pppd: Debug a LCP conversation - LCP translator needed maus Linux - Networking 0 08-14-2009 04:32 AM
LCP Timeout Warg Linux - General 5 11-29-2005 02:41 PM
LCP timeout - pppd problems leobert Linux - Hardware 3 01-28-2005 07:54 AM
LCP timeout, modem hangup mseq1 Linux - Hardware 1 12-08-2004 01:57 PM
LCP timeout scheidel21 Linux - Networking 0 03-29-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration