ARM development board embedded Linux system and host PC transmit files through serial port

Source: Internet
Author: User

File transmission through serial ports between the embedded Linux System and the host

I think if I want to download something from my PC to the embedded Linux System of the Development Board, many people will first think of using network tools such as TFTP SFTP to download it from the network port. But if the network is not used, what should I do if I can only download it through the serial port? At this time, there are two tools that can help you: zmrx and zgp, and lsz and lrz. I personally think that zmrx/zgp is not stable with lsz/lrz. We recommend that you use the latter. The following describes how to use lsz/lrz.

1. Compile lrzsz and download it to the Development Board

Slave! Get two executable files, SZ, RZ (or lsz, lrz), and download them to the/bin directory of the Linux System of the Development Board.

Ii. Case 1: Windows OS for PC

If the PC is equipped with a Windows operating system, you can use the Super Terminal that comes with the system for serial communication tools. The following describes how to transfer files.

1. Development Board --> PC

Enter SZ filename on the Development Board.

On the PC, click "transfer"> "receive file" in the Super Terminal menu, select the download location and the zmodem and crash recovery protocol, and click "receive.

2. PC --> Development Board

Enter the/tmp directory on the Development Board, and then enter Rz.

On the PC, click "transfer"-> "Send File" in the Super Terminal menu, select the target file and the zmodem and the crash recovery protocol, and click "send.

 

Reprinted from: http://blog.chinaunix.net/uid-23189697-id-2527210.html

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.