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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2
  4. Issue Getting uart Connection on VOXL2 to PixHawk4 on 5G Hat

Issue Getting uart Connection on VOXL2 to PixHawk4 on 5G Hat

Scheduled Pinned Locked Moved VOXL 2
9 Posts 3 Posters 1.8k 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.
  • John Nomikos 0J Offline
    John Nomikos 0J Offline
    John Nomikos 0
    Regular
    wrote on last edited by
    #1

    Good afternoon,

    I have been trying to get a serial connection from the J9 socket of a 5G hat to a PixHawk 4. However, there does not seem to be any data going through ttyHS2.

    I triple checked to make sure my physical connection is correct and the wires are in the correct area. They look correct to me.

    I have the JST from the J9 socket connected to TELEM2 of the PixHawk 4. The baudrate is set to 921600.

    The way I am testing this is by using mavlink-router. I run this command:

    mavlink-routerd /dev/ttyHS2:921600 -e {my ip}:14550 -v
    

    It has worked before when connecting to the usb port on the hat via an FTDI cable, but we're trying to get it working with the serial port.

    I also decided to follow this to see if I could get anything from sending stuff to the port. I saw nothing. But I could be completely wrong that this is a valid way of testing the connection:

    (In one terminal):

    cat -v < /dev/ttyHS2
    

    (In another terminal):

    echo -ne '\033[2J' > /dev/ttyHS2
    

    I did not see anything on the first terminal.

    Also, I tried using voxl-mavlink-server to test this. I am on a beta platform (system-image: 1.5.5-M0054-14.1a-perf), so options are a little bit different than what I'm used to.

    I had this set as my configuration file:

    {
            "primary_static_gcs_ip":        "192.168.8.10",
            "secondary_static_gcs_ip":      "192.168.8.11",
            "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":   2,
            "autopilot_uart_baudrate":      921600,
            "en_external_ap_timesync":      1,
            "en_external_ap_heartbeat":     1,
            "udp_mtu":      0,
            "gcs_timeout_s":        4.5
    }
    

    I believe "autipilot_uart_bus" was what I had to set to 2 to get it to go through ttyHS2. I could not see any data passing through though.

    I am curious what the problem could be. Any help would be much appreciated.

    wilkinsafW 1 Reply Last reply
    0
    • John Nomikos 0J John Nomikos 0

      Good afternoon,

      I have been trying to get a serial connection from the J9 socket of a 5G hat to a PixHawk 4. However, there does not seem to be any data going through ttyHS2.

      I triple checked to make sure my physical connection is correct and the wires are in the correct area. They look correct to me.

      I have the JST from the J9 socket connected to TELEM2 of the PixHawk 4. The baudrate is set to 921600.

      The way I am testing this is by using mavlink-router. I run this command:

      mavlink-routerd /dev/ttyHS2:921600 -e {my ip}:14550 -v
      

      It has worked before when connecting to the usb port on the hat via an FTDI cable, but we're trying to get it working with the serial port.

      I also decided to follow this to see if I could get anything from sending stuff to the port. I saw nothing. But I could be completely wrong that this is a valid way of testing the connection:

      (In one terminal):

      cat -v < /dev/ttyHS2
      

      (In another terminal):

      echo -ne '\033[2J' > /dev/ttyHS2
      

      I did not see anything on the first terminal.

      Also, I tried using voxl-mavlink-server to test this. I am on a beta platform (system-image: 1.5.5-M0054-14.1a-perf), so options are a little bit different than what I'm used to.

      I had this set as my configuration file:

      {
              "primary_static_gcs_ip":        "192.168.8.10",
              "secondary_static_gcs_ip":      "192.168.8.11",
              "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":   2,
              "autopilot_uart_baudrate":      921600,
              "en_external_ap_timesync":      1,
              "en_external_ap_heartbeat":     1,
              "udp_mtu":      0,
              "gcs_timeout_s":        4.5
      }
      

      I believe "autipilot_uart_bus" was what I had to set to 2 to get it to go through ttyHS2. I could not see any data passing through though.

      I am curious what the problem could be. Any help would be much appreciated.

      wilkinsafW Offline
      wilkinsafW Offline
      wilkinsaf
      ModalAI Team
      wrote on last edited by
      #2

      For context, the UART/USB addon board is working (https://docs.modalai.com/voxl2-usb3-uart-add-on-user-guide/)
      and we are using cables provided by ModalAI. So, it appears that it is just the 5G modem carrier board that is not letting this through

      wilkinsafW 1 Reply Last reply
      0
      • wilkinsafW wilkinsaf

        For context, the UART/USB addon board is working (https://docs.modalai.com/voxl2-usb3-uart-add-on-user-guide/)
        and we are using cables provided by ModalAI. So, it appears that it is just the 5G modem carrier board that is not letting this through

        wilkinsafW Offline
        wilkinsafW Offline
        wilkinsaf
        ModalAI Team
        wrote on last edited by
        #3

        for context as well, here are the serial devices by-id page. All of them are from Quectel.
        64b71271-9119-42e2-aba2-05d9583496b9-image.png

        Dont think that matters, but just trying to add context.

        Also, the 5G carrier board is operational. We see the wwan0 interface

        wilkinsafW 1 Reply Last reply
        0
        • wilkinsafW wilkinsaf

          for context as well, here are the serial devices by-id page. All of them are from Quectel.
          64b71271-9119-42e2-aba2-05d9583496b9-image.png

          Dont think that matters, but just trying to add context.

          Also, the 5G carrier board is operational. We see the wwan0 interface

          wilkinsafW Offline
          wilkinsafW Offline
          wilkinsaf
          ModalAI Team
          wrote on last edited by wilkinsaf
          #4

          Link Preview Image
          External autopilot not getting serial communication with M0090 board

          Hi @Vinny Sounds good. I have order number 3143. We have the Voxl1 version ready to return. I'll be here for further instructions Thanks Andres

          favicon

          ModalAI Forum (forum.modalai.com)

          I think this might be the issue

          15e886bc-dcf2-4240-91c6-4c5e34ceba35-image.png

          tomT 1 Reply Last reply
          0
          • wilkinsafW wilkinsaf

            Link Preview Image
            External autopilot not getting serial communication with M0090 board

            Hi @Vinny Sounds good. I have order number 3143. We have the Voxl1 version ready to return. I'll be here for further instructions Thanks Andres

            favicon

            ModalAI Forum (forum.modalai.com)

            I think this might be the issue

            15e886bc-dcf2-4240-91c6-4c5e34ceba35-image.png

            tomT Offline
            tomT Offline
            tom
            admin
            wrote on last edited by
            #5

            @wilkinsaf That must be the VOXL1 flavor

            wilkinsafW 2 Replies Last reply
            1
            • tomT tom

              @wilkinsaf That must be the VOXL1 flavor

              wilkinsafW Offline
              wilkinsafW Offline
              wilkinsaf
              ModalAI Team
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • tomT tom

                @wilkinsaf That must be the VOXL1 flavor

                wilkinsafW Offline
                wilkinsafW Offline
                wilkinsaf
                ModalAI Team
                wrote on last edited by
                #7

                @tom Damn.... welp... that would explain what's going on.
                Back to the ModalAI store. Thanks for confirmation Tom

                wilkinsafW 1 Reply Last reply
                1
                • wilkinsafW wilkinsaf

                  @tom Damn.... welp... that would explain what's going on.
                  Back to the ModalAI store. Thanks for confirmation Tom

                  wilkinsafW Offline
                  wilkinsafW Offline
                  wilkinsaf
                  ModalAI Team
                  wrote on last edited by
                  #8

                  Can confirm ordering and installing a new one fixed our issue

                  tomT 1 Reply Last reply
                  1
                  • wilkinsafW wilkinsaf

                    Can confirm ordering and installing a new one fixed our issue

                    tomT Offline
                    tomT Offline
                    tom
                    admin
                    wrote on last edited by
                    #9

                    @wilkinsaf Thanks for the feedback

                    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