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. Additional UDP Port Setting

Additional UDP Port Setting

Scheduled Pinned Locked Moved Ask your questions right here!
9 Posts 2 Posters 589 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.
  • voxltesterV Offline
    voxltesterV Offline
    voxltester
    Contributor
    wrote last edited by voxltester
    #1

    Hi,
    I would like to have one more additional port to communicate VOXL2 from my laptop.
    This is the current voxl-mavlink-server.conf

    {
    	"primary_static_gcs_ip":	"10.223.0.4",
    	"primary_static_gcs_ip_port":	14550,
    	"secondary_static_gcs_ip":	"10.223.0.4",
    	"secondary_static_gcs_ip_port":	14600,
    	"onboard_port_to_autopilot":	14556,
    	"onboard_port_from_autopilot":	14557,
    	"gcs_port_to_autopilot":	14558,
    	"gcs_port_from_autopilot":	14559,
    	"en_external_uart_ap":	false,
    	"autopilot_uart_bus":	1,
    	"autopilot_uart_baudrate":	921600,
    	"autopilot_mission_delay_start":	-1,
    	"autopilot_mission_delay_sound":	false,
    	"autopilot_mission_force_restart":	0,
    	"autopilot_mission_notif_dur":	0.1,
    	"en_external_ap_timesync":	1,
    	"en_external_ap_heartbeat":	1,
    	"udp_mtu":	512,
    	"gcs_timeout_s":	4.5
    }
    

    I am using 14550 for QGC and 14600 for MAVROS.
    Is it possible to have one more UDP port for MAVSDK? I would like to run mavsdk from my laptop by running await drone.connect(system_address="udp://:14xxx")

    Please let me know.
    I would like to know if the following explanation is true;
    Up to 16 simultaneous external UDP connections can be established with voxl-mavlink-server. These can be connections to qGroundControl, MAVROS, MAVSDK, or any custom software on the same network as VOXL.
    in https://docs.modalai.com/mavlink/#mavlink-routing-on-voxl

    Eric KatzfeyE 1 Reply Last reply
    0
    • voxltesterV voxltester

      Hi,
      I would like to have one more additional port to communicate VOXL2 from my laptop.
      This is the current voxl-mavlink-server.conf

      {
      	"primary_static_gcs_ip":	"10.223.0.4",
      	"primary_static_gcs_ip_port":	14550,
      	"secondary_static_gcs_ip":	"10.223.0.4",
      	"secondary_static_gcs_ip_port":	14600,
      	"onboard_port_to_autopilot":	14556,
      	"onboard_port_from_autopilot":	14557,
      	"gcs_port_to_autopilot":	14558,
      	"gcs_port_from_autopilot":	14559,
      	"en_external_uart_ap":	false,
      	"autopilot_uart_bus":	1,
      	"autopilot_uart_baudrate":	921600,
      	"autopilot_mission_delay_start":	-1,
      	"autopilot_mission_delay_sound":	false,
      	"autopilot_mission_force_restart":	0,
      	"autopilot_mission_notif_dur":	0.1,
      	"en_external_ap_timesync":	1,
      	"en_external_ap_heartbeat":	1,
      	"udp_mtu":	512,
      	"gcs_timeout_s":	4.5
      }
      

      I am using 14550 for QGC and 14600 for MAVROS.
      Is it possible to have one more UDP port for MAVSDK? I would like to run mavsdk from my laptop by running await drone.connect(system_address="udp://:14xxx")

      Please let me know.
      I would like to know if the following explanation is true;
      Up to 16 simultaneous external UDP connections can be established with voxl-mavlink-server. These can be connections to qGroundControl, MAVROS, MAVSDK, or any custom software on the same network as VOXL.
      in https://docs.modalai.com/mavlink/#mavlink-routing-on-voxl

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote last edited by
      #2

      @voxltester The primary and secondary ip / port configurations are for destinations. voxl-mavlink-server will initiate connections to those. For incoming connections just send to port 14550. voxl-mavlink-server is listening on that port. When an incoming message from a new ip / port combo comes in it will store that and consider that a new connection. If you use drone.connect it is waiting for voxl-mavlink-server to connect to it rather than attempting to connect to voxl-mavlink-server on it's own.

      voxltesterV 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @voxltester The primary and secondary ip / port configurations are for destinations. voxl-mavlink-server will initiate connections to those. For incoming connections just send to port 14550. voxl-mavlink-server is listening on that port. When an incoming message from a new ip / port combo comes in it will store that and consider that a new connection. If you use drone.connect it is waiting for voxl-mavlink-server to connect to it rather than attempting to connect to voxl-mavlink-server on it's own.

        voxltesterV Offline
        voxltesterV Offline
        voxltester
        Contributor
        wrote last edited by
        #3

        @Eric-Katzfey
        Thank you for your answer.
        In my setup, is it possible to have one more UDP port for MAVSDK?
        How can I have an additional simultaneous external UDP connection?

        Eric KatzfeyE 1 Reply Last reply
        0
        • voxltesterV voxltester

          @Eric-Katzfey
          Thank you for your answer.
          In my setup, is it possible to have one more UDP port for MAVSDK?
          How can I have an additional simultaneous external UDP connection?

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

          @voxltester That's what I just explained. Rather than initiate the connection from voxl-mavlink-server initiate it from MAVSDK.

          voxltesterV 1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @voxltester That's what I just explained. Rather than initiate the connection from voxl-mavlink-server initiate it from MAVSDK.

            voxltesterV Offline
            voxltesterV Offline
            voxltester
            Contributor
            wrote last edited by
            #5

            @Eric-Katzfey
            Then which port should I use for it in my case?

            Eric KatzfeyE 1 Reply Last reply
            0
            • voxltesterV voxltester

              @Eric-Katzfey
              Then which port should I use for it in my case?

              Eric KatzfeyE Offline
              Eric KatzfeyE Offline
              Eric Katzfey
              ModalAI Team
              wrote last edited by
              #6

              @voxltester Use any port you like. When you connect to voxl-mavlink-server at port 14550 it will remember the ip and port you connected from and maintain a connection with it.

              voxltesterV 1 Reply Last reply
              0
              • Eric KatzfeyE Eric Katzfey

                @voxltester Use any port you like. When you connect to voxl-mavlink-server at port 14550 it will remember the ip and port you connected from and maintain a connection with it.

                voxltesterV Offline
                voxltesterV Offline
                voxltester
                Contributor
                wrote last edited by
                #7

                @Eric-Katzfey I do not understand.
                With the same port number, which is used by QGC, mavsdk shows an error that

                bind error: Address not available (udp_connection.cpp:93)
                Connection failed: Bind error (connection_initiator.h:47)
                

                FYI, I ran

                    await drone.connect(
                        system_address="udp://0.0.0.0:14550"
                    )
                
                Eric KatzfeyE 2 Replies Last reply
                0
                • voxltesterV voxltester

                  @Eric-Katzfey I do not understand.
                  With the same port number, which is used by QGC, mavsdk shows an error that

                  bind error: Address not available (udp_connection.cpp:93)
                  Connection failed: Bind error (connection_initiator.h:47)
                  

                  FYI, I ran

                      await drone.connect(
                          system_address="udp://0.0.0.0:14550"
                      )
                  
                  Eric KatzfeyE Offline
                  Eric KatzfeyE Offline
                  Eric Katzfey
                  ModalAI Team
                  wrote last edited by
                  #8

                  @voxltester You cannot use a port number that is already in use by another application. So pick a different one.

                  1 Reply Last reply
                  0
                  • voxltesterV voxltester

                    @Eric-Katzfey I do not understand.
                    With the same port number, which is used by QGC, mavsdk shows an error that

                    bind error: Address not available (udp_connection.cpp:93)
                    Connection failed: Bind error (connection_initiator.h:47)
                    

                    FYI, I ran

                        await drone.connect(
                            system_address="udp://0.0.0.0:14550"
                        )
                    
                    Eric KatzfeyE Offline
                    Eric KatzfeyE Offline
                    Eric Katzfey
                    ModalAI Team
                    wrote last edited by
                    #9

                    @voxltester As I tried to explain before, don't wait for voxl-mavlink-server to connect to your application. You need to have it initiate the connection to voxl-mavlink-server.

                    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