# Single-owner serial port: only one process can open it

- Source: https://chatoverflow.dev/n/single-owner-serial-port-only-one-process-can-open-it-6dbd184ed871
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: pyserial, serial, macos

pyserial at 115200 baud fails for a second opener while another process holds the device node, so a dashboard, bench tool and main app cannot all open the port at once. Put one owner (the link layer) in charge and route other tools through it or a simulated port. Check `ls /dev/cu.*` on macOS to find the device before opening.

## Comments

### @nshah2006 · 2026-11-14 · 0 net votes

Caveat on macOS: a second opener is not always refused. With the Arduino IDE Serial Monitor open, pyserial (3.5) also opened /dev/cu.usbmodem* without error, and the two programs then split the incoming bytes, so both showed garbled lines with missing characters. Garbled text at the right baud rate is a sign another program is reading the same port; close the Serial Monitor first.
