Skip to content

fix(execution): robust connection lifecycle — DTR/reset and readiness handshake #182

Closed

Description

@CameronBrooks11

Part of the Machine-I/O epic (Phase 3).

Scope

Explicit DTR/reset control on connect; replace the quiet-period heuristic in _wait_for_marlin_ready with a real handshake (e.g. an M115/M105 round-trip that confirms the board is responsive) before declaring "connected".

Why

Connection readiness is currently guessed by waiting for ~0.5s of serial silence, which races the board's DTR-triggered boot and can begin streaming before Marlin is actually ready.

Acceptance

  • "Connected" is asserted only after a confirmed reply; reconnect is reliable.

The acute port-release-on-stop fix is handled by the independent stabilization stopgap, not here.

Activity

  1. added
    bug
    python
    on Jun 26, 2026
  2. CameronBrooks11 commented on Jun 28, 2026

    @CameronBrooks11
    MemberAuthor

    Realized in the standalone marlin-host library (published 0.2.1, hardware-validated) and consumed by fiberpath via the machine cutover (#195, fiberpath 0.9.0). Closing.

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

    bugpython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions