# Herelink 1.0 AirUnit to AirUnit instruction

Device required:\
-Airunit x 2 (**\*firmware minimum 20211229 and above**)\
-Ethernet adapter\
-Installing a fan on both airunits to achieve better performance\
<https://docs.cubepilot.org/user-guides/herelink/herelink-faq#herelink-airunit-fan-installation>\
\- usb otg+power cable if ethernet adapter doesn't include a method to power it

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2F9ggMjJk0cVkRXOiggfOy%2FUSB%20OTA%2Bpower%20cable.png?alt=media\&token=63ea447b-1d9c-4e29-b406-30f6af620dd3)

GroundUnit video out can be accessed via ethernet and MavLink is available as well. Compatible ethernet adapters are shown below:

AX88772 - Ground (not tested Airside)\
[PLUGABLE](https://plugable.com/products/usb2-otge100/) - directly connect to OTG. Nice for the ground side.

AX88179 - Ground and Air\
[UGREEN Ethernet Adapter for Chromecast](https://www.amazon.co.uk/UGREEN-Ethernet-Adaptor-Chromecast-Network/dp/B01N1X28F1/ref=asc_df_B01N1X28F1/?tag=googshopuk-21\&linkCode=df0\&hvadid=309964054975\&hvpos=\&hvnetw=g\&hvrand=13338390534555592071\&hvpone=\&hvptwo=\&hvqmt=\&hvdev=c\&hvdvcmdl=\&hvlocint=\&hvlocphy=9045387\&hvtargid=pla-303357944812\&psc=1) has an additional standard USB to power on airside, cables are quite long however.

R8152 / R8153 - Airside only\
[Cable Matters](https://www.amazon.co.uk/gp/product/B00ET4KHJ2/ref=ppx_yo_dt_b_asin_title_o04_s01?ie=UTF8\&psc=1)

[Anker USB 3.0](https://www.amazon.co.uk/gp/product/B00NPJP33M/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8\&psc=1) - no blinky lights on the Ethernet port, maybe annoying for debugging

**Note：**\
**-Upgrade both units to the latest firmware before toggling the switches.**\
\&#xNAN;**-Toggle switches both down position as default AirUnit function, firmware only can be upgraded when switches both at down position.**

## 1. GroundUnit and AirUnit Setup

### 1A GroundUnit setup

1. Upgrade AirUnits to the latest firmware.(Make sure toggle both switches at down position)
2. Power off the GroundUnit by disconnecting the power cable (7v-12v).
3. Remove the screws from the chassis.
4. Herelink AirUnit v1.0 (without ethernet port) Toggle the switches as shown below to activate GroundUnit. (1 up, 2 down) \
   **Note: For Herelink AirUnit v1.1 (with ethernet port) GroundUnit activated by toggle switch (1 down, 2up)**
5. Power on GroundUnit by reconnecting the power cable (7v-12v).

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FqgsTfgoB5BXEj8glRVgc%2F1A%20GoundUnit%20and%20AirUnit%20Setup.png?alt=media\&token=195bb58c-cf41-4d6f-a241-adf081483281)

### **1B AirUnit setup**

Upgrade AirUnits to latest firmware.(Make sure toggle both switches down position)

## **2. Pairing**

Press and hold the pairing button for 3s on both AirUnit and GroundUnit within 30s&#x20;

\*Once pairing is completed LED will turn solid GREEN.

<div align="center"><img src="https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2Fe2NSpqymtwP62FA8Tuah%2FAirUnit%201.0%20Switches%20-%201%20and%202.jpg?alt=media&#x26;token=ca3db2aa-4d55-4c9a-bc6d-5769a9de57c6" alt="1＝Pairing button
2＝Indicator Led"></div>

## 3. AirUnit HDMI functionality

Once AirUnit and GroundUnit are paired, connect the 1080p/720p video source to AirUnit.&#x20;

There are only 1 HDMI port available for communication between AirUnit and GroundUnit, it is marked #3 in the picture below.

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FSt3B14ius4gjZSMKInH1%2F3.%20AirUnit%20HDMI%20functionality.png?alt=media\&token=d80ffa50-82eb-49c9-b9a7-5c2c1fac50b7)

## 4. PC setup

1\. Please switch off PC’s WIFI

2\. Go to control panel > Network & Internet > Network connection

3\. Right click and choose properties

4\. Choose “internet (TCP/IPv4)”,then click properties

5\. Click “use the following IP address” and enter 192.168.144.3”

6\. Click “Subnet mask” and it will give you a Subnet mask.

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2F9SZ0yEf5UE6AO26KoXS0%2F4%20PC%20setup.png?alt=media\&token=0dad65b4-7396-4634-a2ad-9546dad2fc39)

## 5. PC video setup

AirUnit video stream can be obtained through VLC, MissionPlanner or QGC

### 5A VLC setup

Go to Media > Open Steaming > Communication Protocol

Copy and paste : “rtsp\://192.168.144.10:8554/H264Video”

Click “Play”.Click “Play”.

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2Fz1ZR6iNzQYUQYvn3iMwN%2F5A%20VLC%20setup.png?alt=media\&token=4c343bf7-dbd9-4398-a503-9013f3607b19)

### 5B Mission Planner

**Video**

1. Right click the HUD
2. Select ‘Video’
3. Select ‘Set GStreamer Source’
4. Enter “rtspsrc location=rtsp\://192.168.144.10:8554/H264Video latency=1 udp-reconnect=1 timeout=0 do-retransmission=false ! application/x-rtp ! decodebin3 ! queue max-size-buffers=1 leaky=2 ! videoconvert ! video/x-raw,format=BGRx ! appsink name=outsink”
5. Press OK

\
&#x20;**Mavlink**

1. Open Mission Planner
2. Set the port to 'UDPCL' (top right)
3. Click 'Connect'
4. Enter the IP 192.168.144.11
5. Enter port '14552'

### **5C QGC**

Setup(QGC icon at the top-left corner) > Application Settings > General > Fly View > Video Settings > Source > RTSP Video Stream

RTSP URL “rtsp\://192.168.144.10:8554/H264Video”

Go back to the main screen and video input will come out.

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FviKxF58pNncOZrXG65qQ%2F5C%20QGC.png?alt=media\&token=afcb8147-ac1c-4330-9db3-0d567c2b4962)

## 6. VLC Video Latency Setup

\
VLC latency can be adjusted via below:

Media > Open Network Stream > Network > Click “Show more options” > adjust “caching” time

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FifOzxNByuctRLGrkR4gX%2F6.%20VLC%20Video%20Latency%20Setup-1.png?alt=media\&token=1eb302ad-42e7-419a-899f-8e1862a6b6ff)

Tool > Preferences > Input / Codecs > Network > Default caching policy > select “Lowest latency”

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2F9zXvcrOZDBGXCdEnSJQd%2F6.%20VLC%20Video%20Latency%20Setup-2.png?alt=media\&token=7b55e180-0f9e-4709-a640-676d160e15a8)
