serial_detect_baud
Detect baud rate on a serial port by testing common rates and checking for readable ASCII responses. Optionally sends a probe to elicit a response.
Instructions
Auto-detect the baud rate on a serial port by trying common rates and checking which one produces readable ASCII output.
Opens and closes the port internally — the port must NOT have an active session. After detection, use serial_open() with the recommended baud rate.
If probe is True (default), sends \r\n at each baud rate to elicit a
response. Set to False for passive listening (e.g. if the device sends
data continuously).
Args: port: Serial port device path (e.g. /dev/ttyUSB0, COM3) probe: Whether to send \r\n to prompt a response (default True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| probe | No |