Sample Header Ad - 728x90

set baud speed for tty

47 votes
4 answers
174919 views
How do I set the baud speed for a specific tty (in this case a serial port)? I tried using stty -F /dev/tty.iap ispeed 19200 But get the error Invalid argument for every speed I try (2400, 4800, etc.) except 9600 (the default). I can successfully change the speed in a C program using cfsetspeed. Do I need to make a change somewhere else, like the ttys file?
Asked by newenglander (643 rep)
May 5, 2012, 07:47 AM
Last activity: Mar 29, 2023, 02:05 PM