Traumflug / Teacup_Firmware

Firmware for RepRap and other 3D printers
http://forums.reprap.org/read.php?147
GNU General Public License v2.0
310 stars 198 forks source link

Communication timeout #336

Open ahmetonat opened 1 year ago

ahmetonat commented 1 year ago

My setup is: Tiertime Up Mini printer electronics and mechanics, but the controller is replaced by an Arduino Nano (yes only an Atmega 328P). I am at a point where it is possible to home the printer and control the extruder satisfactorily.

The next problem is communication timeout. The printer will hang at an arbitrary point after about 1 minute or so of printing. Repetier Host (that I am using with it) issues "communication timeout" errors and tries to re-connect in vain. Sometimes the printer will slow down to a crawl but will recover to the previous speed after about 30 seconds or so.

Another problem I noticed when trying to print cylindrical objects is that the printer seems to skip vertices. It starts drawing a line segment, but the next segment is quite far ahead and the filament follows the shortest path between them. What should be circles are drawn as arbitrary polygons.

I assume that the processor is running out of memory or cannot complete calculations between consecutive commands received from the PC.

What I did is:

None of these changed the behavior of the printer.

Any ideas? Perhaps I should just quit this processor and move on to an ARM and perhaps full size Marlin FW or similar?

Thanks.

phord commented 12 months ago

The issue with skipping waypoints is probably unrelated to the processor speed. More likely it is caused by RH sending data faster than it can be printed without waiting for the UART buffer to drain.

"Ping-pong" mode sounds like the usual reprap communication style, but it's strange that it doesn't work for you. Maybe the responses are not to Repetier's liking.

I wanted to use RepetierHost when it came out, but I experienced a number of weird effects with it, too. Whenever I tried to send my G-Code with some other tool like Pronterface, it always worked fine. So I eventually gave up on RepetierHost. I've successfully used many other tools without the sorts of problems RH had. Have you tried sending your g-code with any other tool?

ahmetonat commented 12 months ago

Thanks for the tip! Actually I only tried Repetier host as I am not very familiar with 3D printing tools on the PC side, so I assumed that the popular Repetier Host would work just fine.

Let me try Pronterface, and see how it goes. Do you have any other recommendations for PC side software?

In RH (and others probably), there is an option for the printer firmware. I have been using Marlin as that seems to be the closest alternative but I am not sure if it is the correct option.

phord commented 12 months ago

I thought RH had a Teacup option for "controlled firmware", but maybe I added it manually when I was testing it. (My memory is fuzzy since it was almost 10 years ago.)

I have also used Cura, Slic3r and Prusa Slicer to send G-code to the printer. But mostly I use Octoprint which uses one of these engines internally, I think, but I don't remember which one. Octoprint usually runs on a Raspberry Pi control board which is attached permanently to the printer. It allows me to print over the network by uploading files in the GUI and clicking the Print button.