Skip to content
Demitrios V edited this page Apr 2, 2020 · 7 revisions

OctoPrint-plugin

Starting with release 119r09, the contents of the micro SD card include the OctoPrint plugin, AO M900 Upload to SDCard. As the name implies, this plugin exploits the custom M990 command found in the mpmd_marlin_1.1.x firmware to upload a file to the printer's SD card. Though not a speed demon, it is significantly faster than Marlin's M28 command, and it transfers the gcode file unaltered. In our testing, transfer rates of ~8Mbytes/minute were typical.

Thanks go to @jneilliii. My work on the plugin (this early version and an upcoming full-fledge implementation) was stymied. His generous help and OctoPrint expertise turned incomplete code into a functioning OctoPrint plugin.

Installing the plugin

This initial version of the plugin is contained in a single file and, for now, must be installed manually, that is, copied to the OctoPrint plugins folder of your OctoPrint server. There are some instructions in the OctoPrint documentation (see manual-installation).

Using the plugin

Once installed and enabled, OctoPrint's "Upload to SD" button should use the faster M990 protocol to transfer a file to the printer's SD card. During the upload process, the printer will display target temperatures of 1 and 1, and the printer's LED will pulse green. It is possible to abort the upload using the printer's "Cancel" button. When the process completes, OctoPrint indicates success or fail via a pop-up notification.

Known limitations:

  • The uploaded file is always placed in the root directory of the SD card;
  • The uploaded file will be named in DOS8.3 format (not a long file name);
  • No ability to manually set the file name on the SD card;
  • OctoPrint (the plugin) does not show any meaningful upload progress; and
  • OctoPrint (the plugin) has no facility to cancel the upload process.

Hopefully a full-fledged version of the plugin, one that can be installed and updated automatically, will be able to remove some of the current limitations.