# SIYI

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FTRR9mKe7G79V0SnT3AhM%2Fimage.png?alt=media&#x26;token=17bbe4c1-a2a9-44f9-a2db-59a9b6f94db2" alt="" width="563"><figcaption></figcaption></figure>

## Hardware Setup

### Connect Pixhawk&#x20;

#### &#x20;Method 1: Connect to both XBLink and Siyi Air Unit.

In case the telemetry port of flight controller is unoccupied, we highly recommend to use this method to ensure stable and reliable telemetry signal.

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2Ffm5AWfkTcMQMtmCwBKl3%2FGroup%20148.png?alt=media&#x26;token=6358d5e6-6701-44c7-b7d2-829b246cdc8f" alt="" width="563"><figcaption><p> Connect to both XBLink and Siyi Air Unit.</p></figcaption></figure>

#### Method 2: Connect only to XBLink

XBLink will read telemetry data, then stream it through ethernet to Siyi Air Unit and 5G at the same time.

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2Fio5pXjnhVJr1E7McsB5y%2FGroup%20144.png?alt=media&#x26;token=2237afce-ee62-4625-8314-fd4cda33ed62" alt="" width="325"><figcaption></figcaption></figure>

### Connect Siyi Air Unit

We support 2 methods to connect it to XBLink as below

#### Method 1:  Connect directly to ETH0 port's XBLink.&#x20;

In case you are using USB port of XBLink for IP Cameras or USB Cameras, we recommend you connect Siyi Air Unit as below.

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FXWRiwgZls9Olf4VWO5Q2%2FGroup%20155.png?alt=media&#x26;token=89dbc0bc-c547-4a09-8ee9-9557a353d3b4" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FeHc0rAqMgjSpAWXPGJpO%2FGroup%20150.png?alt=media&#x26;token=bfc58e4d-c00b-4a60-a6a8-7341599d26b5" alt="" width="563"><figcaption></figcaption></figure>

#### Method 2: **Connect via Dual FPV Camera Hub**&#x20;

In case you have Dual FPV Camera Hub of Siyi, you can connect it to XBLink following instruction

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FQobsH635dyi5F69zzDXO%2FGroup%20155%20(1).png?alt=media&#x26;token=7916a62f-5b53-41f6-90f6-676556a9c737" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FWR4EDEeVqBQZNucL1RNX%2FGroup%20158.png?alt=media&#x26;token=389a2516-3225-41db-b231-fd74fdb731aa" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Note: ETH port is ETH0 of XBLink Plus
{% endhint %}

### Connect Cameras

We support a variety of cameras to stream video. Please connect it base on hardware setup as below links

