serial_open
Opens a serial port and initiates continuous background capture of incoming lines into a ring buffer and daily log, providing persistent data for debugging. Call before other operations.
Instructions
Open a serial port with a background reader that continuously captures all incoming lines into a ring buffer and a daily log file. Call this first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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) | |
| encoding | No | Text decoding (default utf-8) | |
| stopbits | No | Stop bits (default 1) |