system:console:stty
Differences
This shows you the differences between two versions of the page.
| system:console:stty [2007/05/17 14:32] – external edit 127.0.0.1 | system:console:stty [2023/01/24 12:54] (current) – phil | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| Example: | Example: | ||
| stty stop ^Y | stty stop ^Y | ||
| - | **NB: | + | **NB: |
| ===== The '' | ===== The '' | ||
| - | You typed //C-s//? Terminal hangs? | + | You typed //C-s//? Terminal hangs? |
| - | Do not even try, typing '' | + | Do not even try, typing '' |
| - | To get the solution watch at '' | + | The output of '' |
| % stty -a | % stty -a | ||
| speed 38400 baud; rows 51; columns 89; line = 54; | speed 38400 baud; rows 51; columns 89; line = 54; | ||
| Line 36: | Line 36: | ||
| opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 | 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 | isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke | ||
| - | Interesting are the values for '' | + | The values for '' |
| start = ^Q; | start = ^Q; | ||
| stop = ^S; | stop = ^S; | ||
| - | So, typing //C-q// should | + | Therefore, typing //C-q// should |
| + | |||
| + | ===== Serial Terminal Baud Rate ===== | ||
| + | |||
| + | '' | ||
| + | value was accepted. This may be used to find out what max baud rate a serial | ||
| + | port supports. A simple script could loop over: | ||
| + | |||
| + | # stty -F /dev/ttyX < | ||
| + | |||
| + | checking the return value. With regular serial ports, max speed is typically | ||
| + | 115200baud. USB-serial-adapters may do more, relevant with some OBD2-adapters | ||
| + | for car diagnostics. | ||
| + | |||
| + | Standard baud values are found in /// | ||
| + | /// | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | #define B19200 | ||
| + | #define B38400 | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
system/console/stty.txt · Last modified: by phil
