NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ldattach(8) alike util in NetBSD?
On Mon, Feb 16, 2015 at 11:08:16PM +0100, Fredrik Pettai wrote:
> On 16 Feb 2015, at 08:27 , Jukka Marin <jmarin%embedtronics.fi@localhost> wrote:
> > You can set serial line speed with stty:
> >
> > $ stty -f /dev/tty00 speed 115200
> >
> > When the port is closed, the parameters (including speed) return to their
> > default values.
>
> I tried this, even on another NetBSD machine with the USB serial device
> attached, but ttyU0 immediately defaults back to 9600.
> I guess the USB serial port doesn?t act like an normal serial device, and
> is therefore regarded as closed and then return back to the defaults...
You need to have the port open by some program and then set the speed. A
kludge I sometimes use is
$ sleep 3600 >/dev/tty00 &
$ stty -f /dev/tty00 speed 115200
$ echo "foobar" >>/dev/tty00
-jm
Home |
Main Index |
Thread Index |
Old Index