On Sat, Mar 22, 2014 at 06:04:48PM +0000, Ron Leach wrote: > On 21/03/2014 23:10, Mike McClain wrote: > >I'm running Squeeze on a P3 board and dialup. > >My modem gets hungup after 2.5 minutes about 30% - 40% of the time I > >connect. Being idle, in the middle of fetching email or loading a > >webpage seems to make no difference. Is there any way to log all > >transactions going to the modem which is on ttyS2? Something like > >script but for a serial port? > > > I don't know about *all* the transactions going to the modem, nor > whether that (yet) has been narrowed to the cause of the problem. > I've had similar problems with dial-up on another linux distro, > caused by LCP negotiation/connections failures. My dial-up PPP > process was not receiving the correct state of the connection, even > though the connection was transmitting/receiving user data > perfectly. So, a minute or two after connection, LCP (I think, > though it may have been PPP that commanded it) would disconnect, due > to a timeout for something expiring. <snip>
Hi Ron, In /etc/ppp/options lcp-echo-interval 30 and lcp-echo-failure is unset. I've got ppp error logging going to tty12 and /var/log/debug and often see entries such as this: Mar 22 16:03:23 playground pppd[20465]: sent [LCP EchoReq id=0x2 magic=0x84f3fde5] Mar 22 16:03:23 playground pppd[20465]: rcvd [LCP EchoRep id=0x2 magic=0x0] Mar 22 16:03:53 playground pppd[20465]: sent [LCP EchoReq id=0x3 magic=0x84f3fde5] Mar 22 16:03:53 playground pppd[20465]: rcvd [LCP EchoRep id=0x3 magic=0x0] Mar 22 16:04:23 playground pppd[20465]: sent [LCP EchoReq id=0x4 magic=0x84f3fde5] Mar 22 16:04:49 playground pppd[20465]: Modem hangup Mar 22 16:04:49 playground pppd[20465]: Connect time 2.5 minutes. Mar 22 16:04:49 playground pppd[20465]: Sent 124 bytes, received 261 bytes. In this case the hangup occurred 26 Seconds after the EchoReq was sent but I've seen it hangup as little as 2 seconds after sending EchoReq or receiving EchoRep. When I intentionally disconnect (poff) I see this in the logs: Mar 22 17:27:33 playground pppd[20546]: Script /etc/ppp/ip-down started (pid 20641) Mar 22 17:27:33 playground pppd[20546]: sent [LCP TermReq id=0x2 "User request"] Mar 22 17:27:33 playground pppd[20546]: rcvd [LCP TermAck id=0x2] Mar 22 17:27:33 playground pppd[20546]: Script /etc/ppp/ip-down finished (pid 20641), status = 0x0 I've seen times in the logs where the ISP quit sending EchoReq for several minutes at a time but my system didn't disconnect until I told it to. I don't know what's causing the hangup either that's why I want to log all traffic to the modem to see if I can spot what's happening. If you have other ideas that might help troubleshoot this problem I'm all ears. I've been dealing with this for months and am stumped. Let me say again this doesn't happen every time. If I get past the 2.5 minute mark I may stay online all night. Thanks, Mike -- It's not always polite to speak your mind. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140323004315.GD20400@playground