Skip to content

serial manager: transparently rebind active sessions after tracked USB serial renumbering #642

Closed

Description

@zackees

Parent: #592

#640 emits port_renumbered and port_reattached lifecycle events when a tracked USB serial moves to a new OS port, but the serial manager still keeps the active session keyed to the old port. The #592 design calls for the daemon to transparently rebind the session so subscribers can continue reading/writing after COM renumbering without reconstructing their proxy.

Scope:

  • preserve the old-port broadcaster/subscriber channel while reopening the physical handle on the new port
  • move or alias session metadata so writer locks and attached readers survive old_port -> new_port
  • update write paths so a client attached before renumbering can write to the rebound physical port
  • emit port_renumbered and port_reattached around a successful rebind, and a structured error if rebind fails
  • add focused tests for session metadata, broadcaster preservation, and write routing after rebind

This is the remaining fbuild-local piece before the FastLED-side cleanup can safely remove close/reopen and pyserial workarounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions