connect
Open a serial port with configurable baud and flow control to start reading device output, enabling command exchange with serial consoles and hardware.
Instructions
Open a serial port and start the background reader.
The defaults are 9600 baud, 8 data bits, no parity, 1 stop bit, no flow control ("9600 8N1"), which is what most console/craft ports and much radio gear expect. Every setting can be overridden when the user says so, e.g. "38400 with XON/XOFF" -> baud=38400, xonxoff=True.
Args:
port: System port name, e.g. "COM4" (Windows), "/dev/cu.usbserial-10"
(macOS), or "/dev/ttyUSB0" (Linux). Get exact names from
list_serial_ports.
baud: Baud rate. Common values: 1200, 2400, 4800, 9600, 19200, 38400,
57600, 115200. Check the device's console/CAT menu if unsure.
bytesize: Data bits: 5, 6, 7, or 8. Almost always 8.
parity: "N" none, "E" even, "O" odd. Almost always "N".
stopbits: 1, 1.5, or 2. Almost always 1.
rtscts: Hardware (RTS/CTS) flow control. Off by default; only turn on if
the device's manual says so and the cable carries those lines.
xonxoff: Software (XON/XOFF) flow control. Off by default. Do not use
for binary protocols (it swallows 0x11 / 0x13 bytes).
timeout: Reserved for compatibility; the reader thread polls the port on a
fixed short interval regardless, so reads never block Claude.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baud | No | ||
| port | Yes | ||
| parity | No | N | |
| rtscts | No | ||
| timeout | No | ||
| xonxoff | No | ||
| bytesize | No | ||
| stopbits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |