Using serial debug port to communicate
From IGEP - ISEE Wiki
The simplest way to set up your IGEP board is with a console session, using your laptop or PC as the terminal.
Contents
Read before
Read this article about how to setup de IDC10 cable between your computer and your IGEP Processor Board.
Setting up your serial debug session using putty
Overview
PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers. You can download it from: www.putty.org
Setting up connection
- Open PuTTy.
- Choose Serial line. If you are running PuTTy on Windows, the Serial line will be like (COM1 or COM2 or COM3, etc.). If you are running PuTTy on Ubuntu, the Serial line will be like (/dev/ttyS0 or /dev/ttyS1 or /dev/ttyS3, etc.). Note that if you are using a USB->Serial converter, the Serial line will be like /dev/ttyUSB0
- Configure Speed to 115200
- Select Serial Connection type
- Press on Open button
You will successfully started the console.
Setting up your serial debug session using kermit
Overview
C-Kermit is a modem program, a Telnet client, an Rlogin client, an FTP client, an HTTP client, and on selected platforms, also an X.25 client. It can make its own secure Internet connections using IETF-approved security methods. More information at columbia.edu/kermit/
Setting up connection
Start kermit on your host machine in configuration mode:
kermit -l /dev/ttyUSB0
C-Kermit>set flow-control none C-Kermit>set carrier-watch off C-Kermit>set speed 115200 /dev/ttyUSB0 C-Kermit>connect Connecting to /dev/ttyUSB0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options.
Hint: Create a .kermrc configuration file in your home directory with these contents to set these options each time you connect:
set line /dev/ttyUSB0 set flow-control none set carrier-watch off set speed 115200 connect
Setting up your serial debug session using screen
Overview
Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). More information at [Kermit man page].
Setting up connection
To quickly connect to a board using Gnu Screen, execute the following:
screen /dev/ttyS0 115200
Setting up your serial debug session using minicom
Overview
Minicom is a communication program which somewhat resembles the shareware program TELIX but is free with source code and runs under most unices. Features include dialing directory with auto-redial, support for UUCP-style lock files on serial devices, a separate script language interpreter, capture to file, multiple users with individual configurations, and more.
Setting up connection
Start minicom on your host machine in configuration mode. As root:
minicom -o -s -w
- A menu of configuration should appear. Use the Down-arrow key to scroll down and select the Serial port setup option, and press Enter.
- Verify that the listed serial port is the same one that is connected to the target board. If it is not, press A, and enter the correct device. This is /dev/ttyS0 on most Linux distributions.
- Set the Bps/Par/Bits option by pressing the letter E and using the next menu to set the appropriate values. You press the key that corresponds to the value 115200, then press Enter.
- Set Hardware flow control to No using the F key.
- Set Software flow control to No using the G key.
- Press Enter to return to the main configuration menu, and then press Esc to exit this menu.
- Reset the board, and wait for a moment. If you do not see output from the board, press Enter several times until you see the prompt. If you do not see any output from the board, and have verified that the serial terminal connection is setup correctly, contact your board vendor.