thunderbug1 / Spherebot-Host-GUI

Qt based GUI to control the spherebot
54 stars 60 forks source link

Printing stops sometimes before completed #11

Closed tedenda closed 9 years ago

tedenda commented 10 years ago

I have tried to print Hello World several times, but I am not happy yet. Several times the print stops before it's all done, don't know why yet..

thunderbug1 commented 10 years ago

I know the problem of sudden stops during the print. One solution is to stop and continue the print. The problem comes from the communication. It works that way: -the pc sends a command -the arduino receives it and sends a message conaining "ok:" so the pc knows that it is time to send the next command. when there is no answer it won´t send the next command. I don´t know why sometimes the arduino doesn´t answer but I tried to fix it with a workaround.

--- I added a watchdog to the Gui-code which automatically sends the next command if there is a timeout of the answer. The watchdog is in the current build commented out, but you can simply remove the comment and build it if you want to try it out. I disabled the watchdog, cause I thought the problem was solved and it´s actually a workaround.----

I just took a look at the code and I´ve not just commented it out but removed it from the current code. but anyway. Just stop and continue the print. the watchdog would have been just a workaround until the bug is found.

JamesT42 commented 10 years ago

I believe the bug is definitely in the GUI somewehere, with my modified firmware and pronterface it did not get stuck once. Maybe related to the other issue? https://github.com/thunderbug1/Spherebot-Host-GUI/issues/16