mavlink / MAVSDK

API and library for MAVLink compatible systems written in C++17
https://mavsdk.mavlink.io
BSD 3-Clause "New" or "Revised" License
596 stars 493 forks source link

mavsdk_server can't discover system #2336

Open Hmilzy opened 1 month ago

Hmilzy commented 1 month ago

Hello ! I have a raspiberry pi , it linked with Pixhawk 6X throught serial. rapi: serial0 -> ttyAMA0 I have set some parameters using QGC like this :

  1. MAV_1_CONFIG = TELE 2
  2. MAV_1_MODE = Onboard
  3. MAV_1_RATE = 5000
  4. MAV_1_FORWARD = Disabled
  5. SER_TEL2_BAUD = 921600

Firmware Version : 1.14.0 mavsdk_server Verson: 1.4.17

I deploy mavsdk_server in raspi, but it seems not discover mav_system. Do you have any advices ? Thank you !

./mavsdk_server_linux-arm64-musl -p 50040 serial:///dev/ttyAMA0:921600

b9d785a6595bc75e329e92fbda739ec

julianoes commented 1 month ago

That all looks correct.

Have you checked whether any bytes are arriving? E.g. using screen? If not, it would be some electrical issue. Make sure Tx and Rx are crossed over (so tx goes to rx and vice versa), and make sure GND is also connected.

You are using an old version of MAVSDK (and PX4). Is that on purpose?