[time-nuts] OT : different Rx and Tx baud rate on same port

Hal Murray hmurray at megapathdsl.net
Sat Dec 7 20:18:32 UTC 2013


bg at lysator.liu.se said:
> Looking at the "stty" unix command. It seems clear that split baud rates has
> been supported at one time. 

On Linux, man termios gives lots of API details.

On NetBSD and FreeBSD, that gets an overview.  man tcsetattr gets the API 
details.

If you use stty to change things, the new info is sticky.  So if you have a 
program that is all set to go except that the baud rates aren't right and 
that program doesn't smash the baud rates, you can set them with stty and 
your program should work.  I haven't tried it with split baud rates, but the 
normal (non-split) case works.

If your gizmo uses simple ASCII, you can test things with cat /dev/wherever
and things like this on another terminal
  echo "blah blah..." > /dev/wherever


-- 
These are my opinions.  I hate spam.






More information about the Time-nuts_lists.febo.com mailing list