Problem with mgetty and USRobotics Courier when >2400 bp
sbromwic@usr.com (sbromwic@usr.com)
Fri, 2 May 1997 07:43:15 -0500
Hmmm... Interesting. It all looks OK, so I'd tend to guess you've
recently upgraded the SDL and it needs a hard reset. Try putting dip
10 down (ON), power cycle the modem, send it ATZ&W then AT&F1&W. Put
dip 10 back up (OFF), power cycle again and try once more. If you
don't get any joy, see if ATI6I11 after it drops the call gives any
info.
Cheers, Steve
______________________________ Reply Separator _________________________________
Subject: Problem with mgetty and USRobotics Courier when >2400 bps
Author: mirsad.redzepovic@netconnection.se at Internet
Date: 1/5/97 11:24 PM
Hi!
I have some major problems getting mgetty and dial-in to work with any speed
greater than 2400 bps.
SYSTEM: Compaq Prosignia 200 80MB/2.5GIG
Linux 2.0.27
Mgetty 1.0.0
USRobotics Courier Dual Standard V.34 Fax vith V34Bis
Two Boca I/O650 adapters with two serial ports each
PROBLEM: I can dial out on every port, with various speeds:
2400,14400,28800...
I can also dial in on every port, but only at 2400 bps.
If I try anything faster I get "NO CARRIER" error.
I have tryed hundreds of init-chat strings and
various gettydefs and inittabs.
I have even tryed to remove the BOCA-adapters and test on
the original serial port, with exactly the same result:
2400 ok, anything faster ---> "NO CARRIER"
I am submitting the following files (in order):
/var/adm/mgetty_log_ttyS0
/etc/inittab
/etc/rc.d/rc.local
/etc/gettydefs
/etc/mgetty.config
in mgetty_log_ttyS0 you can clearly see that I can dial-in
at 2400 the first time. But when I try with higher speed, 9600
i get "NO CARRIER"
Thanks in advance for any help!
/Mirsad
#######################/var/adm/mgetty_log_ttyS0
04/27 05:35:26 yS0 mgetty: official release 1.0.0
04/27 05:35:26 yS0 check for lockfiles
04/27 05:35:26 yS0 checklock: stat failed, no file
04/27 05:35:26 yS0 locking the line
04/27 05:35:26 yS0 makelock(ttyS0) called
04/27 05:35:26 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
04/27 05:35:26 yS0 lock made
04/27 05:35:27 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR
04/27 05:35:27 yS0 lowering DTR to reset Modem
04/27 05:35:27 yS0 tss: set speed to 115200 (10002)
04/27 05:35:27 yS0 tio_set_flow_control( HARD )
04/27 05:35:27 yS0 waiting for line to clear (VTIME), read:
04/27 05:35:28 yS0 send: ATE1Q0V1S0=0[0d]
04/27 05:35:28 yS0 waiting for ``OK''
04/27 05:35:28 yS0 got: ATE1Q0V1S0=0[0d][0d][0a]OK ** found **
04/27 05:35:28 yS0 send: AT&C1&S0&D2S13=1[0d]
04/27 05:35:28 yS0 waiting for ``OK''
04/27 05:35:28 yS0 got: [0d][0a]AT&C1&S0&D2S13=1[0d][0d][0a]OK ** found **
04/27 05:35:28 yS0 waiting for line to clear (VTIME), read: [0d][0a]
04/27 05:35:28 yS0 removing lock file
04/27 05:35:28 yS0 waiting...
04/27 05:37:03 yS0 checking lockfiles, locking the line
04/27 05:37:03 yS0 makelock(ttyS0) called
04/27 05:37:03 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
04/27 05:37:03 yS0 lock made
04/27 05:37:03 yS0 waiting for ``RING''
04/27 05:37:03 yS0 got: [0d][0a]RING ** found **
04/27 05:37:03 yS0 send: ATA[0d]
04/27 05:37:03 yS0 waiting for ``CONNECT''
04/27 05:37:03 yS0 got: [0d][0a]ATA[0d][0d][0a]CONNECT ** found **
04/27 05:37:13 yS0 send:
04/27 05:37:13 yS0 waiting for line to clear (VTIME), read:
1200/ARQ/LAPM/V42BIS[0d][0a]
04/27 05:37:13 yS0 utmp + wtmp entry made
04/27 05:37:13 yS0 tio_set_flow_control( HARD )
04/27 05:37:13 yS0 getlogname (no opts), read:root[0d]
04/27 05:37:17 yS0 input finished with '\r', setting ICRNL ONLCR
04/27 05:37:17 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
04/27 05:37:17 yS0 match: user='root', key='/FIDO/'
04/27 05:37:17 yS0 match: user='root', key='*'*** hit!
04/27 05:37:17 yS0 calling login: cmd='/bin/login', argv[]='login root'
04/27 05:37:17 ##### data dev=ttyS0, pid=109, caller=none, conn='', name='',
cmd='/bin/login', user='root'
04/27 05:37:17 yS0 setenv: 'CALLER_ID=none'
04/27 05:37:17 yS0 setenv: 'CONNECT='
--
04/27 05:37:29 yS0 mgetty: official release 1.0.0
04/27 05:37:29 yS0 check for lockfiles
04/27 05:37:29 yS0 checklock: no active process has lock, will remove
04/27 05:37:29 yS0 locking the line
04/27 05:37:29 yS0 makelock(ttyS0) called
04/27 05:37:29 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
04/27 05:37:29 yS0 lock made
04/27 05:37:30 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR
04/27 05:37:30 yS0 lowering DTR to reset Modem
04/27 05:37:30 yS0 tss: set speed to 115200 (10002)
04/27 05:37:30 yS0 tio_set_flow_control( HARD )
04/27 05:37:30 yS0 waiting for line to clear (VTIME), read:
04/27 05:37:31 yS0 send: ATE1Q0V1S0=0[0d]
04/27 05:37:31 yS0 waiting for ``OK''
04/27 05:37:31 yS0 got: ATE1Q0V1S0=0[0d][0d][0a]OK ** found **
04/27 05:37:31 yS0 send: AT&C1&S0&D2S13=1[0d]
04/27 05:37:31 yS0 waiting for ``OK''
04/27 05:37:31 yS0 got: [0d][0a]AT&C1&S0&D2S13=1[0d][0d][0a]OK ** found **
04/27 05:37:31 yS0 waiting for line to clear (VTIME), read: [0d][0a]
04/27 05:37:31 yS0 removing lock file
04/27 05:37:31 yS0 waiting...
04/27 05:37:53 yS0 checking lockfiles, locking the line
04/27 05:37:53 yS0 makelock(ttyS0) called
04/27 05:37:53 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
04/27 05:37:53 yS0 lock made
04/27 05:37:53 yS0 waiting for ``RING''
04/27 05:37:53 yS0 got: [0d][0a]RING ** found **
04/27 05:37:53 yS0 send: ATA[0d]
04/27 05:37:53 yS0 waiting for ``CONNECT''
04/27 05:37:53 yS0 got: [0d][0a]ATA[0d][0d][0a]NO CARRIER
04/27 05:38:54 yS0 found action string: ``NO CARRIER''
04/27 05:38:54 ##### failed A_FAIL dev=ttyS0, pid=155, caller=none, conn='',
name=''
04/27 05:38:54 yS0 removing lock file
---
#############end
################/etc/inittab
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
#
# Default runlevel.
id:3:initdefault:
# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S
# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K
# Script to run when going multi user.
rc:23456:wait:/etc/rc.d/rc.M
# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -rfn now
# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0
# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6
# What to do when power fails (shutdown to single user).
pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"
# If power is back before shutdown, cancel the running shutdown.
pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"
# If power comes back in single user mode, return to multi user mode.
ps:S:powerokwait:/sbin/init 5
# The getties in multi user mode on consoles an serial lines.
#
# NOTE NOTE NOTE adjust this to your getty or you will not be
# able to login !!
#
# Note: for 'agetty' you use linespeed, line.
# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
# Serial lines
#-------------------------------------------------------------------
s1:12345:respawn:/usr/local/sbin/mgetty ttyS0
s2:12345:respawn:/usr/local/sbin/mgetty ttyS1
s3:12345:respawn:/usr/local/sbin/mgetty ttyS2
s4:12345:respawn:/usr/local/sbin/mgetty ttyS3
#-------------------------------------------------------------------
# Dialup lines
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100
#d3:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS2 vt100
#d4:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS3 vt100
# Runlevel 4 used to be for an X-window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:wait:/etc/rc.d/rc.4
###################### End of /etc/inittab
##################/etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
# Running gpm
echo "Running gpm..."
gpm -t ps2
echo "/bin/setserial /dev/ttyS0 spd_vhi
/bin/setserial /dev/ttyS1 spd_vhi
/bin/setserial /dev/ttyS2 spd_vhi
/bin/setserial /dev/ttyS3 spd_vhi"
/bin/setserial /dev/ttyS0 spd_vhi
/bin/setserial /dev/ttyS1 spd_vhi
/bin/setserial /dev/ttyS2 spd_vhi
/bin/setserial /dev/ttyS3 spd_vhi
#####################end /etc/rc.d/rc.local
###########################/etc/gettydefs
#
# This file contains the startup and final flags for the
# tty lines. Each line starts with a SPEED value; this is
# the same SPEED that you pass to [uu]getty. Note that the
# SPEED identifier is just a string; use whatever names
# you want.
#
# The blank lines in this file are important (so I hear).
#
# The flags are the same flags you would pass to the stty
# program.
#
# Format: <speed># <init flags> # <final flags> #<login string>#<next-speed>
#
#
# Virtual Console entry
VC# B9600 SANE CLOCAL # B9600 SANE -ISTRIP CLOCAL #@S login: #VC
# 38400 fixed baud Dumb Terminal entry
DT38400# B38400 CS8 CLOCAL CRTSCTS # B38400 SANE -ISTRIP CLOCAL CRTSCTS #@S
login: #DT38400
# 19200 fixed baud Dumb Terminal entry
DT19200# B19200 CS8 CLOCAL # B19200 SANE -ISTRIP CLOCAL #@S login: #DT19200
# 9600 baud Dumb Terminal entry
DT9600# B9600 CS8 CLOCAL # B9600 SANE -ISTRIP CLOCAL #@S login: #DT9600
# 230400 fixed-baud modem entry
F230400# B230400 CS8 CRTSCTS # B230400 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#F230400
# 115200 fixed-baud modem entry
F115200# B115200 CS8 CRTSCTS # B115200 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#F115200
# 57600 fixed-baud modem entry
F57600# B57600 CS8 CRTSCTS # B57600 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#F57600
# 38400 fixed-baud modem entry
F38400# B38400 CS8 CRTSCTS # B38400 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#F38400
# 19200 fixed-baud modem entry
F19200# B19200 CS8 CRTSCTS # B19200 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#F19200
# 9600 fixed-baud modem entry
F9600# B9600 CS8 CRTSCTS # B9600 SANE -ISTRIP HUPCL CRTSCTS #@S login: #F9600
# 2400 fixed-baud modem entry
F2400# B2400 CS8 CRTSCTS # B2400 SANE -ISTRIP HUPCL CRTSCTS #@S login: #F2400
# 230400 autobauding Modem entry with hard flow control
230400# B230400 CS8 CRTSCTS # B230400 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#115200
115200# B115200 CS8 CRTSCTS # B115200 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#57600
57600# B57600 CS8 CRTSCTS # B57600 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#38400
38400# B38400 CS8 CRTSCTS # B38400 SANE -ISTRIP HUPCL CRTSCTS #@S login:
#19200
19200# B19200 CS8 CRTSCTS # B19200 SANE -ISTRIP HUPCL CRTSCTS #@S login: #9600
9600# B9600 CS8 CRTSCTS # B9600 SANE -ISTRIP HUPCL CRTSCTS #@S login: #2400
2400# B2400 CS8 CRTSCTS # B2400 SANE -ISTRIP HUPCL CRTSCTS #@S login: #230400
#######################end /etc/gettydefs
######################## /etc/mgetty.config
# mgetty configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored
# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below
data-only y
# set the global debug level to "5" (which is quite verbose)
debug 5
# set the local fax station id
#fax-id 49 89 xxxxxxxx
# access the modem(s) with 38400 bps
#speed 38400
speed 115200
#autobauding yes
# the /dev/tty-device is owned by uucp.uucp and mode "rw-rw-r--" (664)
port-owner uucp
port-group uucp
port-mode 0664
# incoming faxes are owned by "root.uucp" and mode "rw-r-----" (640)
#fax-owner root
#fax-group uucp
#fax-mode 0640
# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the others
#
# Zoom V.FX 28.8, connected to ttyS0: don't do fax, less logging
#-----------------------------------init
#US Robotics Courier V.32bis
#InitString=AT&FX4&A3&C1&D2&M4&H1&K1&B1&R2
#BPS=38400
#US Robotics Courier V.FC/V.34
#InitString=AT&FB0X4&A3&C1&D2&M4&H1&K1&B1&R2S7=60
#BPS=57600
#-----------------------------------com1
port ttyS0
answer-chat "" ATA CONNECT \c
init chat "" AT&FX4Q0&D2&C1&B1&A0S0=0S2=043
#init-chat "" ATZ
init-chat "" ATE1Q0V1S0=0 OK AT&C1&S0&D2S13=1&H1&F1 OK
#init-chat "" \d\d\d\d\d+++\d\d\d\d\dAT&FX4&A3&C1&D2&M4&H1&K1&B1&R2 OK
#init-chat "" \d\d\d+++\d\d\dATQ0E1V1H0 OK ATLOMOSO=0 AT&K3 OK
#init-chat "" ATQ0E1V1H0\d OK \dATL0M0S0=0 \dOK \dAT&K3 OK
#init-chat "" AT&FX4&A3&C1&D2&M4&H1&K1&B1&R2
#init-chat "" ATE1 OK V1 OK X4 OK S0=0 OK S15=8 OK B0 &A3&B1&C1&H1&M4&N0&R2
#init-chat "" AT&FX4 &A3 &C1&D2&M4&H1&K1&B1&R2
#init-chat "" AT &FB0X4 &A3 &C1 &D2 &M4 &H1 &K1 &B1 &R2 S7=60
#--------------------------------------------
#-------------------com2
port ttyS1
answer-chat "" ATA CONNECT \c
init-chat "" ATZ
#init-chat ""
ATB0E1F1L2M1Q0V1X4Y0&A3&B1&C1&D2&G0&H1&I0&K1&M4&N0&P0&R2&S0&T5&Y1S13=1
#init-chat "" ATS0=0Q0&M4&D2&H1&N0&K1&B1&R2S19=10S32=6S41=100X0
#----------------------------
#----------------com3
port ttyS2
answer-chat "" ATA CONNECT \c \r
init-chat "" ATE1Q0V1&D2S0=0 OK AT&C1&S0 OK ATS13=1 OK
#----------------------
#----------------com4
port ttyS3
answer-chat "" ATA CONNECT
init-chat "" AT OK
#init-chat "" AT&FB0X4&A3&C1&D2&M4&H1&K1&B1&R2S7=60 OK
#----------------------
############################### end /etc/mgetty.config
.