Reading Data from the Serial Port

Prerequisites

  • Linux users must have Minicom installed for serial port communication.
  • Windows users must have the Putty application installed to communicate via the serial port.

Host Users

  • Linux Host
  • Windows Host

Linux Host

  1. Install the minicom software on your host device.

    sudo apt install minicom
  2. Connect the serial cable between the target device and the host device as illustrated in the image below

  3. Open a terminal and launch Minicom by running the following command:

    sudo minicom -s
  4. A configuration menu will be displayed.

  5. Under the serial port setup choose the following settings,

  • Serial device: /dev/ttyUSB0 (edit to match the system as necessary)
  • Bps/Par/Bits: 115200 8N1
  • Hardware Flow Control: No
  • Software Flow Control: No

  1. Press [ESC] to go back to the main configuration menu.

  2. Choose Exit to close the menu.

Windows Host

  1. Install the PuTTY software on your host device.

  2. Connect the serial cable as shown in the below picture from the target device to the host device.

  3. Launch the PuTTY software.

  4. Under the Serial connection choose the following,

    Serial line: COM3 (edit to match the system as necessary)

    Speed: 115200

    Click Only on clean exit

    Click Open