# Siyi Camera Gimbal

The [SIYI ZR10](https://shop.siyi.biz/products/siyi-zr10-gimbal-camera), [ZR30](https://shop.siyi.biz/products/siyi-zr30) and [A8](https://shop.siyi.biz/products/siyi-a8-mini) are IP cameras which can communicate with XBLink via ethernet protocol to stream video.

## Hardware Setup

We support 3 methods to connect it to XBLink as below

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

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FNsdjQjm1bg3GBQfYxWKe%2Fimage.png?alt=media&#x26;token=79564796-c813-4a23-a3fa-9c0720aadbef" alt="" width="375"><figcaption></figcaption></figure>

* **Method 2:** Using [USB to Ethernet Adapte](https://docs.xbstation.com/xblink-5g-r2/getting-started/overview#other-not-include)r. (In case ETH0 port of XBLink is occupied)

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2Fg5LyOZzMEuoQACxFSxqc%2Fimage.png?alt=media&#x26;token=09c08cd4-77ad-4d41-ba4e-837c2e839306" alt=""><figcaption></figcaption></figure>

* **Method 3:** Using Dual FPV Camera Hub.

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FdVcJpCEeyFC4fYP4N7db%2Fimage.png?alt=media&#x26;token=264b686d-265c-4298-bcd5-8d1c75f7b343" alt=""><figcaption></figcaption></figure>

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

The simplest way to connect a Siyi Gimbal Camera to XBLink is to use it's ETH0 port. You just need to plug in the wire according to the instructions below.

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FbNXWD3ybiGEIpG8MBMPt%2FUntitled%20Diagram4.drawio.png?alt=media&#x26;token=ffafa854-2e63-4f0d-8851-c4e2deea77f2" alt=""><figcaption></figcaption></figure>

Finally, power up XBLink and Siyi Gimbal Camera.

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

### Method 2: Using USBtoETH Adapter

If you are intending to use both [the remote control](https://docs.xbstation.com/xblink-5g-r2/user-manual/advanced-configuration/remote-controller) and Siyi Gimbal Cameras, we recommend that you use the [USB to Ethernet Adapter](https://docs.xbstation.com/xblink-5g-r2/getting-started/overview#other-not-include) to connect to the USB port of the XBLink

You can connect Siyi Gimbal Cameras to USB port of XBLink 5G R2 via [USB to Ethernet Adapter](https://docs.xbstation.com/xblink-5g-r2/getting-started/overview#other-not-include) as below

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FCwJVqMBw1s0YSxKGuXjx%2FUntitled%20Diagram7.drawio.png?alt=media&#x26;token=72b31b29-3387-4986-a529-4bceab91f490" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note: USB port is ETH1 of XBLink 5G R2
{% endhint %}

Finally, power up XBLink and Siyi Gimbal Camera.

### Method 3: Using 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%2FF0Gyj8BkmMtJCP6EX1dF%2FSIYI%20Camera%20Gimbal.drawio.png?alt=media&#x26;token=f76a8d80-d4da-46f5-b7a4-3496b713ae57" alt=""><figcaption></figcaption></figure>

Finally, power up XBLink and Siyi Gimbal Camera.

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

## Configuration

### XBStationPilotApp

If you are using ETH0 Port's XBLink (**method 1 and 3**), please open XBStationPilotApp and configure as below:

1. Internet connection: **TCP**
2. Video Port: **5601**
3. Video Source: **SIYI**
4. Ethernet: **eth0**
5. IP: **.25**

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FM3paZlazaAwwXtD2NylX%2Fimage.png?alt=media&#x26;token=3b364783-304f-467b-91c7-2a58c07b836b" alt=""><figcaption></figcaption></figure>

In case that you using USB Port( ETH1) to connect IP Camera (**method 2**), 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%2Fx9cEzjuB7ZXgmZj8pSit%2Fimage.png?alt=media&#x26;token=146dcbc0-ea82-44a6-a022-3eb143cf590a" alt=""><figcaption></figcaption></figure>

### Ground Station

#### QGroundControl

* Open QGroundControl, Change Source section to **UDP H.265 Video Stream** as below.

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FAjk9G60sDNRfHDq5afDN%2Fimage.png?alt=media&#x26;token=78e89b10-f6e7-4b1b-95da-7c16b2e94612" alt="" width="293"><figcaption></figcaption></figure>

#### Mission Planner

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:

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

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

![](https://752643261-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1Ot9F_Ob2Aboz1SKNK%2F-M_yz5MVA-a6zwERGJU-%2F-M_z0Cg8exmV3XTNiD7K%2Fimage.png?alt=media\&token=6ad93b5c-f09d-4c50-aa49-db54a4a271a0)

{% hint style="info" %}
**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 MissionPlanner ground station to display the following interface.

## Video tutorial

For more information see video as below

{% embed url="<https://www.youtube.com/watch?v=sXnlv0z1MvI>" %}
