Skip to content

feat(autoresearch): add reusable pin-free JSON-RPC smoke mode #3628

Closed

Description

@zackees

Context

Parent: #3626
Depends on: FastLED/fbuild#1040 and #3627.

The attached Pico has no soldered headers. Current default AutoResearch behavior performs pin discovery and GPIO toggle validation, which is inappropriate for a pin-free transport/RPC bring-up. The full-memory AutoResearch firmware already exposes useful RPCs including discovery, help, ping, status, drivers, payload tests, and testNoSerial.

Proposal

Add a reusable board-independent mode named --rpc-smoke (or an equally idiomatic final name) that builds/deploys the existing AutoResearch firmware, skips all GPIO setup and pin validation, then proves the JSON-RPC transport and core runtime surface.

The canonical Pico command is:

bash autoresearch rp2040 --rpc-smoke --timeout 120s

Acceptance criteria

  • The mode skips pin discovery, pin prompts, GPIO toggle capture, and all wiring requirements.
  • The mode is generic and reusable for future unsoldered or transport-only boards; it is not hard-coded to RP2040.
  • rpc.discover returns a non-empty manifest containing the required smoke methods.
  • help is reachable and consistent with the discovered surface.
  • Two ping calls succeed and demonstrate advancing uptime/runtime state.
  • A nested object/array/string/numeric payload is echoed or returned exactly by the existing debug/payload RPC.
  • JSON-RPC request IDs are correlated correctly, including more than one in-flight or sequential request.
  • status reports a ready/running device state.
  • drivers returns a syntactically valid driver collection.
  • testNoSerial passes.
  • A missing method or malformed response produces a clear failure instead of being treated as a timeout-only success.
  • Output includes concise REMOTE: / RESULT: evidence for each check and an overall pass/fail result.
  • Parser/orchestration tests cover success, RPC error, wrong ID, malformed JSON, and timeout behavior.
  • Documentation lists the command and states explicitly that no pins are required.
  • The attached Pico passes the exact canonical command after a real fbuild deployment.

Related issues

Activity

  1. zackees commented on Jul 14, 2026

    @zackees
    MemberAuthor

    Implementation landed in merged PR #3633. --rpc-smoke now exercises discovery, help, repeated ping/uptime, nested payload echo, status, drivers, testNoSerial, and expected missing-method error handling without pin setup. Hardware evidence is still required before closure.

  2. zackees commented on Jul 14, 2026

    @zackees
    MemberAuthor

    The corrected fbuild deploy path is now ready for the live pin-free RPC smoke. Earlier run reached deployment but selected the host's ACPI COM1 and timed out; fbuild #1042 fixes that. Hardware acceptance remains open until the corrected firmware enumerates a Pico CDC port and the --rpc-smoke decisive RESULT line is captured.

  3. moved this from Triage to Done in FastLED Trackeron Jul 15, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions