You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple devices on one serial port timed out alternately: the collection
mutex for serial-exclusive drivers (SerialExclusive) is now keyed by physical port instead of device. Every device on the same port (including
control writes) shares one bus lock, so the whole bus is serialized. Port names
are canonicalized with driver.CanonicalSerialPort (Windows case / \\.\,
Linux /dev/serial/by-id symlinks), matching the rule plugins use to share
handles.
Cross-plugin sharing of one physical port (the end-game fix for issue #2):
when devices on one port belong to different protocols and every plugin
involved declares SerialProxy, task construction enables the gateway serial
proxy — the gateway process owns the only physical handle and plugins exchange
bytes over the serial.open/lock/read/write/unlock/close reverse RPC, sharing
the gateway's cross-process bus lock (pluginhost/serialhost.go). A port that
mixes in a plugin without proxy support stays direct with a WARN (split it or
use a DTU); a bus shared by one protocol is INFO (the in-process driversdk/serialbus already shares the handle). Design: backend/specs/serial-proxy.md.
Depends on SDK v0.5.0 (driver.CanonicalSerialPort, driversdk/serialbus, driversdk/serialproxy). The gateway gains a direct
dependency on github.com/goburrow/serial (BSD-3), used only by the proxy to
own the physical port.