-
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
PSU-Control fails from time to time #82
Comments
Going to need more info.
Additionally please provide DEBUG logs with the issue occurring. Steps below:
|
Hi, Bruce. Hardware is a good old raspberry Pi version "B". The first one. Software: It is actually "octopi" with all automated updates. This is one of the latest logs (but not the very latest one). As I changed right now the folders for recording timelapses to an nfs mount (don't want to write my SD to death with unnecessary writing operations), I have now restarted octoprint. A job is running, I will see what happens afterwards. |
I forgot to mention that absolutely nothing appears in point of psucontrol tries to turn the PSU off, but i see that it logs that it turns the PSU on. Suggestion: |
Hi, The logs that were attached are not fresh and I am not seeing any DEBUG statements. Can you follow the steps outlined and reattach? Thanks |
Hi, Bruce. I created the file ~/.octoprint/logging.yaml (owned by pi:pi with right 644) with following content:
Then I restarted octoprint from its menu. Will this create the expected debug-level logfile you need? I cannot start a new printjob right now because I have a part on the printer and I am not there till monday. This might be of interest for you:
|
Looks correct. I would also suggest enabling serial logging as that would help a lot. The only downside is that it can impact performance depending on the print.
Are you saying that it works properly when simply running a command(I imagine non-temperature related) and then waiting for timeout? See if you can replicate the issue with the following tests: Test 1
Test 2
If either test results in the PSU not shutting off then send the logs. |
Hi, Bruce. In Test 2, nozzle heating turns off after IDLE time, and when temperature goes below 50°C, PSU turns off, too. |
Do you know if this occurs with a specific gcode file or any? If a specific gcode file, can you upload the gcode from the print that failed as well the contents of ~/.octoprint/scripts/gcode? |
Hi, Bruce. Here you find the requested scripts. I also attach here the testing G-Code file (downloaded from printer, so it is what actually is stored there). Here is the latest logfile, too: Hope this info helps. |
Since you are able to easily replicate it now can you supply fresh DEBUG logs with the issue occurring? |
... as well as serial logs. |
I just noticed. Your logging like has octoprint.plugin.psucontrol instead of octoprint.plugins.psucontrol. Bad on my part for missing when checking but shoot the logs whenever you can. |
Hi, Bruce. The behaviour is now as follows:
After that I used the octoprint terminal to manually set the temperature to 55°C (M104 S55) and to turn heating off again (M104 S0).
THIS TIME it triggered and did shut off the PSU, but this happened with a delay (when timeout triggered), and not when the nozzle temperature got below 50°C. Seems that PSU control can/does not read the temperature continuously? |
Need a serial log. |
Hi, Bruce.
The message in last line repeats infinitely, even when both (nozzle and bed) are cold. About serial log... |
Going from memory but Settings > Serial > Enable serial logging.
Make sure you send both fresh octoprint.log and serial.log files with the
issue occurring.
|
Please show me that lines I have to copy&paste into ~/.octoprint/logging.yaml I noticed that the above path is wrong (oversaw that) and tried then /home/pi/.octoprint/logs/serial.log as well as a nfs share (/goliath/pi/serial.log). In both cases octoprint terminates its startup after a few seconds. |
You can enable serial logging here No need to mess with configuration files manually. Once ticked, restart octoprint (I think, do it anyway just to be safe) and then the serial.log will appear in the regular logs section of octoprint's settings where you can download all the other logs. Just, whatever you do, do NOT post any configuration files publicly, especially config.yaml, as it can contain things like your API key which can be used to gain full control over your printer if it's exposed to the internet. |
Ok, here with serial log, too.... And here some time marks: 2017-12-21 17:59:11,100 - Recv: ok T:23.2 /0.0 B:42.9 /0.0 @:0 B@:0 Printer is cold. I click now the flash icon. |
I do see in the logs that the job has stopped and indeed the idler timer isn't kicking in but so far I'm unable to replicate it here. Can you try disabling all other 3rd party plugins and run again? |
I have disabled several 3rd party plugins. EEPROM Marlin Editor Plugin (1.0.4) |
Please try this debug build.
|
Thanks. It looks as if the idle limit is reached before your hotend is ready and then afterwards never restarted. Can you confirm by setting a longer timeout and retry? I'll adjust my tests here to replicate. |
Confirmed and also replicated here. Thanks for the help. |
I've committed a fix if you would like to try it. Same URL (https://github.com/kantlivelong/OctoPrint-PSUControl/archive/issue_82_debug.zip) long running commands will still cause the idle timer limit to be reached but the idle sequence will be skipped. On the next command the timer will be restarted. Example: |
@azalanono have you had any chance to test this? |
Considering this fixed as of 5808be2. Closing |
Hello.
From time to time I notice that PSU control fails either on automatically turning the ATX power on or off.
It happened right now again that it turned the ATX on correctly, but didn't turn it off (but the temperature of extruder was already on room temperature for more than 2 hours. (I came back into the room and noticed that all fans were still running). I clicked then the "flash-icon" in octoprint and PSU control turned the ATX off.
My suggestion is to slightly extend PSU control. It will hurt nobody when PSU-control repeatedly checks the temperature and repeats from time to time the ON and OFF command. I don't know if the ATX status can be read back from marlin, but sending a G80 or G81 every five minutes should not be problem at all and ensure that - even with delay - the PSU will finally be switched correctly.
The text was updated successfully, but these errors were encountered: