MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.27k stars 19.23k forks source link

Recover from communication glitches #2000

Closed amigoloko closed 8 years ago

amigoloko commented 9 years ago

Dear Marlin Community,

Im using the marlin firmware connected to repetier host, randomly and suddenly when printing the printer just stops printing, the repetier host gets stuck at a code (when sending them from the log). pause/stop/move the printer with a repetier host commands does not work.

I have to turn everything off, printer, close repetier and then restart from the beginning the print.

Have you run into something like this. i am using arduino mega 2560. One thing that i have on the arduino is to bypass the reset by cutting the stroke, and make a pin/jumper for uploading the firmware, so when ever you want to upload need the jumper no jumper cant upload. dont thinks this to matter but just in case.

from my point of view, it seems that the marlin is at loop of the buffer wainting for more commands. but hard to know for sure. and maybe the repetier/marlin lost connection. Another thought, might be the repetier host, even thou it does not crash it just seems to stop sending commands.

appreciate any help.

amigoloko commented 9 years ago

as @foosel stated, lets test to see if this works at it best... also u guys mention poor arduino megas or low quality china ones, how are the chances this is a real cause?

thinkyhead commented 9 years ago

Communication errors (with the Arduino Mega 2560) happen, I've seen it.

Truly! I only print from SD now, just to avoid them.

thinkyhead commented 9 years ago

I'm using BUFSIZE 8 on the Ultimaker2. Helped with some internal issues…

Interesting! The Witbox and Hephestos configs also raised it from 4 to 5, citing similar improvement. Maybe we should make it a happy medium, like 6. But, it costs 96 bytes for each extra BUFSIZE.

daid commented 9 years ago

Maybe the BUFSIZE can depend on the chip? If you have 8k ram, there is no problem in taking a few 100 extra bytes for one of the most important buffers. (On the Ultimaker2 I also use 1k extra for the display memory buffer, and another 1k for caching SD card stuff)

Wurstnase commented 9 years ago

But, it costs 96 bytes for each extra BUFSIZE.

I've saved this already with some new code ;) As we said, from the left pocket to the right.

thinkyhead commented 9 years ago

@Wurstnase Is that merged now?

Wurstnase commented 9 years ago

The bitification I started should save this. It's not completely merged now.

jbrazio commented 8 years ago

Thank you for your interest making Marlin better. You should re-open this topic on MarlinFirmware/MarlinDev for proper followup from the development team. We suggest you to use the MarlinFirmware/Marlin#<topic id> markdown to link back to this original topic.

github-actions[bot] commented 2 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.