Setting Up Minicom

From RidgeRun Developer Wiki


If not installed use the following command:

sudo apt-get install minicom
  • In a terminal run the following command:
sudo minicom -s

to enter the setup mode.

  • Go to the Serial port setup section and you will see a screen like the following:
    +-----------------------------------------------------------------------+
    | A -    Serial Device      : /dev/tty0                                 |
    | B - Lockfile Location     : /var/lock                                 |
    | C -   Callin Program      :                                           |
    | D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 115200 8N1                                |
    | F - Hardware Flow Control : Yes                                       |
    | G - Software Flow Control : No                                        |
    |                                                                       |
    |    Change which setting?                                              |
    +-----------------------------------------------------------------------+
  • Select the correct serial port (tty0 by default) by selecting option A. After modify it press enter twice.

Note: If you are using a USB to serial adapter use ttyUSB0 instead of tty0.

  • Go to the Save setup as dfl section and press enter to save the current configuration, then select exit.
  • To close minicom type Ctrl+A Q.

Next time, just open minicom as:

sudo minicom

If you are having trouble, for example if you can only receive data from the device but can't send data, then try changing the Hardware Flow Control option to No.