-
Notifications
You must be signed in to change notification settings - Fork 78
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
No RTC Wake Up #211
Comments
Hi @okklar Thanks for reporting it, dropping by to let you know we're investigating this and will let you know ASAP what the cause might be. |
@okklar , So I just ran the example, and I'm getting an interrupt and the screen refreshes, in the example, there don't seem to be any other sources of wakeup so I imagine it's GPIO_NUM_39 (RTC interrupt) causing the wakeup. I ran the Inkplate6COLOR_RTC_Alarm_With_Deep_Sleep example on the latest version of the Inkplate library main branch. The board definition for Inkplate 6COLOR shouldn't have changed in time, so the one you have is fine. Could you please check if you have the latest version of the library? |
Hi @rsoric I am not sure if I found the right GPIO Expander but if I am not mistaken it says NXP L16A 0303 ZSD201A. I will attach an picture of it. Once again, thanks for your help! |
I see, that would be the PCAL GPIO expander, I just wanted to rule out the possibility that this was causing the error. Having a look at the schematic, could you somehow check the connection on Jumper 5 - if it's fully connected to GPIO39? Here's how it looks in the schematic: As you can see, it's what connects the RTC's interrupt to the ESP32. This could be a potential cause of the error. Here's where it is on the board: The middle pad should be connected to the left pad. |
Hi @rsoric . No, it is not connected, sorry, my bad – I wasn't aware of that. |
@okklar Yes, those are the ones that should be connected - they ought to be connected by default on the PCB but it doesn't hurt to reinforce this connection so we can rule it out as a possible fault. |
Hi @rsoric , Sorry for that stress. Thank you |
@okklar please don't worry, we're always happy to help Inkplate users get things working :) I'm gonna try a couple more things later today to figure out what could be causing this issue. |
@okklar Sorry for the delayed reply, could you please open a support ticket with the same info you've provided here via our contact form: so we can help solve your issue |
@okklar, could you please give this branch a try on your device: https://github.com/SolderedElectronics/Inkplate-Arduino-library/tree/ip6ColorSleepFix This has an updated driver for Inkplate 6COLOR which could fix this issue, we're currently testing it. If you're going to test it with your code, note that you have to call
just before
|
Hi @rsoric, I'm was having the same trouble with the the
PS. My board is different from the ones in the pictures above. I got it in the CrowdSupply campaign. EDIT: It is working properly. |
@rsoric, After some tests, I figured out (may it is obvious) that it necessary to upload another program (let's call it
This is the code I'm using for
However, there is a problem that I cannot figure out, the interruption does not work if I change the date in the RTC. For example following these steps:
Am I missing something? |
Reply to my own question: Yes, I was missing this: Beside changing the year, it is necessary to also change the day, as it was different. 5-dec-2023 was Tuesday (week of the day = |
Hi @rcassani , sorry about the delayed reply, a lot of us were on holiday for a while. Thanks for letting us know about this, we're going to make sure it's clear in a later update -Rob |
Hi @rsoric sorry for that very very late reply – this is literally the first day, I could test the code with the new board. So I tested the board with the code that you flashed onto it, before sending to me – it worked fine. It woke up after 60 seconds. If I set the time with "rtcSetTime()" and "rtcSetDate()" it sets up and displays the time and date correctly, but it doesn't enable the wake up alarm. If i use the "rtcSetEpoch()" to set up the time and date, the alarm is enabled correctly and it works fine again. At the moment I have no clue, what could be the reason for that, but that is what I investigated so far. |
@BornaBiro, could you have a look at this, "rtcSetTime()" and "rtcSetDate()" apparently don'tt set up the alarm correctly but "rtcSetEpoch()" does. |
@okklar I don't see how one would enable or disable the RTC alarm. By looking at the rtcSetTime(), rtcSetDate and rtcSetEpoch it just sends data directly to the RTC IC. Only difference is that rtcSetEpoch() sends all time and data at one, while rtcSetTime() and rtcSetDate() splits them. There is note in the datasheet page 22. stating that it good to read/write all time and date in one go due possible corruption. But they also said that all R/W must be done within one seconds which does happen, so this should not be a issue, especially since you can read the RTC T&D correctly. We can make a method for writing time and date at once and see the behavior. Is this our example or your own code? Did you try to reset RTC between testing with rtcSetEpoch() and rtcSetTime()/rtcSetDate()? |
I am running into the same issue - the example does not work for me. I note that I bought the Inkplate6Color complete with everything and added the RTC battery. Any ideas? |
Hi @mfasold , we're going to take some time to investigate your specific RTC issue and the others listed here in the near future, when our schedule clears a bit. Will report back here when we have some new information -Rob |
Hi @mfasold, just tested a couple things. First I wanted to test RTC_Alarm (so, without deep sleep) which worked with a time difference of ~2 mins. Then i tried the RTC deep sleep example and I ran into some issues. First of all, the year wasn't displaying right when I was printing it back, which was concerning. I then tried to create a version of this sketch which works. And this is the output:
The data written to the RTC is correct, we can read it back. But the epoch received is not correct and thus also the alarm time is incorrect (because it's being set via the epoch). So, at the moment, unsure why this happens, I'm investigating this next. So then I tried to set the alarm time via other function, and this worked. -Rob |
Thank you for the investigation. That is more or less the conclusion I also arrived at. But setting the alarm in such away quickly becomes difficult, for example when using day + 1 on day 30. |
Aboslutely, I'll try to somehow publish a quick fix for this now that we know the cause, hopefully during this or next week. Will keep you posted once you can download from the dev branch and try again. |
Thank you. Also, I have a small suggestion. My aim is to set the RTC alarm to run at certain times each day. The interface of the function is |
No RTC wake up after deep sleep.
examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_RTC_Alarm_With_Deep_Sleep/Inkplate6COLOR_RTC_Alarm_With_Deep_Sleep.ino
I am trying to use this example but with no success.
Board goes to deepsleep but never wakes up. Used battery for RTC, RTC works in other context.
Are there any known issues?
Any help would be great.
Thank you!
The text was updated successfully, but these errors were encountered: