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] Afer setting RTC alarm and shutdown, PI didn't boot up. #88

Open
anhu opened this issue Dec 13, 2022 · 4 comments
Open

[BUG] Afer setting RTC alarm and shutdown, PI didn't boot up. #88

anhu opened this issue Dec 13, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@anhu
Copy link

anhu commented Dec 13, 2022

Environment

  • Pi hardware version: Raspberry Pi Model 3 A+
  • PiSugar hardware version: PiSugar 2 Plus
  • OS version: Linux raspberrypi 5.15.61-v7+
  • Application version:
pisugar-programmer --version
pisugar-programmer 1.7.4

To Reproduce

$ echo "get rtc_time" | nc -q 0 127.0.0.1 8423
rtc_time: 2022-12-12T20:40:37.000-05:00
$ echo "rtc_alarm_set 2022-12-12T21:00:00-05:00 127" | nc -q 0 127.0.0.1 8423
rtc_alarm_set: done
$ echo "get rtc_alarm_time" | nc -q 0 127.0.0.1 8423
rtc_alarm_time: 1999-12-31T21:00:00.000-05:00
$ echo "get rtc_alarm_enabled" | nc -q 0 127.0.0.1 8423
rtc_alarm_enabled: true
$ sudo pisugar-poweroff --model "PiSugar 2 Pro"                      
3 2 1 0...

Expected behavior

Approx. 20 minutes later at 21:00 I thought the Raspberry Pi would reboot; but it did not.

@anhu anhu added the bug Something isn't working label Dec 13, 2022
@anhu
Copy link
Author

anhu commented Dec 15, 2022

Something that is kind of weird is that the response to get rtc_alarm_time says the year is 1999

@anhu
Copy link
Author

anhu commented Dec 15, 2022

by the way, the web interface doesn't work either.

@anhu
Copy link
Author

anhu commented Dec 16, 2022

@fengyc @JdaieLin @wlmh110 ....any comments?

@anhu
Copy link
Author

anhu commented Dec 16, 2022

I understand now. The pisugar must NOT be plugged in. If it is plugged in it will not wake up.

That seems like a weird behavior. It should wake up whether its plugged in or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants