Use commands to transfer files between the development board and PC through the serial port

Online class: https://www.100ask.net/index (course viewing)
Forum: http://bbs.100ask.net/ (Academic Q&A)
Development Board: https://100ask.taobao.com/ (Taobao)
     https://weidongshan.tmall.com/ (
Tmall ) Exchange Group 1: QQ Group: 869222007 (Hongmeng Development/Linux/Embedded/Driver/Data Download)
Exchange Group 2: QQ Group: 536785813 (SCM-Embedded)
Public number: Baiwen Technology


version date Author Description
V1 2020 Wei Dongshan Excerpt from "Embedded Linux Application Development Complete Manual"

1. Use the rz command to download Windows files to the development board through the serial port

Note : The rz command is unstable and unreliable. Use it when there is no other way.

You can use the rz command to transfer the files on the PC to the development board.

First use the serial port tool to log in to the development board, and then enter the rz command on the development board. At this time, the terminal will prompt to wait for reception. At this time, a selection box will pop up with the right mouse button in Mobaxterm, click Send file using Z-modem to transfer the file, as follows As shown in the figure:
Insert picture description here
Insert picture description here
Insert picture description here
Note : The transfer rate of the rz command is too small, suitable for transferring small files, but not for large files. We still recommend the nfs mount method for file transfer.

2. Use the sz command to upload the development board files to the PC through the serial port

Note: The sz command is unstable and unreliable. Use it when there is no other way.

After the development board is booted into Linux, first execute the command "sz <file to be sent>" in the serial port, then while holding down the shift key, right-click the serial port interface with the mouse and select "Receive file using Z-modem", and finally The file box that pops up saves the file.

As shown below:
Insert picture description here

Guess you like

Origin blog.csdn.net/thisway_diy/article/details/109984270