Repetier Server toggles connection state until ...
Hi all,
Setup:
Atmega 2560 + RAMPS 1.4 with Repetier-Firmware 0.92.9 (configured next to vanilla*) connected via USB to a Linux Mint 18.3 (Sylvia)
RepetierServer 0.86.2 Pro installed on Linux, RepetierHost 2.1.2 is also installed via mono-<whatever> on this box
Arduino IDE: 1.8.5 64bit
The weird behavior I see is that...
RepetierServer won't connect to the Atmega (connection state toggles between "red disconnected symbol" and "orange WiFi icon" UNTIL I fire up RepetierHost, click the connect-button -which connects to the same port as RS, /dev/ttyACM0- and disconnect/close RH; after this RS works until I power down everything / press the reset-button on RAMPS or just disconnect the USB-cable.
*) the single change was that I enabled FEATURE_TWO_ZSTEPPER and selected Extruder1 as mirror stepper socket.
... huh ...
I can't figure out what is going on here.
RH-connection-log shows:
--
RH-connection-log shows:
--
20:30:17.533 : OpenGL version:3.0 Mesa 17.2.8
20:30:17.534 : OpenGL extensions: ---removed by me---
20:30:17.534 : OpenGL renderer:AMD TURKS (DRM 2.50.0 / 4.13.0-43-generic, LLVM 5.0.0)
20:30:17.534 : Using fast VBOs for rendering is possible
20:30:26.429 : No start signal detected - forcing start
20:30:26.442 : N1 M110*34
20:30:26.442 : N2 M115*36
20:30:26.442 : N3 M105*36
20:30:26.442 : N4 M114*35
20:30:26.442 : N5 M111 S6*98
20:30:26.450 : N6 T0*60
20:30:26.450 : N7 M20*22
20:30:26.450 : N8 M80*19
20:30:26.451 : N9 M105*46
20:30:29.531 : N10 M105*22
20:30:17.534 : OpenGL extensions: ---removed by me---
20:30:17.534 : OpenGL renderer:AMD TURKS (DRM 2.50.0 / 4.13.0-43-generic, LLVM 5.0.0)
20:30:17.534 : Using fast VBOs for rendering is possible
20:30:26.429 : No start signal detected - forcing start
20:30:26.442 : N1 M110*34
20:30:26.442 : N2 M115*36
20:30:26.442 : N3 M105*36
20:30:26.442 : N4 M114*35
20:30:26.442 : N5 M111 S6*98
20:30:26.450 : N6 T0*60
20:30:26.450 : N7 M20*22
20:30:26.450 : N8 M80*19
20:30:26.451 : N9 M105*46
20:30:29.531 : N10 M105*22
--
RS-Log after "Emergency Stop" via Webgui (unsuccessful / connect is flapping)
--
20:30:25.288: start
20:30:25.288: M110 N0
20:30:25.288: N2 M115
20:30:25.288: N3 M220 S100
20:30:25.288: N4 M221 S100
20:30:25.288: N5 M355
20:30:25.288: N6 G92 E0
20:30:25.288: N7 M114
20:30:25.288: N8 G90
20:30:25.288: N9 M111 S6
20:30:25.288: N10 M360
20:30:25.288: N11 M539 S1
20:30:25.296: Free RAM:5235
20:30:25.296: SelectExtruder:0
20:30:25.300: N12 M117 IP:192.168.42.38
20:30:25.317: FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
20:30:25.321: Printed filament:0.00m Printing time:0 days 0 hours 0 min
20:30:25.321: PrinterMode:FFF
20:30:25.329: Info:No case lights
20:30:25.333: X:0.00 Y:0.00 Z:0.000 E:0.0000
20:30:25.333: DebugLevel:6
20:30:25.337: Config:Baudrate:115200
20:30:25.341: Config:InputBuffer:127
20:30:25.341: Config:NumExtruder:1
20:30:25.345: Config:MixingExtruder:0
20:30:25.345: Config:HeatedBed:0
20:30:25.345: Config:SDCard:0
20:30:25.349: Config:Fan:1
20:30:25.349: Config:Fan2:0
20:30:25.349: Config:LCD:0
20:30:25.353: Config:SoftwarePowerSwitch:1
20:30:25.353: Config:XHomeDir:-1
20:30:25.357: Config:YHomeDir:-1
20:30:25.357: Config:ZHomeDir:-1
20:30:25.362: Config:SupportG10G11:1
20:30:25.362: Config:SupportLocalFilamentchange:1
20:30:25.366: Config:CaseLights:0
20:30:25.366: Config:ZProbe:0
20:30:25.370: Config:Autolevel:0
20:30:25.370: Config:EEPROM:1
20:30:25.370: Config:PrintlineCache:16
20:30:25.374: Config:JerkXY:20.00
20:30:25.374: Config:JerkZ:0.30
20:30:25.378: Config:RetractionLength:3.00
20:30:25.382: Config:RetractionLongLength:13.00
20:30:25.382: Config:RetractionSpeed:40.00
20:30:25.386: Config:RetractionZLift:0.00
20:30:25.390: Config:RetractionUndoExtraLength:0.00
20:30:25.394: Config:RetractionUndoExtraLongLength:0.00
20:30:25.394: Config:RetractionUndoSpeed:20.00
20:30:25.398: Config:XMin:0.00
20:30:25.398: Config:YMin:0.00
20:30:25.398: Config:ZMin:0.00
20:30:25.403: Config:XMax:200.00
20:30:25.403: Config:YMax:200.00
20:30:25.407: Config:ZMax:120.00
20:30:25.407: Config:XSize:200.00
20:30:25.407: Config:YSize:200.00
20:30:25.411: Config:ZSize:120.00
20:30:25.415: Config:XPrintAccel:1000.00
20:30:25.415: Config:YPrintAccel:1000.00
20:30:25.419: Config:ZPrintAccel:100.00
20:30:25.419: Config:XTravelAccel:1000.00
20:30:25.423: Config:YTravelAccel:1000.00
20:30:25.423: Config:ZTravelAccel:100.00
20:30:25.427: Config:PrinterType:Cartesian
20:30:25.431: Config:MaxBedTemp:120
20:30:25.431: Config:Extr.1:Jerk:20.00
20:30:25.435: Config:Extr.1:MaxSpeed:50.00
20:30:25.435: Config:Extr.1:Acceleration:5000.00
20:30:25.439: Config:Extr.1:Diameter:0.00
20:30:25.443: Config:Extr.1:MaxTemp:275
20:30:25.443: Unknown command:N11 M539 S1
20:30:26.472: FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
20:30:26.476: Printed filament:0.00m Printing time:0 days 0 hours 0 min
20:30:26.476: PrinterMode:FFF
20:30:26.480: X:0.00 Y:0.00 Z:0.000 E:0.0000
20:30:26.484: DebugLevel:6
20:30:26.484: SelectExtruder:0
20:30:26.488: Unknown command:N7 M20
20:30:27.311: Error:expected line 10 got 15
20:30:27.315: Resend:10
20:30:27.315: Resend after 160351ms
20:30:27.325: Resend: N10 M360
20:30:27.325: Resend: N11 M539 S1
20:30:27.325: Resend: N12 M117 IP:192.168.42.38
20:30:27.336: Config:Baudrate:115200
20:30:27.336: Config:InputBuffer:127
20:30:27.340: Config:NumExtruder:1
20:30:27.340: Config:MixingExtruder:0
20:30:27.344: Config:HeatedBed:0
20:30:27.344: Config:SDCard:0
20:30:27.344: Config:Fan:1
20:30:27.344: Config:Fan2:0
20:30:27.348: Config:LCD:0
20:30:27.348: Config:SoftwarePowerSwitch:1
20:30:27.352: Config:XHomeDir:-1
20:30:27.352: Config:YHomeDir:-1
20:30:27.356: Config:ZHomeDir:-1
20:30:27.356: Config:SupportG10G11:1
20:30:27.360: Config:SupportLocalFilamentchange:1
20:30:27.360: Config:CaseLights:0
20:30:27.365: Config:ZProbe:0
20:30:27.365: Config:Autolevel:0
20:30:27.365: Config:EEPROM:1
20:30:27.369: Config:PrintlineCache:16
20:30:27.369: Config:JerkXY:20.00
20:30:27.373: Config:JerkZ:0.30
20:30:27.373: Config:RetractionLength:3.00
20:30:27.377: Config:RetractionLongLength:13.00
20:30:27.381: Config:RetractionSpeed:40.00
20:30:27.381: Config:RetractionZLift:0.00
20:30:27.385: Config:RetractionUndoExtraLength:0.00
20:30:27.389: Config:RetractionUndoExtraLongLength:0.00
20:30:27.393: Config:RetractionUndoSpeed:20.00
20:30:27.393: Config:XMin:0.00
20:30:27.397: Config:YMin:0.00
20:30:27.397: Config:ZMin:0.00
20:30:27.397: Config:XMax:200.00
20:30:27.401: Config:YMax:200.00
20:30:27.401: Config:ZMax:120.00
20:30:27.406: Config:XSize:200.00
20:30:27.406: Config:YSize:200.00
20:30:27.406: Config:ZSize:120.00
20:30:27.410: Config:XPrintAccel:1000.00
20:30:27.414: Config:YPrintAccel:1000.00
20:30:27.414: Config:ZPrintAccel:100.00
20:30:27.418: Config:XTravelAccel:1000.00
20:30:27.418: Config:YTravelAccel:1000.00
20:30:27.422: Config:ZTravelAccel:100.00
20:30:27.426: Config:PrinterType:Cartesian
20:30:27.426: Config:MaxBedTemp:120
20:30:27.430: Config:Extr.1:Jerk:20.00
20:30:27.430: Config:Extr.1:MaxSpeed:50.00
20:30:27.434: Config:Extr.1:Acceleration:5000.00
20:30:27.438: Config:Extr.1:Diameter:0.00
20:30:27.438: Config:Extr.1:MaxTemp:275
20:30:27.442: Unknown command:N11 M539 S1
20:30:29.535: skip 10
20:31:09.571: Error:expected line 58 got 11
20:31:09.571: Resend:58
20:31:09.581: M110 N1
20:31:11.570: Error:expected line 4 got 12
20:31:11.570: Resend:4
20:31:11.580: M110 N1
20:31:14.573: Error:expected line 5 got 13
20:31:14.573: Resend:5
20:31:14.583: M110 N1
20:31:17.575: Error:expected line 5 got 14
20:31:17.575: Resend:5
20:31:17.585: M110 N1
20:31:20.573: Error:expected line 5 got 15
20:31:20.577: Resend:5
20:31:20.588: M110 N1
20:31:23.576: Error:expected line 5 got 16
20:31:23.580: Resend:5
20:31:23.590: M110 N1
20:31:26.578: Error:expected line 5 got 17
20:31:26.578: Resend:5
20:31:26.589: M110 N1
20:31:29.581: Error:expected line 5 got 18
20:31:29.581: Resend:5
20:31:29.591: M110 N1
20:31:32.583: Error:expected line 5 got 19
20:31:32.583: Resend:5
20:31:32.593: M110 N1
20:32:02.295: M110 N0
20:32:02.296: N2 M115
20:32:02.296: N3 M220 S100
20:32:02.296: N4 M221 S100
20:32:02.296: N5 M355
20:32:02.296: N6 G92 E0
20:32:02.296: N7 M114
20:32:02.296: N8 G90
20:32:02.296: N9 M111 S6
20:32:02.296: N10 M360
20:32:02.296: N11 M539 S1
20:32:13.316: M110 N0
20:32:13.316: N2 M115
20:32:13.316: N3 M220 S100
20:32:13.316: N4 M221 S100
20:32:13.316: N5 M355
20:32:13.316: N6 G92 E0
20:32:13.316: N7 M114
20:32:13.316: N8 G90
20:32:13.316: N9 M111 S6
20:32:13.316: N10 M360
20:32:13.316: N11 M539 S1
20:32:24.358: M110 N0
20:32:24.358: N2 M115
20:32:24.359: N3 M220 S100
20:32:24.359: N4 M221 S100
20:32:24.359: N5 M355
20:32:24.359: N6 G92 E0
20:32:24.359: N7 M114
20:32:24.359: N8 G90
20:32:24.359: N9 M111 S6
20:32:24.359: N10 M360
20:32:24.359: N11 M539 S1
20:32:35.417: M110 N0
20:32:35.417: N2 M115
20:32:35.417: N3 M220 S100
20:32:35.417: N4 M221 S100
20:32:35.417: N5 M355
20:32:35.417: N6 G92 E0
20:32:35.417: N7 M114
20:32:35.417: N8 G90
20:32:35.417: N9 M111 S6
20:32:35.417: N10 M360
20:32:35.417: N11 M539 S1
20:32:46.448: M110 N0
20:32:46.448: N2 M115
20:32:46.448: N3 M220 S100
20:32:46.448: N4 M221 S100
20:32:46.448: N5 M355
20:32:46.448: N6 G92 E0
20:32:46.448: N7 M114
20:32:46.448: N8 G90
20:32:46.448: N9 M111 S6
20:32:46.448: N10 M360
20:32:46.448: N11 M539 S1
20:32:57.465: M110 N0
20:32:57.465: N2 M115
20:32:57.465: N3 M220 S100
20:32:57.465: N4 M221 S100
20:32:57.465: N5 M355
20:32:57.465: N6 G92 E0
20:32:57.465: N7 M114
20:32:57.465: N8 G90
20:32:57.465: N9 M111 S6
20:32:57.465: N10 M360
20:32:57.465: N11 M539 S1
--
RS-Log after connectiing via RH and immedialtely disconnecting afterwards:
--
20:35:54.039: N9 M111 S6
20:35:54.039: N10 M360
20:35:54.039: N11 M539 S1
20:36:03.204: ~ ~ x fxf ff x f ~f ~ f~`fx ~ x ~f f `f ~ Error:Format error
20:36:03.208: Response while unconnected:Resend:1
20:36:03.208: Resend:1
20:36:03.218: Response while unconnected:ok
20:36:03.218: Resend: N2 M115
20:36:03.218: Resend: N3 M220 S100
20:36:03.218: Resend: N4 M221 S100
20:36:03.218: Resend: N5 M355
20:36:03.218: Resend: N6 G92 E0
20:36:03.218: Resend: N7 M114
20:36:03.218: Resend: N8 G90
20:36:03.218: Resend: N9 M111 S6
20:36:03.218: Resend: N10 M360
20:36:03.218: Resend: N11 M539 S1
20:36:04.142: FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mend start
20:36:04.146: Free RAM:5235
20:36:04.150: SelectExtruder:0
20:36:05.112: Error:expected line 1 got 14
20:36:05.309: Resend:1 (2)
20:36:05.346: FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
20:36:05.350: Printed filament:0.00m Printing time:0 days 0 hours 0 min
20:36:05.350: PrinterMode:FFF
20:36:05.354: X:0.00 Y:0.00 Z:0.000 E:0.0000
20:36:05.358: DebugLevel:6
20:36:05.358: SelectExtruder:0
20:36:05.362: Unknown command:N7 M20
20:36:06.116: Error:expected line 10 got 15
20:36:06.116: Resend:10
20:36:06.126: Resend: N10 M360
20:36:06.126: Resend: N11 M539 S1
20:36:06.136: Config:Baudrate:115200
20:36:06.136: Config:InputBuffer:127
20:36:06.141: Config:NumExtruder:1
20:36:06.141: Config:MixingExtruder:0
20:36:06.145: Config:HeatedBed:0
20:36:06.145: Config:SDCard:0
20:36:06.145: Config:Fan:1
20:36:06.145: Config:Fan2:0
20:36:06.149: Config:LCD:0
20:36:06.149: Config:SoftwarePowerSwitch:1
20:36:06.153: Config:XHomeDir:-1
20:36:06.153: Config:YHomeDir:-1
20:36:06.157: Config:ZHomeDir:-1
20:36:06.157: Config:SupportG10G11:1
20:36:06.161: Config:SupportLocalFilamentchange:1
20:36:06.161: Config:CaseLights:0
20:36:06.165: Config:ZProbe:0
20:36:06.165: Config:Autolevel:0
20:36:06.165: Config:EEPROM:1
20:36:06.169: Config:PrintlineCache:16
20:36:06.169: Config:JerkXY:20.00
20:36:06.173: Config:JerkZ:0.30
20:36:06.173: Config:RetractionLength:3.00
20:36:06.177: Config:RetractionLongLength:13.00
20:36:06.182: Config:RetractionSpeed:40.00
20:36:06.182: Config:RetractionZLift:0.00
20:36:06.186: Config:RetractionUndoExtraLength:0.00
20:36:06.190: Config:RetractionUndoExtraLongLength:0.00
20:36:06.194: Config:RetractionUndoSpeed:20.00
20:36:06.194: Config:XMin:0.00
20:36:06.198: Config:YMin:0.00
20:36:06.198: Config:ZMin:0.00
20:36:06.198: Config:XMax:200.00
20:36:06.202: Config:YMax:200.00
20:36:06.202: Config:ZMax:120.00
20:36:06.206: Config:XSize:200.00
20:36:06.206: Config:YSize:200.00
20:36:06.206: Config:ZSize:120.00
20:36:06.210: Config:XPrintAccel:1000.00
20:36:06.214: Config:YPrintAccel:1000.00
20:36:06.214: Config:ZPrintAccel:100.00
20:36:06.218: Config:XTravelAccel:1000.00
20:36:06.218: Config:YTravelAccel:1000.00
20:36:06.222: Config:ZTravelAccel:100.00
20:36:06.227: Config:PrinterType:Cartesian
20:36:06.227: Config:MaxBedTemp:120
20:36:06.231: Config:Extr.1:Jerk:20.00
20:36:06.231: Config:Extr.1:MaxSpeed:50.00
20:36:06.235: Config:Extr.1:Acceleration:5000.00
20:36:06.239: Config:Extr.1:Diameter:0.00
20:36:06.239: Config:Extr.1:MaxTemp:275
20:36:06.243: Unknown command:N11 M539 S1
20:36:17.080: N26 M117 IP:192.168.42.38
--
Any idea what is going on here?
THX in advance & all the best!
Comments
I see
So why does firmware expect line 58 after line 11. I do not see that it got send, so resending fails. But this again might have to do with hidden log entries making it impossible to debug. COuld be M105 requests which got hidden. Would also mean communication was good in that example except some unknown commands due to using old firmware. But that is no problem as they simply get ignored.
In rare cases you can get multiple reconnects until a printer works. Especially if printers do not reset this can happen if firmware was disconnected in error state(because sending just stopped mit line,...). reconnects happen if we get no answers for a while.