Just found this interesting tidbit....
Code:# stty -f /dev/ttyu5.lock 57600
How do I see what it is currently set to? I presumed that that the ttyu5.init file would have some initialisation settings but have no idea how to read the files in the /dev directory.
After further reading, I'm not sure that what it says is correct...The link to your interesting tidbit in the Handbook tells you that too
stty -a -f /dev/cuaU0
show the current settings for /dev/cuaU0. ie:-speed 9600 baud; 0 rows; 0 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl tab0 -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
stty -f /dev/cuaU0.lock 57600
does not seem to change the speed since running the previous command shows the speed remains the same as it was.Presumably there is a default baud rate for every com port defined on a system.