Guilouz / Marlin-SuperRacer-MKS-Nano-V3

Marlin Firmware configured for FLSUN Super Racer with MKS Robin Nano V3 motherboard.
GNU General Public License v3.0
68 stars 23 forks source link

USB sends mixed temperature data with ok ack #44

Open bednic opened 8 months ago

bednic commented 8 months ago

Description

I'm using octoprint for android and I hit an issue with USB communication. When printing sometimes the "ok" acknowledgement comes with temperature data and it messes up the data feed. This interupts print and causes some layer shifting, or total stack.

I'm not sure if this is issue with this implementation. The problem can come from marling itself. I'm just giving it shot, to gather more info.

Steps to Reproduce

  1. connect to printer via usb
  2. send M105 continously, or lister to firmware temperature stream, then send any other printing command like G's or another M's or just fake some printing
  3. watch feed
Recv:  T:207.09 /210.00 B:59.96 /60.00ok <--- THIS IS THE PROBLEM
Recv:  T:206.94 /210.00 B:60.18 /60.00 @:40 B@:5
Recv:  T:206.61 /210.00 B:60.20 /60.00 @:42 B@:3
Recv:  T:206.31 /210.00 B:60.08 /60.00 @:46 B@:25
Communication timeout while printing, trying to trigger response from printer. Configure long running commands or increase communication timeout if that happens regularly on specific commands or long moves.
Send: N140 M105*34
Recv: ok T:206.31 /210.00 B:60.08 /60.00 @:46 B@:25 <--- THIS IS OK

The longer is intervar between reading temperature data, the less is a chance to interption of printing.

Expected behavior:

The temperature data should not mix with "ok" ack's or any other output.