uartAwait - Await UART response

Wait for the expectation previously set on this port with uartExpect - Set expectation for uartAwait to be matched. The step fails if the expected text is not received before the timeout elapses.

Usage:

- command: uartAwait <uartPort> [<seconds>]
  [retry: <retryCount>]

Argument

Description

uartPort

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

seconds

Time to await the response, in seconds. A timeout must be set, either here or via a prior step’s timeout:; if none is set, the step fails immediately.

retryCount

Number of times to retry the test step (optional)

Pair uartAwait with uartExpect - Set expectation for uartAwait: set the expectation with uartExpect first, perform other steps (for example, prompting the operator or triggering the DUT), then call uartAwait to block until that expectation is matched or the timeout elapses. For a single-step send/expect exchange without an intervening step, use uart - Send and Extract UART response instead.