Skip to content

No Chance to wake up controller after sleep #2789

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

Closed
Guenni75 opened this issue May 15, 2025 · 13 comments · Fixed by #2790
Closed

No Chance to wake up controller after sleep #2789

Guenni75 opened this issue May 15, 2025 · 13 comments · Fixed by #2790

Comments

@Guenni75
Copy link

Guenni75 commented May 15, 2025

Version

2.1.12

Hardware / Firmware

GRBL 1.1

What happened

Hi.
If i send $SLP to the controller, it goes into sleep. Ok

But I can't wake him up again!
All Buttons are Grey.
If i restart UGS I can't even get connected again.
UGS is fetching the status, shows
<SLEEP|....
Fetching device Version
$I
Connection closed

After that, I have to use bCNC to wake up the controller.
There i can click Reset and everything works again.

How to reproduce

No response

Operating System

Win 10

Anything else

The problem is the closed connection.
I can't send any commands to the controller with UGS.

@breiler
Copy link
Collaborator

breiler commented May 15, 2025

How do you wake up a controller that is in sleep state??

@Guenni75
Copy link
Author

Guenni75 commented May 15, 2025 via email

@Guenni75
Copy link
Author

I don't know how the software does that.

@breiler
Copy link
Collaborator

breiler commented May 15, 2025

According to the GRBL documentation you need to reset the controller. Isn't that button enabled?

@Guenni75
Copy link
Author

I never had a Button connected to the reset pin on the controller.

I just click on the reset button from bCNC and it wakes up.
Image

@Guenni75
Copy link
Author

Guenni75 commented May 15, 2025

The bigger problem is that UGS closes the connection if the controller is in sleep mode!!

You can do nothing, without a connection!!

@breiler
Copy link
Collaborator

breiler commented May 16, 2025

I adjusted the button for resetting the controller to be available in SLEEP mode.

This is available in the latest nightly build:
https://github.com/winder/Universal-G-Code-Sender?tab=readme-ov-file#downloads

@Guenni75
Copy link
Author

Solves this the disconnection when in sleep mode?

When the controller is in sleep mode, UGS closes the connection immediately after connecting.

@breiler
Copy link
Collaborator

breiler commented May 16, 2025

I did not encounter that problem on my machine. If that still happens for you with the new version I need the response from the $I command to know exactly which firmware your are running.

@Guenni75
Copy link
Author

Guenni75 commented May 16, 2025 via email

@breiler
Copy link
Collaborator

breiler commented May 17, 2025

And the output of $I?

@breiler
Copy link
Collaborator

breiler commented May 21, 2025

I finally found the problem, if you had told me the output of $I this would have been a lot quicker to resolve.

I connected with a newer 32-bit board which does not reset when connecting to it as the older 8-bit systems does.

UGS tries to establish a connection without resetting it, but the sleep mode will prevent it from responding to commands. The work around is that UGS will now automatically reset the controller if it is in a sleep state.

@Guenni75
Copy link
Author

I work shifts and can't deal with this every day.

I will give it a try later.

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

Successfully merging a pull request may close this issue.

2 participants