serial_connect_match
Connect to serial devices by matching USB identifiers like VID, PID, or serial number to establish communication with embedded systems and IoT hardware.
Instructions
Connect to a serial port by matching VID/PID/serial/description. Returns a connection ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vid | No | USB vendor ID (e.g., 0x0403 or 1027) | |
| pid | No | USB product ID (e.g., 0x6001 or 24577) | |
| serial_number | No | USB serial number (exact match) | |
| description_contains | No | Substring match in port description | |
| hwid_contains | No | Substring match in HWID | |
| port_contains | No | Substring match in device path (e.g., ttyUSB) | |
| baudrate | No | Baud rate (default: 115200) | |
| timeout | No | Read timeout in seconds (default: 1.0) |