serial_send
Send data to serial ports and optionally receive responses for remote device communication. Configure line endings and timeouts to control data transmission with connected hardware.
Instructions
Send data to a serial port. Optionally wait for and return response.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | Connection ID from serial_connect | |
| data | Yes | Data to send (newline added automatically unless raw=true) | |
| raw | No | Send raw data without adding newline (default: false) | |
| line_ending | No | Line ending to append when raw=false: 'lf', 'cr', 'crlf', or 'none' (default: 'lf') | lf |
| read_response | No | Wait and read response after sending (default: true) | |
| read_timeout | No | Timeout for reading response in seconds (default: 2.0) |