Go Down

Topic: MKRFOX1200 max deepSleep period (Read 807 times) previous topic - next topic

iverona

Hello,

What's the max deepSleep period allowed on a MKRFOX1200? The function is defined as:

Code: [Select]

void deepSleep(void);
void deepSleep(uint32_t millis);
void deepSleep(int millis) {
    deepSleep((uint32_t)millis);
}


So I should be able to use the UINT32_MAX which is 4294967295UL, but if I try for example, to sleep for 24H:

Code: [Select]

#define WAKE_UP_INTERVAL_24H 86400000UL //24H
...
LowPower.deepSleep(WAKE_UP_INTERVAL_24H);


The board wakes up immediately after reset. Am I doing something wrong?

thanks!

iverona

Forgot to mention that:

Code: [Select]

#define WAKE_UP_INTERVAL_6H 21600000UL  //6H


Works. And that I've also tried casting the value to uint32_t when calling deepSleep but no difference.


jefatperondidoteu

Hi Iverona,

Did you ever find out how to make the MKRFOX go to sleep for 24hrs? I have the same problem. Works up until certain amount of milliseconds but then either doesn't go to sleep (1440mins) or doesn't wake up (720mins). When I use 8mins everything works good. I am using LowPower.DeepSleep(8*60*1000)
(1440*60*1000) and (720*60*1000)

Thanks,

Jef

Go Up