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

sleep and wake up services of nordic nrf52840

hello

I have ble_app_hrs_freertos project for that, I have to make sleep and wake up the services in the project.

 my question is that

1) how to sleep the service in nrf52840?

2)how to wake up that service at specific intervals time?

is there any tutorial and snippet for that?

Thank you.

Parents
  • I assume you are asking about System ON sleep?

    1) how to sleep the service in nrf52840?

     To enter System ON sleep with the freertos examples you set the following config in the FreeRTOSConfig.h file:

    #define configUSE_TICKLESS_IDLE 1

    You don't need to do anything else besides this, the chip will automatically go to System ON sleep when idle.

    I think this is already set in the ble_app_hrs_freertos example. 

    2)how to wake up that service at specific intervals time?

     You could simply use a timer

     

    is there any tutorial and snippet for that?

     Take a look at the ble_app_hrs_freertos example, it has both sleep enabled (configUSE_TICKLESS_IDLE) and some timers main()-->application_timers_start()

    Best regards,

    Simon

Reply
  • I assume you are asking about System ON sleep?

    1) how to sleep the service in nrf52840?

     To enter System ON sleep with the freertos examples you set the following config in the FreeRTOSConfig.h file:

    #define configUSE_TICKLESS_IDLE 1

    You don't need to do anything else besides this, the chip will automatically go to System ON sleep when idle.

    I think this is already set in the ble_app_hrs_freertos example. 

    2)how to wake up that service at specific intervals time?

     You could simply use a timer

     

    is there any tutorial and snippet for that?

     Take a look at the ble_app_hrs_freertos example, it has both sleep enabled (configUSE_TICKLESS_IDLE) and some timers main()-->application_timers_start()

    Best regards,

    Simon

Children
No Data
Related