cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

cohuc_3807591
New Contributor II

Hello All:

I'm having a problem where i'm sending the CYW43907 eval kit into hibernate mode for 4+ minutes, and it will consistently wake itself up after about a minute and a half. Whats even weirder is that if I send it to hibernate for only 1 or 2 minutes, it will stay in hibernate mode for the correct amount of time.

In terms of the code, i'm using the hibernate example snip from this post (43xxx_wifi Hibernate.c in WICED 6.2.1? ), with the only change made being the HIBERNATION_PERIOD_MS time.

Is there other considerations that going into choosing the hibernate time?

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator

hello :

there should have an overflow when doing multiplication :

you can modify it like this:

uint32_t seconds_to_wakeup = ms_to_wakeup/1000;

uint32_t ticks_to_wakeup = freq*seconds_to_wakeup ;

I have a test more than 5 minutes, it is correct.

View solution in original post

0 Likes
1 Reply
Zhengbao_Zhang
Moderator
Moderator

hello :

there should have an overflow when doing multiplication :

you can modify it like this:

uint32_t seconds_to_wakeup = ms_to_wakeup/1000;

uint32_t ticks_to_wakeup = freq*seconds_to_wakeup ;

I have a test more than 5 minutes, it is correct.

View solution in original post

0 Likes