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

[Bug] City hub sometimes turns back on after shutdown #385

Closed
laurensvalk opened this issue Jul 6, 2021 · 0 comments
Closed

[Bug] City hub sometimes turns back on after shutdown #385

laurensvalk opened this issue Jul 6, 2021 · 0 comments
Labels
bug Something isn't working hub: cityhub Issues related to the LEGO Powered Up Smart hub (Hub No. 4) software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime)

Comments

@laurensvalk
Copy link
Member

Describe the bug

When using hub.system.shutdown(), the City Hub sometimes turns right back on, with the light blinking blue again.

This happens maybe 20% of the time. When using the button, it always works correctly.

Technic Hub and Move Hub work correctly.

To reproduce

This works on all hubs, but I noticed that City Hub sometimes turns back on after it shutdown. I'm not sure why that is.

Watchdog timer reset?

The reset reason is consistently 0, so it does not seem to be a watchdog timeout.

from pybricks.hubs import ThisHub
from pybricks.tools import wait

hub = ThisHub()

print(hub.system.reset_reason())

wait(100)

hub.system.shutdown()

Expected behavior
Hub turns off and stays off.

@laurensvalk laurensvalk added bug Something isn't working hub: cityhub Issues related to the LEGO Powered Up Smart hub (Hub No. 4) software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) labels Jul 6, 2021
dlech added a commit to pybricks/pybricks-micropython that referenced this issue Jul 6, 2021
This fixes an odd behavior where the City hub turns itself back on as
soon as it powers off. This is probably a hardware issue, e.g. an
induced voltage somewhere is enough to turn it back on.

Fixes: pybricks/support#385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hub: cityhub Issues related to the LEGO Powered Up Smart hub (Hub No. 4) software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime)
Projects
None yet
Development

No branches or pull requests

1 participant