My University's department of EE has built these nifty USB to JTAG converters that can also do USB to UART. I'm trying to use the UART at the moment but am having some trouble setting the speed. The converter uses an FTDI chip and shows up as /dev/ttyU0 and /dev/ttyU1 (I have no idea why both).
Everything works fine if I open kermit and set these options:
But when I tried setting the speed from the command line it didn't work:
Then I found this article which explained how to set the speed by twiddling with the /dev/ttyU1.init device file, but that method required a bunch of other options too.
Am I blind or is there little about this in the serial communications section of the handbook? How do I just set the speed of the serial connection? I've tried:
With no luck.
Cheers.
Everything works fine if I open kermit and set these options:
Code:
set line /dev/ttyU1
set speed 38400
set carrier-watch off
But when I tried setting the speed from the command line it didn't work:
% sudo stty -f /dev/ttyU1 speed 38400
Then I found this article which explained how to set the speed by twiddling with the /dev/ttyU1.init device file, but that method required a bunch of other options too.
Am I blind or is there little about this in the serial communications section of the handbook? How do I just set the speed of the serial connection? I've tried:
% sudo stty -f /dev/ttyU1.init speed 38400
% sudo stty -f /dev/ttyU1.lock speed 38400
With no luck.
Cheers.