Serial Transmission tools in linux

Source: Internet
Author: User
In linux, the serial transmission tool-Linux Enterprise Application-Linux server application information is described below. We are still using virtual software such as cygwin or vm for Embedded Linux development. One important reason is the convenience of the Super Terminal that comes with XP, in particular, new users often cannot find or use serial port software in linux.

Two more serial port software used in linux: minicom ckermit

Minicom:

Minicom is used most often. Many linux distributions already come with their own. log on to the command terminal and enter minicom. If the system already comes with it, it will start. However, many releases are not bundled with minicom. Install it on your own. Currently the latest version of the minicom-2.3, download first decompress, enter the directory,./configure, make, make install. The installation is successful. Enter the minicom-s STARTUP configuration on the command end.

Ckermit:

Many people have reported that minicom sometimes has problems. Even u-boot developers recommend using ckermit. The latest version is 8.0.212. After downloading it, decompress it and run make linux to install it, note that wermit is displayed in the file directory after installation, so you need to execute wermit to start. If you are used to entering kermit to start, you can mv wermit/usr/local/bin/kermit, then run the kermit command to start ckermit.

Ckermit needs to be configured after startup, but it will first search for the. kermrc configuration file under the/root directory, so edit a. kermrc configuration file in advance, such as my. kermrc, which contains the following content:

Set line/dev/ttyS0 // COM1
Set speed 115200
Set carrier-watch off
Set handshake none
Set flow-control none
Robust
Set file type bin
Set file name Parameters
Set rec package 1000
Set send pack 100000 // you can increase the size to facilitate kernel download.
Set window 5
Set protocol xmodem // vivi use xmodem
Set protocol zmodem // board linux usually use rz/sz

After saving the configuration file, you can enter kermit-c to connect to the serial port.

Use the send file path to send files

Ctrl + \ + c enters the ckermit command mode, and the transfer protocol can be changed at any time.

Note that both mincom and ckermit do not contain protocols such as xmodem and zmodem. Therefore, you must install the lrzsz software. Otherwise, errors such as file transfer failure or timeout will occur.

After downloading and decompressing lrzsz, go to the directory and run./configure -- prefix =/usr/local/lrzsz. Then make, make install and finally create a soft link.

# Cd/usr/bin
# Ln-s/usr/local/lrzsz/bin/lrz rz
# Ln-s/usr/local/lrzsz/bin/lsz sz

Taking ckermit as an example, when xmodem is selected to execute send, sx is called.

VIVI times out with xmodem. Some netizens posted a solution: Modify the XMODEM time values in the param parameter and set them as large as possible.

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.