🛠 Using Storage and Network on AIWorld P1

AIWorld P1 AI Module for BPI-M2 Ultra and Berry · debutant · Apprenez à transférer des fichiers et à diffuser de la vidéo via le réseau avec l'AIWorld P1.

Objectives

This tutorial aims to master the basics of network communication and storage on the AIWorld P1 board. You will learn how to use debugging tools to transfer files and configure a simple video stream via the network. These skills are essential for deploying IoT or computer vision applications.

Required Hardware

Steps

Ensure the board is powered on and connected. The VecooAT tool allows the use of adb for file transfer. To send a file from your PC to the board, use the following command: ``bash adb push video_test.h264 /tmp/ ` To retrieve a file from the board to your PC: `bash adb pull /tmp/photo.jpg ./ `` These commands work via both USB and WiFi if the network configuration is correct.

  1. Connection and File Transfer

Check the board's IP address. The AIWorld P1 uses the Vecoo Linux system. You can verify connectivity with the ping command from your PC. Ensure the GPIO port is correctly connected to the host board for power and data.

  1. Network Configuration

The platform includes Gstreamer V1.10. To test video playback from local storage, run: ``bash gst-launch-1.0 playbin uri=file:///tmp/video_test.h264 ` To stream via HTTP or RTSP (requires server configuration), Gstreamer natively supports these protocols. A basic command to play a network stream is: `bash gst-launch-1.0 playbin uri=http://ip_address/video.mp4 ` Replace ip_address` with your server's actual IP.

  1. Video Streaming via Gstreamer

Use the integrated camera application to capture an image and save it to the temporary directory. This image can then be transferred via adb as described in step 1.

  1. Using the Camera for Storage

Verification

Check that the file is present on the board with ls /tmp/. Launch video playback with gst-launch-1.0 and observe the display on the screen connected via QT5.9/eglfs. If the video plays without error, storage and decoding are working. Test network transfer by verifying the integrity of files received on the PC.

Going Further

Explore OpenCV v3.2 libraries to analyze captured images. Try configuring an RTSP server to stream the OV5640 camera feed in real-time to multiple clients.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials