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

if i use sleep mode in for loop , does the data will transmit to central or not

hi..............

if i use sleep mode the data in for loop does the data will transmit to central or not

Parents Reply Children
  • Hi,

    What do you mean by "sleep mode"?

    The nRF52832 has a "system OFF mode" which means it is essentially turned off, and then nothing will happen except it can be woken into reset in a number of ways.

    In "system ON mode" everything is up an running on demand, i.e. CPU, clocks, peripherals are running when needed. In this mode, the CPU can be asleep and then it will wake up for instance on interrupts.

    In order to send something over BLE you need to use a SoftDevice API call, which you must call from your code. Some of this will be through the use of SDK libraries. Keeping the connection alive, triggering event handlers, etc. is done by the SoftDevice and as long as you do not enter system OFF mode then there will not be any problems. You normally do not have to think about sleep levels at all.

    If you are a beginner I will highly recommend that you start off with the getting started guide, nRF5 Series: Developing with SEGGER Embedded Studio, as well as testing and modifying examples from our nRF5 SDK.

    Regards,
    Terje

  • If you are a beginner I will highly recommend that you start off with the getting started guide, nRF5 Series: Developing with SEGGER Embedded Studio, as well as testing and modifying examples from our nRF5 SDK.

    Absolutely.

    The examples illustrate a background loop which will sleep when there's nothing to do.

Related