send_hex
Send raw hex bytes to a serial device for binary protocols like Icom CI-V. Writes to TX only; call read_available afterward to see binary replies.
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"). Spaces in the hex string are ignored. To see a binary
reply, call read_available afterward (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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_bytes | Yes | ||
| clear_buffer_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |