From owner-freebsd-hackers Thu Dec 5 21:25:10 1996 Return-Path: <owner-hackers> Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA28873 for hackers-outgoing; Thu, 5 Dec 1996 21:25:10 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id VAA28868 for <hackers@freebsd.org>; Thu, 5 Dec 1996 21:25:07 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id PAA26375; Fri, 6 Dec 1996 15:54:07 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> Message-Id: <199612060524.PAA26375@genesis.atrad.adelaide.edu.au> Subject: Re: Help! Turning off DTR on a serial device In-Reply-To: <199612060459.PAA10852@godzilla.zeta.org.au> from Bruce Evans at "Dec 6, 96 03:59:18 pm" To: bde@zeta.org.au (Bruce Evans) Date: Fri, 6 Dec 1996 15:54:07 +1030 (CST) Cc: brandon@glacier.cold.org, mtaylor@cybernet.com, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Bruce Evans stands accused of saying: > > This is why DTR should be controlled using tcsettattr() instead of the old > ioctls. Set the output speed to B0 to turn DTR off. Keep it as B0 to keep > DTR off. Set it back to the actual speed to turn DTR on. You're not keeping enough state on the problem here folks. The original poster is trying to talk to a VISA FEP which is a braindead piece of crap. One of the contributing factors here is that it wants to be talked to with DTR _NOT_ asserted. Unless my understanding of comparam() is wrong, setting a speed of 0 will program a divisor of 0 as well, which is not helpful. > Bruce -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[