serial_send
Transmit a single raw HEX payload on a serial port, automatically opening and closing the port. Use for one-shot sends without needing to keep the connection open.
Instructions
One-shot raw HEX transmit (opens/closes the port; use serial_write when capturing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | HEX payload, even digits | |
| port | Yes | Serial port name, e.g. COM5 or /dev/ttyUSB0 | |
| 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) | |
| stopbits | No | Stop bits (default 1) |