From owner-freebsd-hackers Sun Jul 23 16:53:19 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id QAA19736 for hackers-outgoing; Sun, 23 Jul 1995 16:53:19 -0700 Received: from sovcom.kiae.su (sovcom.kiae.su [144.206.136.1]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id QAA19729 for ; Sun, 23 Jul 1995 16:53:14 -0700 Received: by sovcom.kiae.su id AA14805 (5.65.kiae-1 ); Mon, 24 Jul 1995 02:45:39 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Mon, 24 Jul 95 02:45:39 +0300 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id DAA01871; Mon, 24 Jul 1995 03:41:49 +0400 To: bde@zeta.org.AU, terry@cs.weber.edu Cc: hackers@freebsd.org, harry@hgac.com, jkh@violet.berkeley.edu References: <199507232218.IAA23750@godzilla.zeta.org.au> In-Reply-To: <199507232218.IAA23750@godzilla.zeta.org.au>; from Bruce Evans at Mon, 24 Jul 1995 08:18:28 +1000 Message-Id: Organization: Olahm Ha-Yetzirah Date: Mon, 24 Jul 1995 03:41:49 +0400 (MSD) X-Mailer: Mail/@ [v2.40 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka "Andrey A. Chernov, Black Mage" X-Class: Fast Subject: Re: dial up at > 9600 baud Lines: 52 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 2121 Sender: hackers-owner@freebsd.org Precedence: bulk In message <199507232218.IAA23750@godzilla.zeta.org.au> Bruce Evans writes: >>Ok, I finaly understand what you say now :-) >>So, described situation is possible, only when some dialout application >>previously send chars at different speed and modem remember >>last speed. So, my comhardclose() fix with comparam(com->it_in) >>isn't enough, because driver need to send AAAT\r command to modem >>after it additionly :-( >It might be enough to send a single character while carrier is down >The modem has to determine the speed before it can read an `A' :-). >Are your extra A's to help it do this?. Some modem can determine before, some not. Some modem determine speed only when AT-command issued, not for any char. Just experimenting with Microcom: 3 A always enough to determine changed speed (A appearse), 2 A is enough in 90% cases, >What determines the speed >after the following sequence: > 1) turn on modem > 2) open port (don't write) > 3) wait for carrier > 4) write to port ? It depends on what modem does on power on, if it does ATZ it will be ATZ-configured speed, or last speed in other case. >The Linux driver has (had?) some optional support to help getty handle >this. After the last close of cuaa, sleeping opens of ttyd return >EAGAIN. This gives getty a chance to send the AT command. Does EAGAIN allowed on open by POSIX? >>So, any dialout program which change serial speed becomes >>getty-killer. We need to document locked devices to getty/gettytab >>manpage too as mandatory to not allow speed changes. >The modem is supposed to reset itself when DTR is dropped. We >don't document this but it should be the hardware default. It It isn't default modem setting in 100% modems which I see. We should document it somewhere among with disabling CONNECT string in answering mode. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849