Getting Started With Minicom

From wiki.emacinc.com
Revision as of 19:01, 2 November 2015 by Jjung (talk | contribs)
Jump to: navigation, search
TODO: {{#todo: InProgress (10.28.2015-16:36->JJ+);(11.2.2015-18:00->JJ+)|Jeffrey Jung|OE 5.0,InProgress,JJ,MD}}

Background

minicom is a serial communication program that connects to devices through a GNU/Linux PC's serial ports. If run by calling its name without any additional arguments, it uses whatever settings have been saved for its defaults in /etc/minicom/minirc.dfl. For those using a Windows, PuTTY is a great application to make such connections between a Windows PC and one of our EMAC devices. More information about PuTTY can be found at http://wiki.emacinc.com/wiki/PuTTY.


General Information

The use of minicom is required when connecting to and EMAC board for testing purposes. This pages sets out to provide general information about using minicom as well as a guide to demonstrate using it to connect with EMAC devices.

Getting Started With Minicom

  1. If minicom has yet to be installed on your development Linux machine, use apt-get to install the minicom package

    user@developerpc:~# sudo apt-get install minicom
  2. The minicom settings will need to be changed so that the application will be able to find your device. Pull up the settings using the -s option.

    user@developerpc:~# sudo minicom -s
  3. The first thing that will need to be configured is the Serial port setup. Arrow down to the title and press the Enter key.
    [Screenshot?]

  4. To modify the different configurations, press the key corresponding to the setting. For example, press the 'A' key to modify the Serial Device. Press the 'Enter' key to save the parameters for the setting. The EMAC devices will require the Bps/Par/Bits, and flow control settings. Set Bps/Par/Bits to 115200 baud, 8 data bits and no priority. Set both flow control settings to 'No'.
    Serial Port Setup for minicom

    If you're likely to use the same serial port when connecting to your device with minicom, modify the Serial Device setting to have the path to the port. This way, you'll be able to run the command without any options or commands. Press the 'Esc' key to save the settings and to be be brought back to the configurations page

  5. The next setting that needs to be configure is the Modem and dialing. Press the 'A" key and delete its content. Hit the 'Enter' key to save the setting as blank. Do this for B-K, and H. Hit the 'Esc' key when finished deleting the content of these settings. That's all the modifications that need to be done to get minicom set up. Arrow down to Exit from Minicom and press 'Enter'.


Running Minicom

Now that everything is configured, let's make the connection to the device.

  1. Run the minicom command with the option -D and the path to the device as an argument.

    user@developerpc:~# minicom -D /dev/ttyS10

    Using the -o option will allow minicom to make the connection more quickly by not sending AT commands to initialize a modem.

  2. Log in to the device as the root user

Examples

Conclusion

Further Information

Where to Go Next
Pages with Related Content