ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyAMA0 -b 115200
Worked fine for me.
Which OS are you using? ROS2 usually runs on Ubuntu, which doesn’t have raspi-config, so I manually had to edit `enable_uart=1` to `/boot/firmware/config.txt
We’re running Ubuntu 22.04 in Docker on Pi OS Lite.
When I used /dev/ttyAMA0 instead of /dev/ttyS0, I was able to establish a connection (see picture below).
However, any ros2 service requests result in no response, and echoing topics also produces no output.
I’ve come across other forum posts with similar issues, and some users reported success by enabling UART flow control (or by switching to Ethernet instead of serial).
My flight controller doesn’t have UART flow-control pins or Ethernet support. The ArduPilot ROS2 Pi guide only shows a UART connection without flow control.
I also tried baud rates of 57600 and 230400, but the issue persists.