Archive for January, 2011

tty settings for serial trace

January 26, 2011

# stty < /dev/ttyUSB0
speed 115200 baud; line = 0;
min = 1; time = 5;
ignbrk -brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

To get these settings, run the following:
# stty 115200 -ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke time 5 min 1 < /dev/ttyUSB0

Replace /dev/ttyUSB0 with the device of choice. I only know that 115200 is the baud rate, and everything else is uncertain to me. They are simple concepts, but I haven’t bothered to figure them out, and I’ll bet that a lot of them are unnecessary.