In this after setting to 2 minutes poll interval between two minute interval every 13 second one wakeup event coming (during this 13 second wakeup time its not sending the poll message)in 2 minute poll interval current consumption is 5ma and during this 13 second wakeup current consumption is 600 uA
1)for me wakeup needs to come only every 2 minutes in between wakeup should not come how to avoid those wakeup in between two minutes?
2)In mesh_lpn.c mentioned like FRI_POLL_INTERVAL_MS should be less than 40 seconds why?
STATIC_ASSERT(FRI_POLL_INTERVAL_MS <= 40*1000); // FRI_POLL_INTERVAL_MS max 40s, because intervalMin in bls_ll_setAdvInterval is u16, max is (0xffff*625)us = 40s.
Here whats the reason for get_lpn_poll_interval_ms() divide by 2 _attribute_ram_code_ void user_init_deepRetn(void)
{
blc_app_loadCustomizedParameters();
blc_ll_initBasicMCU(); //mandatory
rf_set_power_level_index (my_rf_power_index);
blc_ll_recoverDeepRetention();
// should enable IRQ here, because it may use irq here, for example BLE connect.
irq_enable();
user_init_peripheral(1);
if(get_blt_busy() && clock_time_exceed(fri_ship_proc_lpn.poll_tick, get_lpn_poll_interval_ms()*1000/2)){ // blt_busy true means not early wakeup
lpn_set_poll_ready(); // will call mesh_friend_ship_start_poll() in mesh_friend_ship_proc_LPN().
}
here after updating this files poll message is sending every 5 minute between poll interval every 13 second mcu wakeup occuring ,when we set within 40 second range its working and abnormal wakeup not happened
here when we try to set poll within 40 seconds its coming perfectly every 40 second but if we try to set 2 minute as poll interval its not sending the poll mesage every 2 minute instead its sending before poll interval finishes?