In daily work, the need to transfer files between Windows PC and embedded Linux development boards is frequently encountered, and the following provides a method:
Rz,sz is a command-line tool for Linux/unix Zmodem file transfer with Windows.
First of all:
The Windows side installs Zmodem TELNET/SSH clients (such as Xshell or SECURECRT).
Linux Development Board to install Lrzsz (download lrzsz-0.12.20.tar.gz, compile installation). You can use the alias rz= "Lrz" && alias sz= "LSZ" to generate the generic alias RZ and Sz.
Then, on the Linux Development Board:
Run RZ, that is, receive files, Windows side of the Xshell will pop up the file selection dialog box, select the file to close the dialog box, the file will be uploaded to the current directory in Linux.
Running SZ filename will send files to Windows (the saved directory is preconfigured).
Tips:
1. Serial transmission speed is relatively slow, suitable for small files, for large files or the proposed use of FTP transmission.
2. The above method also applies to file transfer between Linux PC (using minicom) and embedded Linux development boards.