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
Low power example #533
Comments
Hi, a example from lowpower Arduino Pro Mini project. Sleeptime is 8 second. Update timer
|
Yep, updating the clock after sleep is something MCCI does in our STM32 and SAMD sketches. This was the original reason we forked BSPs, as there was no good way to do this in the stock BSPs. (Then we realized it was easy to configure the LMIC, and all our projects are using the LMIC, so...) |
Hi all, |
Hi, you can take a look in my project. |
Thanks for sharing @JackGruber. I will look at your code. |
Hello everyone, I run into the same problem. Thanks @JackGruber for sharing your project and your solution. Unfortunately, the code works only for AVR boards but not for my Feather M0. Do you know how do adjust the micros() timer of a Feather M0? I am about to read myself into that topic, but it still feels like black magic at the moment. |
I've spent quite a few hours trying to make my SAMD board sleep while keeping track of the elapsed time waiting for the RX windows (especially now since TTN v3 requires 5 seconds), I tried to manually adjust os_gettime but it failed since the MCU can take an unpredictable number of ticks waking up and makes the LMIC unhappy. @terrillmoore would you mind sharing how you did it? |
In the past I have been struggling to make LMiC work together with my microcontroller going into deep sleep mode. Currently I do a call to
os_queryTimeCriticalJobs(ms2osticks(5000))
after which I will go into sleep mode for 5 seconds.One remaining issue is that the micros() timer does not increment in sleep mode, so LMiC will think no time has passed, and the duty cycle logic will prevent me from sending messages - something that I want to do every 10 minutes.
Would it be possible to provide a minimal example of how one can use sleep modes along with LMiC?
Depending on the platform I either use RTCZero and schedule alarms 5 seconds after going to sleep, or I use the WDT to wake up every 8 seconds.
The text was updated successfully, but these errors were encountered: