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

[Request] Add ability to disconnect when switching PSU off #10

Closed
Kunsi opened this issue Feb 13, 2017 · 6 comments
Closed

[Request] Add ability to disconnect when switching PSU off #10

Kunsi opened this issue Feb 13, 2017 · 6 comments
Labels

Comments

@Kunsi
Copy link

Kunsi commented Feb 13, 2017

My PSU does also supply power to the printers mainboard. That means octoprint will display 'connection timeout' when PSU switches off, and i have to manually reconnect when switching PSU on.

It would be nice if your plugin would handle that as well, including an (ideally configurable) delay between 'PSU On' and 'reconnect to printer' to allow firmware to boot up.

@kantlivelong
Copy link
Owner

Have you considered trying PortLister?

@Kunsi
Copy link
Author

Kunsi commented Feb 13, 2017

That indeed would solve the issue when powering on, yet still will result in a connection timeout when PSU switches off.

@kantlivelong
Copy link
Owner

I'll see if it's something I can add in the future.

If you are using an ATX supply I would recommend connecting the printer PCB & Pi to your +5VSB if possible.

@Kunsi
Copy link
Author

Kunsi commented Feb 13, 2017

I indeed use an ATX supply. However the Microcontroller on the printers PCB is powered by an voltage regulator, which is powered by the 12V rail of the printer - so no way to fix that without changing electronics.

@Kunsi
Copy link
Author

Kunsi commented Feb 13, 2017

disconnecting should be possible with calling self._printer.disconnect() before actually switching off in https://github.com/kantlivelong/OctoPrint-PSUControl/blob/master/octoprint_psucontrol/__init__.py#L267

@Kunsi Kunsi changed the title [Request] Add ability to dis-/reconnect when switching PSU [Request] Add ability to disconnect when switching PSU off Mar 14, 2017
kantlivelong added a commit that referenced this issue Apr 3, 2017
@kantlivelong
Copy link
Owner

Available in 0.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants