How to use longer wakeup intervals

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use longer wakeup intervals

Jump to solution
2,285 Views
lvdp
Contributor III

Hi:

    We use JN5189 to develop a dormant device based on JN-AN-1246. I want the device to wake up every 12 hours, but PWR_eScheduleActivity uses wake-up timer1, only 28 bits, the maximum wake-up time can only be set to 8192S, if it needs to be longer What should I do?

0 Kudos
1 Solution
2,156 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @lvdp,

I double-check this. The end device could not sleep for 12 hours by using wake timer1 in our SDK, We recommend the device wake up in several mins and then enter into sleep again.

Sorry for any inconvenience that this may cause you.

Regards,

Mario

View solution in original post

0 Kudos
7 Replies
2,157 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @lvdp,

I double-check this. The end device could not sleep for 12 hours by using wake timer1 in our SDK, We recommend the device wake up in several mins and then enter into sleep again.

Sorry for any inconvenience that this may cause you.

Regards,

Mario

0 Kudos
2,151 Views
lvdp
Contributor III

alright, I understand. We currently set it to wake up every two hours and there is no problem. But in order to pursue lower power consumption, I would like to know whether it can be set to wake up every 12 hours. Finally, thank you for your answer.

2,194 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @lvdp,

I hope you are doing great. Sorry for the late update.

Could you please confirm what is the SDK version that you are working on?

Regards,

Mario

0 Kudos
2,183 Views
lvdp
Contributor III

Hi,Mario:

     The SDK version  is 2.6.1.Does the latest SDK fix this problem for me?

2,228 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

I am checking on this. I will get back to you as soon as possible.

Regards,

Mario

0 Kudos
2,275 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @lvdp,

The sensor application note has been designed with a periodic reporting(maximum reporting interval/ sleep interval) of 1 minute and thus the end device time out (keep alive time) was kept as 2 minutes in Light sensor application note. If you modify the value for periodic reporting interval, the gateway/control bridge will not receive the poll request (keep-alive) from the sensor within 2 minutes and thus making the sensor leave network when it wakes up after 10 minutes. So, if periodic sleep is modified the end device time out should also be modified.

 

The parameter passed to the ZPS_bAplAfSetEndDeviceTimeout decides the end device timeout , below are the values that this function can take:

 

typedef enum {
ZED_TIMEOUT_10_SEC, // 0 -> 10 seconds
ZED_TIMEOUT_2_MIN, // 1 -> 2 minutes
ZED_TIMEOUT_4_MIN, // 2 -> 4 minutes
ZED_TIMEOUT_8_MIN, // 3 -> 8 minutes
ZED_TIMEOUT_16_MIN, // 4 -> 16 minutes
ZED_TIMEOUT_32_MIN, // 5 -> 32 minutes
ZED_TIMEOUT_64_MIN, // 6 -> 64 minutes
ZED_TIMEOUT_128_MIN, // 7 -> 128 minutes
ZED_TIMEOUT_256_MIN, // 8 -> 256 minutes (4 hrs 16 min)
ZED_TIMEOUT_512_MIN, // 9 -> 512 minutes (8 hrs 32 min)
ZED_TIMEOUT_1024_MIN, // 10 -> 1024 minutes (17 hrs 4 min)
ZED_TIMEOUT_2048_MIN, // 11 -> 2048 minutes (1 day 10 hrs 8 min)
ZED_TIMEOUT_4096_MIN, // 12 -> 4096 minutes (2 days 20 hrs 16 min)
ZED_TIMEOUT_8192_MIN, // 13 -> 8192 minutes (5 days 16 hrs 32 min)
ZED_TIMEOUT_16384_MIN, // 14 -> 16384 minutes (11 days 9 hrs 4 min)
ZED_TIMEOUT_INDEX_MAX,
ZED_TIMEOUT_UNDEFINED = 0xff
}teZedTimeout;

 

So, for the 12 hours interval, the best suitable value is 1024 minutes.

ZPS_bAplAfSetEndDeviceTimeout(ZED_TIMEOUT_2_MIN);

to

ZPS_bAplAfSetEndDeviceTimeout( ZED_TIMEOUT_1024_MIN);

Regards,

Mario

0 Kudos
2,269 Views
lvdp
Contributor III

Hi,mario:

         We have set the device timeout period to ZED_TIMEOUT_4096_MIN.The current problem is that we use PWR_eScheduleActivity (&sWake, 1000*60*60*12, vWakeCallBack) to set the wake up every 12 hours, but the maximum allowable value of WAKE_UP_TIMER1 is exceeded, the final result is about 42 minutes to wake up.So is there any way to solve this problem?