Skip to content

Tool/firmware tester#46

Open
dennisklappe wants to merge 3 commits into
mainfrom
tool/firmware-tester
Open

Tool/firmware tester#46
dennisklappe wants to merge 3 commits into
mainfrom
tool/firmware-tester

Conversation

@dennisklappe
Copy link
Copy Markdown
Owner

No description provided.

Shared baud selector (localStorage-backed, default 250000) added to
printer-control, printer-setup, lc-lb-measure, and calibrator. Tools
were hardcoded to 115200 which silently broke any printer flashed
with the firmware-builder default of 250000.

Also fixes home() to use sendCommandAndWait with a 120s timeout instead
of a fire-and-forget sendCommand + 2s sleep, which falsely errored
"Position request timeout" on real homing operations.
The Firmware Builder ends at firmware.bin download — there's no easy way
to confirm a flashed firmware matches the hardware. This tool fills that
gap: after flashing, it walks the user through driver, endstop, stepper-
direction, homing-direction, and extruder verification, then produces a
corrected Firmware Builder JSON if anything is reversed.

Wizard steps:
1. Connect (with optional Firmware Builder JSON upload)
2. Diagnostics — M115 / M122 / M119 / M105 sanity checks
3. Endstop walk-through — manual trigger of X, Y, Z, B, C; polled via M119
4. Stepper directions — small G91 moves with yes/no prompts per axis
5. Homing direction — G28 per axis, "moved toward endstop?" prompts
6. Extruder — direction test plus optional E-steps calibration
7. Results — per-test summary and corrected JSON for download

Shared library additions:
- printer-interface.js: queryEndstops, queryDriverStatus, queryFirmwareInfo
  parse M119, M122, M115 responses (none were parsed before)

Firmware Builder hand-off:
- exportConfig now also stashes the JSON in localStorage under
  rep5x_firmware_builder_config so the tester can auto-load it without
  the user re-uploading the file
@dennisklappe dennisklappe force-pushed the tool/firmware-tester branch from 0572f06 to 4a40b75 Compare April 29, 2026 12:54
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 29, 2026

Deploying rep5x-tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d2051e
Status: ✅  Deploy successful!
Preview URL: https://486e06a3.rep5x-tools.pages.dev
Branch Preview URL: https://tool-firmware-tester.rep5x-tools.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 29, 2026

Deploying rep5x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d2051e
Status: ✅  Deploy successful!
Preview URL: https://d80f5afb.rep5x.pages.dev
Branch Preview URL: https://tool-firmware-tester.rep5x.pages.dev

View logs

…ffle

Builds on top of the firmware-tester commit:

- Baud selector dropped into the Connect step, mirroring printer-control /
  printer-setup / lc-lb-measure / calibrator. Loads shared/baud-selector.js
  and mounts on the #baudSelector span.

- Em dashes removed throughout the firmware-tester tool (HTML strings,
  JS comments, README, user-facing placeholders) per project style.

- Homing-direction step redesigned to be safe: no longer sends G28 (which
  with a reversed home_dir keeps moving until the carriage hits the frame).
  Instead asks the user where each linear endstop physically sits (MIN or
  MAX) and compares to the firmware's xHomeDir / yHomeDir / zHomeDir from
  the uploaded JSON. B is centred-home so MIN/MAX doesn't apply.

- Tools landing page reflowed:
  * Workflow split 3 + 4 (firmware setup left, calibration & print right)
    so the column-end positions align with phase boundaries.
  * Printer Setup moved out of Setup & configuration into Calibration,
    which is now a 3-tile / 3-column row (Printer Setup, LC/LB Measure,
    Calibrator). Setup & configuration is back to a clean 2-tile row
    (Firmware Builder + Firmware Tester).
@dennisklappe dennisklappe force-pushed the tool/firmware-tester branch from 4a40b75 to 1d2051e Compare April 29, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant