console_send
Send one UART console command to firmware and capture its reply within a set wait time, verifying board behavior and diagnosing wiring or command errors.
Instructions
Talk to the firmware directly: send ONE command line on the console UART and collect its answer.
Example: line "led0?" — the firmware replies with its LED state and
the live PWM register value (a hardware readback, not a cached
variable). The command set is board-specific — board_info and the
board's probe definitions show the known commands; unknown commands
typically answer "ERR unknown-cmd". The reply lands in
data.response within wait_s seconds; silence is reported as
"(no response)" in the summary + a warning — check wiring before
concluding the firmware is dead.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | One console command line to send, e.g. "led0?". Written verbatim — embedded newlines dispatch multiple commands, and over-long lines are dropped by the firmware console buffer. The command set is board-specific; board_info and the board's probe definitions list the known commands. | |
| board | No | Path to the board profile YAML (e.g. boards/apollo-h743.yaml). Omit to use the server's --board argument, else the default search path. | |
| wait_s | No | Seconds to wait for the firmware's answer after sending; below 0.1 it is clamped up (typical 1.0). Large values block for that long. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| data | No | ||
| policy | No | ||
| status | Yes | ||
| summary | Yes | ||
| evidence | No | ||
| warnings | No | ||
| exit_code | No | ||
| schema_version | No | 1.0 |