Re: Listening to a serial port
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 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 by the software attached to the port. Malcolm Kay. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Listening to a serial port
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"