Ramps1.2/Mega2560 - Unable to connect. November 10, 2011 04:40PM |
Registered: 12 years ago Posts: 1 |
It seems that the Arduino isn't responding correctly to G-code instructions, if I'm interpreting the log correctly.Quote
Console
DEBUG: GCode opening port COM4 [0.039s/35ms]
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
comms: G-code: N0 M110 *3 dequeued and sent [3.311s/3272ms]
comms: Response: ok [3.317s/6ms]
comms: G-code: N1 T0 *27 dequeued and sent [5.605s/2288ms]
ERROR: GCodeWriter.waitForResponse() - dud response from RepRap:Unknown command:
(hex: 556e6b6e6f776e20636f6d6d616e643a) [5.615s/10ms]
comms: Response: Unknown command: [5.615s/0ms]
comms: G-code: N1 T0 *27 dequeued and sent [5.617s/2ms]
ERROR: GCodeWriter.waitForResponse() - dud response from RepRap:N1 T0 *27 (hex:
4e31205430202a3237) [5.617s/0ms]
comms: Response: N1 T0 *27 [5.618s/1ms]
comms: G-code: N1 T0 *27 dequeued and sent [5.619s/1ms]
comms: Response: ok [5.619s/0ms]
comms: G-code: N1 M113 *1 dequeued and sent [5.620s/1ms]
ERROR: GCodeWriter.waitForResponse() - dud response from RepRaperial Error: Li
ne Number is not Last Line Number+1, Last Line:1 (hex: 53657269616c204572726f723
a204c696e65204e756d626572206973206e6f74204c617374204c696e65204e756d6265722b312c2
04c617374204c696e653a31) [5.628s/8ms]
comms: Response: Serial Error: Line Number is not Last Line Number+1, Last Line:
1 [5.629s/1ms]
comms: G-code: N1 M113 *1 dequeued and sent [5.630s/1ms]
ERROR: GCodeWriter.waitForResponse() - dud response from RepRap:Resend:2 (hex: 5
26573656e643a32) [5.630s/0ms]
comms: Response: Resend:2 [5.631s/1ms]
comms: G-code: N1 M113 *1 dequeued and sent [5.632s/1ms]
comms: Response: ok [5.632s/0ms]
comms: G-code: N1 M105 *6 dequeued and sent [5.633s/1ms]
ERROR: GCodeWriter.waitForResponse() - dud response from RepRaperial Error: Li
ne Number is not Last Line Number+1, Last Line:1 (hex: 53657269616c204572726f723
a204c696e65204e756d626572206973206e6f74204c617374204c696e65204e756d6265722b312c2
04c617374204c696e653a31) [5.641s/8ms]
comms: Response: Serial Error: Line Number is not Last Line Number+1, Last Line:
1 [5.642s/1ms]
Quote
Sprinter
if(strstr(cmdbuffer[bufindw], "N") != NULL)
{
strchr_pointer = strchr(cmdbuffer[bufindw], 'N');
gcode_N = (strtol(&cmdbuffer[bufindw][strchr_pointer - cmdbuffer[bufindw] + 1], NULL, 10));
if(gcode_N != gcode_LastN+1 && (strstr(cmdbuffer[bufindw], "M110") == NULL) ) {
Serial.print("Serial Error: Line Number is not Last Line Number+1, Last Line:");
Serial.println(gcode_LastN);
//Serial.println(gcode_N);
FlushSerialRequestResend();
serial_count = 0;
return;
}
Re: Ramps1.2/Mega2560 - Unable to connect. November 10, 2011 08:07PM |
Registered: 12 years ago Posts: 139 |
Re: Ramps1.2/Mega2560 - Unable to connect. November 11, 2011 06:40PM |
Registered: 12 years ago Posts: 972 |