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: |
speed |
Baud rate. |
triplet |
UART configuration triplet: |
usbDeviceID |
Optional: USB device identifiers: |
usbDevicePath |
Optional: USB device path: |
usbDeviceInterface |
Optional: USB device interface: |
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