rommulaner / Anycubic_Vyper_MB_CE_6.2

New version Vyper-CE-6.2
GNU General Public License v3.0
77 stars 9 forks source link

LCD-driven Cancel of SD Print doesn't always cancel when USB is connected/polling #30

Closed caffeineismydrug closed 7 months ago

caffeineismydrug commented 7 months ago

(2024-3-11 Edit: We may have scoped this issue down to an issue only when USB is being polled)

Several times now I have cancelled an SD print from the screen. on the first several attempts, the printer pauses instead of cancelling. On some attempts, it starts warming up again!

1) Stop Button -> Stop Current Print -> Confirm -- returns to the print pause screen and nozzle still warm; After some time, the screen reports Heater Timeout and cools down. 2) Stop Button -> Stop Current Print -> Confirm --> starts heating nozzle again! 3) Stop Button -> Stop Current Print -> Confirm --> says reheat done, yet temperature still rising 4) Stop Button -> Stop Current Print-> Confirm -> Says heating -> purging -> Printing (briefly) -> then Print paused (yet nozzle cools down 5) Stop Button -> Stop Current Print -> Confirm -> Finally return to main screen with "Print Aborted" message and temperature continues dropping

caffeineismydrug commented 7 months ago

Additional Info, Reviewing my Configuration.h changes from the git head... Nothing I've changed jumps out... I overrode the Machine Name (so I knew that the updated config was applied); Set PID fields Kp,Ki,Kd, Reduced MINTEMP to from 170 to 150, Added 3rd PREHEAT profile, Defined NOZZLE_CLEAN_FEATURE, PRINTCOUNTER, Adaptive Fan slowing, PID FAN SCALING, and backed HOTEND_IDLE_TIMOUT_SEC from 15min down to 5 min

rommulaner commented 7 months ago

There I have absolutely no idea why the Stop button should not work. It is a very simple operation which just sends a Cancel_Print command. It also worked every time on my vyper and was never changed since the CE exists. Try to reflash the screen and mainboard and reset the settings several times. Sometimes the display behaves strange after flashing or messed up some data.

KAPTOHKA commented 7 months ago

Try to reflash the screen...

By the way, in your screen firmware, files 13 and 14 are named in Chinese, some screens do not flash such files and after that, the screen works with glitches ... You need to rename these files to 13TouchFile.bin & 14ShowFile.bin and flash them again. You can check after the firmware, on the blue screen, that the files have been flashed...

rommulaner commented 7 months ago

In the release ZIP the files are correctly named. In the SRC folder the file names are different, that's why there is a build-script.

caffeineismydrug commented 7 months ago

filename_path_encoding

In the release ZIP the files are correctly named. In the SRC folder the file names are different, that's why there is a build-script.

OK, thanks I'll check it out.. In whatever zip I had w/ LCD 6.2.1 when extracted, the path names became part of the filenames; it was really awkward; I had to rename them all because they had DWIN_SET as part of the filename.
edit: yeah, just checked it out again, different linux machine; it's not expanding the paths properly! I ran unzip from a terminal instead of Mint's "archive manager" and it extracted properly. Regardless I diff'd the 6.2.1 against the SD I flashed and it was the same. I flashed again it took all ~10 files, did the screen cal again. I'll retest cancel.

caffeineismydrug commented 7 months ago

After a touchscreen flash, I thought it was fixed, but I was mistaken.

Just replicated it twice.. Stop -> Stop Current Print? Confirm -> Returns to Home Screen w/ "Print Aborted" -> Nozzle moves home. Almost immediately after reaching home, screen shows "Parking" then "Nozzle Parked", and goes back to Printing Screen -> Print Paused -> Heating -> 150C. (timer shows 7:20s)

(2nd press) Stop -> Stop Current Print? Confirm-> Returns to Home Screen w/ "Print Aborted" again. (Nozzle already home), Immediately goes back to Parked screen and continues "Heating"

(3rd press) Stop -> Stop Current Print? Confirm -> Target temp drops to 0C and it returns to home screen. https://photos.app.goo.gl/EHgsqCZTdwKymsCd9

rommulaner commented 7 months ago

Did you also reflashed the Mainboard and reset several times? The only thing that could help is to flash the reset cfg on the screen and reflash it again. If it doesn't work after that I fear that there is something different wrong.

rommulaner commented 7 months ago

I also saw in your video that is connected to something over USB. Can you try stopping the print without the USB connection?

caffeineismydrug commented 7 months ago

UPDATE: In 100% of my 1 recent tests, Unplugging the USB seems to have resulted in a proper abort on press of the LCD cancel button. (Octoprint had been polling status)
UPDATE2: I have cancelled a few more prints for various reasons, and canceling seems to work fine without USB connected. Some sort of synchronization issue with the status polls coming in from octoprint must have been preventing the actual stop from completing and instead transitioning to PAUSED/PARKED status.