Skip to content

Octoprint GRBL plugin is unstable #11

@JensDyvik

Description

@JensDyvik

I have successfully tested the Octopi image on a raspberry pi controlling GRBL on an Arduino Nano. I followed the instructions on the fabricatable machines repository to install and set up.

I am able to load and run jobs. But octoprint with the grbl support plugin behaves unstable and freezes often. After a freeze the octoprint servers needs to be restarted. We need to find a way to improve the plugin. It could be great if our fixed could be sent as a pull request to the plugin repo

Issues to fix

  • GRBL alarm commands are not well handled and "freezes" octoprint so that a restart is required. It would be super if Octoprint could automatically disconnect and reconnect or send a "clear alarm" command after an alarm.
  • It could also be great to map the error codes to the official descriptions to help users troubleshoot.
  • Octoprints sends unnecessary marlin commands that seem to sometime make GRBL go to an alarm state. Typically (M1xx).
  • After a few minutes of being idle Octoprint seems go into a time out error because it expected a response from GRBL
  • Pressing the "Stop" button in the octoprint interface stops the machine movements but not the spindle.

Tweaks I have made to make Ocoprint work on GRBL

octoconfig-checksum
Turn off "Send a checksum with a command" (This is also mentioned in the GRBL plugin repo)

octoconfig-error-handling
Set the error Handling to "Cancel any ongoing prints". I think ignoring them entirely might be risky.

octoconfig-query-intervals
Set the temperature query interval to daily. If this one is to frequent it impacts the streaming of coordinates and creates an error response. This solution is mentioned in this issue in the plugin repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions