Setting up Picocom - Ubuntu: Difference between revisions

From RidgeRun Developer Wiki
mNo edit summary
mNo edit summary
Line 11: Line 11:
==Running 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.
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 115200 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 (-p), use:
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 (-p), use:


<pre>
<pre>

Revision as of 15:42, 21 July 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 (-p), use:

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

To exist picocom, use 'CNTL-A' followed by 'CNTL-X'.