XBStation User Guide

[XB Logo] XBStation

xb-uav.com

Date: 21 December, 2018

1.0 How It Works

XBStation is a 4G LTE control system that enables operators to control drones and stream live video via the internet. The system comprises XBFirm software running on a Raspberry Pi to communicate with the Pixhawk flight controller, and XBMissionPlanner software running on a PC to send/receive MAVLink messages and video streaming data to/from XBFirm via the internet.

System Diagram Description: A diagram illustrates the XBStation system. A Raspberry Pi with XBFirm software is shown connected to a Pixhawk. Both are connected via the internet (represented by a cloud icon with Wi-Fi signals) to a PC running XBMissionPlanner software. Arrows indicate data flow: XBFirm communicates with Pixhawk. XBMissionPlanner communicates with XBFirm via the internet for MAVLink messages and video streaming.

2.0 Setup

The XBStation setup is designed to be simple and can be completed in a few steps.

2.1 Materials

Hardware Setup Diagram Description: An illustration shows the main components of the XBStation setup: a red XBStation unit, a Raspberry Pi, a Pixhawk flight controller, a 4G modem, and a camera.

Connection Details:

2.2 Setup Raspberry Pi (Optional)

This step involves installing Debian OS on the Raspberry Pi. If your Raspberry Pi is already running Debian OS, you can skip this section.

2.2.1 Components Needed:

  1. Raspberry Pi
  2. 5V, 2A adapter with mini USB cable
  3. HDMI cable
  4. USB keyboard and mouse
  5. SD card (minimum 8GB, Class 10 recommended 16GB or 32GB)
  6. Ethernet cable (optional)

2.2.2 Install Debian OS:

Connect the keyboard and mouse to the Raspberry Pi's USB ports. Connect the Pi to an HDMI-supported TV using the HDMI cable.

Raspberry Pi Setup Diagram Description: A Raspberry Pi 3 Model B board is shown with various ports labeled: USB ports for keyboard/mouse, LAN socket, HDMI for display, Micro USB for power, GPIO Pins, Micro SD card slot. The Pixhawk's TELEM2 port is depicted as connected to the Pi.

You need to download two software tools and the Debian image:

SD Card Formatting Diagram Description: A screenshot of the SDFormatter V4.0 application window is displayed, showing options for selecting a drive (e.g., 'D:'), setting the volume label to 'Raspberry', and selecting format options like 'QUICK FORMAT, FORMAT SIZE ADJUSTMENT ON'.

SD Card Imaging Diagram Description: A screenshot of the Win32 Disk Imager application window is displayed, showing fields for selecting an image file (e.g., `OSMC_TGT_rbp2_20160306.img`) and a device (e.g., `[F:]`), with a 'Write' button. The process indicates 'And waiting... write successful'.

2.2.3 Run Debian OS on Pi:

Insert the micro SD card into the Raspberry Pi.

Pi with SD Card Diagram Description: A hand holds a Raspberry Pi board with a micro SD card inserted into its slot.

Turn on the power.

Terminal Output and Desktop Diagram Description: A terminal window shows boot messages for the Raspberry Pi, including kernel messages and device detection. It then shows a screenshot of the Raspberry Pi desktop environment with file manager and terminal windows open, indicating a successful boot into the OS.

You have to add some installation steps but very easy. You just read and follow.

2.3 Connect Pixhawk and Raspberry Pi

VERY IMPORTANT

2.3.1 Connect the Pixhawk's TELEM2 port to the RPi's Ground, TX and RX pins as shown in the image.

Pixhawk/RPi Connection Diagram Description: A detailed diagram shows the physical connection between the Pixhawk TELEM2 port and the Raspberry Pi 3 Model B. It highlights the TX, RX, and GND connections. The Pixhawk board and Raspberry Pi board are clearly depicted with their respective ports.

2.3.2 Setting up the Pixhawk:

Connect to the Pixhawk with a ground station (i.e. Mission Planner) and set the following parameters:

(NOTE: use telemetry or USB connect PC for config)

2.3.3 Setting up the Raspberry Pi:

Open terminal on RASP PI (Ctrl+Alt+T) and type:

sudo raspi-config

Raspi-config Terminal Diagram Description: A terminal window shows the command `sudo raspi-config` being executed.

In the utility, select "Interfacing Options":

Raspi-config Menu Diagram Description: The Raspberry Pi Software Configuration Tool menu is displayed, with options like 'Change User Password', 'Network Options', 'Boot Options', 'Localisation Options', 'Interfacing Options', etc. 'Interfacing Options' is highlighted.

And "Serial":

Raspi-config Serial Diagram Description: Within the `raspi-config` tool, the 'Serial Port' option is highlighted.

Choose "NO" (Disable OS use of the serial connection)

Serial Port Enable Prompt Diagram Description: The `raspi-config` tool displays a prompt 'Would you like a login shell to be accessible over serial?' with 'Yes' and 'No' options.

Select "YES" for enabled serial port hardware:

Serial Port Hardware Enable Diagram Description: The `raspi-config` tool displays a prompt 'Would you like the serial port hardware to be enabled?' with 'Yes' and 'No' options. After selecting 'Yes', a confirmation message states 'The serial login shell is disabled. The serial interface is enabled.'

