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

    voxl-microdds-agent for connection to external fcu over uart (J10)

    Ask your questions right here!
    3
    4
    37
    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.
    • J
      jon
      last edited by

      Hi! Problem statement: want to connect external FCU to voxl and communicate over the microdds bridge for minimal latency. In the past, I have tried to compile the uxrce-dds agent from source https://docs.px4.io/main/en/middleware/uxrce_dds but never really dove into trying to fix all the issues. I assume this is a problem you guys fixed with voxl-microdds-agent; is it possible to modify that package to communicate with an external flight controller over UART?

      Other option would be docker, which I've done before, but that incurs some overhead and we're kinda maxing out the voxl, so I would prefer a native implementation.

      I guess I'm just asking if this is feasible within the design of voxl-microdds-agent or if it's tailored to communicating with voxl-px4 over shared memory.

      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
      • Zachary Lowell 0Z
        Zachary Lowell 0 ModalAI Team
        last edited by

        @jon you can edit the dds via updating systemctl service file and point it towards the serial UART instead of a udp socket/port - the og looks like this:

        [Unit]
        Description=voxl-microdds-agent
        SourcePath=/usr/bin/MicroXRCEAgent
        After=network.target
        After=multi-user.target

        [Service]
        User=root
        Type=simple
        ExecStart=/usr/bin/MicroXRCEAgent udp4 -p 8888

        [Install]
        WantedBy=multi-user.target

        You would replace the -p with whatever flag is used for serial and then put /dev/ttyHSX (X number depends on which uart you are plugged into) - you will most likely need to put in a baudrate as well. This file is stored in /etc/systemd/systemd/voxl-microdds-agent.service.

        J 1 Reply Last reply Reply Quote 0
        • J
          jon @Zachary Lowell 0
          last edited by

          @Zachary-Lowell-0 Oh wow, thanks that's very simple

          1 Reply Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @jon
            last edited by

            @jon And you can find a lot of detailed information about the agent, including the start options, here: https://docs.px4.io/main/en/middleware/uxrce_dds

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors