rudetrooper / Octoprint-Chituboard

Added basic support chituboard based printers(Elegoo Mars, Anycubic Photon, Phrozen, etc.) to octoprint.
GNU Affero General Public License v3.0
84 stars 18 forks source link

Unable to Load and Print Files #43

Open mookeyj79 opened 1 year ago

mookeyj79 commented 1 year ago

Hello! I am having an issue with the plugin where I cannot load and print files. I started with a fresh OctoPrint install, ran the setup script, soldered the serial connection onto the motherboard, and setup the USB.

Here's what's working:

Here's what's not working:

Here's my setup:

Attached our my Octoprint logs. Thank you for your help, and please let me know if you need anymore information! octoprint-logs.zip

doucettom commented 1 year ago

Make sure you are not slicing a CTBv4 file.

grimsdagger commented 1 year ago

I have the same error on a phrozen sonic mighty 4k, non updated firmware, and I verified it was a ctbv3 file. I can also see the file on the printer, which printed fine. Opening and printing does not work on octoprint. This is what the log says: 2023-05-29 11:23:54,254 - octoprint - ERROR - Exception on /api/files/local/resin/raketovy motor V2 (2)_0.05mm_4h2m.ctb [POST] Traceback (most recent call last): File "/home/m/oprint/lib/python3.9/site-packages/octoprint_chituboard/sla_printer.py", line 126, in select_file sliced_model_file = file_format.read_dict(Path(path_on_disk),fileData["analysis"]) KeyError: 'analysis'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/m/oprint/lib/python3.9/site-packages/flask/app.py", line 2529, in wsgi_app response = self.full_dispatch_request() File "/home/m/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/m/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/home/m/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(*view_args) File "/home/m/oprint/lib/python3.9/site-packages/octoprint/server/util/flask.py", line 1613, in decorated_view return func(args, **kwargs) File "/home/m/oprint/lib/python3.9/site-packages/octoprint/server/api/files.py", line 874, in gcodeFileCommand printer.select_file(filenameToSelect, sd, printAfterLoading, user) File "/home/m/oprint/lib/python3.9/site-packages/octoprint_chituboard/sla_printer.py", line 130, in select_file sliced_model_file = file_format.read(Path(path_on_disk)) File "/home/m/oprint/lib/python3.9/site-packages/octoprint_chituboard/file_formats/ctb.py", line 212, in read printer_name = file.read(ctb_slicer.machine_size).decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 0: invalid continuation byte

mookeyj79 commented 1 year ago

So i finally got this to work by upgrading the motherboard from the ChiTu L V2 board to the ChiTu L V3 board. Using lychee, it does not matter if a select v2, v3, or v4 ctb, they all work with the plugin.

grimsdagger commented 1 year ago

After formatting the pi, and reinstalling octoprint, the plugin is also working for me

tottiland commented 1 year ago

Unfortunately i can't say is working for me, at the end i manage to mount the disk, the problem was the cable. I tried probably 9 of them. But when finaly the disk is initiated now the message from terminal is: Send: M23 _connector_light.ctb Recv: //############Error!cann't open file _connector_light.ctb! Recv: open failed, File :_connector_light.ctb Recv: ok N:36 Send: M4000 Recv: ok B:0/0 X:0.000 Y:0.000 Z:-10.000 F:0/256 D:0/0/1 ok Repl: ok T:0 /0 B:0 /0 X:0.000 Y:0.000 Z:-10.000 F:0/256 D:0/0/1 ok

I used chitubox and lychee, with v2,v3 and v4 and nothing works. Any ideas? I am very frustatred.

Thanks

ritik-kansal commented 1 year ago

does it work with Phrozen sonic mighty 8k?