# SIYI

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FrEUq6osjyC6QljDN5MH9%2Fimage.png?alt=media&#x26;token=6ee895f0-9a8b-49ba-8c0d-44351b769d5b" alt="" width="563"><figcaption></figcaption></figure>

## Hardware Setup

### Connect Pixhawk

#### 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%2FM2FznfSFtbteNsSXX9JG%2FHardware%20Setup.drawio%20(5).png?alt=media&#x26;token=57b6bf8f-67e5-40e4-9073-d0d071e30237" alt=""><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%2F6oFlEu4VZ69JqgiKSsgA%2FHardware%20Setup.drawio%20(1).png?alt=media&#x26;token=da2e9c9b-9f51-4e0b-83f2-7db5b5dacde0" alt="" width="563"><figcaption><p>Connect only to XBLink</p></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.

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%2FYzlfM7b745jU46FzWyGr%2FHardware%20Setup.drawio%20(6).png?alt=media&#x26;token=d603401d-4fd5-4755-80f7-093e0f96cbf9" alt=""><figcaption></figcaption></figure>

#### Method 2: **Connect via Dual FPV Camera Hub**

In case you have Dual FPV Camera Hub of Siyi, you can connect it 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%2F2fEInMSgfuHt8KpsOZaL%2FHardware%20Setup.drawio%20(7).png?alt=media&#x26;token=d61bc3f4-49a6-478c-b5cf-b3a84d2ca249" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note: ETH port is ETH0 of XBLink 5G R2
{% 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-r2/user-manual/cameras-and-gimbals/usb-cameras/xbcam-v2#camera-setting-3)
2. [**Siyi Gimbal Cameras**](https://docs.xbstation.com/xblink-5g-r2/user-manual/cameras-and-gimbals/ip-cameras/siyi-camera-gimbal#hardware-setup)
3. [**Other IP Cameras**](https://docs.xbstation.com/xblink-5g-r2/user-manual/cameras-and-gimbals/ip-cameras/other-ip-cameras#hardware-setup)

## Configuration

### XBStationPilotApp

Open XBStationPilotApp and configure as below:

In **RC Remote Controlle**r Section:

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

In **Camera Settings** Section:

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

**I. Siyi Gimbal Cameras**

3. Video Source: SIYI

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

* 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>

***

**II. XBCam V2**

1. Video Source: **XBCam V2**
2. Tick **-> RTSP**
3. **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>

**III. Other IP Cameras**

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

1. Internet connection: **TCP**
2. Video Port: **5601**
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>

**Method 2**: Using USBtoETH Adapter

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

#### 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

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>Siyi Camera</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>

#### 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:

**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
```

**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="info" %}
**NOTE: udpsrc port=560x must be the same as PilotApp**

**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="info" %}
**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 Mission Planner ground station to display the following interface.

For more information see video as below

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

#### SiyiQGroundControl

SiyiQGroundControl will connect to telemetry with Air unit automatically when you open it.

After turning on Camera, go to 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>" %}
