cancel
Showing results for 
Search instead for 
Did you mean: 

BLE Connection Interval

Nico3
Senior

Please let know how to change Connection Interval. I need to decrease Connection Interval value so data sampling frequency can be increased. STM32WB35 is working in peripheral mode.

 

Thanks

2 REPLIES 2
kumaichi
Associate III

I'm just starting my journey in the ST BLE world, but I think that's handled in the aci_gap_set_discoverable method.  I find I spend most of my time searching entire projects (Ctrl+a+a) and it helps me to match things up from one of the samples to what's happening in my project.

/* Start Fast or Low Power Advertising */
ret = aci_gap_set_discoverable(ADV_TYPE,
                               CFG_FAST_CONN_ADV_INTERVAL_MIN,
                               CFG_FAST_CONN_ADV_INTERVAL_MAX,
                               CFG_BLE_ADDRESS_TYPE,
                               ADV_FILTER,
                               0,
                               0,
                               0,
                               0,
                               0,
                               0);

Maybe play around with the:

CFG_FAST_CONN_ADV_INTERVAL_MIN

CFG_FAST_CONN_ADV_INTERVAL_MAX

I hope I was able to help.

Kindest regards.


@Nico3 wrote:

 I need to decrease Connection Interval value so data sampling frequency can be increased.


Beware that the actual Connection Interval value is decided by the Central at the time of connection.

Your device can request what Connection Interval it wants, but there's no guarantee the Central will grant that.

This is particularly true of phones/tablets if you try to request really short connection intervals...