Difference between revisions of "Setting up Picocom - Ubuntu"

From RidgeRun Developer Connection
Jump to: navigation, search
m (Running picocom)
Line 1: Line 1:
Picocom is a minimal dumb-terminal emulation program that is great for accessing a serial port based Linux console; which is typical done when developing an embedded Linux based product.
+
Picocom is a minimal dumb-terminal emulation program that is great for accessing a serial port based Linux console; which is typical done when developing an embedded Linux based product.  
  
== Installing picocom ==
+
== Installing picocom ==
  
On Ubunt, you can simply
+
On Ubunt, you can simply  
 +
<pre>sudo apt-get install picocom
 +
</pre>
 +
== Running picocom  ==
  
<pre>
+
You need to know the name of the serial port. Also, you should have read/write permissions to the serial port. Typical serial port names are '''/dev/ttyS0''' for PCs with a built-in serial port and '''/dev/ttyUSB0''' if you are using a USB to serial dongle.
sudo apt-get install picocom
 
</pre>
 
  
==Running picocom ==
+
picocom is wonderful in that you can specify all the serial port setting as parameters on the command line. For 115,200 baud (-b 115200), 8 bits (default setting), no parity (default setting), no flow control (default setting), and with no port reset (-r) and no port locking (-l), use:  
 
+
<pre>picocom -b 115200 -r -l /dev/ttyUSB0
You need to know the name of the serial port.  Also, you should have read/write permissions to the serial port.  Typical serial port names are '''/dev/ttyS0''' for PCs with a built-in serial port and '''/dev/ttyUSB0''' if you are using a USB to serial dongle.
+
</pre>  
 
+
To exit picocom, use '''CNTL-A''' followed by '''CNTL-X'''.
picocom is wonderful in that you can specify all the serial port setting as parameters on the command line. For 115,200 baud (-b 115200), 8 bits (default setting), no parity (default setting), no flow control (default setting), and with no port reset (-r) and no port locking (-l), use:
 
 
 
<pre>
 
picocom -b 115200 -r -l /dev/ttyUSB0
 
</pre>
 
 
 
To exist picocom, use '''CNTL-A''' followed by '''CNTL-X'''.
 

Revision as of 20:41, 14 December 2010

Picocom is a minimal dumb-terminal emulation program that is great for accessing a serial port based Linux console; which is typical done when developing an embedded Linux based product.

Installing picocom

On Ubunt, you can simply

sudo apt-get install picocom

Running picocom

You need to know the name of the serial port. Also, you should have read/write permissions to the serial port. Typical serial port names are /dev/ttyS0 for PCs with a built-in serial port and /dev/ttyUSB0 if you are using a USB to serial dongle.

picocom is wonderful in that you can specify all the serial port setting as parameters on the command line. For 115,200 baud (-b 115200), 8 bits (default setting), no parity (default setting), no flow control (default setting), and with no port reset (-r) and no port locking (-l), use:

picocom -b 115200 -r -l /dev/ttyUSB0

To exit picocom, use CNTL-A followed by CNTL-X.