Cheatsheet — Connection Strings
Quick reference for MAVLink connection URIs across different tools and transports.
text
╔══════════════════════════════════════════════════════════════════════════╗ ║ Pymavlink connection strings ║ ╠══════════════════════════════════════════════════════════════════════════╣ ║ udpin:0.0.0.0:14550 Listen for UDP (GCS / SITL default) ║ ║ udpout:127.0.0.1:14550 Send UDP to target ║ ║ tcp:127.0.0.1:5760 TCP client (ArduPilot SITL default) ║ ║ tcpin:0.0.0.0:5760 TCP server (listen for connections) ║ ║ /dev/ttyUSB0,57600 Serial at 57600 baud ║ ║ /dev/ttyACM0,115200 USB serial (Pixhawk) ║ ║ COM3,57600 Windows serial port ║ ╚══════════════════════════════════════════════════════════════════════════╝
text
╔══════════════════════════════════════════════════════════════════════════╗ ║ MAVSDK connection strings ║ ╠══════════════════════════════════════════════════════════════════════════╣ ║ udp://:14540 Listen UDP (PX4 SITL API port) ║ ║ udp://127.0.0.1:14550 Target specific address ║ ║ serial:///dev/ttyUSB0:57600 Serial with baud rate ║ ║ tcp://127.0.0.1:5760 TCP to ArduPilot SITL ║ ╚══════════════════════════════════════════════════════════════════════════╝
text
╔══════════════════════════════════════════════════════════════════════════╗ ║ QGroundControl default ports ║ ╠══════════════════════════════════════════════════════════════════════════╣ ║ UDP 14550 Incoming link (GCS ← autopilot) ║ ║ UDP 14555 Custom widget / video control ║ ║ TCP 5760 TCP connection to SITL ║ ╚══════════════════════════════════════════════════════════════════════════╝
text
╔══════════════════════════════════════════════════════════════════════════╗ ║ MAVProxy multiplexing ║ ╠══════════════════════════════════════════════════════════════════════════╣ ║ mavproxy.py --master=udp:127.0.0.1:14550 \ ║ ║ --out=udp:127.0.0.1:14551 \ ║ ║ --out=udp:127.0.0.1:14552 ║ ║ ║ ║ Creates two extra forwarded outputs for GCS + your app. ║ ╚══════════════════════════════════════════════════════════════════════════╝