Re: Serial Port Configuration does not work

From: Boris Samorodov <bsam_at_ipt.ru>
Date: Mon, 12 Sep 2011 09:45:04 +0400
On Sun, 11 Sep 2011 19:31:33 -1000 David Cornejo wrote:

> It's been a long time, 

It worked at 8.2-PRERELEASE for me (and seemed to be a bug
at 9.0-BETA2):
-----
% uname -a
FreeBSD hht.ipt.ru 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0 r216685: Fri Dec 24 10:16:47 MSK 2010     bsam_at_hht.ipt.ru:/z/obj/z/src/sys/HHT  amd64

% sudo stty -f /dev/cuau1
speed 57600 baud;
lflags: echoe echoke echoctl
oflags: tab0
cflags: cs8 -parenb

% sudo stty -f /dev/cuau1.init 1200 cs7

% sudo stty -f /dev/cuau1
speed 1200 baud;
lflags: echoe echoke echoctl
oflags: tab0
cflags: cs7 -parenb
-----

> but I seem to recall that you need to have the device
> open before you can configure it and that when the device closes it gets
> reset to defaults. (or maybe the open resets it).  The way I remember
> configuring it from the command line was to tip or cu to port, suspend tip,
> reconfigure, and foreground tip.

Yea, I recall doing something like this until I discovered *.init
and *.lock devices. And they proved to be very useful.

Anyway Jilles Tjoelker offered a patch that fixed the case.

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Received on Mon Sep 12 2011 - 03:45:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:17 UTC