Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change the baud rate stty on MAC terminal

I need to use USB serial cable with baud rate of 115200. I tried to set the rate with stty command from MACbook terminal application as follows;

$stty -f /dev/tty.usbserial-A103BTIB 115200

and confirmed the settings as follows;

$stty -f /dev/tty.usbserial-A103BTIB -a

&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 -iutf8
    -ignbrk -brkint -inpck -ignpar -parmrk
oflags: -opost -onlcr -oxtabs -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 = ^?; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
stop = ^S; susp = ^Z; time = 0; werase = ^W;

It looks baud rate is till 9600. Could somebody show me how to change this step by step ?

like image 812
sandalwalk Avatar asked Sep 25 '22 23:09

sandalwalk


1 Answers

It seems like this is a common problem of stty command in OSX and not solved.

https://discussions.apple.com/thread/3798003?tstart=0

like image 57
sandalwalk Avatar answered Oct 04 '22 22:10

sandalwalk