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

    Mavlink server configuration of ports wont work

    Modal Pipe Architecture (MPA)
    3
    4
    153
    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.
    • jacob yaacubovJ
      jacob yaacubov
      last edited by 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 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @jacob yaacubov
        last edited by

        @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 Reply Quote 0
        • jacob yaacubovJ
          jacob yaacubov @Eric Katzfey
          last edited by

          @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 Reply Quote 0
          • Zachary Lowell 0Z
            Zachary Lowell 0 ModalAI Team @jacob yaacubov
            last edited by

            @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 Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors