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

BLE is on during System on mode, with power saving.

Hello, everyone!

I am a newbie developer about nrf51.

I need to advertise my BLE and save my power.

I have read the document that nrf51 has System-on (including some modes) and system-off.

It seems that in system-off mode, nrf51 couldn't shoot ble signals, which could be waken up by interrupt.

So I need to keep nrf51 in system-on. The question is , except the normal mode, are there others modes that advertise ble and save power consumption simultaneously?

Another small question, if I want to configure GPIOTE, do I need to configure PPI registers, too?

Please give me some direction to study, thanks all ! 

Parents
  • Hi

    The BLE stack can not run in system OFF mode, that is correct, so if you want to do BLE advertising or stay connected over BLE you will have to use system ON sleep mode instead. 

    In system OFF mode the only available wakeup sources are wakeup on pin, analog comparator or a chip reset. Other peripherals, like the timers and radio, can only wake the system up from system ON sleep. 

    To enter system ON sleep mode when using a SoftDevice (BLE stack), you should use the sd_app_evt_wait() function. 
    If you look at one of the examples in the nRF5 SDK you will see that this function is typically called through the power_manage() function, which is called repeatedly in the main loop. 

    The GPIOTE can be used independently of the PPI controller, it just depends on what you want to use it for?
    Say you want to use the GPIOTE to connect some internal event or task in the system to a GPIO then you will need to use the PPI to make a connection between the internal event/task, and the corresponding task/event in the GPIOTE. 

    Best regards
    Torbjørn

Reply Children
No Data
Related