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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. Modal Pipe Architecture (MPA)
  4. Mavlink server configuration of ports wont work

Mavlink server configuration of ports wont work

Scheduled Pinned Locked Moved Modal Pipe Architecture (MPA)
4 Posts 3 Posters 2.2k 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.
  • jacob yaacubovJ Offline
    jacob yaacubovJ Offline
    jacob yaacubov
    Contributor
    wrote on last edited by jacob yaacubov
    #1

    Hi all,
    you've ben very helpful i have an issue with mavlink-server / Voxl-px4-parameters

    I have an issue with mavlink-server I tired to change the config files

    	"onboard_port_from_autopilot":	14557,
    	"gcs_port_to_autopilot":	14558,
    	"gcs_port_from_autopilot":	14559,
    

    I want to change it cause when using two drones or more , it seems like Mavlink comms are interfering between (both connected to same network when it occurs )
    each other, and I want to isolate each in its own domain
    I changed the config file but that makes the mavlink-server not to pass any data between the autopilot and the voxl px4

    voxl-mavlinke-inspect
    this passes no data from autopilot or to autopilot

    I think or guess this happens since the ports are hardcoded in the firmware
    I tried to cahnge parameters
    MAV_0_UDP_PRT
    MAV_1_UDP_PRT
    but they don't even exist on the params list of modalais voxl2 qrb5165

    any suggestions how to isolate each drone? or to add those parameters?
    how to add the paramers without recompiling the px4-firmware ?

    i will appreciate your help having trouble flying more than one drone at each moment hinders my work

    Best Regard
    Jacob

    Eric KatzfeyE 1 Reply Last reply
    0
    • jacob yaacubovJ jacob yaacubov

      Hi all,
      you've ben very helpful i have an issue with mavlink-server / Voxl-px4-parameters

      I have an issue with mavlink-server I tired to change the config files

      	"onboard_port_from_autopilot":	14557,
      	"gcs_port_to_autopilot":	14558,
      	"gcs_port_from_autopilot":	14559,
      

      I want to change it cause when using two drones or more , it seems like Mavlink comms are interfering between (both connected to same network when it occurs )
      each other, and I want to isolate each in its own domain
      I changed the config file but that makes the mavlink-server not to pass any data between the autopilot and the voxl px4

      voxl-mavlinke-inspect
      this passes no data from autopilot or to autopilot

      I think or guess this happens since the ports are hardcoded in the firmware
      I tried to cahnge parameters
      MAV_0_UDP_PRT
      MAV_1_UDP_PRT
      but they don't even exist on the params list of modalais voxl2 qrb5165

      any suggestions how to isolate each drone? or to add those parameters?
      how to add the paramers without recompiling the px4-firmware ?

      i will appreciate your help having trouble flying more than one drone at each moment hinders my work

      Best Regard
      Jacob

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

      @jacob-yaacubov Each drone will have it's own IP address so that is how they are separated. Those port numbers in the mavlink server configuration are only for communications within the board, not externally. What makes you say that they are "interfering"?

      jacob yaacubovJ 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @jacob-yaacubov Each drone will have it's own IP address so that is how they are separated. Those port numbers in the mavlink server configuration are only for communications within the board, not externally. What makes you say that they are "interfering"?

        jacob yaacubovJ Offline
        jacob yaacubovJ Offline
        jacob yaacubov
        Contributor
        wrote on last edited by
        #3

        @Eric-Katzfey

        Thanks for the replay

        I understand the IP isolation indeed this how I expect this to work

        well to answer this I have these weird issues

        When QGC is connected only to a single drone the attitude indicator jump between the values of the two drones - hence the home position jumps and the drone refuses to take off
        switching one of them off and rebooting the second makes the second one work well when alone on the network

        1. when looking at the ROS topic which is reading from the MPA - (qgc is off at this stage )

        the local pose values jumped as well, at first I didn't understand why, but then I realized it was getting one value from drone A second From drone B

        both drones run same voxl2 with same SDK 1.1.3

        same packages and branches on both
        tried to play with MAV_SYS_ID param maybe its mavlink issue

        kind of confused
        both ros master run on 127.0.01 so its local ros communication looks more like mavlink issue not sure though

        Zachary Lowell 0Z 1 Reply Last reply
        0
        • jacob yaacubovJ jacob yaacubov

          @Eric-Katzfey

          Thanks for the replay

          I understand the IP isolation indeed this how I expect this to work

          well to answer this I have these weird issues

          When QGC is connected only to a single drone the attitude indicator jump between the values of the two drones - hence the home position jumps and the drone refuses to take off
          switching one of them off and rebooting the second makes the second one work well when alone on the network

          1. when looking at the ROS topic which is reading from the MPA - (qgc is off at this stage )

          the local pose values jumped as well, at first I didn't understand why, but then I realized it was getting one value from drone A second From drone B

          both drones run same voxl2 with same SDK 1.1.3

          same packages and branches on both
          tried to play with MAV_SYS_ID param maybe its mavlink issue

          kind of confused
          both ros master run on 127.0.01 so its local ros communication looks more like mavlink issue not sure though

          Zachary Lowell 0Z Offline
          Zachary Lowell 0Z Offline
          Zachary Lowell 0
          ModalAI Team
          wrote on last edited by
          #4

          @jacob-yaacubov said in Mavlink server configuration of ports wont work:

          branches

          @jacob-yaacubov said in Mavlink server configuration of ports wont work:

          both ros master run on 127.0.01 so its local ros communication looks more like mavlink issue not sure though

          Reply

          @jacob-yaacubov yes you need to change the mav sys id for both otherwise they will overlap and create the problem you stated before when connecting to qgc and having overlapping px4 instances. As for ROS you need to change the ROS_DOMAIN_ID (an external terminal environment variable) otherwise all the ros topics will also overlap and create multiple publishers and subscribers on the same drone when you have multiple on.

          Zach

          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

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