Re:It's all fun and games until someone [XOFF]
by joshu on Sunday June 21, 2015 @02:53AM
(#9752490)
I'm using an Arduino running GRBL for a project. It can take up to ~128 bytes of gcode in its buffer, and anything more gets dropped. So you have to carefully shepherd new statements in as they are executed (scanning for "ok".) Would be a perfect use for flow control, if arduino didn't already use it for something else. Dammit.
[ Parent
| on HN ]
Re:It's all fun and games until someone [XOFF]
by ambrop7 on Sunday June 21, 2015 @03:23AM
(#9752538)
I'm not sure if you're already doing this, or if it's relevant to you, but a possible way to improve performance is to allow a "window" of commands that you haven't received an "ok" for. I believe common host software for RepRaps just allows one command at a time. How to define the window correctly depends on how the firmware does the buffering (in terms of bytes, or complete commands, or both).