3. Remote control

3. Remote control3.1. Remote Login3.2. VSCode3.3. Transfer files3.3.1 VM and RDK-X3 board3.3.2 Windows and the RDK-X3 board

【Note

3.1. Remote Login

Turn on the car power supply, and the car IP will be displayed on the OLED screen. For example, if the IP address of my car is 192.168.2.67, open the terminal in the virtual machine and type

1685327665302

The following may occur during the initial connection: Enter yes and press Enter.

1685609802134

Enter the password [yahboom], press Enter, you can remotely connect to the car.

1685327954765

3.2. VSCode

The above operations realize the development of SSH remote connection car, and then build a visual development environment on the PC side.

Open VSCode on the VM, click "Extend" plug-in on the left, search for "ssh", and install the "Remote-SSH" plug-in.

1685331732357

After the installation, a Remote Explorer appears on the left.

1685332498314

Click the "+" Add button to the right of SSH and type

1685332553704

Then select the default profile for the first item,

1685340383503

The ssh command information you just entered will be saved, and you do not need to fill in the information the next time you log in remotely. The IP address of the new remote target is displayed in the list on the left.

1685340527698

If it does not appear, you can click Refresh.

1685340423052

Click the arrow button to connect the RDK-X3 board in the current window,

1685340720116

Enter your password [yahboom], press Enter,

1685340761238

Indicates that you are connected to the remote. Click [Open folder],

1685340844848

Enter the working space of the car and click [OK]

1685340932053

That gives you remote access to the code on the car. After modification, it will be synchronized to the car end, and can be compiled and run by itself.

1685341062470

In addition, you can start multiple terminals to run relevant commands in VSCode with a successful connection.

1685341454802

3.3. Transfer files

3.3.1 VM and RDK-X3 board

Suppose the RDK-X3 board IP [192.168.2.67], user name [root], password [yahboom];

Virtual machine user name [yahboom].

3.3.2 Windows and the RDK-X3 board

Open the link https://winscp.net/eng/download.php in Windows, download WinSCP and then double-click the [.exe] file to install. Double-click the icon below to open the WinSCP software

1685329757004

If the login dialog box does not pop up, click [New session] in the upper left, enter the host name, user name, password, and click login.

1685330013170

For example, the robot IP address [192.168.2.67], user name [root], and password [yahboom]. The following is an example of a successful login

1685330070526