Hi all,
I’m trying to verify UART function with hardware flow control (RTS/CTS).
However, it does not work for me. Here is my steps.
- Set stty configurations
$ stty -f /dev/ttyMSM1 115200 -ixon -ixoff crtscts -echo
$ stty -f /dev/ttyMSM1 -a
speed 115200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S;
susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread -clocal crtscts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
-
Connect cable with PC and open Putty with following settings.
Speed: 115200
Data bits: 8
Stop bits: 1
Partity: None
flow control: RTS/CTS -
Input something to UART
$ echo "test" > /dev/ttyMSM1
However, I always can get the “test” string from PC side, even I set “flow control” to None in Putty.
Is there anything wrong in my test?
Thanks,
Daniel