7. Install Raspbot V2 driver library

7.1. Statement before installing the driver library

The factory image system of the car has already installed the latest driver library, so there is no need to install it again. If you are not using the factory image, or the driver library has updated content, you need to install the driver library.

The storage path of the driver library that comes with the factory system: ~/py_install

Please refer to the following steps to install the driver library. Here, the installation of version V0.0.2 is taken as an example.

7.2. Download Python driver library file

The latest version of Raspbot V2 driver library is provided in this course material, named py_install.zip.

The compressed package contains the following files:

7.3. Transfer files to Raspberry Pi 5

If you use the browser that comes with Raspberry Pi 5 to download files from Yabo Smart Official Website, please download the files to a user-operable path, such as the desktop.

If you use the driver library compressed package file in the data, or download the driver library file with a computer browser, you can use WinSCP software to drag the driver library compressed package file to the Raspberry Pi 5 desktop.

After successful installation, the driver library file can be deleted.

If you don’t know how to use WinSCP to transfer files, you can refer to 5. Remote file transfer

7.4. Start installation

Open the terminal of Raspberry Pi 5 and enter the following command to decompress.

Enter the desktop and check if the file exists. The target file is in the red box.

Unzip the file

Note: The entire document example uses the py_install.zip compressed package placed on the Raspberry Pi 5 system desktop as an example. If the compressed package is stored in a different path, please enter the corresponding directory according to the actual path.

Enter the driver library folder

Run the installation command. If you see the installation version number at the end, it means the installation is successful. This command will overwrite the previously installed Raspbot V2 driver library.

7.5. Import library files

Refer to the following picture to import the driver library. If no error message appears, the installation is successful.

7.6、API简介

7.7 API Testing