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

[Feature request] Ignore wrong M105 (temperature) feedback #2050

Closed
mrcg opened this issue Aug 1, 2017 · 3 comments
Closed

[Feature request] Ignore wrong M105 (temperature) feedback #2050

mrcg opened this issue Aug 1, 2017 · 3 comments
Labels
done Done but not yet released request Feature request

Comments

@mrcg
Copy link

mrcg commented Aug 1, 2017

Due to sporadically bad (wrong) M105 feedback the octoprint temperature statistic is negatively impacted (peaks). The peaks do not exist in reality and the root cause are sporadic wrongly received temperature information (feedback on M105).

In order to get rid of this i would like to ask for (optional) option to skip/ignore wrong temperature information.

Good Case:
Recv: ok T:229.5 /230.0 B:59.9 /60.0 T0:229.5 /230.0 T1:38.2 /0.0 @:81 B@:39

Bad Case (should be ignored from octoprint):
Recv: T:0.1 /230.0 B:60.0 /60.0 T0:230.1 /230.0 T1:38.2 /0.0 @:71 B@:26
Recv: T:0. /0.0 B:./.T:0. /230.0 T1:38.3 /0.0 @:66 B@:21

The rule to skip the wrong temp feedback could be:
Skip/Ignore temp settings if ...

  1. "IS" temperature from tools (T0, T1, T2, ...) or bed (B) is 0.x
  2. "IS" temperature does not contain .... NUMBER + DECIMAL SEPERATION + NUMBER

This would help to have always correct statistics without any other negative impact.

I have also reported the issue at the manufacture of my printer.
Anyhow the issue is marked as "wontfix" and i am also not sure if this could be fixed on printer side at all.
The issue seems to be not specific so my printer because i know also from user people with different printer that they have this issue.

BCN3D/BCN3DSigma-Firmware#77

@GitIssueBot GitIssueBot added the request Feature request label Aug 1, 2017
@foosel
Copy link
Member

foosel commented Aug 21, 2017

Argh... This definitely is something that would need a fix from the manufacturer, but if they refuse to do that ☹️ I can see how those wrong peaks in the graph can get annoying quickly.

This is not something I want to "fix" in OctoPrint however - as a general rule of thumb OctoPrint does not do any kind of sanity checking on the values from the printer and just displays what the printer sends because it's the authority on the temperature values and who is the octopus to judge.

What could be done however is either creating a plugin that does some preliminary parsing on received temperature lines in order to strip the corrupted ones via the octoprint.comm.protocol.gcode.received hook or - probably more performant - add a new hook that allows preprocessing received temperature values e.g. for sanity checking through a plugin before they are added.

foosel added a commit that referenced this issue Aug 22, 2017
Allows preprocessing/sanitizing temperatures as received from the
printer.

Workaround for printers that occasionally report garbage temperature
data, e.g. #2050
@foosel foosel added this to the 1.3.6 milestone Aug 22, 2017
@foosel
Copy link
Member

foosel commented Aug 22, 2017

So, OctoPrint 1.3.6 will add a new hook octoprint.comm.protocol.temperatures.received which allows preprocessing/sanitization of the raw (but already parsed and canonicalized) temperature data as received from the printer. This allows stuff like this little plugin to filter out data that's outside of "sane" ranges.

It will also allow stuff like injecting additional temperature values from other sources, which might also be interesting for plugin authors down the road.

Change is pushed to maintenance, soon devel, will go into 1.3.6.

@foosel foosel added the done Done but not yet released label Aug 22, 2017
@foosel
Copy link
Member

foosel commented Dec 12, 2017

Closing because 1.3.6 was just released.

@foosel foosel closed this as completed Dec 12, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
done Done but not yet released request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants