Q: mgetty/DIAL-IN problem

Thomas Mandl (Thomas.Mandl@neuroth.co.at)
Thu, 04 Feb 1999 17:28:00 +0100


This is a multi-part message in MIME format.
--------------93701508E3EF8AE4DA4DC3B0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi all you mgetty wizards,

 After reading the FAQ's and the mgetty-1.1.x documentation i could not
solve the problem on my own, so the last chance to get the job done is
posting a help message in this newsgroup.
I need help with the following problem:

I have to setup a remote *dial-in* connection using a SupraFAX Modem
V.32bis on /dev/ttyS1 (COM2). I use an Intel PC running Linux RedHat 5.2
(2.0.36). After doing the appropriate changes in /etc/inittab,
/etc/mgetty+sendfax/mgetty.config i rebooted the PC and tried to test
the dial-in connection with a seperate PC/modem. The following happened:

When dialing in (using the Hyperterminal (hyperterm.exe) on a Windows
NT4.0 workstation with a second analog FAX) i receive the string
"CONNECT 14400" and sometimes lots of unreadable characters, and at
least the message NO CARRIER. The connection is terminated. I do not
receive any login information (e.g. from /etc/issue). Using debug level
9 i tried to figure out what happened, but i was not able to find a
solution. (excerpt of logfile is appended). I suppose my modem has
problems when going off-hook but on the oter side i'm not sure if my
config files are correct or not. (I could not find any examples for a
mgetty.config file dealing with dial-in!)

Now here are my questions:
Q1: do i need an init-chat sequence (in /etc/mgetty.config) for
*dial-in*, or is this done only by using the answer-chat?

Q2: where can i specify any additional modem AT commands which mgetty
should use to initialize the modem? (e.g. L[123], X[1234], ...)?

Q3: where can i find what init sequence mgetty uses to setup my modem?
Is it the force-init-chat sequence?

Q4: Has anyone got working /etc/mgetty.config files for *dial-in*
support?

Q5: Does anyone have a suggestion for my problem. Is my modem broken
(old BIOS???)

Well i've to say i'm not a modem expert, hence i want to appologize if
my questions are too stupid.

Any help is gratly appreciated, please respond via e-mail.

May thanx in advance
Thomas

--- included files come here ---
My /etc/inittab contains:
... (stuff deleted)
S1:345:respawn:/sbin/mgetty ttyS1


*********************************
My /etc/mgetty.config contains:
# mgetty configuration file for remote dial-in support on the SupraFAX
Modem
#
# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below
# set the global debug level to "4" (default from policy.h)
debug 9

# access the modem(s) with 19200 bps
speed 19200

#  use these options to make the /dev/tty-device owned by "uucp.uucp" 
#  and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
#port-owner uucp
port-group staff
port-mode 0660

# ----- port specific section -----
# 
# Here you can put things that are valid only for one line, not the
others
#
# SupraFAX Modem v32bis 14,4k , connected to ttyS1: don't do fax, data
only
#
port ttyS1
data-only y
modem-type data
login-time 60
issue-file /etc/issue.modem
login-prompt \D\t\I\S\n\r
answer-chat "" ATA CONNECT \c
**************************************


