mgetty or pppd problem?
Nate Amsden (nate.amsden@tsswitness.com)
Thu, 13 Jan 2000 13:17:02 -0800
I had a PPP server working great for a while, on a USR modem, now i
replaced
that machine with a more updated(and 10x more powerful) machine but it
now has
a Diamond Supraexpress 56i Sp V.90 Built 3/6/98 (V2.060-04-K56_2M_DLP)
I should also mention I'm running Debian GNU/Linux 2.1r4(Slink) Linux
2.2.10
with mgetty version 1.1.18
My /etc/inittab entry for the dialup line is:
T3:23:respawn:/sbin/mgetty -D -m '"" ATZ OK' -s 38400 ttyS1
I can login just fine, but when i hang up, pppd stays up, the modem
hangs up as when i
call again nothing picks up and pppd still shows as running. Running
through
the FAQ/docs i saw setting AT&C0 was an incorrect setting, so i changed
the init string from ATZ to AT&C1 (i also tried AT&C0) to no avail.
I figure this may be a INIT string issue, so if somone could provide
some insight
maybe someone out there has used the same kind of modem. its becomming
increasingly
difficult to find non winmodems nowadays ! :(
I also tested this modem in minicom, and for what it's worth, it
connected fine to
a win9x box running hyperterminal, transferred some files via ZMODEM,
and when it
hung up it correctly reported NO CARRIER. Any more then that I don't
know what
could be going wrong.
Output from log:
01/13 10:47:56 yS1 mgetty: experimental test release 1.1.18-Sep11
01/13 10:47:56 yS1 check for lockfiles
01/13 10:47:56 yS1 checklock: stat failed, no file
01/13 10:47:56 yS1 locking the line
01/13 10:47:56 yS1 makelock(ttyS1) called
01/13 10:47:56 yS1 do_makelock: lock='/var/lock/LCK..ttyS1'
01/13 10:47:56 yS1 lock made
01/13 10:47:56 yS1 tio_get_rs232_lines: status: RTS CTS DSR DTR
01/13 10:47:56 yS1 lowering DTR to reset Modem
01/13 10:47:57 yS1 tss: set speed to 38400 (017)
01/13 10:47:57 yS1 tio_set_flow_control( HARD )
01/13 10:47:57 yS1 waiting for line to clear (VTIME), read:
01/13 10:47:57 yS1 send: ATZ[0d]
01/13 10:47:57 yS1 waiting for ``OK''
01/13 10:47:57 yS1 got: ATZ[0d]
01/13 10:47:57 yS1 CND: ATZ[0d][0a]OK ** found **
01/13 10:47:57 yS1 send: [0d]
01/13 10:47:57 yS1 waiting for line to clear (VTIME), read:
[0d][0a][0d]
01/13 10:47:58 yS1 removing :pincggsadsdalock file
01/13 10:47:58 yS1 waiting...
01/13 10:56:17 yS1 select returned 1
01/13 10:56:17 yS1 checking lockfiles, locking the line
01/13 10:56:17 yS1 makelock(ttyS1) called
01/13 10:56:17 yS1 do_makelock: lock='/var/lock/LCK..ttyS1'
01/13 10:56:17 yS1 lock made
01/13 10:56:17 yS1 wfr: waiting for ``RING''
01/13 10:56:17 yS1 got: [0d][0a]RING[0d]
01/13 10:56:17 yS1 CND: RING
01/13 10:56:17 yS1 wfr: rc=0, drn=0
01/13 10:56:17 yS1 CND: check no: 'none'
01/13 10:56:17 yS1 send: ATA[0d]
01/13 10:56:17 yS1 waiting for ``CONNECT''
01/13 10:56:17 yS1 got: ATA[0d]
01/13 10:56:17 yS1 CND: OKATA[0d][0a]CONNECT ** found **
01/13 10:56:36 yS1 send:
01/13 10:56:36 yS1 waiting for ``_''
01/13 10:56:36 yS1 got: 38400[0d]
01/13 10:56:36 yS1 CND: CONNECT 38400
01/13 10:56:36 yS1 CND: found: 38400[0a] ** found **
01/13 10:56:36 yS1 waiting for line to clear (VTIME), read:
~[ff]}#[c0]!}!}!}
}7}"}&} }*} } }%}&} ]b[8a]}'}"}(}"}-}#}&l[8f]~
01/13 10:56:36 yS1 looking for utmp entry... (my PID: 1758)
01/13 10:56:36 yS1 utmp + wtmp entry made
01/13 10:56:36 yS1 tio_set_flow_control( HARD )
01/13 10:56:36 yS1 print welcome banner (/etc/issue)
01/13 10:56:36 yS1 getlogname (FIDO AUTO_PPP), read:~[ff]}#[c0]!
01/13 10:56:39 yS1 input finished with '\r', setting ICRNL ONLCR
01/13 10:56:39 yS1 tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
01/13 10:56:39 yS1 login: use login config file
/etc/mgetty/login.config
01/13 10:56:39 yS1 match: user='/AutoPPP/', key=''
01/13 10:56:39 yS1 match: user='/AutoPPP/', key=''
01/13 10:56:39 yS1 match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
01/13 10:56:39 yS1 login: utmp entry: a_ppp
01/13 10:56:39 yS1 looking for utmp entry... (my PID: 1758)
01/13 10:56:39 yS1 utmp + wtmp entry made
01/13 10:56:39 yS1 calling login: cmd='/usr/sbin/pppd', argv[]='pppd
auth logi
n debug crtscts modem ms-dns 208.222.179.31 lock'
01/13 10:56:39 ##### data dev=ttyS1, pid=1758, caller='none',
conn='38400', name
='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
01/13 10:56:39 yS1 setenv: 'CALLER_ID=none'
01/13 10:56:39 yS1 setenv: 'CONNECT=38400'
mgetty doesn't reset the modem until i kill pppd manually at this
point. is there a limit on the
length of commands that i can send mgetty because i see in the log where
it says 'calling login:'
it is not giving pppd all the arguments i told it, it works, but earlier
i was getting
"too few paramters" when using the ms-dns and ms-wins pppd options, or
should i specify all
my pppd options in the options file instead? all this modem/port will do
is accept incoming
calls. is it possible that my commands are being truncated by mgetty
when passing pppd the command arguments?
The machine on the remote end, is a Win9x box with a Creative Labs PCI
Modem blaster(winmodem),
both systems are in the same building.
i mailed debian-user earlier today thought i'd ask here too, just
incase. if you need more info lemme know. I have a similar problem on
my machine at home(different modem) there it isnt an issue as im usually
around to kill pppd.
any ideas would be much appreciated!!
thanks!
nate
--
Software Specialist
Westcoast Performance Products Inc. / Transit Surveillance Systems Inc.
Anaheim, CA (Phone) 714-630-4411 (Fax) 714-630-4477
(Email) nate.amsden@no--SPAM.tsswitness.com
(WWW) http://www.westcoastinc.com , http://www.tsswitness.com
---
Vice President Network Operations
Firetrail Internet Services Limited
Everett, WA (Phone) 425-348-7336
(Email) aphro@no--SPAM.aphroland.org
:: Powered by Debian GNU/Linux ::
(WWW) http://www.firetrail.com , http://www.aphroland.org