Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. Qualcomm Flight RB5 5G Drone
  4. MAVSDK not connecting to the RB5 drone

MAVSDK not connecting to the RB5 drone

Scheduled Pinned Locked Moved Qualcomm Flight RB5 5G Drone
9 Posts 3 Posters 1.6k Views 1 Watching
  • 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 Offline
    A Offline
    Advait Pandit
    Contributor
    wrote on last edited by
    #1

    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
    0
    • A Advait Pandit

      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 Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @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
      0
      • Eric KatzfeyE Eric Katzfey

        @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 Offline
        A Offline
        Advait Pandit
        Contributor
        wrote on last edited by
        #3

        @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
        0
        • A Advait Pandit

          @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 Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          @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
          0
          • Eric KatzfeyE Eric Katzfey

            @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 Offline
            A Offline
            Advait Pandit
            Contributor
            wrote on last edited by
            #5

            @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
            0
            • A Advait Pandit

              @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 Offline
              Eric KatzfeyE Offline
              Eric Katzfey
              ModalAI Team
              wrote on last edited by
              #6

              @Advait-Pandit Are you able to connect QGC?

              A 1 Reply Last reply
              0
              • Eric KatzfeyE Eric Katzfey

                @Advait-Pandit Are you able to connect QGC?

                A Offline
                A Offline
                Advait Pandit
                Contributor
                wrote on last edited by
                #7

                @Eric-Katzfey

                Yes it connects to GCS properly on station mode.

                Eric KatzfeyE 1 Reply Last reply
                0
                • A Advait Pandit

                  @Eric-Katzfey

                  Yes it connects to GCS properly on station mode.

                  Eric KatzfeyE Offline
                  Eric KatzfeyE Offline
                  Eric Katzfey
                  ModalAI Team
                  wrote on last edited by
                  #8

                  @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
                  0
                  • Eric KatzfeyE Eric Katzfey

                    @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 Offline
                    D Offline
                    dvPr1m3
                    wrote on last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    ModalAI
                    Categories Recent Tags ModalAI.com Docs
                    © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups