port_in_use_by
Identify which program is holding a serial port on macOS or Linux. Use when a connection fails because the port is busy, or before asking the user to close the conflicting application.
Instructions
Report which program currently holds a serial port (macOS/Linux, via lsof).
Use when connect says the port is in use, or before asking the user to close something. On Windows the OS doesn't expose this; the usual suspects are a terminal (PuTTY), WSJT-X, a logger, or the Arduino Serial Monitor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |