-
Notifications
You must be signed in to change notification settings - Fork 113
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
Automatic switching off doesn't work #107
Comments
Hi @rbk1rbk, What time-frame should I be looking at? Looking at the end of the log indicates that a print job is still running. |
Nevermind I see it. It looks as if your hotend never goes below the value you specified for idleTimeoutWaitTemp(30). I'd suggest increasing that to something more reasonable like 50C and try again. |
Hi @kantlivelong |
What does this line mean? |
It shuts off all heaters(hotends/bed) then waits for the hotends to cool to the temp specified. It looks like you changed the settings then reset the printer mid print? Can you make sure it's done on a clean/fresh start? |
Hi @kantlivelong |
Maybe I can run a testcase like in issue #82, if that helps. |
It's possible and likely the case that your idleTimeout is just too short. Try increasing it to a value that exceeds the maximum time it takes to heat your bed/hotend(or whichever is the longest operation). |
Timeout is set to 10 minutes, I have no heated bed, hotend is hot in cca 3 minutes. Why are suggesting maximum time to heat? Shouldn't it be to cool down? |
The plugin determines timeout by outbound activity. During certIn commands
there is no outbound(also sometimes inbound) comm activity. If your hotend
takes 3 mins to heatup then you have already timed out with a 1 minute
timeout defined.
|
... It's also just a suggestion at this point as I don't see a clear reason why it's occuring other than the two options mentioned. If it's still an issue after that then hardware/wiring would be the next thing I'd look at. |
I think the wiring is OK. I can switch PSU on and off with the bolt icon. Also I noticed, that when I restart octoprint or reboot RPI, the plugin switches PSU off -> I believe this means that: |
I've found the pinpoint. The issue is in the following part of the code: |
I can confirm that this is the case with my unheated bed printer as well, PSUControl will not turn off even though the hotend is cool enough and the timeout has been exceeded. |
@rbk1rbk interesting. OctoPrint doesn't show a temp(even 0/null) for the non-existent bed, correct? |
In my case, Marlin 1.1.8 was compiled with and I left the thermal protections and such untouched. Octoprint reports the machine status in the status bar as Tool: 26.9°C Bed: NaN°C This is what my terminal output looks like on the printer w/o bed heater. Recv: T:27.21 /0.00 @:0 I can enable debugging and post more logs is you tell me what you want. |
Can you disable the bed in the printer profile within OctoPrint then try to replicate? |
@rbk1rbk tagging you as well. ^ |
@rbk1rbk I am trying to understand your suggestion.
Octoprint settings =>Printer Profiles => Print Bed & Volume => uncheck "Heated Bed"
|
I ruined my temp sensor, so I'm not able to test this for some time... without the if the code never returns from heaters.get. Of course my edit is just a workaround, the final solution is well beyond my capabilities. |
Well this is a little embarrassing. I did a fix for this a bit ago but apparently didn't merge it. Though the fix was intended for setups where heated bed was enabled when the firmware/printer didn't really support it. It appears that the bed temp values will be None regardless if heated bed is enabled/disabled. Not sure if this is an OctoPrint, Plugin, or Firmware bug. Will check with @foosel. |
OctoPrint always returns what it gets back from the printer. If the printer includes bed temperatures those will be populated, regardless of whether the printer profile states it supports a bed or not. The profile setting will only be used to
You'll still get a default "bed" entry in the temperature reply (as in, actual and target both None) since that makes it a bit easier to process. |
This should be fixed by #126 in 0.1.8. |
What were you doing?
What did you expect to happen?
switch off PSU
What happened instead?
PSU still running. PSU was automatically shut down only once, when I restarted OctoPrint service. Manual switch ON and OFF works.
Version of OctoPrint-PSUControl
Octoprint 1.3.8, PSU Control probably the latest
Operating System running OctoPrint
pi@octopi:~ $ cat /etc/octopi_version
0.15.0
Wiring diagram
I use GPIO pin 23 for on/off and pin 24 for sensing, although currently sensing is not configured. Timeout is set to 1 minute.
octoprint.zip
The text was updated successfully, but these errors were encountered: