# Voxl2 mini Mavlink server

Source: https://forum.modalai.com/topic/3904/voxl2-mini-mavlink-server
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2-mini
Posted: 2024-11-04 15:54:23 UTC by McMason
Replies: 5 · Views: 1392

## McMason · 2024-11-04 15:54:23 UTC

Good morning, 

Looking at the mavlink server and needing be able to send a command to control a gimbal device. I am trying to test the status of the server and i only get waiting for pipe to connect. 

I am connected to an external FC through UART pins 4 and 5 on J10 and we are able to control the UAS from the voxl2 for our usecase. Looking to get some guidance on where to turn to. 

Matt

## Reply by Zachary Lowell 0 · 2024-11-04 17:49:35 UTC

@McMason said in [Voxl2 mini Mavlink server](/post/19556):
> Looking 

Hi @McMason - did you ever update the config file for voxl-malvink-server so that way it knows you are using external FC and on the right UART - you can follow the instructions here: https://docs.modalai.com/voxl2-external-flight-controller/

LMK if this helps.
Zach

## Reply by McMason · 2024-11-05 15:29:21 UTC

Hi @Zachary-Lowell-0 I did update the config file using uart bus 0 and the correct baud rates, as well as the external FC params. When I use voxl-inspect-mavlink mavlink_onboard i am not seeing the ID of the FC populate. I see there is areas in the vision hub conf file for mavlink. Also the guide mentions using voxl-cross docker. Is this needed for the mavlink server to talk to an FC via mavlink? In respect to the serial line the vehicle is navigating from the Voxl minis input and i would assume its good.

## Reply by Zachary Lowell 0 · 2024-11-05 15:39:39 UTC

@McMason said in [Voxl2 mini Mavlink server](/post/19568):
>  navigating from the Voxl minis input and i would assume its good.

@McMason docker is used just for building and or using mavsdk not for mavlink server - are you positive you have your TX/RX wired propoerly? TX goes to RX and RX goes to TX, etc. 

Furthermore can you take a screenshot of your rig? I want to see what hat you are using as well as a copy your config file here for voxl-mavlink-server.conf

Zach

## Reply by McMason · 2024-11-05 16:00:48 UTC

Hi @Zachary-Lowell-0 the serial line is correct, i do see there is an established connection to a flight controller with sys id of 2. Running our developed code we are able to follow a target based on target in frames, the aircraft responds well to VOXL2 mini inputs and corrections. 

What is the expected outcome of running the mavlink inspect sys_status? should it show a data stream, again I am just seeing waiting for pipe to connect. 

{
	"primary_static_gcs_ip":	"192.168.8.10",
	"secondary_static_gcs_ip":	"192.168.8.11",
	"onboard_port_to_autopilot":	14556,
	"onboard_port_from_autopilot":	14557,
	"gcs_port_to_autopilot":	14558,
	"gcs_port_from_autopilot":	14559,
	"en_external_uart_ap":	true,
	"autopilot_uart_bus":	0,
	"autopilot_uart_baudrate":	921600,
	"en_external_ap_timesync":	1,
	"en_external_ap_heartbeat":	1,
	"udp_mtu":	0,
	"gcs_timeout_s":	4.5

Tried to send you the file, but it says i do not have the privileges to do so. I am not using a HAT board on the VOXL2 MINI, i am using J10 pins 4 and 5 respectively for the UART TX and RX.

## Reply by McMason · 2024-11-05 16:18:37 UTC

@Zachary-Lowell-0   Am I using the wrong serial port? Currently set up with TTYHS0 on J10

![f1e6e745-20ab-415b-bb6e-e5a1074ab810-image.png](https://forum.modalai.com/assets/uploads/files/1730823460396-f1e6e745-20ab-415b-bb6e-e5a1074ab810-image.png) 

In the guide its showing the QUPs on J19 being connected 

![9f406335-3fc6-45cc-a78e-43062a6c2d7b-image.png](https://forum.modalai.com/assets/uploads/files/1730823513076-9f406335-3fc6-45cc-a78e-43062a6c2d7b-image.png)
