serial_query
Send a HEX request to a serial port and read the response in one operation, using raw HEX or a named action from a YAML protocol file.
Instructions
One-shot write-then-read exchange; accepts hex or protocol+action from a YAML protocol file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | No | HEX request payload | |
| port | Yes | Serial port name, e.g. COM5 or /dev/ttyUSB0 | |
| action | No | Message name inside the protocol file | |
| length | No | Stop after this many response bytes | |
| parity | No | Parity (default none) | |
| timeout | No | Operation timeout in ms (default 200) | |
| baudrate | No | Baud rate (default 115200) | |
| bytesize | No | Data bits: 5/6/7/8 (default 8) | |
| protocol | No | Path to YAML protocol file | |
| stopbits | No | Stop bits (default 1) | |
| delimiter | No | HEX delimiter that ends the read |