Embedded device file transfer

    Due to the limited resources of embedded devices, many components have been castrated, resulting in the inability to upload and download files at will.

This article summarizes several methods commonly used under routers:

 

1. scp protocol

Some routers do not start the sftp-server component, which makes it impossible to download through sftp. You can select the scp protocol (secure copy protocol) in winscp to download.

 

2. wget download

Start the webserver remotely.

Download directly through wget on the router, wget http://xxx/1.txt, so as to achieve the purpose of copying files from the remote end.

 

three tftpd

If the router provides the tftp command, upload and download files directly through this command.

1. Start the tftpd32 service on Windows, specify the directory where the file is located, and configure the IP (must be in the same network segment as the router).

2. Run the command on the router

tftp -p -l 1.pcap 192.168.4.232 upload

tftp -g -r 1.pcap 192.168.4.232 download

 

Note: tftp Simple File Transfer Protocol, based on UDP

 

4. Serial port

rz command for file upload

sz 1.txt command for file download

Note: SecureCRT -> Session Options -> Upload and download directory of X/Y/Zmodem 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326509130&siteId=291194637