Setting up Minicom Client - Ubuntu

From RidgeRun Developer Wiki
Revision as of 19:44, 19 July 2010 by Ezuniga (talk | contribs)

This explains how to configure serial Port Comunication,using Minicom. You may want to consider installing the 'Serial Port Terminal' program instead for a more GUI based terminal application.

PORT = The port you are going to use, it depends on each board.

  • beagleboard = ttyS0
  • Gumtix Overo = ttyUSB0
  • etc.

To install minicom run sudo apt-get install minicom or select it in Synaptic Package Manager.

host $ sudo apt-get install minicom

Once minicom is installed it will not be setup to talk properly to a board through the UART port, to change the configuration open up a terminal window and run sudo minicom -s at which point you will have to provide your root password and then you will see the minicom configuration utility.

host $ sudo minicom -s

having -s will prevent minicom from exiting abruptly if it encounter error upon invocation

Select serial port setup from the menu and press enter which will give you some options to change, type A to change the serial device, you likely want to set it to /dev/PORT so it accesses your physical UART port though this may vary from PC to PC. You will also want to change any other settings appropriate for your board such as disabling hardware flow control, a typical setup for a board using USB as comunication port should look like the following.

   +-----------------------------------------------------------------------+
   | A -    Serial Device      : /dev/PORT                                 |
   | B - Lockfile Location     : /var/lock                                 |
   | C -   Callin Program      :                                           |
   | D -  Callout Program      :                                           |
   | E -    Bps/Par/Bits       : 115200 8N1                                |
   | F - Hardware Flow Control : No                                        |
   | G - Software Flow Control : No                                        |
   |                                                                       |
   |    Change which setting?                                              |
   +-----------------------------------------------------------------------+

Save your configuration an restart minicom

+-----[configuration]------+
| Filenames and paths      |
| File transfer protocols  |
| Serial port setup        |
| Modem and dialing        |
| Screen and keyboard      |
| Save setup as dfl        |
| Save setup as..          |
| Exit                     |
| Exit from Minicom        |
+--------------------------+

Next time you could start you serial client as:

$ minicom