JETCORE FC: Detecting Cube on Jetson over USB and forwarding MAVLink

The JETCORE system connects its Cube flight controller (FC) directly to the onboard NVIDIA Jetson through USB. The Jetson then runs a MAVProxy session that forwards the FC’s MAVLink data to a Ground Control Station (GCS) over UDP.

The architecture is straightforward:

Cube FC
   │
   │ USB
   ▼
NVIDIA Jetson
   │
   │ MAVProxy session
   │ UDP → <GCS_IP>:<UDP_PORT>
   ▼
Ground Control Station

There is one physical communication link between the Cube FC and Jetson—the USB connection—and one network output from MAVProxy to the GCS IP address and UDP port.

USB connection between the Cube FC and Jetson

When the JETCORE system is powered, the Jetson detects the Cube FC as a USB serial device. It will normally appear as:

/dev/ttyACM0

Depending on USB enumeration order, it may instead appear as /dev/ttyACM1 or another ACM device number.

Check the available device with:

ls /dev/ttyACM*

The kernel log can also confirm that Linux detected the FC:

sudo dmesg | grep -i ttyACM

Typical output looks similar to:

cdc_acm 1-2:1.0: ttyACM0: USB ACM device

To inspect the detected device in more detail, run:

udevadm info -q property -n /dev/ttyACM0

This helps confirm that the selected serial device belongs to the Cube FC.

Serial-port permission

Check the permissions on the detected device:

ls -l /dev/ttyACM0

If access is controlled by the dialout group, add the Jetson user to it:

sudo usermod -aG dialout "$USER"

Log out and log back in before starting MAVProxy again.

Starting the MAVProxy session

MAVProxy opens the Cube FC’s USB serial device and sends the MAVLink stream to the GCS through a UDP output.

Use the following command structure:

mavproxy.py \
  --master=/dev/ttyACM0 \
  --baudrate=115200 \
  --out=udp:<GCS_IP>:<UDP_PORT>

For example:

mavproxy.py \
  --master=/dev/ttyACM0 \
  --baudrate=115200 \
  --out=udp:192.168.1.100:14550

Replace the example address with the IP address of the system running the GCS. The UDP port in MAVProxy and the GCS must match.

  • --master=/dev/ttyACM0 selects the Cube FC connected through USB.
  • --baudrate=115200 sets the demonstrated serial rate.
  • --out=udp:<GCS_IP>:<UDP_PORT> sends MAVLink packets to one UDP destination.

The tested setup shown in the recording used /dev/ttyACM0, 115200 baud, and a single IP-address-and-port output.

Connecting the GCS

After MAVProxy starts receiving data from the Cube FC:

  1. Confirm that the Jetson and GCS system are on the same reachable network.
  2. Start the GCS application.
  3. Select a UDP connection.
  4. Use the same UDP port configured in the MAVProxy --out argument.
  5. Wait for the MAVLink heartbeat and vehicle data.

The complete data path is:

Cube FC USB port
    → /dev/ttyACM0 on Jetson
    → MAVProxy
    → UDP packet stream
    → GCS system IP and UDP port
    → Ground Control Station

The GCS does not communicate with the Cube FC over a second USB connection. It receives the MAVLink stream sent by the MAVProxy session running on the Jetson.

Verifying the connection

When the connection is working:

  • MAVProxy reports that it has connected to the serial master.
  • MAVProxy receives a heartbeat from the Cube FC.
  • The FC firmware and vehicle information appear in the MAVProxy console.
  • The GCS receives the forwarded heartbeat through UDP.
  • The GCS displays live vehicle status and telemetry.

The supplied demonstration showed the Cube FC connected as /dev/ttyACM0, MAVProxy receiving ArduCopter data, and the GCS displaying the connected vehicle.

Troubleshooting

The Cube FC does not appear on the Jetson

Run:

ls /dev/ttyACM*
sudo dmesg | grep -i ttyACM

Then check:

  • The Jetson is powered and running.
  • The Cube FC is powered.
  • The USB connection between the FC and Jetson is secure.
  • The FC firmware exposes a USB serial interface.

MAVProxy cannot open the serial device

Confirm the device name and permissions:

ls -l /dev/ttyACM0
sudo lsof /dev/ttyACM0

Another application must not already own the Cube FC serial port.

MAVProxy connects, but the GCS receives nothing

Check the following:

  • The --out address is the GCS system’s IP address.
  • The UDP port matches the port opened by the GCS.
  • The Jetson can reach the GCS system over the network.
  • A firewall is not blocking the selected UDP port.
  • MAVProxy is receiving a heartbeat from the Cube FC.

You can test basic network reachability from the Jetson with:

ping <GCS_IP>

Device-name stability

The Cube FC may not always enumerate as /dev/ttyACM0. For a permanent installation, create a udev rule that gives it a stable name such as /dev/jetcore-fc.

MAVProxy can then use the stable device:

mavproxy.py \
  --master=/dev/jetcore-fc \
  --baudrate=115200 \
  --out=udp:<GCS_IP>:<UDP_PORT>

Summary

The JETCORE FC communication architecture consists of three parts:

  1. The Cube FC communicates with the Jetson through USB.
  2. MAVProxy on the Jetson reads MAVLink from the Cube FC.
  3. MAVProxy forwards the MAVLink stream to the GCS system’s IP address on one UDP port.
Cube FC ──USB──> Jetson/MAVProxy ──UDP──> GCS

Once the correct USB device, GCS IP address, and UDP port are configured, the GCS can receive the Cube FC heartbeat and telemetry through the Jetson.

If the ACM number changes between boots, pin the Cube to a stable device path with a udev rule instead of relying on /dev/ttyACM0. Use udevadm info -a -n /dev/ttyACM0 to find a stable attribute such as the USB serial number, then create a rule that adds a symlink like /dev/cube_fc. MAVProxy can then use --master=/dev/cube_fc without editing the command after enumeration changes.