mgetty and AutoPPP
jerome.privat@bt.com (jerome.privat@bt.com)
Thu, 3 Jun 1999 18:07:31 +0100
Hi again,
I have set my modem to do error correction (&M4) but I still have
the same problem (see mgetty.ttyd0 log file below).
My understanding of the problem is that mgetty picks up the line
fine but does *not* start PPP.
In the log file, I see:
"getlogname (no opts)"
Shouldn't I see "getlogname (autoPPP)"?
I have put one line in login.config:
/AutoPPP/ - - /etc/ppp/ppp-pap-dialup
When I try to connect from a FreeBSD PPP client, I can connect to
the server.
Then I enter username and passwork OK and connect to the
server in terminal mode. But there is no PPP interaction.
Mgetty.ttyd0 log file gives:
06/03 16:23:38 yd0 tss: set speed to 57600 (160400)
06/03 16:23:38 yd0 tio_set_flow_control( HARD )
06/03 16:23:38 yd0 waiting for line to clear (VTIME), read:
06/03 16:23:38 yd0 send: ATS0=0Q0&D3&C1&M4[0d]
06/03 16:23:38 yd0 waiting for ``OK''
06/03 16:23:38 yd0 got: ATS0=0Q0&D3&C1&M4[0d]
06/03 16:23:38 yd0 CND: ATS0=0Q0&D3&C1&M4[0d][0a]OK ** found **
06/03 16:23:38 yd0 waiting for line to clear (VTIME), read: [0d][0a]
06/03 16:23:39 yd0 removing lock file
06/03 16:23:39 yd0 waiting...
06/03 16:25:11 yd0 select returned 1
06/03 16:25:11 yd0 checking lockfiles, locking the line
06/03 16:25:11 yd0 makelock(ttyd0) called
06/03 16:25:11 yd0 do_makelock: lock='/var/spool/lock/LCK..ttyd0'
06/03 16:25:11 yd0 lock made
06/03 16:25:11 yd0 waiting for ``RING''
06/03 16:25:11 yd0 got: [0d]
06/03 16:25:11 yd0 CND: OK[0a]RING ** found **
06/03 16:25:11 yd0 CND: check no: 'none'
06/03 16:25:11 yd0 send: ATA[0d]
06/03 16:25:11 yd0 waiting for ``CONNECT''
06/03 16:25:11 yd0 got: [0d]
06/03 16:25:11 yd0 CND: RING[0a]ATA[0d]
06/03 16:25:11 yd0 CND: ATA[0d][0a]CONNECT ** found **
06/03 16:25:20 yd0 send:
06/03 16:25:20 yd0 waiting for ``_''
06/03 16:25:20 yd0 got: 33600/ARQ/V34/LAPM/V42BIS[0d]
06/03 16:25:20 yd0 CND: CONNECT 33600/ARQ/V34/LAPM/V42BIS
06/03 16:25:20 yd0 CND: found: 33600/ARQ/V34/LAPM/V42BIS ** found **
06/03 16:25:20 yd0 waiting for line to clear (VTIME), read: [0a]
06/03 16:25:21 yd0 utmp + wtmp entry made
06/03 16:25:21 yd0 tio_set_flow_control( HARD )
06/03 16:25:21 yd0 print welcome banner (/etc/issue)
06/03 16:25:21 yd0 getlogname (no opts), read:~[ff]}#[c0]!}!}!}
}8}(}"}'}"}"}&}
} } } }!}$}%[dc]}%}&i[ad]})[7f][af]})~~[ff]}#[c0]!}!}!} }8}(}"}'}"}"}&} } }
} }!}
$}%[dc]}%}&i[ad]})[7f][af]})~~[ff]}#[c0]!}!}!} }8}(}"}'}"}"}&} } } }
}!}$}%[dc]}%}
&i[ad]})[7f][af]})~~[ff]}#[c0]!}!}!} }8}(}"}'}"}"}&} } } }
}!}$}%[dc]}%}&i[ad]})
[7f][af]})~~[ff]}#[c0]!}!}!} }8}(}"}'}"}"}&} } } }
}!}$}%[dc]}%}&i[ad]})[7f][af]})~
06/03 16:25:37 ##### failed dev=ttyd0, pid=330, got signal 1, exiting
**********************
-----Original Message-----
From: Gert Doering [SMTP:gert@greenie.muc.de]
Sent: Friday, May 28, 1999 9:34 PM
To: jerome.privat@bt.com; mgetty@muc.de
Subject: Re: mgetty and AutoPPP
Hi,
On Fri, May 28, 1999 at 04:07:32PM +0100, jerome.privat@bt.com
wrote:
> Make sure your modem is set to do error correction. With no
error
> correction, you'll get lots of noise and garbage, and no
usable PPP
> frames.
>
> I am not sure where to set the modem to do error correction.
In the
> mgetty.config file, it seems that we send command to the
modem at
> two
> occasions:
> - with "init-chat" (I put the default value: "" ATS0=0Q0&D3&C1
OK)
Yep. Put something in here that makes *your* modem activate error
control.
Your modem tells you what commands to use.
> - with "answer-chat" (I put the default value: "" ATA CONNECT
\c \r)
> As far as I understand these commands, they don't set the
modem to
> do error
> correction. Should I add another command in there?
Well, yes.
> Another thing: I am using a FreeBSD (2.2.6-Release) for my
access
> server box with
> two US Robotics (3COM) modems. In my mgetty.config, I have
two
> series of parameters:
> one for ttyd0 and the other for ttyd1. Is it ok or should I
use
> cuaa0 and cuaa1 instead of
> ttyd0 and ttyd1?
Use whatever works. Just make sure that ALL programs agree on the
device
name.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany
gert@greenie.muc.de
fax: +49-89-35655025
gert.doering@physik.tu-muenchen.de