Mrnt / OctoPrint-FlashForge

OctoPrint plugin to support closed source printers from FlashForge, PowerSpec, Dremel
GNU General Public License v3.0
87 stars 12 forks source link
3d-printing octoprint octoprint-plugin

OctoPrint-FlashForge

Adds support to the OctoPrint 3D printer web interface for communication with closed source printers such as the:

At the current time, plugin will only work with printers that support a connection to a host computer (eg RaspberryPi) via a USB connection (using a USB type B connector on the printer).

These printers are not supported by Octoprint-GPX. Octoprint-GPX works on older printers such as the FlashForge Creator Pro and a few similar printers which use the GPX protocol.

March 9th 2022 - IMPORTANT PLEASE READ

Neither FlashForge or Dremel have provided details of the commands or protocol supported by the various models - almost all the work herein was done by reverse engineering the communication between FlashPrint and the two printers I had access too, trial and error, and subsequently spending many, many hours studying debug logs including those graciously provided by users.

However, this is ultimately a losing battle - every new device or firmware change by FlashForge can and has broken the limited capabilities of this plugin. I have therefore made the decision not to spend more time on this plugin. I am grateful to the few users that were generous enough to send me a donation and I hope that they will understand this decision. Moving forward, the best solution for FlashForge printers is to use a well documented, open source firmware such as Marlin, which will fully support OctoPrint, Cura, etc. I am working on converting my remaining FlashForge printer to use Marlin firmware so that I can focus on using it to its full potential.

Current Capabilities

Printer Compatibility

IMPORTANT: This plugin uses a USB connection to communicate with the printer - if the printer cannot be connected directly to a computer via USB, then it will not work with this plugin.

Shows current state of printer Compatibility for core OctoPrint functionality and will be updated as users provide feedback. Printer Upload File to SD Card Control Movement and Temperature Print Directly From OctoPrint
Adventurer 4
Not supported (no USB to host port)
- - -
Adventurer 3
Not supported (no USB to host port)
- - -
Adventurer 3C
Not supported (no USB to host port)
- - -
Adventurer 3
Not supported (no USB to host port)
- - -
Creator 3
Not supported (no USB to host port)
- - -
Creator Max Yes Yes Yes, unreliably
Creator Pro No (Use GPX plugin) No (Use GPX plugin) No (Use GPX plugin)
Creator Pro 2 No (Use GPX plugin) Yes Yes (IDEX in development)
Dreamer Yes ? ?
Dreamer NX Yes ? ?
Finder v1 Yes Yes Yes, unreliably
Finder v2* Yes Temp - Yes, Movement - ? ?
Explorer Yes ? ?
Guider Yes ? ?
Guider II* Yes Temp - Yes, Movement - ? ?
Guider II S* Yes Temp - Yes, Movement - ? ?
Inventor Yes ? ?
Inventor II Yes ? ?
Dremel 3D20 Yes ? ?
Dremel 3D40** ? ? ?
Dremel 3D45** ? ? ?
PowerSpec Ultra 3d Yes Yes Yes, unreliably

* May be issues with FlashForge Finder II, Guider II, Guider IIs - these printers do not support relative positioning so when you create your Printer Profile in OctoPrint you will need to go to the "Axes" tab and select "G91 Not Supported". If you still experience issues when using the controls please report with debug log files (see below for how to enable debugging).

** Dremel 3D40, 3D45 seem to talk a little differently from the other printers and cannot be controlled directly. At the present time upload to SD card is not working either.

Install

Install via the OctoPrint Plugin Manager by clicking "Get More" and entering "FlashForge" to search the Plugin Repository, or in the box "...enter URL" put:

https://github.com/Mrnt/OctoPrint-FlashForge/archive/master.zip

then click "Install".

Plugin requires the libusb1 library: https://pypi.org/project/libusb1/ which should install automatically if you install the plugin via the Octoprint UI.

If you are using Linux (eg you installed OctoPi on a Raspberry Pi), then after installing the plugin (and restarting OctoPrint), you will need to access the Pi using SSH to give the OctoPrint permissions to access the printer. Instructions for adding a udev rule to allow configure permissions will appear in the "Terminal" tab of OctoPrint the first time you attempt to connect to your printer.

Configuration

The following steps should get you up and running on OctoPrint/OctoPi:

Settings

The plugin attempts to set default values for the following (so on a fresh install, no tweaking should be necessary):

Connection

Under the main interface select "Auto" for "Serial Port".

Additional Information

Additional information on g-code supported by the printers, etc can be found in the Wiki.

Plugin was inspired by work by Noneus and information on these printers provided by users. If you discover an issue, figured out how to make out how to make it work better or have an idea for improvement please raise it as an issue.

Known Issues

Troubleshooting

Debugging

Turn on debug messages for the plugin by going to Settings > Logging and under "Logging Levels" set octoprint.plugins.flashforge to "DEBUG"

IMPORTANT: click the "+" sign next to it, then click "Save".

Support Further Development

This plugin was/is developed by painstakingly reverse engineering the communication between FlashPrint and FlashForge printers with much trial and error. If you find it useful and/or want to see continued development, please consider making a donation.

More chocolate, more code