0.92.9 Baud Rate and Connection Problem

Hello, I have just updated my Zonestar P802 prusa i3 (Melzi controller) with repetier v0.92.9.

The printer boots like it should, lcd and buttons all work, using the UI I can home axis / control the printer okay. Problem is when I try to connect repetier host using usb. I use corresponding baud rate on the printer settings from the LCD menus and no connection.

On attempt to connect the controller does restart like it should. But then no connection and 5 commands waiting. Without changing any printer settings I try other baud rates on repetier host and for some reason on 28800 it connects, transformation matrix and SD init fail display on the serial information, which is normal, but then it keeps resenting the last 3 commands.. eventually I get a format error and it disconnects.

Any thoughts on what is wrong? I tried changing baud rates through the LCD menu but it appears to do nothing.. do I need to update my bootloader?

Comments

  • In LCD you need to select save to eprom after changing baud rate. Only then it is active on next connect!

    Maybe it then also works with connecting.

  • I have just tried this and unfortunately I still have the issue. Here are the messages I get on trying to connect at 230400 Baud Rate (even though LCD says the baud is 115200).

      15:11:00: Connection opened
    < 15:11:00: ÿstart
    > 15:11:00: N1 M110 *2
    > 15:11:00: N2 M115 *4
    < 15:11:00: Info:External Reset
    > 15:11:00: N4 M111 S6 *67
    < 15:11:00: Transformation matrix: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000
    < 15:11:01: Free RAM:12248
    < 15:11:01: SelectExtruder:0
    < 15:11:01: FlowMultiply:100
    < 15:11:03: SD init fail
    > 15:11:03: N5 M111 S15 *112
    < 15:11:03: ok 0
    < 15:11:03: Unknown command:M0 
    < 15:11:03: Error:Wrong checksum
    < 15:11:03: Resend:1
      15:11:03: Resend: N1 M110 *2
      15:11:03: Resend: N2 M115 *4
    < 15:11:03: ok
      15:11:03: Resend: N4 M111 S6 *67
    < 15:11:04: Resend:1
      15:11:04: Resend: N1 M110 *2
      15:11:04: Resend: N2 M115 *4
    < 15:11:04: ok
      15:11:04: Resend: N4 M111 S6 *67
    < 15:11:04: Resend:1
      15:11:04: Resend: N1 M110 *2
      15:11:04: Resend: N2 M115 *4
    < 15:11:04: ok
      15:11:04: Resend: N4 M111 S6 *67
    < 15:11:04: Resend:1
      15:11:04: Resend: N1 M110 *2
      15:11:04: Resend: N2 M115 *4
    < 15:11:04: ok
      15:11:04: Resend: N4 M111 S6 *67
    < 15:11:04: Resend:1
      15:11:04: Resend: N1 M110 *2
      15:11:04: Resend: N2 M115 *4
    < 15:11:04: ok
      15:11:04: Resend: N4 M111 S6 *67
    < 15:11:04: Resend:1
      15:11:04: Receiving only error messages. Stopped communication.
      15:11:04: Connection closed
    < 15:11:04: ok

  • What host version are you using? I miss the sub second output in the log.

    Also have you tried forcing binary protocol?
  • I am running Repetier Host Mac 0.56

    I have tried forcing binary protocol too, but nothing..

    The weird thing is the Baud rate.. I have checked on the arduino ide serial monitor, the only baud rate which outputs sensible information is 234000 no matter what I set it to on the LCD
  • Have you installed the mac ftdi drivers. I remember I did once 4 years ago. Not sure if this is still required to get them going good.

    You could also try the repetier-server for mac. There the communication stack is more up to date.

  • I shall see if I can update ftdi drivers. I tried repetier server but had the same problem. I have a windows laptop I shall try too this week.

    I will try setup and print from sdcard to see if it works but the usb comms doesn't seem right.
  • Okay I connect via Repetier Server and I get similar errors.. (See below).. I have the same problem with the Baud Rate. It will not connect on the baud rate set on the LCD, instead when set to 115200 on the LCD, I have to use 230400 on Repetier Server for it to connect to printer, and then I get these errors on the console:

    23:19:43.666: Error:Format error
    23:19:43.695: Resend:1
    23:19:43.696: Error:Format error
    23:19:43.696: Unknown command: E0.0000 I0.00
    23:19:43.730: Resend:1
    23:19:43.731: Error:Wrong checksum
    23:19:43.826: Resend:1 (2)
    23:19:43.827: Error:Format error
    23:19:43.827: Resend after 224ms
    23:19:43.894: Resend:1
    23:19:43.894: Error:Format error
    23:19:43.963: Resend:1 (2)
    23:19:43.964: Error:Wrong checksum
    23:19:44.000: Resend:1
    23:19:44.000: Error:Format error
    23:19:44.000: Unknown command:
    23:19:44.055: Resend:1
    23:19:44.055: Error:Format error
    23:19:44.055: Resend after 228ms
    23:19:44.108: Resend:1
    23:19:44.109: Error:Format error
    23:19:44.186: Resend:1 (2)
    23:19:44.186: Error:Wrong checksum
    23:19:44.222: Resend:1
    23:19:44.222: Error:Format error
    23:19:44.222: Unknown command: S0
    23:19:44.271: Resend:1
    23:19:44.272: Error:Format error
    23:19:44.272: Resend after 216ms
    23:19:44.332: Resend:1
    23:19:44.332: Error:Format error
    23:19:44.384: Resend:1 (2)
    23:19:44.384: Error:Wrong checksum
    23:19:44.422: Resend:1
    23:19:44.423: Error:Format error
    23:19:44.423: Unknown command:
    23:19:44.481: Resend:1
    23:19:44.481: Error:Format error
    23:19:44.481: Resend after 209ms
    23:19:44.547: Resend:1
    23:19:44.548: Error:Format error
    23:19:44.612: Resend:1 (2)
    23:19:44.613: Error:Wrong checksum
    23:19:44.645: Resend:1
    23:19:44.646: Error:Format error
    23:19:44.646: Unknown command: S0 I0.00
    23:19:44.707: Resend:1
    23:19:44.707: Error:Format error
    23:19:44.707: Resend after 225ms
    23:19:44.760: Resend:1
    23:19:44.760: Error:Format error
    23:19:44.819: Resend:1 (2)
    23:19:44.820: Error:Wrong checksum
    23:19:44.836: Resend:1
    23:19:44.836: Error:Format error
    23:19:44.836: Unknown command:
    23:19:44.885: Resend:1
    23:19:44.885: Error:Format error
    23:19:44.885: Resend after 177ms
    23:19:44.939: Resend:1
    23:19:44.940: Error:Format error
    23:19:45.010: Resend:1 (2)
    23:19:45.011: Error:Wrong checksum
    23:19:45.041: Resend:1
    23:19:45.041: Error:Format error
    23:19:45.042: Unknown command: S0 I0.00
    23:19:45.089: Resend:1
    23:19:45.193: Error:Wrong checksum
    23:19:45.193: Resend after 307ms
    23:19:45.240: Resend:1
    23:19:45.260: Error:Format error
    23:19:45.290: Resend:1
    23:19:45.291: Error:Format error
    23:19:45.484: Resend:1 (2)
    23:19:45.580: Error:Wrong checksum
    23:19:45.613: Resend:1
    23:19:45.633: Error:Format error
    23:19:45.633: Resend after 439ms
    23:19:45.670: Resend:1
    23:19:45.671: Error:Format error
    23:19:45.710: Resend:1
    23:19:45.710: Error:Format error
    23:19:45.710: Unknown command: I0.00
    23:19:45.713: Error:Format error
    23:19:45.731: Unknown command: I0.00
    23:19:45.731: Error:Wrong checksum
    23:19:45.811: Resend:1 (2)
    23:19:45.811: Error:Format error
    23:19:45.848: Resend:1
    23:19:45.871: Error:Format error
    23:19:45.871: Resend after 237ms
    23:19:45.925: Resend:1
    23:19:45.925: Error:Format error
    23:19:45.926: Unknown command: I0.00
    23:19:45.926: Error:Format error
  • Errors with the commands:

    23:23:12.649: ok 0
    23:23:12.649: Resend: N19 M105
    23:23:12.649: Unknown command: I0.00
    23:23:12.649: Resend: N20 M105
    23:23:12.649: Error:Format error
    23:23:12.649: Resend: N21 M105
    23:23:12.649: ok 0
    23:23:12.649: Resend: N22 M105
    23:23:12.650: Unknown command: I0.00
    23:23:12.650: Resend: N23 M105
    23:23:12.650: Error:Format error
    23:23:12.650: ok 0
    23:23:12.650: Resend: N24 M105
    23:23:12.650: Unknown command: I0.00
    23:23:12.650: Error:Format error
    23:23:12.650: ok 0
    23:23:12.650: Resend: N25 M105
    23:23:12.650: Unknown command: F0.00 I0.00
    23:23:12.650: Error:Format error
    23:23:12.650: ok 0
    23:23:12.650: Resend: N26 M105
    23:23:12.651: Unknown command: P0 I0.00 J0.00
    23:23:12.651: Error:Format error
    23:23:12.651: ok 0
    23:23:12.651: Resend: N27 M105
    23:23:12.651: Unknown command: I0.00
    23:23:12.651: Error:Wrong checksum
    23:23:12.651: Resend after 121ms
    23:23:12.712: Resend: N1 M105
    23:23:12.712: Resend:1
    23:23:12.712: Resend: N2 M115
    23:23:12.712: ok
    23:23:12.713: Resend: N3 M220 S100
    23:23:12.713: Resend: N4 M221 S100
    23:23:12.713: ok 0
    23:23:12.713: Resend: N5 M355
    23:23:12.739: Resend:1
    23:23:12.739: Resend: N6 G92 E0
    23:23:12.739: ok
    23:23:12.739: Resend: N7 M114
    23:23:12.778: Resend:1
    23:23:12.778: Resend: N8 G90
    23:23:12.779: ok
    23:23:12.779: Resend: N9 M111 S6
    23:23:12.779: Resend: N10 M360
  • The baud rate setting is strange. Never had this problem with FTDI.
    Have you used the /dev/cu.xxxxx port or /dev/tty.xxxxx port? I think you need to use the cu version to work correctly. There is some difference in behaviour between cu and tty.

    Except this 

    Unknown command: I0.00

    is starnge since no command containing I gets send on connect.Also J is not used. I think here the wrong baud rate comes into play. Server talks directly binary so wrong communication can cause this. If baud rate is 115200 you should also be able to connect directly with arduino serial monitor. Here you get no resends as you have no checksums. Helps maybe finding the baud rate solution.
  • edited May 2016
    Yes very strange.. I will double check if it is cu or tty but I think there is only one option which shows when I plug the USB in.

    I have checked the serial connection using serial monitor in Arduino IDE. I have the same baud problems, using 115200 I see strange characters that make no sense, using 230400 I see the usual start up text, transformation matrix, sdinit.. And then I get repeat 'wait' echos. I try to input a M command into the serial monitor and I get unknown command error.

    Could this be an error in the firmware configuration causing the communication problems? I used the Zonestar P802M / Melzi Configuration file from https://github.com/repetier/Repetier-Firmware/tree/master/boards/Zonestar P802M uploaded to the firmware configuration tool.

    I havent changed any of the settings apart from stepper and endstop variables.
  • On firmware side only baudrate has influence on it. You could try with eeprom disabled to be sure it uses baudrate set in configuration.h. But it always uses the baud rate you see after a reset inconfig lcd screen.

    Uploading firmware uses 115200 baud so that baudrate must also be supported. 

    That is really a strange problem I never experienced so far. 


  • Ok I have tried using a Windows laptop with Repetier Host and I get a different error. I connect using 115200 baud and I get:

    17:58:22.845 : No start signal detected - forcing start
    17:58:25.933 : Serial com error:System.IO.Ports.SerialErrorReceivedEventArgs
    17:58:25.949 : Serial com error:System.IO.Ports.SerialErrorReceivedEventArgs
    17:58:27.576 : Serial com error:System.IO.Ports.SerialErrorReceivedEventArgs
    17:58:27.592 : Serial com error:System.IO.Ports.SerialErrorReceivedEventArgs
    17:58:30.041 : Serial com error:System.IO.Ports.SerialErrorReceivedEventArgs
    .. Continues with the same error


    if I connect using 230400 baud I get:

    18:02:02.349 : No start signal detected - forcing start
    18:02:02.349 : Printer reset detected - initalizing
    18:02:02.349 : start
    18:02:02.364 : Transformation matrix: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000
    18:02:03.995 : Free RAM:12248
    18:02:03.995 : SelectExtruder:0
    18:02:06.450 : SD init fail
    18:02:06.450 : Error:Format error
    18:02:06.450 : Resend:1
    18:02:06.481 : Error:Wrong checksum
    18:02:06.481 : Resend:1
    18:02:06.496 : Error:Wrong checksum
    18:02:06.496 : Resend:1
    18:02:06.496 : Error:Wrong checksum
    18:02:06.496 : Resend:1
    18:02:06.496 : skip 0
    18:02:06.496 : Error:Wrong checksum
    18:02:06.496 : Resend:1
    18:02:06.496 : Error:Wrong checksum
    18:02:06.496 : Resend:1
    18:02:06.496 : Error:Wrong checksum
    18:02:06.496 : Resend:1
    18:02:06.512 : skip 0
    18:02:06.528 : Error:Wrong checksum
    18:02:06.528 : Resend:1
    18:02:06.543 : Error:Wrong checksum
    18:02:06.543 : Resend:1
    18:02:06.543 : Error:Wrong checksum
    18:02:06.543 : Resend:1
    18:02:06.543 : Unknown command:M0
    18:02:06.559 : Error:Wrong checksum
    18:02:06.559 : Resend:1
    18:02:06.574 : Unknown command:M0  J0.00
    18:02:06.574 : Error:Wrong checksum
    18:02:06.574 : Resend:1
    18:02:06.574 : Unknown command:M0
    18:02:06.590 : Error:Wrong checksum
    18:02:06.590 : Resend:1
    18:02:06.606 : Unknown command:M0  J0.00
    18:02:06.606 : Error:Wrong checksum
    18:02:06.606 : Resend:1
    18:02:06.606 : Unknown command:M0
    18:02:06.621 : Error:Wrong checksum
    18:02:06.621 : Resend:1
    18:02:06.637 : Unknown command:M0  J0.00
    18:02:06.637 : Error:Wrong checksum
    18:02:06.637 : Resend:1
    18:02:06.637 : Unknown command:M0
    18:02:06.652 : Error:Wrong checksum
    18:02:06.652 : Resend:1
    18:02:06.668 : Unknown command:M0  J0.00
    18:02:06.668 : Error:Wrong checksum
    18:02:06.668 : Resend:1
    18:02:06.684 : Unknown command:M0
    18:02:06.699 : Error:Wrong checksum
    18:02:06.699 : Resend:1
    18:02:06.715 : Unknown command:M0  J0.00
    18:02:06.715 : Error:Format error
    18:02:06.715 : Resend:1
    18:02:06.715 : Error:Wrong checksum
    18:02:06.715 : Resend:1
    18:02:06.715 : skip 0
    18:02:06.715 : Unknown command:M0
    18:02:06.715 : Error:Wrong checksum
    18:02:06.715 : Resend:1
    18:02:06.715 : Error:Format error
    18:02:06.715 : Resend:1
    18:02:06.715 : Error:Wrong checksum
    18:02:06.715 : Resend:1
    18:02:06.715 : Unknown command:M0
    18:02:06.730 : Error:Wrong checksum
    18:02:06.730 : Resend:1
    18:02:06.746 : Error:Wrong checksum
    18:02:06.746 : Resend:1
    18:02:06.746 : Unknown command:M0
    18:02:06.762 : Error:Wrong checksum
    18:02:06.762 : Resend:1
    18:02:06.777 : Unknown command:M0  J0.00
    18:02:06.777 : Error:Wrong checksum
    18:02:06.777 : Resend:1
    18:02:06.777 : Unknown command:M0
    18:02:06.793 : Error:Wrong checksum
    18:02:06.793 : Resend:1
    18:02:06.808 : Unknown command:M0  J0.00
    18:02:06.808 : Error:Wrong checksum
    18:02:06.808 : Resend:1
    18:02:06.840 : skip 0
    18:02:06.840 : Error:Wrong checksum
    18:02:06.840 : Resend:1
    18:02:06.855 : Error:Wrong checksum
    18:02:06.855 : Resend:1
    18:02:06.855 : Error:Wrong checksum
    18:02:06.855 : Resend:1
    18:02:06.855 : Error:Wrong checksum
    18:02:06.855 : Resend:1
    18:02:06.855 : Error:Wrong checksum
    18:02:06.855 : Resend:1
    18:02:06.855 : Error:Wrong checksum
    18:02:06.855 : Resend:1
    18:02:06.855 : Unknown command:M0
    18:02:06.871 : Error:Wrong checksum
    18:02:06.871 : Resend:1
    18:02:06.886 : Unknown command:M0  J0.00
    18:02:06.886 : Error:Wrong checksum
    18:02:06.886 : Resend:1
    18:02:06.886 : Unknown command:M0
    18:02:06.902 : Error:Wrong checksum
    18:02:06.902 : Resend:1
    18:02:06.918 : Unknown command:M0  J0.00
    18:02:06.918 : Error:Wrong checksum
    18:02:06.918 : Resend:1
    18:02:06.933 : Unknown command:M0
    18:02:06.949 : Error:Wrong checksum
    18:02:06.949 : Resend:1
    18:02:06.964 : Unknown command:M0  J0.00
    18:02:06.964 : Error:Wrong checksum
    18:02:06.964 : Resend:1
    18:02:06.980 : Unknown command:M0
    18:02:06.980 : Error:Wrong checksum
    18:02:06.980 : Resend:1
    18:02:06.996 : Error:Format error
    18:02:06.996 : Resend:1
    18:02:07.011 : Error:Wrong checksum
    18:02:07.011 : Resend:1
    18:02:07.027 : Unknown command:M0
    18:02:07.027 : Error:Wrong checksum
    18:02:07.027 : Resend:1
    18:02:07.042 : Unknown command:M0  J0.00
    18:02:07.042 : Error:Wrong checksum
    18:02:07.042 : Resend:1
    18:02:07.042 : Unknown command:M0
    18:02:07.042 : Error:Wrong checksum
    18:02:07.042 : Resend:1
    18:02:07.042 : Error:Format error
    18:02:07.042 : Resend:1
    18:02:07.042 : Error:Wrong checksum
    18:02:07.042 : Resend:1
    18:02:07.042 : Unknown command:M0
    18:02:07.058 : Error:Wrong checksum
    18:02:07.058 : Resend:1
    18:02:07.074 : Error:Format error
    18:02:07.074 : Resend:1
    18:02:07.074 : Error:Wrong checksum
    18:02:07.074 : Resend:1
    18:02:07.074 : Unknown command:M0
    18:02:07.074 : Error:Wrong checksum
    18:02:07.074 : Resend:1
    18:02:07.074 : Error:Format error
    18:02:07.074 : Resend:1
    18:02:07.089 : Error:Wrong checksum
    18:02:07.089 : Resend:1
    18:02:07.105 : Unknown command:M0
    18:02:07.105 : Error:Wrong checksum
    18:02:07.105 : Resend:1
    18:02:07.120 : Error:Format error
    18:02:07.120 : Resend:1
    18:02:07.136 : Error:Wrong checksum
    18:02:07.136 : Resend:1
    18:02:07.136 : Unknown command:M0
    18:02:07.136 : Error:Wrong checksum
    18:02:07.136 : Resend:1
    18:02:07.136 : Error:Format error
    18:02:07.136 : Resend:1
    18:02:07.136 : Error:Wrong checksum
    18:02:07.136 : Resend:1
    18:02:07.152 : skip 0
    18:02:07.152 : Error:Wrong checksum
    18:02:07.152 : Resend:1
    18:02:07.167 : Error:Wrong checksum
    18:02:07.167 : Resend:1
    18:02:07.183 : Unknown command:M0  S0 J0.00
    18:02:07.183 : Unknown command:M0
    18:02:07.183 : Error:Wrong checksum
    18:02:07.183 : Resend:1
    18:02:07.198 : Error:Wrong checksum
    18:02:07.198 : Resend:1
    18:02:07.214 : Error:Wrong checksum
    18:02:07.214 : Resend:1
    18:02:07.230 : Error:Wrong checksum
    18:02:07.230 : Resend:1
    18:02:07.245 : skip 0
    18:02:07.245 : Error:Wrong checksum
    18:02:07.245 : Resend:1
    18:02:07.261 : Unknown command:M0
    18:02:07.261 : Error:Wrong checksum
    18:02:07.261 : Resend:1
    18:02:07.261 : Error:Format error
    18:02:07.261 : Resend:1
    18:02:07.261 : Error:Wrong checksum
    18:02:07.261 : Resend:1
    18:02:07.261 : Unknown command:M0
    18:02:07.261 : Error:Wrong checksum
    18:02:07.261 : Resend:1
    18:02:07.261 : Error:Format error
    18:02:07.261 : Resend:1
    18:02:07.261 : Error:Wrong checksum
    18:02:07.261 : Resend:1
    18:02:07.261 : Unknown command:M0
    ... continues with many errors

    I shall try compiling and flashing using arduino IDE on my windows laptop and see what happens
  • Ok I tried arduino IDE on windows laptop, compiled and uploaded and same errors. I shall try disabling eeprom and see what happens..
  • It is something firmware related, I have reflashed the bootloader using ISP. When I load the original firmware (V0.91) it connects fine on baud 115200. I can then compile and upload v0.92.9 firmware using arduino IDE and all uploads ok, printer boots / LCD works / and functions through the LCD menu work. But I get those connection errors above..

    I have tried EEPROM disabled in the config too and it does the same thing..

    At a loose end now.. I shall try compiling v0.92 firmware without SD and without LCD/Buttons tonight and see if its perhaps the zonestar customised code that is causing problems..
  • "zonestar customised code" ???

  • I got it to work! Something very strange is happening.. So I could connect at 230400 Baud when the printer was set to 115200. This is exactly 2x115200. So I thought I would try setting the printer using the LCD to 57600 and try connect at 115200 (2x57600) and it works!

    With this I am able to connect repetier host and I can use arduino serial monitor, and all commands work as normal.

    I dont know what is happening but it appears the serial connect baud rate on my board is for some reason 2x whatever is set.
  • Just wanted to say that I have exactly the same setup and was experiencing the same bug. Your fix also worked for me, so thank you :) !
Sign In or Register to comment.