OctoPring Connection Issues Flashforge Creator Pro 2 - Fixed

What is the problem?

I have installed the GPX and the Flashforge plugin: when iam trying to connect i get following error:

Unexpected error while connecting to serial port FlashForge Creator Pro 2 3D Printer, port:1:5, baudrate 115200 from hook GPX: FileNotFoundError: '[Errno 2] No such file or directory: 'FlashForge Creator Pro 2 3D Printer, port:1:5'' @ comm.py:_open_serial:3836

lsusb
Bus 001 Device 004: ID 2b71:000e

so the printer should be connected and available.

thx for suggestions on this topic.

What did you already try to solve it?

gpx plugin only:
no interface found

flashforge plugin only:
Connected to: <octoprint_flashforge.flashforge.FlashForge object at 0x7225e950>, starting monitor
No answer from the printer within the connection timeout, trying another hello
There was a timeout while trying to connect to the printer
Changing monitoring state from "Connecting" to "Offline"
Connection closed, closing down monitor
Changing monitoring state from "Offline" to "Opening serial connection"
Changing monitoring state from "Opening serial connection" to "Connecting"
Connected to: <octoprint_flashforge.flashforge.FlashForge object at 0x6ebf56b0>, starting monitor

Have you tried running in safe mode?

no

Did running in safe mode solve the problem?

no

Systeminfo Bundle

octoprint-systeminfo-20230210002115.zip (17.0 KB)

OctoPrint 1.8.6
OctoPi 0.18.0

Thanks for Ideas and support

i have now installed version 1.6.1 (flashforge plugin only) and the connection works with this old version. thanks for support to get it running also with updated versions.

OctoPrint 1.7.3, Python 3.7.3, 0.18.0 (flashforge plugin only) is also able to connect

compring logs from working and not working versions:

working:

> 2023-02-10 00:26:19,638 - octoprint.plugins.flashforge - DEBUG - on_connect()
> 2023-02-10 00:26:19,658 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial connection" to "Connecting"
> 2023-02-10 00:26:19,665 - octoprint.plugins.flashforge - DEBUG - rewrite_gcode(): gcode:M601, cmd:M601 S0
> 2023-02-10 00:26:19,669 - octoprint.plugins.flashforge - DEBUG - is_sd_printing()
> 2023-02-10 00:26:19,671 - octoprint.plugins.flashforge - DEBUG - rewrite_gcode(): gcode:M601, cmd:M601 S0
> 2023-02-10 00:26:19,672 - octoprint.plugins.flashforge - DEBUG - write() called by thread comm.sending_thread
> 2023-02-10 00:26:19,674 - octoprint.plugins.flashforge - DEBUG - is_sd_printing()
> 2023-02-10 00:26:19,676 - octoprint.plugins.flashforge - DEBUG - write() M601 S0

not working:

023-02-10 00:18:07,350 - octoprint.plugins.flashforge - DEBUG - on_connect()
2023-02-10 00:18:07,358 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial connection" to "Connecting"
2023-02-10 00:18:07,378 - octoprint.plugins.flashforge - DEBUG - rewrite_gcode(): gcode:M110, cmd:M110 N0
2023-02-10 00:18:07,385 - octoprint.plugins.flashforge - DEBUG - is_sd_printing()
2023-02-10 00:18:07,393 - octoprint.plugins.flashforge - DEBUG - is_sd_printing()
2023-02-10 00:18:07,398 - octoprint.plugins.flashforge - DEBUG - rewrite_gcode(): dropping command
2023-02-10 00:18:07,401 - octoprint.plugins.flashforge - DEBUG - rewrite_gcode(): gcode:M110, cmd:M110 N0
2023-02-10 00:18:07,403 - octoprint.plugins.flashforge - DEBUG - is_sd_printing()
2023-02-10 00:18:07,410 - octoprint.plugins.flashforge - DEBUG - detect_printer()

it seems that following lines from plugin doesn't have effect in version 1.8.x

self._conn_settings = {
			'firmwareDetection': False,				# do not try to auto detect firmware
			'sdAlwaysAvailable': True,				# FF printers always(?) have the internal SD card available
			'neverSendChecksum': True,				# FF protocol does not use command checksums
			'helloCommand': "M601 S0",				# FF hello command and set communication to USB
			'abortHeatupOnCancel': False			# prevent sending of M108 command which doesn't work
		}
		self._feature_settings = {
			'autoUppercaseBlacklist': ['M146']		# LED control requires lowercase r,g,b
		}
		default_settings["serial"] = dict_merge(default_settings["serial"], self._conn_settings)

I guess it is related to

Heads-ups for plugin authors

Settings._config is read-only!

Stated in 1.8.0 release notes

Will try to adopt and use set method instead of overwriting dict values.

https://github.com/msmthng/OctoPrint-FlashForge/archive/refs/heads/master.zip

i am able to connect with this version, further testing ongoing (printing,...)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.