# Talking to Rpi Companion Computer on Pixhawk 6 over Sik Radios

**URL:** <https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648>\
**Category:** PX4 Autopilot\
**Created:** [April 5, 2024, 7:18pm UTC](https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648 "2024-04-05T19:18:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cshort01](https://discuss.px4.io/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@cshort01](https://discuss.px4.io/u/cshort01)\
**Post date:** [April 5, 2024, 7:18pm UTC](https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648/1 "2024-04-05T19:18:06Z")

</div>

Hi there,

My goal is to operate an autopilot drone via an Rpi companion computer. At this point I have been able to get MAVSDK-Python and mavsdk\_server running on the Rpi. I have also made a telemetry connection between the Pixhawk 6 and a mavsdk\_server running on my ground station computer, verified by QGC as well.

My question is, how do I move this server to the Rpi and communicate to it over the Sik telemetry radio? Meaning, how can I initiate the server and receive data from the Rpi through the telemetry connection to the pixhawk on the ground station? Is this possible to do without a wifi connection to the Rpi? (Sorry I’m a bit of a noob)

Many thanks

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [April 5, 2024, 11:05pm UTC](https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648/2 "2024-04-05T23:05:59Z")

</div>

I would connect the RPi using an FTDI cable to the Pixhawk.

Have you seen these docs?

> **[Companion Computer Peripherals | PX4 Guide (main)](https://docs.px4.io/main/en/companion_computer/companion_computer_peripherals.html#ftdi-devices)**
>
> PX4 User and Developer Guide

---

<div class="post-metadata">

**Author:** ![cshort01](https://discuss.px4.io/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@cshort01](https://discuss.px4.io/u/cshort01)\
**Post date:** [April 5, 2024, 11:37pm UTC](https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648/3 "2024-04-05T23:37:43Z")

</div>

Thanks for the response Julian. Sorry I should’ve been more clear. I have the hardware all connected with the Pi connected to Telem 2, but I’m struggling to understand how I can send commands and receive data from the raspberry pi through the pixhawk telemetry connection with the ground station. Say I have a program written with MAVSDK-Python on the Pi, how would I go about running accessing this program remotely from the ground station through the telemetry mavlink connection? Essentially I’m wondering how I can communicate to the Pi on Telem2 using the ground station. Would this be done in Mavlink code on the ground station? Can it be done with the MAVSDK-Python Library?

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [April 6, 2024, 9:18pm UTC](https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648/4 "2024-04-06T21:18:49Z")

</div>

I understand. Can you explain what sort of command that would be, so on a high level, what are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![cshort01](https://discuss.px4.io/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@cshort01](https://discuss.px4.io/u/cshort01)\
**Post date:** [April 8, 2024, 4:05pm UTC](https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648/5 "2024-04-08T16:05:59Z")

</div>

Ultimately we want to do a leader/follower algorithm with 3 drones. We want to send and receive GPS/RTK data, Hardware ID data and RSSI data from a LoRa module connected to an RPi on each drone. Each drone will be receiving all this data individually, the location data from QGC and the RSSI data from an on board Pi. We want to route this data from the two followers, through the QGC Sik telemetry connection, to the leader drone.

But for now our current hurdle in hardware dev is figuring out how to get data from an onboard RPi to the ground station over the telemetry connection when Mavsdk is being run on the RPi and not the ground station computer.

So, for a first step in hardware dev I would like to run takeoff\_and\_land.py on the RPi’s Mavsdk server and initiate this from the ground station.

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [April 11, 2024, 11:17pm UTC](https://discuss.px4.io/t/talking-to-rpi-companion-computer-on-pixhawk-6-over-sik-radios/37648/6 "2024-04-11T23:17:32Z")

</div>

So as a first step you probably just want to forward MAVLink traffic on the RPi. So that data from the drone goes to MAVSDK as well as the ground station.

You can do that using something like [mavlink-router](https://github.com/mavlink-router/mavlink-router), or you can add multiple connections in MAVSDK and [enable forwarding](https://mavsdk.mavlink.io/main/en/cpp/guide/connections.html#forwarding-mavlink-between-connections).
