Connectivity
How PX4 on VOXL 2 reaches QGroundControl through voxl-mavlink-server over an IP link.
Table of contents
PX4 connectivity
PX4 uses the Mavlink protocol to communicate to the outside world (Including QGroundControl). Generally this is handled over an IP link when using VOXL2. PX4 on VOXL2 utilizes a custom Mavlink router called voxl-mavlink-server to route all Mavlink traffic correctly.
voxl-mavlink-server Daemon
Enable Daemon
voxl-px4 communicates over IP to the outside world using the voxl-mavlink-server daemon. To enable, run the following:
voxl-configure-mavlink-server factory_enable
Example output from running command for reference:
voxl2-mini:/$ voxl-configure-mavlink-server factory_enable
wiping old config file
Created new json file: /etc/modalai/voxl-mavlink-server.conf
enabling voxl-mavlink-server systemd service
Done configuring voxl-mavlink-server
IP Connection
- VOXL 2: see WiFi setup.
- VOXL 2 Mini: see VOXL 2 Mini USB connections to get a USB port, then add a network adapter such as a WiFi dongle (e.g.
awus036acs).
adb alone does not carry IP traffic. To run QGroundControl over the USB-C cable, set up USB networking as described in Accessing QGC via ADB.
GCS Connection using WiFi - Using SoftAP
If using a WiFi dongle, an easy way to get a connection going is to setup VOXL 2 / VOXL 2 Mini as a Soft AP (access point) and have your host computer connect wirelessly to it.
In this mode VOXL 2 / VOXL 2 Mini gives the host PC the address 192.168.8.10, which is also the default address voxl-mavlink-server sends to, so QGroundControl connects with no further setup.
GCS Connection using WiFi Station Mode or Ethernet Adapter
If using WiFi in Station Mode or an Ethernet Adapter, connect VOXL 2 / VOXL 2 Mini to the same network as your QGC and update the configuration file’s primary_static_gcs_ip field at /etc/modalai/voxl-mavlink-server.conf
Differences
When using PX4 on VOXL2 it is important to note a few differences to other micro-controller based platforms such as Pixhawk.
- QGroundControl does not connect to the USB-C port as a serial device; it needs an IP link (see above)
- The Mavlink console in QGroundControl does not work with VOXL2
- Software update is not handled via QGroundControl. It is done via Debian packages.