Hi all,
I’ve been trying to set up a connection between my Pixhawk 4 (configured with the latest PX4 version, 1.16.0) and RPi 4 (running Ubuntu 22.04 and ROS2 Humble) using UART. I’ve done the wiring as explained in the official documentation (Raspberry Pi Companion with Pixhawk | PX4 Guide (main)), but I cannot seem to establish a connection between the two.
I’ve tried MAVLink communication over UART (sudo mavproxy.py --master=/dev/serial0 --baudrate 57600), to verify the connection, with the following settings:
MAV_1_CONFIG = TELEM2
UXRCE_DDS_CFG = 0 (Disabled)
SER_TEL2_BAUD = 57600
This yields the following output:
sudo mavproxy.py --master=/dev/serial0 --baudrate 57600 Connect /dev/serial0 source_system=255 Log Directory: Telemetry log: mav.tlog Waiting for heartbeat from /dev/serial0 MAV> link 1 down
I have also tried connecting with uXRCE-DDS (installed on my RPi), which is my ultimate goal, with the settings as follows:
MAV_1_CONFIG = 0 (Disabled)
UXRCE_DDS_CFG = 102 (TELEM2)
SER_TEL2_BAUD = 921600
On the pixhawk’s side (MAVLink console in QGC) the client says it’s running but disconnected. Running the agent (sudo MicroXRCEAgent serial --dev /dev/serial0 -b 921600 -v6) leads to the following output, and does not establish a working connection:
sudo MicroXRCEAgent serial --dev /dev/serial0 -b 921600
[1761061750.978626] info | TermiosAgentLinux.cpp | init | running… | fd: 3
[1761061750.996316] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 4
Any help would be greatly appreciated!