How can I change UART speed?


2 posts
by tero999 » Mon Nov 05, 2012 4:06 pm
I want to change uart speed to 9600 bps. I tried just stty 9600 and got no error, but it didn't work. I am using an usb converter to uart on my pc. Am I missing something?
Posts: 6
Joined: Thu Jun 07, 2012 8:18 pm
by joan » Mon Nov 05, 2012 5:01 pm
man stty

joan@pluto:~$ stty -F /dev/ttyAMA0
speed 9600 baud; line = 0;
-brkint -imaxbel
joan@pluto:~$ stty -F /dev/ttyAMA0 19200
joan@pluto:~$ stty -F /dev/ttyAMA0
speed 19200 baud; line = 0;
-brkint -imaxbel
joan@pluto:~$
User avatar
Posts: 4132
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK