5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



Raspberry pi 4WD Robot Tutorial 2.4 Remote transfer file

Posted by Fiona Su on

Remote transfer file

!We recommend using the Method 1

Method 1: 

WinSCP file transfer between Raspberry Pi and windows 

We need to transfer files between Windows and Raspberry Pi two different systems. Since this is two different file systems, we need to use the SSH service to transfer files across systems.    

1.Install WinSCP

WinSCP official website:https://winscp.net/eng/download.php 

(This software in the Tool folder.)

 image.png

Double-click to open the program and start the installation, click “Accept” to accept the agreement, and then follow the prompts to install.

image.png 

image.png 

image.png 

image.png 

After install is complete, we can see that a WinSCP shortcut on the desk image.png.

2. Transfer file

The following login screen will appear after opening the WinSCP software.File protocol:choose SFTP,

Host name:IP Address of your Raspberry Pi

Port number:22 (default)

User name:pi

Password:(your password).

!Note: if you use image we provided, 

IP address:192.168.50.1  User name:pi   Password: yahboom

Your computer need to connect WIFI of car,  Name of WIFI is: Yahboom_Car   Password: 12345678

image.png 

 Then, we need to click 【Login】.

After the login is successful, the following interface will be displayed. On the left is the folder of the windows computer system, and on the right is the folder of the Raspberry Pi system.

image.png 

File transfer has three modes of operation

1. The first is to drag the file directly from the left to the right, or from the right to the left, the system will automatically copy a file transfer.

2. Clicking on a file with mouse and then press the F5 on the keyboard, this file will copy to the other side.

3. Select the file and click the right button of mouse.

If the file is transferred from the windows computer system to the Raspberry Pi system, you need to click Upload. As shown in Figure 1 below. If the file is transferred from the Raspberry Pi system to the windows computer system, you need to click Download. As shown in Figure 2 below.

image.png

Figure 1

image.png

Figure 2

If the system displays the prompt as shown below, you can choose “Do not to show this dialog box again” and click OK, the file is automatically transferred.

image.png 

!!!Note: File transfer requires the computer and the Raspberry Pi to be on the same LAN, and the Raspberry Pi has the SSH service enabled.

If the failure to the transfer file is generally not enough permissions on the Raspberry Pi side, we only need to give the highest authority.

We can enter the command as shown below to give the file the highest permission.

 chmod 777 Raspberry Pi directory name

Eg:chmod 777 helloword.c

Method 2:

We need to transfer files between Windows and Raspberry Pi two different systems. Since this is two different file systems, we need to use the SSH service to transfer files across systems.

1)You need to click this button, as shown in the figure below.

image.png 

2)You will see an interface,as shown in the figure below.

image.png 

You can transfer files between two systems by dragging the folder directly.

If the system prompts this error: Encountedred 1 error during the transfer.

May be because of two question:

1) Question1:In the Raspberry Pi system, the files without permissions.

Solution: chmod 777 file name

(For example:chmod 777 SmartCar)

2) Question2: In the Windows system, the files without permissions.

Solution: We can move this file to the desktop, and the path and file name of the files with ( )in the Windows system cannot be transferred. 

For example: You need to transfer file_A in the Windows system to file_B in the Raspberry Pi system. If the system prompts this error: Encountedred 1 error during the transfer. You need to input chmod 777 file_B and move file_A without( ) to the desktop.

0 comments

Leave a comment

Please note, comments must be approved before they are published