# Herelink Ethernet

**URL:** <https://discuss.cubepilot.org/t/herelink-ethernet/4369>\
**Category:** HereLink\
**Created:** [18 August 2020 19:03 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369 "2020-08-18T19:03:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![iampete](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/iampete/32/2864_2.png) [@iampete](https://discuss.cubepilot.org/u/iampete)\
**Post date:** [18 August 2020 19:03 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/1 "2020-08-18T19:03:15Z")

</div>

Hi all,

I’m trying to get ethernet pasthrough working. I’m running on the Beta Channel, SRU01200616 on the ground unit and the corresponding version on the air side.

I understand a ethernet adapter with a R8152/8153 chip is required, I have have a ANKER A7610011 and a Cable Matters 202023-BLK for testing. Both use the correct chip according to the Amazon comments, although its very hard to get the information directly from the manufactures.

On the ground side I have a generic OTG adapter, and have tested it with a USB stick. On the airside I have a OTG charging pass through cable, this allows to power the adapter (and the airside, and cube, I’m not sure if that is a good idea).

I undstand with a adapter on both ends it should be a transparent link but I cant seem to get it working.

It does have to be said that I am a complete beginner with regard to networking stuff such as this.

 ![117872858_696176967645880_372577620371461327_n](https://discuss.cubepilot.org/uploads/default/original/2X/b/bb741361250414b94259416f5f8a1837338a239f.jpeg)

---

<div class="post-metadata">

**Author:** ![frame](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@frame](https://discuss.cubepilot.org/u/frame)\
**Post date:** [18 August 2020 20:19 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/2 "2020-08-18T20:19:43Z")

</div>

@iampete - where did you get this information about ethernet passthrough feature? Is it documented somewhere?

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [19 August 2020 12:56 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/3 "2020-08-19T12:56:45Z")

</div>

so the basics look good to me, the next trick is getting adb access to confirm (gcs)

the stock image includes  
AX8817X  
AX88179\_178A  
NET1080  
R8152

to update the boot image via usb (i asume you have adb access already/developer mode)

> adb reboot bootloader  
> fastboot flash boot boot.img  
> fastboot reboot

Next we enable adb via tcpip, but first we need to enable this via usb

> adb shell  
> setprop persist.adb.tcp.port 5555  
> reboot

then after the reboot, get the ip of the GCS unit (eg 10.0.0.99)

> adb connect 10.0.0.99  
> adb shell

you should get the shell again  
do a

> ifconfig

and check if eth0 exists

Now verify we can adb into the air unit  
once you have adb to the gcs unit, power on the air unit and do a

> adb shell (gets you into the gcs unit)  
> adb connect 192.168.0.10  
> adb -s 192.168.0.10:5555 shell

this should now get you into the air unit.

Next  
try running a

> /bin/busybox brctl show

under interfaces you should see vxlan1 and eth0

> optimus:/ $ /bin/busybox brctl show  
> bridge name bridge id STP enabled interfaces  
> br-vxlan 8000.00e04c360345 no vxlan1  
> eth0

also run

> ping 192.168.144.10  
> ping 192.168.144.11

these are the bridge endpoint ip’s

during testing, make sure the screen stays on on there GCS unit, otherwise power saving features limit background data flow (most likerly setting i have not found yet)

ive just confirmed that this is working ok. one possible caveat. if you home network is using 192.168.0.x, things may not work.

---

<div class="post-metadata">

**Author:** ![iampete](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/iampete/32/2864_2.png) [@iampete](https://discuss.cubepilot.org/u/iampete)\
**Post date:** [19 August 2020 16:34 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/4 "2020-08-19T16:34:55Z")

</div>

Thanks Michael,

After installing adb, I managed to verify both ends are detecting the adapters, I swapped to a AX88179 (I think) based adapter on the ground side. The ground side sees this:

![ifconfig](https://discuss.cubepilot.org/uploads/default/original/2X/3/3e626da763a9a3be27d71c9765aa08541d86fc56.png)

And the air side:  
 ![ifconfig air](https://discuss.cubepilot.org/uploads/default/original/2X/2/2d97b1b2bfc28ade13389d72ae955e1ad8c32868.png)

Both clock up some RX and TX bytes if I plug into a network. However I can’t connect via the link. (would be not be surprised if there is a PEBKAC).

Interestingly the ground side will shows up on the network, and I can ping it:

![network](https://discuss.cubepilot.org/uploads/default/original/2X/4/43eae4c6bd49c407cf6f161af277ba9a44f560e9.png)

However the air side does not.

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [20 August 2020 07:39 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/5 "2020-08-20T07:39:47Z")

</div>

when you say ground side? thats the wifi ip ground side?

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [20 August 2020 08:36 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/6 "2020-08-20T08:36:36Z")

</div>

taken via herelink ethernet

 ![image](https://discuss.cubepilot.org/uploads/default/original/2X/c/cd0625bfb0502bb9acec7f599d56d7f5dcbd6406.png)  
i have uplink BW set to 1.4mhz and down set to 10mhz (non default)

---

<div class="post-metadata">

**Author:** ![iampete](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/iampete/32/2864_2.png) [@iampete](https://discuss.cubepilot.org/u/iampete)\
**Post date:** [20 August 2020 13:30 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/7 "2020-08-20T13:30:46Z")

</div>

I have it working!

 ![118214766_346884080013482_8656601271632610920_n](https://discuss.cubepilot.org/uploads/default/original/2X/6/6ecd1ff038ed80e56ce7734eb93a06b7ca198dd1.png)

Cant quite do 4K YouTube, but 1440p no problem, Wifi is only slightly faster on my old laptop. (I am not also streaming from a camera, I suspect that would slow this down)

I suspect I was having a couple of issues.

firstly the second Ethernet port on my desktop was not connecting, maybe due to the first already being connected to the same network (no doubt this is fixable but I’m a networking newb).

Secondly `/bin/busybox brctl show` was only showing `eth0` if it was conected at boot. But it still shows up in `ifconfig` if you plug it in after the fact.

So, booting both ends with compatible adapters already plugged in has resulted in it ‘just working’ adb is useful to debug, but I didn’t actually have to change anything with it.

Now to see if I can get the camera working…

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [21 August 2020 12:56 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/8 "2020-08-21T12:56:04Z")

</div>

Correct they must be booted with Ethernet plugged in ,as there are things run at startup to setup the bridge

---

<div class="post-metadata">

**Author:** ![dstefanakis](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/dstefanakis/32/1629_2.png) [@dstefanakis](https://discuss.cubepilot.org/u/dstefanakis)\
**Post date:** [21 August 2020 16:28 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/9 "2020-08-21T16:28:15Z")

</div>

Hi Michael,

If you find the time, kindly add a how to first steps in a post or wiki.  
Until now, we used to have a mikrotik routerboard, an ethernet switch and a capable wifi card along with the herelink to accomplish the same scenario onboard the drone.  
Thats a really super good to have capability for ethernet talking payloads, as well as simplifies the 4G add-on.

Best regards,  
Dimitris Stefanakis,  
UcanDrone

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [22 August 2020 16:26 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/10 "2020-08-22T16:26:44Z")

</div>

assuming all you want is a transparent link between the 2 Ethernet adapters, all you need to do it plug it in, and boot the air and gcs unit, all the setup is done by default.

the key is getting the correct adapters, and verifying those details are what ive listed above.  
ive been testing with RTL8152 adapters, but you need to update the GCS unit to use these, other than that, it should be plug and play, just make sure they are plugged before power on.

---

<div class="post-metadata">

**Author:** ![dstefanakis](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/dstefanakis/32/1629_2.png) [@dstefanakis](https://discuss.cubepilot.org/u/dstefanakis)\
**Post date:** [22 August 2020 18:11 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/11 "2020-08-22T18:11:13Z")

</div>

Thanks Michael! We have updated all our clients Herelinks, but haven’t heard for the Ethernet adapter compatibility.  
This feature must advertised as hell!!!  
I’ll check my adapters for RTL8152 and maybe upload a showcase vid.

Best,  
Dimitris

---

<div class="post-metadata">

**Author:** ![iampete](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/iampete/32/2864_2.png) [@iampete](https://discuss.cubepilot.org/u/iampete)\
**Post date:** [22 August 2020 18:16 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/12 "2020-08-22T18:16:24Z")

</div>

I have quite a section of adapters here now, maybe we should start a comparability list, like the one for cameras.

---

<div class="post-metadata">

**Author:** ![iampete](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/iampete/32/2864_2.png) [@iampete](https://discuss.cubepilot.org/u/iampete)\
**Post date:** [23 August 2020 13:40 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/13 "2020-08-23T13:40:06Z")

</div>

I have the camera working, just had a loose connection.

The camera gives a rtsp stream, I can view it on a PC connected to the Ethernet on the ground side. It looks like QGC on the Herelink can view rtsp streams, but it cant connect, maybe because the like is transparent?

I guess that is also linked to how one would use the Herelink hot spot on the ground side rather than Ethernet?

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [4 September 2020 02:02 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/14 "2020-09-04T02:02:26Z")

</div>

correct, its transparent and independent of the Herelink video. it is possible to make it visible, via some routing changes

---

<div class="post-metadata">

**Author:** ![Steve](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/steve/32/361_2.png) [@Steve](https://discuss.cubepilot.org/u/Steve)\
**Post date:** [7 September 2020 16:05 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/15 "2020-09-07T16:05:11Z")

</div>

@iampete can you better explain your setup (camera, connections)? Do your camera has native RTSP output? why do you need a full IP bridge? I ask because it’s an interesting setup

---

<div class="post-metadata">

**Author:** ![iampete](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/iampete/32/2864_2.png) [@iampete](https://discuss.cubepilot.org/u/iampete)\
**Post date:** [7 September 2020 17:24 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/16 "2020-09-07T17:24:15Z")

</div>

Yeah, the camera is basically a IP security camera, it has native RTSP.

Bit of a tangent, but my understanding is that IP style cameras are quite common due to the licencing cost associated with having a HDMI connection.

The setup is very basic.

Camera ethernet out -\> USB OTG adapter -\> herelink air -\> herelink ground -\> USB OTG adapter -\> PC ethernet in

I can then logon to the Cameras webpage and point it about, zoom in ect. You can also just view the RTSP stream.

---

<div class="post-metadata">

**Author:** ![Steve](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/steve/32/361_2.png) [@Steve](https://discuss.cubepilot.org/u/Steve)\
**Post date:** [16 September 2020 16:16 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/17 "2020-09-16T16:16:33Z")

</div>

this is a very interesting thread, because of growing popularity of RTSP camera in industrial sector and ethernet cable is handy. I would like the air unit had an integrated ethernet port to avoid clumsy converters etc… or at least an USB-C port, since handles power more reliably

---

<div class="post-metadata">

**Author:** ![2meC](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/2/2acd7d/32.png) [@2meC](https://discuss.cubepilot.org/u/2meC)\
**Post date:** [8 November 2020 07:24 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/18 "2020-11-08T07:24:12Z")

</div>

@Michael_Oborne What changes in routing need to be made? You could provide accurate information.

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [9 November 2020 01:35 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/19 "2020-11-09T01:35:59Z")

</div>

i cant give details for a setup without alot more info from you.

however there is another thread

> [@Herelink ethernet Devices with App](https://discuss.cubepilot.org/t/herelink-ethernet-devices-with-app/4961):
>
> HI guys!, we just got an new IP cam with RJ45 out and completable APP for it, we would like to use the Herelink with USB ethernet adapter on the air side and running the app on the ground controller with Specify ip address, but however as what i read on the other topic that the Herelink ethernet Features is only for transparent link when there’s also an USB adapter on the ground controller, so does the app that runs on the Android system can actually "access " to that network? if it does than …

talking about having a rtsp camera connected via ethernet and viewing it on there herelink GCS

---

<div class="post-metadata">

**Author:** ![Lachlan](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/l/8e8cbc/32.png) [@Lachlan](https://discuss.cubepilot.org/u/Lachlan)\
**Post date:** [8 April 2021 22:12 UTC](https://discuss.cubepilot.org/t/herelink-ethernet/4369/20 "2021-04-08T22:12:35Z")

</div>

@Michael_Oborne  
Hi, I have managed to get this passthrough working using the same setup described without any additional setup needed.

laptop 1 -\> ethernet adaptor -\> herelink -\> herelink air -\> ethernet adaptor -\> laptop 2

I can ping back and forth, and ssh into each computer from the other. However I can not telnet from one to the other, even after I allow tcp on the relevant port using ufw. Is there any additional setup required in order to do this? I intend to eventually have a python application running on each laptop using sockets to communicate (or anything similar), does this connection allow this and would it be suitable? I just cannot find any other information online other than these threads.

Additionally I would like to be able to connect to the flight controller using mission planner on the ground laptop, I can do this using the hotspot on the herelink controller, but it does not work when using the wired connection. It makes sense that it would not work if it is just a transparent ethernet link straight through to laptop 2, but is it possible to be able to do this without having to be connected to the herelink hotspot?

Thanks

Ethernet adaptors used:  
Ground side [Buy the StarTech USB3.0 to Gigabit Ethernet NIC Adapter ( USB31000NDS ) online - PBTech.co.nz](https://www.pbtech.co.nz/product/NICSTT690210/StarTech-USB30-to-Gigabit-Ethernet-NIC-Adapter)  
Air side [https://www.pbtech.co.nz/product/ADPSTT2374377/StarTech-USB31000SW-USB-30-to-Gigabit-Ethernet-NIC](https://www.pbtech.co.nz/product/ADPSTT2374377/StarTech-USB31000SW-USB-30-to-Gigabit-Ethernet-NIC)

[Next page](https://discuss.cubepilot.org/t/herelink-ethernet/4369.md?page=2)
