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

    Adding CP210x USB to Serial converter support to m500

    VOXL m500 Reference Drone
    3
    5
    139
    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.
    • bogaB
      boga
      last edited by

      How do I add support for CP210x USB to Serial converter on my m500 drone?
      I know that it is a driver / kernel module issue, but I can't figure it out. Connecting Arduino UNO creates a ttyACM0 (virtual serial) right away. But the device that I need to connect has CP210x serial converter chip onboard.

      I found the tutorials below, but as I am new to this, I am unable to figure it out. Help please!
      https://gitlab.com/voxl-public/system-image-build/voxl-build/-/blob/master/README.md#building-the-kernel-and-wlan-module
      https://gitlab.com/voxl-public/system-image-build/meta-voxl/-/tree/master?ref_type=heads
      https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads
      https://askubuntu.com/questions/941594/installing-cp210x-driver

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

        @boga Can you use an FTDI based converter instead?

        bogaB 1 Reply Last reply Reply Quote 0
        • bogaB
          boga @Eric Katzfey
          last edited by

          @Eric-Katzfey, yes. I came up with the same solution in parallel. I am already able to read data. FTDI based converter appears as ttyUSBX (X=0...n).
          Also, while we're at it... If I would use the VOXL Flight port J10 to read in UART data, what is the port number from the software side?
          Is there a documentation about that?

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

            @boga On a VOXL board J10 is mapped to the DSP and so you have to go through our libvoxl_io library to use it: https://docs.modalai.com/libvoxl-io/

            Alex KushleyevA 1 Reply Last reply Reply Quote 0
            • Alex KushleyevA
              Alex Kushleyev ModalAI Team @Eric Katzfey
              last edited by

              this should be helpful as well : https://docs.modalai.com/voxl-serial-io/ , which points to a uart loop back test app for DSP-based UART ports (https://gitlab.com/voxl-public/libvoxl_io/blob/master/lib/apps/voxl-uart-loopback.c)

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