I try to get UART running on oak-1 POE, but the examples I found are not working. I wonder which pin configuration would be the right one?

As an example:

config = dai.Device.Config()

# Get argument first

config.board.gpio[45] = GPIO(GPIO.OUTPUT, GPIO.ALT_MODE_1)

# UART RX
config.board.gpio[46] = GPIO(GPIO.INPUT, GPIO.ALT_MODE_1)
# Enable UART{uartNum}
config.board.uart[0] = dai.BoardConfig.UART()

/dev/ttyS0 is not existing in this case. I think I got pins 45 an 46 right, but how to get further?

One thing I have to use the sdcard_support branch which is at version 2.15

  • erik replied to this.

    Hi FlorianRahe ,
    I believe this support was added after the version 2.15. Maybe create feature request on depthai-core to update the sdcard_support to the latest version.
    Thanks, Erik

    Got it working. For those who are interested: for Oak-1 POE in the version 2.15 the solution is:

    config = dai.Device.Config()

    # Get argument first

    config.board.gpio[45] = GPIO(GPIO.OUTPUT, GPIO.ALT_MODE_3)

    # UART RX

    config.board.gpio[46] = GPIO(GPIO.INPUT, GPIO.ALT_MODE_3)

    # Enable UART{uartNum}

    config.board.uart[2] = dai.BoardConfig.UART()

    And using /dev/ttyS2

    But I would really like to to see the sdcard_support in the main branch!

      FlorianRahe Great that you got it working! We will likely not mailine sd-card support for RVC2, but feel free to submit feature request.
      Thanks, Erik