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

How to wake up from sleep mode from a phone via BLE

Hello

I want to know if we can wake up nrf52832 in sleep mode , from a command through an application on a phone via BLE. If its possible can someone please guide me to the steps or the link where i can learn more about how to that.

Thanks for you time

Parents
  • Your question doesn't really make any sense.

    If the nRF52 is in its deepest sleep mode, there will be no BLE activity at all, hence it is not possible to wake it via BLE, you can only wake via hardware interrupt.

    If the nRF52 is just sleeping between sending advertising, as soon as you connect it will be awake. So you just need to use any of the examples which have a connectible service (which I think all the BLE peripheral examples do.

    Then write whatever code you need to in response to the connection to the service (or to a custom service which you write yourself)

Reply
  • Your question doesn't really make any sense.

    If the nRF52 is in its deepest sleep mode, there will be no BLE activity at all, hence it is not possible to wake it via BLE, you can only wake via hardware interrupt.

    If the nRF52 is just sleeping between sending advertising, as soon as you connect it will be awake. So you just need to use any of the examples which have a connectible service (which I think all the BLE peripheral examples do.

    Then write whatever code you need to in response to the connection to the service (or to a custom service which you write yourself)

Children
Related