From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 17:50:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD51D1065682 for ; Mon, 8 Sep 2008 17:50:29 +0000 (UTC) (envelope-from jharan@Brocade.COM) Received: from mx20.brocade.com (mx20.brocade.com [66.243.153.19]) by mx1.freebsd.org (Postfix) with ESMTP id A1E588FC14 for ; Mon, 8 Sep 2008 17:50:29 +0000 (UTC) (envelope-from jharan@Brocade.COM) X-IronPort-AV: E=Sophos;i="4.32,359,1217833200"; d="scan'208";a="65196497" Received: from discus.brocade.com ([192.168.126.240]) by mx20.brocade.com with ESMTP; 08 Sep 2008 10:50:29 -0700 Received: from HQ-EXCHFE-2.corp.brocade.com (unknown [192.168.126.214]) by discus.brocade.com (Postfix) with ESMTP id 641F723839C; Mon, 8 Sep 2008 10:50:29 -0700 (PDT) Received: from HQ-EXCH-5.corp.brocade.com ([10.3.8.83]) by HQ-EXCHFE-2.corp.brocade.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 8 Sep 2008 10:50:29 -0700 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 8 Sep 2008 10:50:27 -0700 Message-ID: <57AC2FA1761300418C7AB8F3EA493C9701E0E2B6@HQ-EXCH-5.corp.brocade.com> In-Reply-To: <1220688694.2581.13.camel@predator-ii.buffyverse> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how do I disable the generation of XOFFs when using tip over aserial port to another device Thread-Index: AckP+DA9Ofe2u8dhTbufQGcRo7VkUwB4Z1KA References: <57AC2FA1761300418C7AB8F3EA493C9701E0DF76@HQ-EXCH-5.corp.brocade.com> <1220688694.2581.13.camel@predator-ii.buffyverse> From: "Jeff Haran" To: "Wayne Sierke" X-OriginalArrivalTime: 08 Sep 2008 17:50:29.0310 (UTC) FILETIME=[61CCEDE0:01C911DB] Cc: freebsd-questions@freebsd.org Subject: RE: how do I disable the generation of XOFFs when using tip over aserial port to another device X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2008 17:50:29 -0000 > -----Original Message----- > From: Wayne Sierke [mailto:ws@au.dyndns.ws]=20 > Sent: Saturday, September 06, 2008 1:12 AM > To: Jeff Haran > Cc: freebsd-questions@freebsd.org > Subject: Re: how do I disable the generation of XOFFs when=20 > using tip over aserial port to another device >=20 > On Fri, 2008-09-05 at 12:20 -0700, Jeff Haran wrote: > > Dear Sirs, > >=20 > > I have connected one of the RS232 ports of my PC with=20 > FreeBSD (v6.3) on > > it to a device that does not understand XON/XOFF flow=20 > control. I run the > > tip program to connect to that device. > >=20 > > How do I configure tip and/or the serial port so that the FreeBSD PC > > will NOT send XOFFs or XONs to the device? > >=20 > > When I run: > >=20 > > stty -a -f /dev/cuad0 > >=20 > > where /dev/cuad0 is the device associated with the port, it outputs > > (among other things): > >=20 > > iflags: ... ixon -ixoff ... > >=20 > > >From my reading of the stty man page, I would think that=20 > means the port > > is already configured to not send XOFFs. > >=20 > > Is there something I need to do to /etc/remote to tell tip=20 > to not enable > > XON/XOFF? > >=20 > > Please respond to this email address as I do not subscribe to the > > mailing list. > >=20 > > Thanks, > >=20 > > Jeff Haran >=20 > Hi Jeff, >=20 > I think there might be a problem with the man page for tip(1)=20 > on 6.x, as > an entry for 'tandem' was added to the tip sources about 2 years ago. > It's in the 7.x man page as you can see at: >=20 > http://www.freebsd.org/cgi/man.cgi?query=3Dtip&manpath=3DFreeBSD+7 .0-RELEASE&format=3Dhtml >=20 > in 'Variables'. 'tandem' shows up in a variable listing (~v)=20 > in tip on a > 6.x system I have here but I don't have an appropriate set up=20 > at hand to > verify that it operates correctly. >=20 > Let us know how you go with it. If it works for you then a PR would be > in order. >=20 >=20 > Wayne >=20 > [1] Extract from the tip(1) man page on 7.x: > tandem (bool) Use XON/XOFF flow control to throttle=20 > data from the remote > host; abbreviated ta. The default value is true=20 > unless the nt > capability has been specified in /etc/remote, in=20 > which case the > default value is false. >=20 Wayne, Thanks for the response. After I sent the original email, I found the tandem variable in the tip source code and toggling it off did indeed disable the generation of XOFFs. It would have been easier if tandem had been documented in the 6.3 man pages. It would also be convenient if there was some way to set these tip varibles non-interactively (e.g. via a command line option, .rc file or some such thing). I am using tip in an expect script to automate a test case and coding the expect script to generate the ~s escape sequence to turn tandem off was something less than straight forward. Jeff Haran