Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2003 18:00:29 +0930
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        "Troy Settle" <troy@psknet.com>, <freebsd-questions@freebsd.org>
Subject:   Re: Listening to a serial port
Message-ID:  <200307211800.29390.malcolm.kay@internode.on.net>
In-Reply-To: <000901c34f03$de0a9ec0$0100a8c0@tws>
References:  <000901c34f03$de0a9ec0$0100a8c0@tws>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Jul 2003 06:44, 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.

It's not altogether clear what you are trying to do.
If you want to run a login session on the port then look at=20
Ryan Merrick's response.

If you want to use it as a simple port say /dev/cuaa0 then
stty only works after the port is allocated. Try setting instead
/dev/cuaia0 using stty. This sets the defaults for the /dev/cuaa0
port which take effect when the port is opened unless over ridden=20
by the software attached to the port.

Malcolm Kay.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307211800.29390.malcolm.kay>