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

High power when connected and Sleeping

When Going into Sleep, I see peaks of 12mA every 30ms (see image)
I'm assuming I can adjust that changing the connection interval settings.
I have my Connection intervals set as:

#define CONN_INTERVAL_DEFAULT (uint16_t)(MSEC_TO_UNITS(500, UNIT_1_25_MS))
#define CONN_INTERVAL_MIN (uint16_t)(MSEC_TO_UNITS(500, UNIT_1_25_MS))
#define CONN_INTERVAL_MAX (uint16_t)(MSEC_TO_UNITS(600, UNIT_1_25_MS)) 

And I think I looked at all issues in the Devzone about it without any luck.

Could you help me please?

Parents Reply
  • It is not advertising then, as you should have a advertising interval of 2000 * 0.625 ms = 1.25 s, so it is probably in a connection as you wrote. We can see more clearly if you "zoom in" on one of the spikes in time (so that the x axis is only a few microseconds).

    Assuming this is connection events, then the connection interval is 30 seconds regardless of what you configure. That is possible, as connection parameters can only be requested by the peripheral. It is always the central that decides. The peripheral can disconnect if the connection parameters are unacceptable, but I do not see that in your code.

    You can verify what is actually being used by using a sniffer to see the connection request and connection parameter updates, or by logging this in the nRF side when you get the BLE_GAP_EVT_CONNECTED event (p_ble_evt->evt.gap_evt.connected.conn_params).

    Which chip and SDK version are you using?

    (I also want to mention that you can get a better software for the power profiler, as the nRF Connect for Desktop now has a Power Profiler plugin.)

Children
Related