aegean-odyssey / mpmd_marlin_1.1.x

a fork of Marlin firmware (bugfix-1.1.x) for the Monoprice MP Mini Delta 3d printer
GNU General Public License v3.0
76 stars 19 forks source link

communication problem #103

Open berberic2 opened 6 months ago

berberic2 commented 6 months ago

I’m getting sporadic communication faults if the printer is run by octoprint: Problems are always in the form of (excertp from octoprints serial.log):

Send: N23153 G1 X0 Y0 Z50*80
Recv: o3 N23153 P63 B7
Recv:  T:23.98 /0 (15658) B:25.09 /0 (15629) @:0 B@:0
Recv:  T:21.45 /0 (15723) B:22.58 /0 (15694) @:0 B@:0
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.

where in the ok of the printers reply one of the characters is wrong. During my test I got: k 1k 2k 3k 4k 7k o0 o1 o2 o3 o6 o7 o8 o9 instead of ok.

Two times I had Communication timeouts after a correct ok

As far as I could test it is independent of the cabeling and the host-computer. The fact that only ok is affected speaks against a general communications or USB problem.

Sniffleupagus commented 4 weeks ago

I was having the same issue, and saw your post. I made this plugin that replaces those "alternative oks" in responses from the printer with "ok", and seems to eliminate the time outs I was getting in octoprint. More of a workaround than a fix.

Rename this file to rewrite_broken_ok.py and put it in ~octo/.octoprint/plugins/ (for a standard install anyway) and restart octoprint.

rewrite_broken_ok.py.txt