uartCfg - Configure UART

Configure a UART port. This command can be used to adjust the baud rate and bit settings of a UART port. Additionally, it can be used to configure additional UART ports via USB.

Usage:

- command: uartCfg <uartPort> <speed> [<triplet>]
  [id: <usbDeviceID>]
  [path: <usbDevicePath>]
  [interface: <usbDeviceInterface>]

Argument

Description

uartPort

UART port name: UART0, UART1, UART2, etc.

speed

Baud rate.

triplet

UART configuration triplet: 8N1 or 7E1

usbDeviceID

Optional: USB device identifiers: VID:PID.

usbDevicePath

Optional: USB device path: port. ... .port.

usbDeviceInterface

Optional: USB device interface: interface_number.

External USB serial interfaces can be configured as UART ports by using the usbDeviceID, usbDevicePath, or usbDeviceInterface fields. FTDI UART adapters and USB-CDC peripherals are supported.

Note

The built-in UART ports cannot be redefined. That is, the usbDeviceID, usbDevicePath, and/or usbDeviceInterface parameters can’t be set on UART0 or UART1.

Examples