Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite M18/M84 as they cause the printer to crash too. #1

Merged
merged 2 commits into from
Apr 15, 2020

Conversation

Azelphur
Copy link
Contributor

Hi, obligatory I have no idea what I'm doing.

I have been helping a fellow that has a Tronxy XY-2 Pro that is running the dreaded CBD firmware, this plugin mostly fixed it for him, however he found that at the end of every print, octoprint would loose connection to the printer, saying that the printer keeps requesting line X again and again, communication stuck.

After some investigation, he discovered that M84 was the issue. We hopped into the Octoprint console and ran M84 X Y E and the connection dropped. We also tried M84 X, M84 Y, M84 E, M18 X Y E and they all caused the connection to drop too. As such I think the only solution is truncating all M84 and M18 calls, which is what I have done in this patch. He has tested the patch and confirmed that it has resolved the issue for him.

@foosel
Copy link
Member

foosel commented Apr 14, 2020

Thanks. This firmware really is a bloody nightmare.

Before I merge this, could you ask your friend if M84 X0 works? That firmware seems to have issue with standalone axes names for G28, so before we strip axes parameters altogether from M18 and M84 I'd like to make sure it really doesn't support them instead of maybe just using the same broken parser used for G28.

@foosel
Copy link
Member

foosel commented Apr 15, 2020

Does this push mean you tested that and M18/M84 work on that firmware with the 0 added axes identifiers, or is this just a "let's wait and see" push? 🤔

@Azelphur
Copy link
Contributor Author

My friend tested M84 X0 and it did not crash the printer, I pushed to git so he could test the plugin. Just waiting for him to do that. Once he has tested the plugin I'll report back, or if you think it's fine you can just accept the PR :)

@foosel
Copy link
Member

foosel commented Apr 15, 2020

Oh, I'll just wait until you've got a confirmation back, better safe than sorry with this firmware ;)

@Azelphur
Copy link
Contributor Author

Friend has tested and confirms it works :)

@foosel foosel merged commit 4b0f318 into OctoPrint:master Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants