Hi David,
Thanks for offering to help. I’m a noob here and just starting to learn my way around this software. Is it log.txt that you are interested in? That file is huge, so I don’t want to post the whole thing, but I dug into it and found warnings of a buffer overflow. It’s been several days since I had this problem, so it’s hard for me to remember the specifics of the situation, but I suspect this corresponds in time to the error I was seeing.
Here’s the section of the log right before the buffer overflow.
Sent: G3 X-9.5002 Y-3.0445 I0.199 J0.038
G3 X-9.512 Y6.2262 I0.1872 J-0.0775
ok
G3 X-9.5166 Y6.1776 I0.2548 J-0.0486
ok
Sent: G3 X-9.4805 Y-3.0808 I0.1872 J0.0775
<Idle,MPos:-9.52,6.18,-0.13,WPos:0.000,0.000,0.000>
[PE:-0.45,-0.38,127]
G1 Z-0.26 F30
<Idle,MPos:-9.52,6.18,-0.13,WPos:0.000,0.000,0.000>
[PE:0.04,0.01,67]
Buffer overflow!
Buffer Used: 127
Buffer Number of Lines: 3
Buffer Begin: 13
Buffer End: 12
Buffer Contents: G1 X-9.5166 Y-2.9563 F60 \nG3 X-9.512 Y-3.0049 I0.2594 J0 \nG3 X-9.5002 Y-3.0445 I0.199 J0.038 \nG3 X-9.4805 Y-3.0808 I0.1872 J(End of Buffer)
I interpret this as the arduino isn’t keeping up with GroundControl. To track down where things go wrong, I started at the top of the log file, where there’s a bunch of stuff like this:
Sent: G20
G20
ok
Sent: G91 G00 Z0.010 G90
<Idle,MPos:-35.85,-11.30,0.14,WPos:0.000,0.000,0.000>
[PE:-0.00,-0.00,127]
G91
G00 Z0.010
<Idle,MPos:-35.85,-11.30,0.15,WPos:0.000,0.000,0.000>
[PE:-0.00,-0.00,127]
G90
ok
Not sure how to interpret everything, but it seems like commands are being sent to the arduino, it executes them, echoes them back along with some diagnostics, and then says ok.
Then, several thousand lines into the log file, things start to get out of sync:
<Idle,MPos:-35.85,-11.30,0.18,WPos:0.000,0.000,0.000>
[PE:-0.00,-0.00,127]
Sent:
ok
Sent:
Sent: G20 G90 G40
ok
Sent:
<Idle,MPos:-35.85,-11.30,0.18,WPos:0.000,0.000,0.000>
Sent: G0 Z0.15
[PE:-0.00,-0.00,127]
Sent: T0 M6
G20
Sent: G17
G90
Sent: M3
G40
Sent: G0 X-16.77630 Y-7.8013
ok
Sent: G1 Z-0.12 F30
ok
Sent: G1 X-17.25630 Y-8.6327 F30
G0 Z0.15
<Idle,MPos:-35.85,-11.30,0.18,WPos:0.000,0.000,0.000>
[PE:-0.00,-0.00,127]
I didn’t scan the whole file, but presumably, things continue to get further out of sync until, 380000 lines later, the buffer overflows.
Does this help with the diagnostics? Or, do you need the entire file?
Thanks,
Eric