Reboot the Raspberry Pi when you are done.

ls /dev Output Diagram Description: A terminal window shows the output of the command `ls /dev/`, listing various device files including serial ports like `ttyS0` through `ttyS63`.

Finish setup rasp pi.

2.4 XBFirm

XBFirm is a software that runs on the Raspberry Pi (currently supports Debian OS) to read/write data from/to Pixhawk, capture streaming video from the camera, and send it to the station software.

2.4.1 Download XBFirm software:

Open terminal and type the command:

sudo wget -O - https://sourceforge.net/projects/xbinstall/files/XBFirm-1.0.1-install.txt | bash

2.4.2 Setup:

Move to the XBFirm folder:

cd XBFirm

Run the setup.sh file:

sudo ./setup.sh

Input username and password when prompted.

XBFirm Setup and Completion Diagram Description: A terminal window shows the command `sudo wget -O - [URL] | bash` for downloading and installing XBFirm. It then shows the command `cd XBFirm` to navigate to the directory and `sudo ./setup.sh` to run the setup script. A login prompt for username and password is shown. Following this, the completion message `***Completed` is displayed, indicating successful installation. The command `sudo reboot` is also shown.

Reboot Rasp pi, and XBFirm will start automatically.

sudo reboot

2.5 XBMissionPlanner

XBMissionPlanner is a ground control station compatible with Windows only, used for Plane, Copter, and Rover.

Download link: https://sourceforge.net/projects/xbmissionplanner/files/XBMissionPlanner-1.2.7.rar/

3.0 Getting Started

3.1 Start XBMissionPlanner

Extract the `.rar` file and run `MissionPlanner.exe`.

Mission Planner Interface and Login Diagram Description: The Mission Planner software interface is shown, featuring a map of the Earth, flight status indicators (DISARMED, EKF Vibe, GPS status), telemetry data displays (Altitude, Vertical Speed, Ground Speed, Dist to WP, Yaw), and connection status. A 'CONNECT' button is visible. A login dialog box within Mission Planner prompts for Username and Password, with a 'Login' button.

Choose "XB" connection in the top right and click the Connect button.

Login dialog appears; type your username and password, then hit the Enter button.

Please wait about 2 minutes for loading parameters from pix.

4.3.3 Feature:

The current XBStation version supports features for recording video, changing quality, and showing information data.

  1. Turn on/off camera: Use the 'Start Camera' and 'Stop Camera' buttons. The camera turns on automatically when the Raspberry Pi starts up.
  2. Start/Stop recording: Use the 'Start Recording' and 'Stop Recording' buttons. Video recording is saved in the `XBFirm/videos` directory on the Raspberry Pi with the highest quality.
  3. Reboot/ Shutdown button: Use the 'Reboot' button to reboot the Raspberry Pi or the 'Shutdown' button to shut it down. NOTE: DO NOT CLICK THE SHUTDOWN BUTTON WHEN FLYING, as shutting down the Raspberry Pi can cause disconnection to the station and loss of control.
  4. Video Type: This function allows you to choose the type of streaming video. Options include:
    • RGB Video: Video in RGB format (3 channels).
    • Grayscale Video: Video in Grayscale format (1 channel).

    NOTE: If your network connection is unstable (weak), use grayscale video for smoother video and lower latency.

  5. Video quality: This function allows you to choose the quality of streaming video with 4 options:
    • Low Quality Video
    • Normal quality Video
    • High quality Video
    • Highest quality Video

    NOTE: Higher quality video may increase latency.

Information Datas Display Description: A section displays 'Information Datas' with a table showing 'Time', 'Rcv(MB)', 'Sent(MB)', and 'Expiration' (20-02-19). It also shows the status of 'Camera' (OPENED), 'Recording' (CLOSED), and 'Pix' (CLOSED).

4.0 Video Tutorials

5.0 Attention

5.1 Check list and error:

If you have problems when using XB Station, you must check the following:

Check list:

# name Success status note
1 DCOM 4G ON RPI (you should chose the 4g dcom which have auto connect and check it with rpi, remember turn off wifi when test) CONNECTED You can see led stt on dcom 4g. If don't have internet signal, you try: 1:reset, 2: registration, 3: check rpi power enough.
2 Internet on computer sation CONNECTED
3 Pi Connect Pix OPEN If Close, check cable
4 Pi Connect Camera OPEN If Close, check cable
5 XBStation Account Unexpired --/--/-- You should renew before expiry date

ERROR:

# NAME RESOLVE
1 PI AUTO RESET Check pi power and cable
2 4G AUTO RESET Check pi power and cable
3 PI don't run Check SD Full and SD Crash
4 Pix status Open but don't have singal Check baurate config (should be 57)
5 Every thing ok and strong internet but stream video look like latency Maybe your station computer not enough strong. You try test on strong computer. (recommend: core i7, ram 4gb)

NOTE: If you have problems with XBStation (XBFirm, XBMission planner and hardware config), you can send me via email:

To: creator@xb-uav.com

Subject: Check list and error

PDF preview unavailable. Download the PDF instead.

XBStation User Guide Microsoft Word 2019