This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

App_timer with Soft device and sd_app_evt_wait

My application is using multiple features such as BLE UART, Proximity and TWI.

I've two twi sensors triggered when needed. and one of them generate an int to wake up the device. (this is working perfectly today). 

My project also integrate Serial UART And I managed to exchange with the toolbox software using the uart app. 

logic is as follow:

Init all and advertise to check if the mobile app wants to connect. If not sleep by using  nrf_pwr_mgmt_run which trigger sd_app_evt_wait.

device looks to go to sleep mode and wake up when event on IO (interrupt of the twi sensor) occurs. 

I need also to wake up my device every 4h to send information to a server (I'm sending to a modem thru serial) 

For this I setup an App_timer to wake up the device.

For testing I setup the period to few 12sec and the timer occurs while the advertising is running. when device go to sd_app_evt_wait timer never wake up my device

I'm feeling I may miss something that most of you already master. Thanks for your time helping me on this

Didier

Related