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

Scheduler and Timer for Thingy 91 using nRF9160 DK

I had a continuation question to this.

https://devzone.nordicsemi.com/f/nordic-q-a/64457/scheduler-for-thingy-91-using-nrf9160-dk

 Is there any sample tutorial for the nRf91 series regarding the scheduler or the timer application that I could as well look into. Can it be integrated into the existing asset tracker example ?

Thanks :).

Parents
  • Hi.

    What exactly are you trying to achieve?

    The nRF Connect SDK is built on top of Zephyr, a real-time operating system.

    As such, there is a scheduler automatically built into all the samples.

    As for the asset_tracker sample application in particular, it relies heavily on a workqueue. In addition to the workqueue, some of the drivers also create their own threads, so the asset_tracker would not work without the scheduler.

    Best regards,

    Didrik

  • Hi Didrik,

    I have a thingy 91 that is sending data to the cloud every 1 hour running the asset tracker application. I am trying to have a scheduler that keeps the device inactive or on a power saving mode (PSM) during the time of no opeartion and only wakes up through an event or external input. As such, I want my device to be active for 1 min , send the data and then go into a sleep mode for 59 mins and wake up in between only if there is external signal or interrupt.                                                                                                                                                                                                                                                             Is it possible to acheive it through AT+CPSMS command by changing RPTAU and RAT times or is there any other way that I can acheive this functionality ?

                                                       

Reply
  • Hi Didrik,

    I have a thingy 91 that is sending data to the cloud every 1 hour running the asset tracker application. I am trying to have a scheduler that keeps the device inactive or on a power saving mode (PSM) during the time of no opeartion and only wakes up through an event or external input. As such, I want my device to be active for 1 min , send the data and then go into a sleep mode for 59 mins and wake up in between only if there is external signal or interrupt.                                                                                                                                                                                                                                                             Is it possible to acheive it through AT+CPSMS command by changing RPTAU and RAT times or is there any other way that I can acheive this functionality ?

                                                       

Children
Related