Tired of setting up and switching ports in minicom and want something simple? welcome to picocom
setup a script such as ~/bin/ttyUSB0
picocom -f n -p n -b 115200 -i -r -l /dev/ttyUSB0
and next time, just run ttyUSB0 and viola u have a terminal.. ctrl+a followed by ctrl+q quits..
Links for 2017-03-12 [del.icio.us]
-
- Sponsored: 64% off Code Black Drone with HD Camera
Our #1 Best-Selling Drone--Meet the Dark Night of the Sky!
7 years ago
6 comments:
If you don't mind to use X, there's also a nice alternative: gtkterm
g.|s.
ofcourse... picocom is useful esp if you are using putty to ssh into the machine ;)...
thanks for the picocom advice, it's a savior from the vicious minicom. ;p
if you just want to look at output,
using stty and direct file access
Example:
stty --save -F /dev/ttyUSB0
1:0:18b2:0:3:1c:7f:15:1:5:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
This gives you the settings which you can use to reprogram the tty at a later point of time. so my fav technique is to first use minicom to set everything up, dump with stty as above..
I=`sudo stty --save -F /dev/ttyUSB0`
stty -F /dev/ttyUSB0 $I
now to dump the serial port:
cat /dev/ttyUSB0
or write to serial port:
echo "ls">/dev/ttyUSB0
Thank you for your posting. After reading and trying it, yes, much better than minicom. Minicom truncate the boot env variables of my freescale board ("printenv" output), which has very long env variables.
Thanks.
minicom has an option to do line wrap if you like - ctrl+a w
Post a Comment