I have read and understood all rules of the Innovation Fund Phase 2
on
I consent to my project information (username, project cover, summary, etc.) being publicly displayed for review and showcase
on
Username (for public display)
alandebortolo
Project name
U1 Dry Run
Project URL
Project cover
Project Category
Software
Project Summary
U1 Dry Run lets you test any sliced file on Snapmaker’s real U1 firmware code in seconds, with no printer on the desk, on a laptop or in CI. It tells you if the firmware would stop the print, and if the nozzle would drag across a surface that is already finished.
Demo video and a live sample report: in my reply below this post, and in the repository README.
How it connects to the U1. It builds Snapmaker’s own u1-klipper (pinned commit, firmware 2.0.0), generates the data dictionaries for the U1’s AT32 boards from the Kconfig files in lava/, and runs Klipper in batch mode with lava/printer.cfg and fluidd.cfg. Kinematics, limits, macros and tool-change code run as shipped. Only sections that need absent hardware or services are commented out. A small Klipper module records every toolhead move and simulates the dock mechanically, so the firmware’s own _cmd_SWITCH_EXTRUDER runs its full park and pick sequence and passes its own checks.
The pain point. Today the only way to learn that a slicer release, a start G-code change or a firmware mod broke something is to print and look. @pipewrx found the Orca 2.4.1 final toolchange scratch that way, after repeated prints and comparing G-code by hand.
First result. I sliced the same two-color plate with the official 2.4.0 and 2.4.1 releases, default U1 profiles. 2.4.0 lifts to Z3.65 and travels: clean, exit 0. 2.4.1 travels at Z3.05, the height of the surface it just printed: scar at line 38910, 82 mm of finished surface at 0.00 mm clearance, exit 1. That is the regression from the forum report, found with no printer. A move past the bed limit gets the firmware’s own “Move out of range” with the G-code line, exit 2. As a fidelity check, the firmware’s motion time lands next to the slicer’s estimate: 7120 s against 7153 s on 2.4.1.
Using it. docker build from the repo, docker run on your file, and you get a report.html and report.json. A GitHub Action lets a slicer fork or firmware mod fail its build on a new scar. Unit tests and end-to-end runs of the real firmware run on every push.
Limits, stated up front. A U1 owner ran it on a vanilla Orca file they had already printed without trouble (post 15). The first run exposed a real bug in my tool, fixed the same day (post 17); after the fix the same file came back clean, 1,038,009 moves accepted (post 19). So a known-good print produced no false alarm on someone else’s machine. A predicted scar has not been checked against a physical print yet: the physical evidence for the example is still the forum report. There is no physics: no heating, ooze, flow or sensors. Commands that wait on hardware are skipped and listed in every report, and the start block before the first layer does not run. A scar is a geometric prediction, not a measurement. I built it with AI coding assistance.
If you have a U1 and a print that scratched or failed mid-way, please run it and tell me what it says, right or wrong.
Open Source Status
Open Source
Please specify the open source license used by this project
GPL-3.0
Cash Fund or U1 Hardware Sponsorship
Cash Fund
Originality
Original New Idea
If based on an existing project — your independent contribution
N/A
Is it a paid project?
No
