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

Periodic advertisement (10 sec on and 20 sec off) using timer

Hello, I am using pca10040 and sdk 12.2.2. I want that my pca10040 should advertise for 10 sec then it should go to system off mode then it should wake up after 20 sec. My current code allows me to aadvertise on and off for specific interval but unfortunately I am not able to connect when it advertises. I am attaching my main file. Please suggest me changes. Thanks,devzoneadv.txt

  • Hi,

    You need an external input to wake up from System OFF mode. From infocenter:

    System OFF is the deepest power saving mode the system can enter. In this mode, the system’s core functionality is powered down and all ongoing tasks are terminated.

    The device can be put into System OFF mode using the POWER register interface. When in System OFF mode, the device can be woken up through one of the following signals:

    1. The DETECT signal, optionally generated by the GPIO peripheral
    2. The ANADETECT signal, optionally generated by the LPCOMP module
    3. The SENSE signal, optionally generated by the NFC module to “wake-on-field”
    4. A reset

    When the system wakes up from System OFF mode, it gets reset.

  • Hi Sigurd, Thanks for your answer.

Related