The logfile in /var/log/mgetty.log.ttyS1 contains:
02/04 14:50:19 yS1  mgetty: experimental test release 1.1.14-Apr02
02/04 14:50:19 yS1  check for lockfiles
02/04 14:50:19 yS1   checklock: stat failed, no file
02/04 14:50:19 yS1  locking the line
02/04 14:50:19 yS1   makelock(ttyS1) called
02/04 14:50:19 yS1   do_makelock: lock='/var/lock/LCK..ttyS1'
02/04 14:50:19 yS1   lock made
02/04 14:50:19 yS1   tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
02/04 14:50:19 yS1  WARNING: DCD line still active, check modem settings
(AT&Dx)
02/04 14:50:19 yS1  lowering DTR to reset Modem
02/04 14:50:20 yS1   tss: set speed to 9600 (015)
02/04 14:50:20 yS1   tio_set_flow_control( HARD )
02/04 14:50:20 yS1   waiting for line to clear (VTIME), read: 
02/04 14:50:20 yS1  send: \dATQ0V1H0[0d]
02/04 14:50:20 yS1  waiting for ``OK''
02/04 14:50:20 yS1   got: ATQ0V1H0[0d]
02/04 14:50:20 yS1    CND: ATQ0V1H0[0d][0a]OK ** found **
02/04 14:50:21 yS1  send: ATS0=0Q0&D3&C1[0d]
02/04 14:50:21 yS1  waiting for ``OK''
02/04 14:50:21 yS1   got: [0d]
02/04 14:50:21 yS1    CND: OK[0a]ATS0=0Q0&D3&C1[0d]
02/04 14:50:21 yS1    CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found **
02/04 14:50:21 yS1   waiting for line to clear (VTIME), read: [0d][0a]
02/04 14:50:21 yS1   removing lock file
02/04 14:50:21 yS1  waiting...
02/04 14:54:38 yS1    select returned 1
02/04 14:54:38 yS1   checking lockfiles, locking the line
02/04 14:54:38 yS1   makelock(ttyS1) called
02/04 14:54:38 yS1   do_makelock: lock='/var/lock/LCK..ttyS1'
02/04 14:54:38 yS1   lock made
02/04 14:54:38 yS1  waiting for ``RING''
02/04 14:54:38 yS1   got: [0d]
02/04 14:54:38 yS1    CND: OK[0a]RING ** found **
02/04 14:54:38 yS1    CND: check no: 'none'
02/04 14:54:38 yS1    CND: check vs: all
02/04 14:54:38 yS1  send: ATA[0d]
02/04 14:54:38 yS1  waiting for ``CONNECT''
02/04 14:54:38 yS1   got: [0d]
02/04 14:54:38 yS1    CND: RING[0a]ATA[0d]
02/04 14:54:38 yS1    CND: ATA[0d][0a]CONNECT ** found **
02/04 14:54:52 yS1  send: 
02/04 14:54:52 yS1   waiting for line to clear (VTIME), read: 
9600[0d][0a][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11!
][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91][11][91]
02/04 14:54:55 yS1  clean_line: only 500 of 612 bytes logged
02/04 14:54:55 yS1    looking for utmp entry... (my PID: 487)
02/04 14:54:55 yS1   utmp + wtmp entry made
02/04 14:54:55 yS1   tio_set_flow_control( HARD )
02/04 14:54:55 yS1   print welcome banner (/etc/issue.modem)
02/04 14:54:55 yS1   getlogname (AUTO_PPP),
read:[16][10][02][1a][01][02][01][06][01][00][00][00][00][ff][02][01][03]
02/04 14:54:57 yS1   getlogname (AUTO_PPP), read:[03]
02/04 14:54:57 yS1   getlogname (AUTO_PPP), read:[01][04]
--
02/04 14:54:57 yS1  mgetty: experimental test release 1.1.14-Apr02
02/04 14:54:57 yS1  check for lockfiles
02/04 14:54:57 yS1   checklock: no active process has lock, will remove
02/04 14:54:57 yS1  locking the line
02/04 14:54:57 yS1   makelock(ttyS1) called
02/04 14:54:57 yS1   do_makelock: lock='/var/lock/LCK..ttyS1'
02/04 14:54:57 yS1   lock made
02/04 14:54:57 yS1   tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
02/04 14:54:57 yS1  WARNING: DCD line still active, check modem settings
(AT&Dx)
02/04 14:54:57 yS1  lowering DTR to reset Modem
02/04 14:54:58 yS1   tss: set speed to 9600 (015)
02/04 14:54:58 yS1   tio_set_flow_control( HARD )
02/04 14:54:58 yS1   waiting for line to clear (VTIME), read: 
02/04 14:54:58 yS1  send: \dATQ0V1H0[0d]
02/04 14:54:59 yS1  waiting for ``OK''
02/04 14:54:59 yS1   got: [0d][0a]OK ** found **
02/04 14:54:59 yS1  send: ATS0=0Q0&D3&C1[0d]
02/04 14:54:59 yS1  waiting for ``OK''
02/04 14:54:59 yS1   got: [0d]
02/04 14:54:59 yS1    CND: OK[0a]ATS0=0Q0&D3&C1[0d]
02/04 14:54:59 yS1    CND: ATS0=0Q0&D3&C1
02/04 14:55:19 yS1  timeout in chat script, waiting for `OK'
02/04 14:55:19 yS1  init chat timed out, trying force-init-chat
02/04 14:55:19 yS1  send: \d[10][03]\d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d]
02/04 14:55:23 yS1  waiting for ``OK''
02/04 14:55:23 yS1   got: [10][03]+++[0d]
02/04 14:55:23 yS1    CND: __+++ATQ0V1H0[0d]
02/04 14:55:23 yS1    CND: ATQ0V1H0[0d][0a]OK ** found **
02/04 14:55:23 yS1   force-init succeeded, retrying init-chat
02/04 14:55:23 yS1   waiting for line to clear (VTIME), read: [0d][0a]
02/04 14:55:23 yS1  send: \dATQ0V1H0[0d]
02/04 14:55:24 yS1  waiting for ``OK''
02/04 14:55:24 yS1   got: ATQ0V1H0[0d]
02/04 14:55:24 yS1    CND: OKATQ0V1H0[0d][0a]OK ** found **
02/04 14:55:24 yS1  send: ATS0=0Q0&D3&C1[0d]
02/04 14:55:24 yS1  waiting for ``OK''
02/04 14:55:24 yS1   got: [0d]
02/04 14:55:24 yS1    CND: OK[0a]ATS0=0Q0&D3&C1[0d]
02/04 14:55:24 yS1    CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found **
02/04 14:55:25 yS1   waiting for line to clear (VTIME), read: [0d][0a]
02/04 14:55:25 yS1   removing lock file
02/04 14:55:25 yS1  waiting...
02/04 15:01:52 yS1    select returned 1
02/04 15:01:52 yS1   checking lockfiles, locking the line
02/04 15:01:52 yS1   makelock(ttyS1) called
02/04 15:01:52 yS1   do_makelock: lock='/var/lock/LCK..ttyS1'
02/04 15:01:52 yS1  lock not made: lock file exists (pid=667)
02/04 15:01:52 yS1   lock file exists (dialout)!
02/04 15:01:52 yS1   lockfile found, pid=667
02/04 15:01:52 yS1    looking for utmp entry... (my PID: 630)
02/04 15:01:52 yS1   utmp + wtmp entry made
02/04 15:01:52 yS1   lockfile found, pid=667
02/04 15:02:02 yS1   lockfile found, pid=667
02/04 15:02:12 yS1   lockfile found, pid=667


Many thanks again
Thomas

-- 
Ing. Thomas Mandl            

System and Network Administrator     phone: +43 1 877 56 45/53
Thomas NEUROTH Ges.m.b.H.              fax: +43 1 876 49 20
Hietzinger Hauptstrasse 22          e-mail: Thomas.Mandl@neuroth.co.at
A-1130 Vienna/Austria              NIC-HDL: TM4373

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3i

mQCNAzRPQIQAAAEEAN8+hMTv0UYrXfQRtEtpOfSbo8mPguYTosCq1AUefVgd7pHD
zPbKObx72RvK4ere1HCRHlwypR0BPiGROolVmoEh6Z2Q+mNGNBcD+CfqYHujQ515
Q+D3OpI8HYa/Qc4RtmhOpkMzI1/Mn+c4tak1pbndqBDAVs/ZFQtlxjWyCUG1AAUR
tCBUaG9tYXMgTWFuZGwgPHRtYUBuZXVyb3RoLmNvLmF0PokAlQMFEDRPQIULZcY1
sglBtQEBrqAEAL2DSd7GKxAJKNkPa9EQYA5UY/HOB5uLywteKtj7YXEPNwLz3r9v
g1g3JC6fxjsnLIjxM9PqeDi4iTUY1XlNyPnYKmBEx0pwywLuxVx0NVPICWFmhgtC
BFhZpwc88NnnZDb/1d4HAJUKNbv7W7Tni/F1ybn7aDkfhrqK/NtODmln=07+w
-----END PGP PUBLIC KEY BLOCK-----
--------------93701508E3EF8AE4DA4DC3B0
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Thomas Mandl
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Thomas Mandl
n:              Mandl;Thomas
org:            Thomas NEUROTH Ges.m.b.H.
adr:            Hietzinger Hauptstraße 22;;;Vienna;Austria/EUROPE;A-1130 Vienna;Austria
email;internet: Thomas.Mandl@neuroth.co.at
title:          Ing.
tel;work:       +43 1 877 56 45/53
tel;fax:        +43 1 877 49 20
note:           System and Network Administrator
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:        2.1
end:            vcard


--------------93701508E3EF8AE4DA4DC3B0--