How to Use minicom Super Terminal in Linux

Source: Internet
Author: User

System Environment: Ubuntu 9.10

1. Download and install minicom
Sudo apt-Get install minicom

2. Run minicom
Run the "sudo minicom-s" command to enter the configuration interface (or directly run "sudo minicom", Press "Enter + A", Press Z, and then press O, enter the configuration page)

+ ---- [Configuration] -------- +
| File name and Path
| File Transfer Protocol
| Serial port settings
| Modem and dialing
| Screen and keyboard
| Set to DFL
| Save the settings ..
| Exit
| Exit minicom
+ -------------------- +
3. Configure the serial port
Select "Serial Port Settings" to go to the serial port configuration page.
+ ----------------------------------------------------------------------- +
A-serial port device:/dev/ttys1
B-lock file location:/var/lock
C-Transfer Program:
D-call out program:
E-bps/PAR/bits: 115200 8n1
F-hardware Data Flow Control: No
G-Software Data Flow Control: No
Which settings do you Want to modify?
+ ----------------------------------------------------------------------- +

Select a serial port device: in Linux, The com0 port is/dev/ttys0, The COM1 port is/dev/ttys1, and my serial port is connected to the COM1 port. Therefore, select/dev/ttys1.
Set the baud rate and frame format to 115200 8n1 (115200 8n1: 115200 indicates the baud rate, 8 indicates the frame data length is 8, N indicates no parity bit, and 1 indicates 1 stop bit)

Because the serial port on my Development Board does not use hardware traffic control, set the hardware traffic control to "no ".
After setting, press enter to return to the main configuration page.

4. Save the Configuration
There are two Save options: "Save settings as DFL" and "Save settings .."
Set to DFL: Save the configuration as the default configuration. This configuration is automatically enabled when you run the "sodu minicom" command next time.
Set to ..: Save the configuration file. Enable the configuration file when "sudo minicom configuration name" is run next time. For example, if I save the configuration file as myconf, running "sudo minicom myconf" will enable the configuration.

5. Exit
Two exit options are available: exit and exit minico.
Exit: exit the configuration page and enable the current configuration.
Exit minico: Exit Software

6. Set to exit minicom at startup
After the device is started, press the "Enter key + A" button and Press X to exit minicom.

7. Enable the configuration file
Run "sudo minicom configuration name" to enable the configuration. If the configuration name is null, the default configuration is enabled.

Enter minicon next time.
The command minicom is used to enter the serial super terminal screen, while minicom-S is used to configure minicom.
Description:/dev/ttys0 corresponds to the port where serial port 0 connects you to the Development Board.

Note: If you disable minicom abnormally, several files (LCK *) will be created under/var/lock. These files prevent the running of minicom and can be restored after they are deleted.

------------------------
Use

Minicom is window-based. To display the window for the required functions, press Ctrl-A (below
Use a C-A to represent Ctrl-A, and then press each function key (a-Z or A-Z ). First press C-A, then
Press 'Z'. A Help window is displayed, which provides a brief description of all commands. Configure minicom
(-S option, or C-a, O), you can change this escape key, but now we still
Use ctrl-.

The following keys are available in all menus:
Up Arrow-up or 'K'
Down Arrow-down or 'J'
Left arrow-left or 'H'
Right arrow-right or 'l'
Choose enter
Cancel escape.

The screen is divided into two parts: the screen of the top 24 behavior terminal simulator. ANSI or VT100 escape
The sequence is interpreted in this window. If there is one row left at the bottom, the status line will be placed here;
Otherwise, the status line appears each time you press the C-A. On terminals with dedicated status lines
Use this line if the termcap information is complete and the-K flag is added.

The following commands are listed alphabetically:

The C-A press the C-A twice to send a C-A command to the remote system. If you escape characters"
If you replace it with a character other than the C-A, it works in a similar way.

A switches "add linefeed" to ON/OFF. If it is on, the Return key is displayed on the screen.
Add a linefeed before display.

B provides you with a buffer (scroll back. You can roll up by u and down by D,
Press B to flip one page, and press F to flip one page. You can also use the arrow keys and flip keys. Available S or s key
(Case Sensitive) Search for a text string in the buffer and press the n key to find the next occurrence of the string.
Press C to enter the reference mode. When the text cursor appears, you can press enter to specify the start line.
The back-to-volume mode ends and the content with the prefix '>' is sent.

C clear screen.

D. dial a number or switch to the dialing directory.

E. Switch the local display back to ON/OFF (if supported by your minicom version ).

F sends the break signal to the modem.

G ). Run a logon script.

H.

I switch the type of the escape sequence sent by the optical mark key between the common and application modes (under another parameter
Comments about status rows ).

J jumps to shell. The screen will be refreshed (redrawn ).

K clear the screen, run Kermit, and refresh the screen when returning.

L file capture switch. When it is turned on, all output to the screen will also be captured into the file.

M sends the modem initialization string. If you are online and the DCD line is set to on, the modem is initialized.
You will be asked to confirm before.

O configure minicom. Go to the configuration menu.

P communication parameters. This allows you to change the BPS rate, parity, and number of digits.

Q. Exit minicom without resetting the modem. If macros is changed and the disk is not saved,
Will provide you with a save opportunity.

R receives files. Select from various protocols (external. If filename is selected
When the directory is available, a window is displayed asking you to select a directory to download. Otherwise
The download directory defined in the filenames and paths menu.

S sends the file. Select the protocol you use in the receive command. If you do not select a file name
The window is available (set in the file transfer protocols menu ).
Dialog box. If you set it to available, a window is displayed.
The file name in your upload directory. The Space key can be used to add or unmark the file name.
Move the cursor up or down by the cursor or the J/K key. The selected file name is highlighted. The directory name is in
The square brackets show that you can press the Space key twice to move up and down the directory tree. Finally, press
Enter to send the file, or press ESC to exit.

T select terminal simulation: ANSI (color) or VT100. You can also change the backspace key, enable or
Close the status line.

W: Switch linewrap to ON/OFF.

X. Exit minicom and reset the modem. If macros is changed and the disk is not saved
You have a save opportunity.

Z: The help screen is displayed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.