1. [**XBCam V2**](https://docs.xbstation.com/xblink-5g/user-manual/cameras-and-gimbals/usb-cameras/xbcam-v2#camera-setting)
2. [**Siyi Gimbal Cameras**](https://docs.xbstation.com/xblink-5g/user-manual/cameras-and-gimbals/ip-cameras/siyi-camera-gimbal#hardware-setup)
3. [**Other IP Cameras** ](https://docs.xbstation.com/xblink-5g/user-manual/cameras-and-gimbals/ip-cameras/other-ip-cameras#hardware-setup)

## Configuration

### XBStationPilotApp

&#x20;Open XBStationPilotApp and configure as below:

I. **RC Remote Controlle**r Section:

1. Interfaces: **eth0**
2. Remote Controller: **SIYI**

II. **Camera Settings** Section:

1. Internet connection: **TCP**
2. Video Port: **5601**
3. Video Source: Please select a kind of Camera connecting.

**a. Siyi Gimbal Cameras**

3. Video Source: SIYI

{% hint style="info" %}
if you choose Siyi Gimbal Camera to connect to :&#x20;

* USB port -> 4.  Ethernet: **eth1**
* FPV Camera Hub -> 4.  Ethernet: **eth0**
  {% endhint %}

5. IP: **.25**
6. Tick **-> RTSP**
7. Encoder: **H265**
8. **TURN ON**

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FquXtOSJPAl9UA5oHLgmv%2Fimage.png?alt=media&#x26;token=951b5694-77a3-4637-b211-1bc90eb13fcd" alt=""><figcaption><p>Example for method 1 &#x26; USB port -> IP Camera</p></figcaption></figure>

***

**b. XBCam V2**

3. Video Source: **XBCam V2**
4. Tick **-> RTSP**
5. **TURN ON**

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FTNEfU7tliP3SYEUTiXa7%2Fimage.png?alt=media&#x26;token=b9696014-da06-4286-a9d7-d48e34ddcf62" alt=""><figcaption><p>Example for method 1 &#x26; USB port -> USB port -> XBCAM V2</p></figcaption></figure>

**c. Other IP Cameras**

**Method 1:**  Connect to ETH0 port's XBLink

3. Video Source: **Other IP CAM**
4. Ethernet: **eth0**
5. Ip Address: **Please fill out your IP address Camera (find from your document of IP Camera)**
6. Pipeline: **Please fill out your Pipeline Camera (find from your document of IP Camera)**

{% hint style="info" %}
The address format should be rtsp\://*\<camera-ip-address>/\<video-format>*

Example with ZR10:

* Ip Address: 192.168.144.25
* Pipeline: rtsp\://192.168.144.25:8554/main.264
  {% endhint %}

7. Tick **-> RTSP**
8. Encoder: Select H264 or H265 option up to your Camera.
9. **TURN ON**.

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2Fl03Dp1TAX9S1BwMXoxaM%2Fimage.png?alt=media&#x26;token=6cbdc443-9775-4e53-8694-8c762610a761" alt=""><figcaption></figcaption></figure>

&#x20; **Method 2**: Using USBtoETH Adapter

&#x20; Just change Ethernet section to **eth1**

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FDZs8JYDwQFgErA4NPGmF%2Fimage.png?alt=media&#x26;token=7b6a0ba4-8b02-4080-a697-1eb7978f0041" alt=""><figcaption></figcaption></figure>

### Ground Station

#### I. QGroundControl (PC)

After turning on Camera, open QGroundControl and configure as below.

{% hint style="info" %}
Please select Source:  **UDP h.265 Video Stream** with only Siyi Camera

&#x20;                        Source:  **UDP h.264 Video Stream** with **USB, HDMI, CSI or almost IP cameras**

If you don’t know name port, you can try them one by one.
{% endhint %}

<div><figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FYdgFGhhVPZYFIX2YaIJW%2Fimage.png?alt=media&#x26;token=17c7536e-8dcd-461e-b155-e88f8b5ffd75" alt="" width="293"><figcaption><p><strong>Siyi Cameras</strong></p></figcaption></figure> <figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FtPFjJYPjRBeuyFpFq4ph%2Fimage.png?alt=media&#x26;token=0d074bbc-a2ec-43d9-b17f-91a02a5b267c" alt="" width="294"><figcaption><p> <strong>USB, HDMI, CSI or almost IP cameras</strong></p></figcaption></figure></div>

#### II. Mission Planner (PC)

1. At the Video HUD area, Right Click -> Video -> GStreamer Stop as below instruction

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FQAmOfHvNmdWBlRtz8O0w%2Fimage.png?alt=media&#x26;token=bb4a609a-c0f3-44d2-8c77-3ffe47fbb173" alt="" width="528"><figcaption><p>GStreamer Stop</p></figcaption></figure>

2. At the Video HUD area, Right Click -> Video -> Set GStreamer source -> input GStreamer URL:

**a. Siyi Cameras:**

`udpsrc port=5601 caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H265, payload=96" ! rtpjitterbuffer ! rtph265depay ! avdec_h265 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink`

```
udpsrc port=5601 caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H265, payload=96" ! rtpjitterbuffer ! rtph265depay ! avdec_h265 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink
```

**b. USB, HDMI, CSI or almost IP cameras:**

`udpsrc port=5601 caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96" ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink`

```
udpsrc port=5601 caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96" ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink
```

{% hint style="warning" %}
**NOTE**: `udpsrc port=560x` must be the same as PilotApp
{% endhint %}

{% hint style="success" %}
**NOTE:** The GStreamer URL just need to input at the first time, Mission Planner will auto save this params, the next run with Mission Planner, you just **Right Click -> Video -> Set GStreamer source -> and click OK to use video streaming**
{% endhint %}

![Mission Planner](https://i.imgur.com/kFRpzS9.png)

{% hint style="warning" %}
**NOTE:** Download and install the plugin (domestic environment download is slow, if it fails, please restart the Mission Planner ground station and try again)
{% endhint %}

![Mission Planner](https://i.imgur.com/RurZ4jz.png)

After the installation is complete, restart the MissionPlanner ground station to display the following interface.

For more information, please see a video as below

{% embed url="<https://youtu.be/dtoMcUA3uwE>" %}

#### Siyi QGround Control

After turning on Camera, open QGroundControl -> General -> Video Settings ->configure as below.

1. Source: **RTSP Video Stream**
2. RTSP URL: **rtsp\://192.168.144.100:8554/xb**

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FU2DH1hp1NbEvxYZAgR9p%2Fimage.png?alt=media&#x26;token=aafe059c-e970-459f-8d7c-892686d9a888" alt="" width="375"><figcaption></figcaption></figure>

For more information, please see a video as below

{% embed url="<https://youtu.be/r-IhVsf_hO4>" %}
