-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Add connection attempt delay in X seconds for PSU Control #559
Comments
Which version are you using? 1.4.1 should fix exactly that, since it will try to reconnect up to 3 times (in 5s intervals) until it throws an error. If you add the 5s interval that is used if the PSUControl is used this should give the board 20s to start up. |
Yes I am using 1.4.1. This is the error I am getting.
|
Ok i think there is the problem. I don't actually check against 409 Conflicts, I'll do some investigating on this and make sure to push a fix with the next version |
I did some investigating and what probably is happening is the following:
To fix this bug I would need to response from this API: http://docs.octoprint.org/en/master/api/connection.html#get-connection-settings WHILE the printer is connecting (so after 1 or 2 seconds after pressing the screen). Maybe one more thing: Have you turned on the Turn on PSU when exiting sleep option? |
Please try this dev build and report if that fixes your issue: https://drive.google.com/open?id=1eadJgAMFtbtcjNxKu33XAUU8pF8cViRw |
Just an update that I am not ghosting. My printer is torn apart right now trying to solve an issue I have been having. Thought I was going to get it resolved this weekend but that isn't going to happen as I need to order some parts. I'll test this by the end of next weekend for sure. |
Try installing my fork of PortLister https://github.com/mikekscholz/OctoPrint-PortLister I made it for this exact issue. It almost certainly will help you unless TH3D's firmware is radically different from mainline Marlin. |
That looks like a promising plugin. I don't have any relays setup currently, so I can't test it myself, but I make sure to link your fork in the troubleshooting guide. Thanks! |
its the one I made back when I was testing the code to make tapping the standby screen automatically trigger PSU-control and they worked perfectly together. |
I was already using PortLister but not @mikekscholz fork. Looks promising. I'll be testing that and the test build of OctoDash tomorrow. |
mikekscholz's portlister fork should be considered a requirement for PSU Control enabled OctoDash setups. Such an improvement. @mikekscholz have you looked into getting this added to the OctoPrint repository? Under like OctoDash-PortLister? As for the dev build, I am still getting a 409 error and as before I just clear the error and everything works just fine. Just to make sure I installed the build correctly I'll list the commands I used.
|
Damn ... Hoped this would fix it ... If you are able to, please provide the response from the http://docs.octoprint.org/en/master/api/connection.html#get-connection-settings while the printer is connecting (so after 1 or 2 seconds after pressing the screen). I can't really debug this, since I'm currently not using PSUControl. Do you still get the error with mikekscholz PortLister? I already added this to the troubleshooting guide, btw 👍 |
That command does not seem to work for me. I seem to be getting some kind of Adblock Plus html file as output for that. I am not running ABP on any of my systems. The output does not change regardless of connection status. The PortLister does not change anything except I connect way faster. |
How did you query that API? With a Browser or a tool like Postman / cURL? |
I ran
Is what I should have been running. Not Connected: Connecting: Connected: |
Ok I think I found the problem, I never changed against the state "Connecting", because it wasn't mentioned anywhere. I created another dev build: https://drive.google.com/file/d/1KL35pjbTXKDT53mZw4bDqob8yAxO2_FW/view?usp=sharing. If you have the time, check it out and report back :). |
Finally! Will be included in the next release :). You can run the dev build until then without any problems though ... |
For my printer you can't connect OctoPrint to the printers main board until marlin is fully booted. This is because I have an EZBoard Lite and it does not accept USB power (as it shouldn't). This means every time OctoDash comes out of sleep and turns on the printer it immediately tries and fails to connect. Then a few seconds later it connects and I have to clear a connection error.
Add option in PSU Control settings menu to delay connection attempt by X seconds.
The text was updated successfully, but these errors were encountered: