UART

uart.baud

Abbreviation

ua b

Access

get/set

Description

Sets the UART baud rate. If raw argument is NOT used, baud rate must be one of the following standard rates:

300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600.

Some UART baud settings may be excluded by the hardware platform.

If the optional raw parameter is supplied, then the rate may be any value.

After changing uart.baud , save and reboot to effect the change.

Get arguments

<uart#>

Set arguments

<uart#> <baud rate> [raw]

Default

115200

Properties

Platforms

Get example

Get baud rate for UART 0 :

> get uart.baud 0
R000008
115200

Set example

Set UART 0 baud rate to 460800 :

> set uart.baud 0 460800
R000008
Set OK

uart.data

Abbreviation

ua d

Access

get/set

Description

The number of UART data bits to use.

Arguments

<uart#> <# data bits>

where:

Default

8

Properties

Platforms

Get example

Get data bits setting for UART 0 :

> get uart.data 0
R000003
8

Set example

Set UART 0 to use 8 data bits:

> set uart.data 0 8
R000008
Set OK

uart.flow

Abbreviation

ua f

Access

get/set

Description

Turn on/off UART hardware flow control.

Note : to guarantee that no characters are dropped, uart.flow must be turned on . This applies to any baud rate.

Arguments

<uart#> <off/on>

Default

off

Properties

Platforms

Get example

Get flow control setting for UART 1 :

> get uart.flow 1
R000005
off

Set example

Turn off flow control for UART 1 :

> set uart.flow 1 off
R000008
Set OK

uart.parity

Abbreviation

ua p

Access

get/set

Description

Configure UART parity selection.

Arguments

<uart#> <none/even/odd>

Default

none

Properties

Platforms

Get example

Get parity setting for UART 1 :

> get uart.parity 1
R000006
none

Set example

Set parity to odd for UART 1 :

> set uart.parity 1 odd
R000008
Set OK

uart.stop

Abbreviation

ua s

Access

get/set

Description

The number of UART stop bits to use.

Arguments

<uart#> <# stop bits>

Default

1

Properties

Platforms

Get example

Get stop bits setting for UART 0 :

> get uart.stop 0
R000003
1

Set example

Set stop bits to 1 for UART 0 :

> set uart.stop 0 1
R000008
Set OK