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

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. MAVSDK running on another computer for HITL

MAVSDK running on another computer for HITL

Scheduled Pinned Locked Moved Ask your questions right here!
12 Posts 3 Posters 2.1k 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.
  • Zachary Lowell 0Z Offline
    Zachary Lowell 0Z Offline
    Zachary Lowell 0
    ModalAI Team
    wrote on last edited by
    #2

    @kerct you can only use port 14540 in SITL when using mavsdk or mavros or something on the same computer running SITL. That is what that port is meant for - you cannot traverse through the router on that port and send packets forwards. As for mavsdk on a parent computer to the voxl2 running in HITL, you are not able to use port 14551 unless you are running mavsdk onboard as that port is meant for localhost traversal. So that just leaves port 14550, aka the port blocking qgc. So in this instance, you can either use port 14550 without QGC and leverage your mavsdk code, or vise versa. I would recommend using port 14550 for QGC and then running your application onboard the voxl2 using port 14551 as that is what it is meant to do.

    Zach

    K 1 Reply Last reply
    0
    • Zachary Lowell 0Z Zachary Lowell 0

      @kerct you can only use port 14540 in SITL when using mavsdk or mavros or something on the same computer running SITL. That is what that port is meant for - you cannot traverse through the router on that port and send packets forwards. As for mavsdk on a parent computer to the voxl2 running in HITL, you are not able to use port 14551 unless you are running mavsdk onboard as that port is meant for localhost traversal. So that just leaves port 14550, aka the port blocking qgc. So in this instance, you can either use port 14550 without QGC and leverage your mavsdk code, or vise versa. I would recommend using port 14550 for QGC and then running your application onboard the voxl2 using port 14551 as that is what it is meant to do.

      Zach

      K Offline
      K Offline
      kerct
      Contributor
      wrote on last edited by
      #3

      @Zachary-Lowell-0 I was trying the MAVSDK example which didn't work but after trying the example, I can't run HITL anymore (which worked previously)... not sure what's the issue here?

      9366dea7-4e64-4a39-9d27-c91ac223a206-image.png

      99b36e87-9f24-4f59-9387-87a6c4bccb02-image.png

      Eric KatzfeyE 1 Reply Last reply
      0
      • K kerct

        @Zachary-Lowell-0 I was trying the MAVSDK example which didn't work but after trying the example, I can't run HITL anymore (which worked previously)... not sure what's the issue here?

        9366dea7-4e64-4a39-9d27-c91ac223a206-image.png

        99b36e87-9f24-4f59-9387-87a6c4bccb02-image.png

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

        @kerct If you power cycle the board does it do the same thing every time? It's acting like there is already code running on the DSP.

        K 2 Replies Last reply
        0
        • Eric KatzfeyE Eric Katzfey

          @kerct If you power cycle the board does it do the same thing every time? It's acting like there is already code running on the DSP.

          K Offline
          K Offline
          kerct
          Contributor
          wrote on last edited by
          #5

          @Eric-Katzfey Yes I still get the same error after power cycle

          1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @kerct If you power cycle the board does it do the same thing every time? It's acting like there is already code running on the DSP.

            K Offline
            K Offline
            kerct
            Contributor
            wrote on last edited by
            #6

            @Eric-Katzfey I'm also unable to connect to QGC now (without HITL). On VOXL portal I can still see the camera and pointclouds, but not the status of the drone.

            6fd26783-7309-4806-8e97-2be46d5a6973-image.png

            11db34e0-4c9a-4a38-b6cd-91f9fb7be2a9-image.png

            c856daa6-409a-4791-8759-c551cc293489-image.png

            9a66f134-b08e-4ded-8e30-e5aa118bb773-image.png

            Eric KatzfeyE 2 Replies Last reply
            0
            • K kerct

              @Eric-Katzfey I'm also unable to connect to QGC now (without HITL). On VOXL portal I can still see the camera and pointclouds, but not the status of the drone.

              6fd26783-7309-4806-8e97-2be46d5a6973-image.png

              11db34e0-4c9a-4a38-b6cd-91f9fb7be2a9-image.png

              c856daa6-409a-4791-8759-c551cc293489-image.png

              9a66f134-b08e-4ded-8e30-e5aa118bb773-image.png

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

              @kerct Can you use the SDK 1.1.2 installer to do a fresh install of the latest SDK (available here: https://developer.modalai.com/asset/2) and then see if the problem still exists?

              K 1 Reply Last reply
              0
              • K kerct

                @Eric-Katzfey I'm also unable to connect to QGC now (without HITL). On VOXL portal I can still see the camera and pointclouds, but not the status of the drone.

                6fd26783-7309-4806-8e97-2be46d5a6973-image.png

                11db34e0-4c9a-4a38-b6cd-91f9fb7be2a9-image.png

                c856daa6-409a-4791-8759-c551cc293489-image.png

                9a66f134-b08e-4ded-8e30-e5aa118bb773-image.png

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

                @kerct I generally start by doing a fresh install. Then try to get HITL working with Gazebo without QGroundControl. Then add QGroundControl. And finally, when all of that seems to be working, add MAVSDK.

                1 Reply Last reply
                0
                • Eric KatzfeyE Eric Katzfey

                  @kerct Can you use the SDK 1.1.2 installer to do a fresh install of the latest SDK (available here: https://developer.modalai.com/asset/2) and then see if the problem still exists?

                  K Offline
                  K Offline
                  kerct
                  Contributor
                  wrote on last edited by
                  #9

                  @Eric-Katzfey will this work with SDK 1.0.0 too? would like to stick with that version for now since we have been testing with this version for our project

                  Eric KatzfeyE 3 Replies Last reply
                  0
                  • K kerct

                    @Eric-Katzfey will this work with SDK 1.0.0 too? would like to stick with that version for now since we have been testing with this version for our project

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

                    @kerct We've many numerous improvements to HITL support since 1.0.0.

                    1 Reply Last reply
                    0
                    • K kerct

                      @Eric-Katzfey will this work with SDK 1.0.0 too? would like to stick with that version for now since we have been testing with this version for our project

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

                      @kerct Perhaps you can try SDK 1.1.2 and just verify that you can get it all working the way that you want. That will at least rule out any issues coming from your environment. Then, if that all works fine, go back to 1.0.0 and see if you can determine which part is not working.

                      1 Reply Last reply
                      0
                      • K kerct

                        @Eric-Katzfey will this work with SDK 1.0.0 too? would like to stick with that version for now since we have been testing with this version for our project

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

                        @kerct But I would strongly suggest moving to SDK 1.1.2. It's very hard for us to support customers using older SDK versions.

                        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