Upload to SD on FFCP fails


#1

Hi,
I'm using Octoprint 1.3.6 with a Flashforge Creator Pro 2016, Sailfish 7.8 on a Raspberry 3.
All seems to work until now. The files list from the SD is shown, the temperature curves are draw and updated.
The only exception uploading a file to the SD card.

The upload starts, shows the progress bar increasing but oat the end an error is thrown:

Send: M28 /DoorLockForPadLockMovingPa.x3g
Unexpected error while writing to serial port: IOError: 'Command not supported or recognized' @ comm.py:_do_send_without_checksum:2499
Changing monitoring state from 'Operational' to 'Offline: IOError: 'Command not supported or recognized'@comm.py:_do_send_without_checksum:2499'
Connection closed, closing down monitor

The entries written to octoprint.log are:

2018-03-29 13:21:47,350 - octoprint.plugins.GPX - INFO - Connecting through x3g.
2018-03-29 13:21:47,359 - octoprint.plugins.GPX - INFO - GPXPrinter created, port: /dev/ttyACM0, baudrate: 115200
2018-03-29 13:21:51,432 - octoprint.plugins.GPX - INFO - gpx.connect succeeded
2018-03-29 13:21:51,452 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-03-29 13:21:51,492 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-03-29 13:21:53,543 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-03-29 13:21:53,560 - octoprint.util.comm - INFO - Printer reports firmware name "Sailfish"
2018-03-29 13:22:31,290 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-03-29 13:22:31,324 - octoprint.util.comm - ERROR - Unexpected error while writing to serial port
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/util/comm.py", line 2499, in _do_send_without_checksum
    result = self._serial.write(to_send)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_GPX/gpxprinter.py", line 131, in write
    self._append(gpx.write("%s" % data))
IOError: Command not supported or recognized
2018-03-29 13:23:38,649 - octoprint.plugins.GPX - INFO - Connecting through x3g.
2018-03-29 13:23:38,651 - octoprint.plugins.GPX - INFO - GPXPrinter created, port: /dev/ttyACM0, baudrate: 115200
2018-03-29 13:23:42,686 - octoprint.plugins.GPX - INFO - gpx.connect succeeded
2018-03-29 13:23:42,706 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0

Can anyone confirm that this works on an FFCP works with Sailfish 7.8?

TIA,
Gerhard


#2

To quote the "Known Issues" in the GPX plugin README:

Upload to SD doesn't work. It can't work directly because SailFish removed that feature to save bytes. Probably a good call since who wants to wait for 115200 baud when you can just plug the SD card into your PC.


#3

Wow, that was fast! :smiley :smiley :smiley
Thank you for the feedback!

One reason for using upload is that the PC may not have an SD-reader or if the printer is far away from the design place.
I was even more surprised that the upload was that fast - assuming that the upload code still exists and only the save procedure has been deactivated.

Finally I want to add a question here: Wouldn't it be possible to deactivate the "Upload to SD" button when using GPX?

Thank you very much,
Gerhard