ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    MAVSDK not connecting to the RB5 drone

    Qualcomm Flight RB5 5G Drone
    3
    9
    509
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Advait Pandit
      last edited by

      Hello,

      Apologies for so many questions, I have a project deadline coming up. I have a MAVSDK script file that I need to run on my laptop to connect to the drone using udp connection. I have tried using the default 14540 port among others which include 14550 (gcs), 14560, 14556, 14557, 14558 etc. None of which establish a connection.

      I am stuck here. When I run this on SITL it does connect with the simulation and runs well. But now I need to use it on my physical drone but I am unable to move forward.

      As a background, I am doing a project where I need to use my lab computer (running Windows) to send MoCap from OptiTrack to the MAVSDK script which receives the data, unpacks it and uses it as telemetry for the drone. This script is being executed on my personal laptop running Ubuntu. Now, this script needs to connect to the drone in order to execute this program and that's where I am stuck. Can you please advise me on this. Thanks!

      Kind regards,

      Advait P

      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @Advait Pandit
        last edited by

        @Advait-Pandit What kind of a network are you using? Is this WiFi? Are you connecting via access point or are you configuring the drone to be the access point? Can you ping the drone from your laptop? Can you ping the laptop from your drone?

        A 1 Reply Last reply Reply Quote 0
        • A
          Advait Pandit @Eric Katzfey
          last edited by

          @Eric-Katzfey

          I am using my laptop for running the MAVSDK script, both (the drone and my laptop) are connected to the same wifi network. I am new to this therefore, I am not sure how I can ping the drone from my laptop or vice versa. Also, the wifi network is only set up to work with multi-device projects in the lab and does not have internet on it.

          Is there a specific port I need to connect to for the drone when using udp? For simulation purposes using Jmavsim or Gazebo and the same MAVSDK script, it works with Port:14540 but this does not work for the physical drone.

          Kind regards,

          Advait P

          Eric KatzfeyE 1 Reply Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @Advait Pandit
            last edited by

            @Advait-Pandit You really need to verify basic network connectivity before anything else. That is why I suggested the ping test. Ping is a very fundamental command used to help troubleshoot and verify networks.

            A 1 Reply Last reply Reply Quote 0
            • A
              Advait Pandit @Eric Katzfey
              last edited by

              @Eric-Katzfey

              I was able to ping both my laptop from the RB5 and the RB5 from my laptop. I am attaching the screenshots below. It seems to be working fine so I am unsure why it does not connect as expected on the port.

              Drone pinging the laptop:
              Screenshot from 2024-04-03 17-06-50.png

              Laptop pinging the drone:
              Screenshot from 2024-04-03 17-09-29.png

              Kind regards,

              Advait P

              Eric KatzfeyE 1 Reply Last reply Reply Quote 0
              • Eric KatzfeyE
                Eric Katzfey ModalAI Team @Advait Pandit
                last edited by

                @Advait-Pandit Are you able to connect QGC?

                A 1 Reply Last reply Reply Quote 0
                • A
                  Advait Pandit @Eric Katzfey
                  last edited by

                  @Eric-Katzfey

                  Yes it connects to GCS properly on station mode.

                  Eric KatzfeyE 1 Reply Last reply Reply Quote 0
                  • Eric KatzfeyE
                    Eric Katzfey ModalAI Team @Advait Pandit
                    last edited by

                    @Advait-Pandit You can trace the packets used for the QGC connection with tcpdump and compare against what is happening with mavsdk. That should help you to understand what is going wrong.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      dvPr1m3 @Eric Katzfey
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB | Contributors