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

Is it possible to change the initial minimum connection interval in the NRF Connect Desktop application?

Note: I am currently using version 2.4.2 of the BLE Desktop application and the NRF52832.

I'm working a peripheral device that has about 800 uC of energy that can be stored in it's capacitors. It's connected to an energy harvesting module that can provide at a minimum 21 uA. When initially connecting using the NRF Connect desktop application the minimum connection interval seems to be set to 7.5 ms, where the peripheral requests that the minimum connection interval be set to 1000 ms. The minimum connection interval stays at 7.5 ms for around 5 seconds, then switches to the proper 1000 ms connection interval.This draws too much power and causes the device to reset.

The data below was taken from the PCA10040 using the PPK. The data selected is right after the peripheral switches from advertising to the connected state. As seen in the bottom right, this draws 2.17 mC, which is more than double the amount of energy storage we have on our device.

Now, if I were to use the NRF Connect app for Android and measure the power usage from switching to advertising to connected, the power usage is much less because the minimum connection interval set by the Android app is much higher.

So here's my question. Is there a way to change the initial connection interval on the desktop application before the device is connected? The NRF Connect desktop application is a lot more convenient to use than the phone application for various reasons and I'd really like to keep using it, but if it shuts down my device every time I try to connect to it, I'll end up having to use the less powerful phone app.

  • Changing the FIRST_CONN_PARAMS_UPDATE_DELAY from 5000 ms to a lower interval helped reduce the time that the device was in a high power state. Like it says in the name, the connection params were being updated after 5 seconds, which was too long in the high power state to maintain an operating charge level on the capacitors.

    I will probably go and change the initial parameters in the NRF_Desktop application sometime in the future, but for now things are in a working state. I will go ahead and close this post.

Related