Marlin 2.0.x Line numbers

After rebooting my Marlin 2.0.x based printer, the repetier server constantly tries to use the line numbers from the former life. The same applies if I power cycle the printer ;-( The current solution for me is restart the PI running repetier server or at least restart repetier server and issue a M110 N0 on reconnect.
Former I tries serveral version of DTR and RTS without success. This happens with Server 1.03 Hades.
My Repetier based older printer with repetier server 1.0.1 on reconnect repetier-server starts fine with line 0 again.
I am not sure if the is related to setting Marlin as firmware or the Repetier-Server version...

At least this gave me hard time to track down these connection issues.

cu

Michael

Comments

  • Try deactivate and activate printer in server printer menu when that happens. Can happen when printer does not reset on connect and is in nearly same line numbers or in some error state. But normally pressing reset on printer also makes it work again.
  • Hi, it is the opposite, the printer expects a line 0 but repetier sends line numbers from former live :-(
    Simple fix is to restart repetier-server and send a M110 N0, but with repetier software on GEN7 I see that repetier server resets to 0. OK, looks like RTS and DTR do not reset anything on Marlin 2.0.x on SKR 1.4 ;-(
    But the issue here is that repetier server does not try to restart with line 0 without reset or restart of the server daemon.



  • SKR1.4 is no serial it is direct usb with serial driver signature. These do not reset, that is true. First line on connect is M110 N0 for marlin. But it does this on seeing "start" which is when reset or when it gets no response. I guess in your case printer is talking so server skips for some reason the init message. Can you activate logging for connected.log , deactivate in server and activate and post that start of the file so I can see exactly what is going on. On my skr 1.3. with marlin 2 it worked so far, but with all these options it might be a case that is unknown to me and not covered.
  • This is the log I get after powering up the printer:

    Mesg: 8:01:15.408: Dtr: true Rts: false
    Mesg: 8:01:15.411: Connection started
    Mesg: 8:01:15.411: Dtr: false Rts: true
    Mesg: 8:01:15.433: Dtr: true Rts: false
    Send: 8:01:15.445: N40 M105
    Recv: 8:01:19.065: DIGIPOTS Loading
    Recv: 8:01:19.065: DIGIPOTS Loaded
    Recv: 8:01:20.262: DIGIPOTS Loading
    Recv: 8:01:20.262: DIGIPOTS Loaded
    Recv: 8:01:20.263: echo:V82 stored settings retrieved (658 bytes; crc 1433)
    Recv: 8:01:22.051: Testing X connection... OK
    Recv: 8:01:22.060: Testing Y connection... OK
    Recv: 8:01:22.069: Testing Z connection... OK
    Recv: 8:01:22.078: Testing E connection... OK
    Recv: 8:01:22.079: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:01:25.441: T:19.64 /0.00 B:19.46 /0.00 @:0 B@:0
    Mesg: 8:01:27.159: Dtr: true Rts: false
    Mesg: 8:01:27.165: Connection started
    Mesg: 8:01:27.165: Dtr: false Rts: true
    Mesg: 8:01:27.186: Dtr: true Rts: false
    Send: 8:01:27.197: N41 M105
    Recv: 8:01:27.200: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:01:28.389: T:19.29 /0.00 B:19.46 /0.00 @:0 B@:0
    Recv: 8:01:31.389: T:19.11 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:01:34.389: T:19.29 /0.00 B:19.64 /0.00 @:0 B@:0
    Mesg: 8:01:39.008: Dtr: true Rts: false
    Mesg: 8:01:39.010: Connection started
    Mesg: 8:01:39.011: Dtr: false Rts: true
    Mesg: 8:01:39.032: Dtr: true Rts: false
    Send: 8:01:39.044: N42 M105
    Recv: 8:01:39.046: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:01:40.389: T:19.29 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:01:43.389: T:19.29 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:01:46.389: T:19.29 /0.00 B:19.46 /0.00 @:0 B@:0
    Mesg: 8:01:50.954: Dtr: true Rts: false
    Mesg: 8:01:50.957: Connection started
    Mesg: 8:01:50.957: Dtr: false Rts: true
    Mesg: 8:01:50.978: Dtr: true Rts: false
    Send: 8:01:50.990: N43 M105
    Recv: 8:01:50.992: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:01:52.390: T:19.46 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:01:58.390: T:19.29 /0.00 B:19.64 /0.00 @:0 B@:0 (2)
    Mesg: 8:02:02.999: Dtr: true Rts: false
    Mesg: 8:02:03.005: Connection started
    Mesg: 8:02:03.005: Dtr: false Rts: true
    Mesg: 8:02:03.027: Dtr: true Rts: false
    Send: 8:02:03.039: N44 M105
    Recv: 8:02:03.041: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:02:04.389: T:19.29 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:02:07.389: T:19.46 /0.00 B:19.46 /0.00 @:0 B@:0
    Recv: 8:02:10.389: T:19.82 /0.00 B:19.64 /0.00 @:0 B@:0
    Mesg: 8:02:14.049: Dtr: true Rts: false
    Mesg: 8:02:14.051: Connection started
    Mesg: 8:02:14.051: Dtr: false Rts: true
    Mesg: 8:02:14.072: Dtr: true Rts: false
    Send: 8:02:14.084: N45 M105
    Recv: 8:02:14.088: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:02:16.389: T:19.46 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:02:19.389: T:19.29 /0.00 B:19.46 /0.00 @:0 B@:0
    Recv: 8:02:22.390: T:19.46 /0.00 B:19.82 /0.00 @:0 B@:0
    Mesg: 8:02:25.197: Dtr: true Rts: false
    Mesg: 8:02:25.203: Connection started
    Mesg: 8:02:25.204: Dtr: false Rts: true
    Mesg: 8:02:25.225: Dtr: true Rts: false
    Send: 8:02:25.237: N46 M105
    Recv: 8:02:25.240: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:02:25.390: T:19.46 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:02:28.441: T:19.46 /0.00 B:20.00 /0.00 @:0 B@:0
    Recv: 8:02:34.405: T:19.46 /0.00 B:19.64 /0.00 @:0 B@:0 (2)
    Mesg: 8:02:36.448: Dtr: true Rts: false
    Mesg: 8:02:36.450: Connection started
    Mesg: 8:02:36.450: Dtr: false Rts: true
    Mesg: 8:02:36.471: Dtr: true Rts: false
    Send: 8:02:36.483: N47 M105
    Recv: 8:02:36.486: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:02:37.405: T:19.46 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:02:40.405: T:19.29 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:02:43.405: T:19.46 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:02:46.404: T:19.64 /0.00 B:19.64 /0.00 @:0 B@:0
    Mesg: 8:02:47.792: Dtr: true Rts: false
    Mesg: 8:02:47.794: Connection started
    Mesg: 8:02:47.795: Dtr: false Rts: true
    Mesg: 8:02:47.815: Dtr: true Rts: false
    Send: 8:02:47.827: N48 M105
    Recv: 8:02:47.835: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:02:49.405: T:19.82 /0.00 B:19.64 /0.00 @:0 B@:0
    Recv: 8:02:52.406: T:19.64 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:02:55.405: T:19.82 /0.00 B:19.64 /0.00 @:0 B@:0
    Mesg: 8:02:59.244: Dtr: true Rts: false
    Mesg: 8:02:59.246: Connection started
    Mesg: 8:02:59.246: Dtr: false Rts: true
    Mesg: 8:02:59.267: Dtr: true Rts: false
    Send: 8:02:59.279: N49 M105
    Recv: 8:02:59.281: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:03:01.406: T:19.64 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:03:04.406: T:19.64 /0.00 B:19.46 /0.00 @:0 B@:0
    Recv: 8:03:07.405: T:19.82 /0.00 B:19.82 /0.00 @:0 B@:0
    Mesg: 8:03:10.787: Dtr: true Rts: false
    Mesg: 8:03:10.789: Connection started
    Mesg: 8:03:10.790: Dtr: false Rts: true
    Mesg: 8:03:10.811: Dtr: true Rts: false
    Send: 8:03:10.823: N50 M105
    Recv: 8:03:10.827: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:03:16.406: T:19.64 /0.00 B:19.82 /0.00 @:0 B@:0 (2)
    Recv: 8:03:19.409: T:19.64 /0.00 B:19.64 /0.00 @:0 B@:0
    Mesg: 8:03:22.434: Dtr: true Rts: false
    Mesg: 8:03:22.436: Connection started
    Mesg: 8:03:22.437: Dtr: false Rts: true
    Mesg: 8:03:22.458: Dtr: true Rts: false
    Send: 8:03:22.470: N51 M105
    Recv: 8:03:22.473: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:03:25.406: T:19.64 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:03:28.406: T:19.64 /0.00 B:19.64 /0.00 @:0 B@:0
    Mesg: 8:03:30.802: Connection closed by os.
    Mesg: 8:04:46.333: Dtr: true Rts: false
    Mesg: 8:04:46.336: Connection started
    Mesg: 8:04:46.336: Dtr: false Rts: true
    Mesg: 8:04:46.357: Dtr: true Rts: false
    Send: 8:04:46.368: N52 M105
    Recv: 8:04:50.509: DIGIPOTS Loading
    Recv: 8:04:50.509: DIGIPOTS Loaded
    Recv: 8:04:51.706: DIGIPOTS Loading
    Recv: 8:04:51.706: DIGIPOTS Loaded
    Recv: 8:04:51.707: echo:V82 stored settings retrieved (658 bytes; crc 1433)
    Recv: 8:04:53.494: Testing X connection... OK
    Recv: 8:04:53.504: Testing Y connection... OK
    Recv: 8:04:53.513: Testing Z connection... OK
    Recv: 8:04:53.522: Testing E connection... OK
    Recv: 8:04:53.523: Error:Line Number is not Last Line Number+1, Last Line: 0
    Mesg: 8:04:57.580: Dtr: true Rts: false
    Mesg: 8:04:57.584: Connection started
    Mesg: 8:04:57.585: Dtr: false Rts: true
    Mesg: 8:04:57.608: Dtr: true Rts: false
    Send: 8:04:57.620: N53 M105
    Recv: 8:04:57.624: Error:Line Number is not Last Line Number+1, Last Line: 0
    Recv: 8:04:59.832: T:20.00 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:05:02.833: T:19.82 /0.00 B:19.82 /0.00 @:0 B@:0
    Recv: 8:05:05.833: T:20.00 /0.00 B:19.82 /0.00 @:0 B@:0
    Mesg: 8:05:08.926: Dtr: true Rts: false
    Mesg: 8:05:08.928: Connection started
    Mesg: 8:05:08.928: Dtr: false Rts: true
    Mesg: 8:05:08.949: Dtr: true Rts: false
    Send: 8:05:08.960: N54 M105
    Recv: 8:05:08.963: Error:Line Number is not Last Line Number+1, Last Line: 0

    So the server tries to send lines 40 and 41 after it detected that the connection started. Last message before was that the Connection closed by os. The same is also within the log above before Server sends lines 52 and so on. 
  • Ok I could reproduce it partly and find out where the M105 came from. For 1.0.4 I have fixed the extra M105 and also improved the start sequence in case of boards without reset. Did get no errors any more, so hope this also fixes the problem for you finally. Just want some small additions then I will publish it. Guess this feature is worth a quick update.
  • Sounds great, many thanks 
  • edited February 15


  • Any idea, when the new version will be released ?
  • For linux you can already download 1.0.4 beta if it is urgent. Final release next week I hope. Still 2 features open I want to add for that release plus some testing.
  • Hello,
    1.04 works fine, many thanks.

    cu

    Michael
Sign In or Register to comment.