Octoprint | firmware buffer overflow problem? August 12, 2020 06:15PM |
Registered: 4 years ago Posts: 1 |
Send: N47700 G1 X117.444 Y105.35 E776.61995*83 Recv: Error:Line Number is not Last Line Number+1, Last Line: 47699 Recv: Resend: 47700 Recv: ok Send: N47700 G1 X117.444 Y105.35 E776.61995*83 Recv: Error:Line Number is not Last Line Number+1, Last Line: 47699 Recv: Resend: 47700 Recv: ok Send: N47700 G1 X117.444 Y105.35 E776.61995*83 Recv: Error:Line Number is not Last Line Number+1, Last Line: 47699 Recv: Resend: 47700 Recv: ok Send: N47700 G1 X117.444 Y105.35 E776.61995*83 Recv: Error:Line Number is not Last Line Number+1, Last Line: 47699 Recv: Resend: 47700 Printer keeps requesting line 47700 again and again, communication stuck Changing monitoring state from "Printing" to "Error: Printer keeps requesting line 47700 again and again, communication stuck" Send: M112 Send: N47701 M112*36 Send: N47702 M104 T0 S0*39 Send: N47703 M140 S0*98 Changing monitoring state from "Error: Printer keeps requesting line 47700 again and again, communication stuck" to "Offline (Error: Printer keeps requesting line 47700 again and again, communication stuck)" Connection closed, closing down monitor
# coding=utf-8 from __future__ import absolute_import def Fix_Bad_Resend(comm, line, *args, **kwargs): if "Error:Line Number is not Last Line Number+1" not in line: return line goodline = line.replace(".*Resend:","Resend:") return goodline __plugin_name__ = "Fix Bad Resend" __plugin_version__ = "1.0.0" __plugin_description__ = "Fix Bad Resend in printer responses (add newline)" __plugin_hooks__ = { "octoprint.comm.protocol.gcode.received": Fix_Bad_Resend }
#define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller #else #define BLOCK_BUFFER_SIZE 16 // maximize block buffer #endif // @section serial // The ASCII buffer for serial input #define MAX_CMD_SIZE 96 #define BUFSIZE 4
//before 32->16 #define BLOCK_BUFFER_SIZE 32 // SD,LCD,Buttons take more memory, block buffer needs to be smaller #else //before 32->16 #define BLOCK_BUFFER_SIZE 32 // maximize block buffer #endif // @section serial // The ASCII buffer for serial input #define MAX_CMD_SIZE 96 //before 32 -> 4 #define BUFSIZE 32
Re: Octoprint | firmware buffer overflow problem? August 14, 2020 04:11AM |
Registered: 8 years ago Posts: 759 |