Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcode: Add Marlin / Octoprint SD card compatible behavior #3976

Open
wants to merge 121 commits into
base: master
Choose a base branch
from

Conversation

thess
Copy link
Contributor

@thess thess commented May 3, 2024

This PR adds enough SD card gcode compatibility to list USB contents, including sub-directories, and start/stop/pause/resume printing from Octoprint or any other gcode serial interface application.

  • Implement M20 compatible with Marlin (long-file name, size & timestamp)
  • Align M23 & M24 compatibility with Marlin
  • Add gcode M27 auto report from gcode: Add gcode M27 auto report support #3739
  • Updates M2x commands for use with EXTENDED_M20 support
  • Hides /usb root path

Addresses issue #3054
Alternative solution to #3765 (includes sub-directories and M23/M24 actually work)

Note: Installing the BGCode Octoprint plugin makes .bgcode files visible in the file listings. The entries can then be selected and printing started, etc. thus increasing the usability of Octoprint with the Buddy.

CZDanol-prusa and others added 29 commits June 10, 2024 14:14
Don't check the accelerometer on XL before picking a tool.

BFW-5689
The "Successfully connected to:" title text was truncated.

BFW-5580
PhasesCrashRecovery::_last was not invalid :/

BFW-5690
This does not fully fix the issue, but should help it

BFW-5645
The previous one was probably too permissive, possibly causing unwanted resumes.

BFW-5645
Normally, this is not a problem.
However, in the case that one of the unused extruder thermistor is broken
and is reporting values below zero, the printer gets stuck
in the reheating state.

And yes, this actually happened.

BFW-5657
Here's 50 B of flash for ya

BFW-5686
-152 B flash

BFW-5686
Duh.

The problem is that the homeaxis_single_run reports axis as homed
even though the homeaxis as a whole fails.
This led to XY selftest not catching up the homing fail,
resulting in a redscreen.

BFW-5686
There were some left overs from where motor detection
was part of Mk4 selftest - now handled by ScreenPrinterSetup.

Also, add homing detection for all printers.
We want to know if homing fails everywhere.

BFW-5686
Testing did't like the red cross when you retry the test :P

BFW-5686
We need this to debug the gcode corruption.

BFW-5714
HWLIMIT_NORMAL_MAX_ACCELERATION was previouvly increased,
but HWLIMIT_NORMAL_ACCELERATION was forgotten on the low values.

BFW-5494 BFW-5644
danopernis and others added 22 commits July 23, 2024 12:34
Turns out product department doesn't want this after all.
Turns out product department doesn't want this after all.
It is not needed anymore after previous commits.
Marlin vars were incorrectly constructed instead of referencing
the existing singleton, leading to using zero for time.
Under some circumstances (plain-gcode file of the correct size), we
could reach a situation where we do have the whole file downloaded, but
the download itself is capable of providing some more data, therefore
claims „Continue“. We would then first finalize the file and then
continue the attempts to download it further, resulting in access to a
null pointer.

We could probably take more care of setting the range header more
thoroughly in such situation, but the server can send more data anyway,
so better protect us this way.

BFW-5859.
As a result, don't ask for the 4th nozzle's diameter on MMU printer when
printing from the 4th filament slot.

BFW-5873.
If a file fails the valid for print check not because it is still not
downloaded, but because it is somehow broken, report it as such. This
goes all the way to the GUI, instead of the „Downloading“ screen.

BFW-5830.
@thess thess force-pushed the Marlin-M2x-compat branch from c5cf5fd to 9a19293 Compare August 15, 2024 17:24
Implement M20 compatible with Marlin
Align M23 & M24 compatibility with Marlin
Add gcode M27 auto report support
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.