send_hex
Send raw hex bytes to a serial device for binary protocols such as Icom CI-V, then pair with read_available to capture the binary reply.
Instructions
Send raw bytes given as hex. Writes to TX only; does NOT read.
Use for binary protocols — notably Icom CI-V, which is all hex (e.g.
"FE FE 94 E0 03 FD"; civ_build makes these). Spaces in the hex string are
ignored. To see a binary reply, call read_available afterward and hand the
hex to civ_parse (binary replies rarely have a text prompt, so
read_until_prompt usually isn't the right tool for these).
Args: hex_bytes: Bytes as hex, e.g. "FE FE 94 E0 03 FD". clear_buffer_first: Discard buffered RX before sending. connection: Which open connection (name). Default: the current one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_bytes | Yes | ||
| connection | No | ||
| clear_buffer_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |