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

    VOXL2 GPIO and Serial Interfaces

    VOXL 2
    3
    3
    253
    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.
    • M
      MGasper
      last edited by 18 Oct 2022, 15:40

      Hi, I am currently using a VOXL2 and have been diving into the documentation and haven't been able to find or at least notice any reference to how to control GPIO pins and specifically UART pins through the DSP chip with my own program running on the VOXL2. I was wondering if I could be pointed to the appropriate documentation in order to set that up.

      -Thanks

      1 Reply Last reply Reply Quote 0
      • C
        Chad Sweet ModalAI Team
        last edited by 18 Oct 2022, 15:50

        Sorry, it is poorly documented. The only I/O that needs to use the DSP is for flight controller development. The rest of the I/O is accessed through the Linux CPU and behaves like most Linux systems.

        This page shows all of the connections https://docs.modalai.com/voxl2-connectors/

        You can see references to things like /dev/ttyHS1 which is a UART available through Linux

        You can find GPIO access in /sys/class/gpio/gpio

        1 Reply Last reply Reply Quote 0
        • M
          modaltb ModalAI Team
          last edited by 19 Oct 2022, 17:12

          I've been meaning to get this into a user guide as well, but for the applications processor GPIO, here's an example of setting IO programmatically, in this case GPIOs 46/159:

          https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-bind/-/blob/master/src/voxl-bind.c#L58

          https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-bind/-/blob/master/src/voxl-bind.c#L147

          1 Reply Last reply Reply Quote 0
          1 out of 3
          • First post
            1/3
            Last post
          Powered by NodeBB | Contributors