From owner-freebsd-questions@FreeBSD.ORG Sun Jul 20 17:54:16 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACB9A37B401 for ; Sun, 20 Jul 2003 17:54:16 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CCF043F75 for ; Sun, 20 Jul 2003 17:54:16 -0700 (PDT) (envelope-from sandshrimp@comcast.net) Received: from comcast.net (12-231-125-23.client.attbi.com[12.231.125.23](untrusted sender)) by comcast.net (rwcrmhc11) with SMTP id <2003072100541501300h61kue> (Authid: sandshrimp); Mon, 21 Jul 2003 00:54:15 +0000 Message-ID: <3F1B3961.70801@comcast.net> Date: Sun, 20 Jul 2003 17:52:49 -0700 From: Ryan Merrick User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030418 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Troy Settle References: <000901c34f03$de0a9ec0$0100a8c0@tws> In-Reply-To: <000901c34f03$de0a9ec0$0100a8c0@tws> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Listening to a serial port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 00:54:17 -0000 Troy Settle wrote: > All, > > How can I configure the serial port to listen at 1200 baud, 8N2, > XON/XOFF? > > I try using stty to set the port speed, but it doesn't take. I also > don't see how to set the stop bits. > > Any help is appreciated. > > -- > Troy Settle > Pulaski Networks > http://www.psknet.com > 540.994.4254 ~ 866.477.5638 > Pulaski Chamber 2002 Small Business Of The Year > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Look and edit the #/etc/gettytab . stty is more for altering the port while running and seeing all the configurations of the serial port. Another testing command for the terminal is #/usr/bin/tset . Using stty to change the stopbits would be: #stty -f /dev/ cstopb . for two stopbits. #stty -f /dev/ -cstopb . for one stopbits. Ryan Merrick