# Setup with Herelink

#### **In this example:**

* Using ethernet telemetry to control Vio (gimbal and camera)
* Using HDMI to do video streaming from Vio to QGroundControl<br>

  <figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FdGBeNRW1K3UbTGAUoRW4%2Fimage.png?alt=media&#x26;token=10957813-e217-45fc-9d75-b35dff5f8577" alt=""><figcaption></figcaption></figure>

### Step 1: CREATE CONFIG FILES ON MICRO SDCARD <a href="#bkmrk-step-1-3a-create-confi" id="bkmrk-step-1-3a-create-confi"></a>

#### **1.1 Create file for set up a static ip address for Vio**

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FpdIrvdapb7e1JOQuYYoB%2Ft%E1%BA%A3i%20xu%E1%BB%91ng%20(35).png?alt=media&#x26;token=1f447e06-8bcf-4042-aef4-815c141aa39f" alt=""><figcaption></figcaption></figure>

**File name: payload\_setup.txt**

**File Content:**

```markdown
/*PAYLOAD CONFIGURATION*/

# IP address of Payload
VIO_ADDR = 192.168.144.200
NETMASK = 255.255.255.0

# IP adress of UDP stream receiver
STREAM_VIDEO_TO = 192.168.144.104:5000
```

On the above example:

* Vio IP: 192.168.144.200
* Vio stream video to the IP: 192.168.144.104 at port 5000 -> we not use video streaming via ethernet

> ***NOTE:*** when Vio starts up without detecting the file payload\_setup.txt in the memory card, Vio will automatically reset to the default IP (192.168.50.100)

#### 1.2 **Create Config Herelink Ethernet File**

**File Name: vio\_herelink\_eth.conf**

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FPmEVSjw3pZ4q64VYCHi3%2Fimage-1691028477097.png?alt=media&#x26;token=f0c77812-2d1e-4be9-afe6-8015e3283366" alt=""><figcaption></figcaption></figure>

**File Content: (Copy exactly below)**

```markdown
# Herelink air-unit endpoint
# This endpoint will connect to Herelink air-unit
[UdpEndpoint Ethernet_MavIn_Herelink]
Mode = Normal
Address = 192.168.144.10
Port = 14552
Group = Mavlink_In

# Ground control station endpoint
# Please setup an UDP commlink on QGroundControl to this endpoint
[UdpEndpoint GCS_Ethernet_Endpoint]
Mode = Normal
Address = 192.168.144.11
Port = 14565
Group = Mavlink_Out
```

&#x20;

> ***NOTE:***: After adding two files "payload\_setup.txt" and "vio\_herelink\_eth.conf" to micro SDcard, please reboot the Vio to apply changes.

#### Step 2: SETUP ON QGROUNDCONTROL APP <a href="#bkmrk-step-2-3a-setup-on-qgr" id="bkmrk-step-2-3a-setup-on-qgr"></a>

2.1 Disable all AutoConnect in General.

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FeoK0hzWDqBTZhyFxl3MA%2Ft%E1%BA%A3i%20xu%E1%BB%91ng%20(36).png?alt=media&#x26;token=a7c9ec25-40b9-4636-947a-c3b45ffba8f2" alt=""><figcaption></figcaption></figure>

2.2 Navigate to Comm Links, add new Comm link for Ethernet telemetry

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2F71C6KRdyDJocxDUSWjTz%2Ft%E1%BA%A3i%20xu%E1%BB%91ng%20(37).png?alt=media&#x26;token=22f022f8-5d1f-4a49-9142-391677393b0f" alt=""><figcaption></figcaption></figure>

2.3 Create the new link as following<br>

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FEkjB0MCo9IxjQD898GLq%2Ft%E1%BA%A3i%20xu%E1%BB%91ng%20(38).png?alt=media&#x26;token=f6524c2a-d9a5-42e6-9d36-19fe63632309" alt=""><figcaption></figcaption></figure>

**On the above example:**

```markdown
Name: Vio
Type: UDP
Listening Port: 14565
Target Hosts: 192.168.144.200:14565 (Vio's IP)
```

#### 2.4 Check the new Ethernet connection

* Connect the HDMI to Herelink v1.1
* Video Stream info will show as below after configuring successfully

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2F9NEdLG2AMVEcyYHGYYQz%2Ft%E1%BA%A3i%20xu%E1%BB%91ng%20(41).png?alt=media&#x26;token=154570c5-c760-4693-b04f-5d4110535cd8" alt=""><figcaption></figcaption></figure>

**(Do not change)**

```markdown
Video Source: RTSP Video Stream
RTSP URL: rtsp://192.168.144.10:8554/H264Video
Aspect Ratio: 1.777777
```

**Successful connection**

<br>

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2Fn3QBLvobXBgQSbcyrgpx%2Ft%E1%BA%A3i%20xu%E1%BB%91ng%20(42).png?alt=media&#x26;token=df71150c-1baf-439c-b266-bd19b653211a" alt=""><figcaption></figcaption></figure>
