This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Auto wake up on RF activity in observer mode

Hi,

Is nRF51822 supporting any auto wake up functionality if there is any kind of activity on RF during observer mode?

Parents
  • You can use the radio notification mechanism from the SD which uses SWI1 IRQ. Tutorials for this can be found here

    Softdevice documentation for this can be found here

  • If the observer is receiving any packets that means that the device is already active while the RADIO is on. And the chip is woken up by softdevice RTC0 interrupt. This is not in application control.

    What happens is application start scanner and goes to sleep

    Observer event is started by chip waking up by executing RTC0 handler code inside softdevice.

    The packet is received and then the softdevice schedules future events and relinguishes control.

    Application gain control and most probably looping to put chip to sleep like below

    for (;;) { power_manage(); }

    but if radio notification is enabled, then softdevice aprt from doing it normal work, will also trigger SWI1 interrupt which your application can listen to. And this is how your application can tell that RADIO event has happened.

Reply
  • If the observer is receiving any packets that means that the device is already active while the RADIO is on. And the chip is woken up by softdevice RTC0 interrupt. This is not in application control.

    What happens is application start scanner and goes to sleep

    Observer event is started by chip waking up by executing RTC0 handler code inside softdevice.

    The packet is received and then the softdevice schedules future events and relinguishes control.

    Application gain control and most probably looping to put chip to sleep like below

    for (;;) { power_manage(); }

    but if radio notification is enabled, then softdevice aprt from doing it normal work, will also trigger SWI1 interrupt which your application can listen to. And this is how your application can tell that RADIO event has happened.

Children
No Data
Related