Is there any way to change/set custom advertising and connection intervals wtih using CAF BLE Advertising module

Hello Everyone,

I was wondering if there is any easy "ready configuration" way to directly set BLE advertising and connection interval with adding some config to the prj.conf or Kconfig file. Here some of the configurations I'm using for my BLE peripheral device and its currently consuming too much power than I expected because even default slow interval is also to fast for my case.

# ============= Bluetooth Configuration =============
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_DEVICE_NAME_MAX=32
CONFIG_BT_DEVICE_NAME_GATT_WRITABLE=n

# BLE Security
CONFIG_BT_SMP=y
CONFIG_BT_SETTINGS=y
CONFIG_BT_PRIVACY=n

# ============= Common Application Framework (CAF) =============
CONFIG_CAF=y

# CAF BLE State Module
CONFIG_CAF_BLE_STATE=y
CONFIG_CAF_BLE_STATE_SECURITY_REQ=n
CONFIG_CAF_BLE_STATE_MAX_LOCAL_ID_BONDS=1
CONFIG_CAF_BLE_COMMON_EVENTS=y

# CAF BLE Advertising Module
CONFIG_CAF_BLE_ADV=y
CONFIG_CAF_BLE_ADV_DIRECT_ADV=n
CONFIG_CAF_BLE_ADV_FAST_ADV=y
CONFIG_CAF_BLE_ADV_FAST_ADV_TIMEOUT=30


I'm aiming to set it to the "max_interval = min_interval = 1000ms" for advertising and "min_interval = 75ms to max_interval = 150ms" for the connection interval. I'm currently using Zephyr RTOS and Nordic SDK NCS version 2.9.0

Thanks for your help in advance.

Best regards,
Semih.

Parents Reply Children
No Data
Related