luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
762 stars 305 forks source link

Error when trying to upload any ".g" / ".gco" file #95

Closed DenisG1994 closed 4 years ago

DenisG1994 commented 4 years ago

Describe the bug Anytime I try to upload a file (g;G;gco;GCO;gcode;GCODE) via the "SD files" panel I get the error attached (Error 0 : )

To Reproduce I tried several times both reflashing my esp8266 (Wemos D1 mini board) and reformatting the SD card of the printer (Anycubic I3 mega) but with any success. I'm using those versions for the board UI: 2.1b20 / FW: 2.1.0.b39 and the 2.5.2 for the Arduino boards. The esp can connect correctly to the printer, it can check and change the axis position and the temperatures. If I put manually a ".gco" file from a pc to the SD card it even see it and also print it.

Expected behavior Expect to upload a ".gco" file

Screenshots

Schermata 2020-04-17 alle 12 10 09

ESP3D Firmware: (please complete the following information)

Target Firmware: (please complete the following information)

Board used (please complete the following information):

Browser used (please complete the following information):

Additional context

DenisG1994 commented 4 years ago

Ok, It work also with the stock firmware now!

[ESP3D][syncwebserver.cpp:943] handle_web_command(): WebCommand [ESP400]
[ESP3D][syncwebserver.cpp:858] handle_not_found(): Not found /macrocfg.json, type application/octet-stream
[ESP3D][syncwebserver.cpp:891] handle_not_found(): Page not found
[ESP3D][syncwebserver.cpp:858] handle_not_found(): Not found /preferences.json, type application/octet-stream
[ESP3D][syncwebserver.cpp:1227] SDFile_serial_upload(): Upload start
[ESP3D][webinterface.cpp:156] sendLine2Serial(): Send line 1
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M29
ok
[ESP3D][webinterface.cpp:244] sendLine2Serial(): Got ok
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:156] sendLine2Serial(): Send line 1
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M21
echo:SD card ok
ok
[ESP3D][webinterface.cpp:244] sendLine2Serial(): Got ok
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:156] sendLine2Serial(): Send line 1
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M110 N0
ok
[ESP3D][webinterface.cpp:244] sendLine2Serial(): Got ok
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M117 Uploading...
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
ok
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:156] sendLine2Serial(): Send line 1
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M28 /test.gco
echo:Now fresh file: /test.gco
Writing to file: /test.gco
ok
[ESP3D][webinterface.cpp:244] sendLine2Serial(): Got ok
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][syncwebserver.cpp:1284] SDFile_serial_upload(): Creation Ok
[ESP3D][webinterface.cpp:156] sendLine2Serial(): Send line 1
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
G28
ok
[ESP3D][webinterface.cpp:244] sendLine2Serial(): Got ok
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:156] sendLine2Serial(): Send line 1
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M117 done
ok
[ESP3D][webinterface.cpp:244] sendLine2Serial(): Got ok
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][syncwebserver.cpp:1358] SDFile_serial_upload(): Upload finished
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][webinterface.cpp:156] sendLine2Serial(): Send line 1
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M29
Done saving file.
ok
[ESP3D][webinterface.cpp:244] sendLine2Serial(): Got ok
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
M117 SD upload done
[ESP3D][webinterface.cpp:99] purge_serial(): Purge Serial
ok
[ESP3D][webinterface.cpp:118] purge_serial(): Purge done
[ESP3D][syncwebserver.cpp:1189] handle_serial_SDFileList(): Serial SD upload done
Ok
[ESP3D][syncwebserver.cpp:943] handle_web_command(): WebCommand M20
[ESP3D][syncwebserver.cpp:985] handle_web_command(): Block Serial
[ESP3D][syncwebserver.cpp:987] handle_web_command(): Start PurgeSerial
[ESP3D][syncwebserver.cpp:992] handle_web_command(): End PurgeSerial
[ESP3D][syncwebserver.cpp:998] handle_web_command(): Start PurgeSerial
[ESP3D][syncwebserver.cpp:1003] handle_web_command(): End PurgeSerial
M20
[ESP3D][syncwebserver.cpp:1017] handle_web_command(): Got data
Begin file list
[ESP3D][syncwebserver.cpp:1028] handle_web_command(): Remove new line
[ESP3D][syncwebserver.cpp:1067] handle_web_command(): New buffer Begin file list
[ESP3D][syncwebserver.cpp:1017] handle_web_command(): Got data
BASE~1.GCO
TEST.GCO
End file list
ok
[ESP3D][syncwebserver.cpp:1028] handle_web_command(): Remove new line
[ESP3D][syncwebserver.cpp:1067] handle_web_command(): New buffer Begin file list
BASE~1.GCO
[ESP3D][syncwebserver.cpp:1028] handle_web_command(): Remove new line
[ESP3D][syncwebserver.cpp:1067] handle_web_command(): New buffer Begin file list
BASE~1.GCO
TEST.GCO
[ESP3D][syncwebserver.cpp:1028] handle_web_command(): Remove new line
[ESP3D][syncwebserver.cpp:1067] handle_web_command(): New buffer Begin file list
BASE~1.GCO
TEST.GCO
End file list
[ESP3D][syncwebserver.cpp:1028] handle_web_command(): Remove new line
[ESP3D][syncwebserver.cpp:1037] handle_web_command(): Found ok/wait add New buffer Begin file list
BASE~1.GCO
TEST.GCO
End file list
ok
[ESP3D][syncwebserver.cpp:1090] handle_web_command(): Finished
[ESP3D][syncwebserver.cpp:1094] handle_web_command(): Sending Begin file list
BASE~1.GCO
TEST.GCO
End file list
ok
[ESP3D][syncwebserver.cpp:1101] handle_web_command(): Start PurgeSerial
[ESP3D][syncwebserver.cpp:1106] handle_web_command(): End PurgeSerial
[ESP3D][syncwebserver.cpp:1108] handle_web_command(): Release PurgeSerial

Unlikely the printer don't seem to like the ".GCO" files, and don't allow to print them via the on-machine display. Guess I will print via the ESP, so power loss recovery is away in all cases.

IMG_0569

luc-github commented 4 years ago

well marlin is displaying only the file it can print so if it show it should print

luc-github commented 4 years ago

I guess issue can be closed

DenisG1994 commented 4 years ago

Do I need to keep using the 2.1-devt version with all of the command shown? or you will release a separated version?

luc-github commented 4 years ago

comment the DEBUG_OUTPUT_SOCKET in config.h //#define DEBUG_OUTPUT_SOCKET

luc-github commented 4 years ago

or download the latest 2.1-devt and enable the define in config.h

//For FW which has issue with checksum or not handling M110 properly///////
//#define DISABLE_SERIAL_CHECKSUM
DenisG1994 commented 4 years ago

Ok, thank you very much for your assistance!!

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.