Regarding High / Low Duty connection duration

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NeDh_4602711
Level 5
Level 5
5 solutions authored First solution authored 50 replies posted

Hello,

I have started BLE advertising but it seems it was automatically going in sleep mode after 1.5 minutes after checking all values I found below code in BT_CFG.c file.

/* Connection scan configuration */

        .high_duty_conn_scan_interval    = WICED_BT_CFG_DEFAULT_HIGH_DUTY_CONN_SCAN_INTERVAL,          /**< High duty cycle connection scan interval */

        .high_duty_conn_scan_window      = WICED_BT_CFG_DEFAULT_HIGH_DUTY_CONN_SCAN_WINDOW,            /**< High duty cycle connection scan window */

        .high_duty_conn_duration         = 30,                                                         /**< High duty cycle connection duration in seconds (0 for infinite) */

        .low_duty_conn_scan_interval     = WICED_BT_CFG_DEFAULT_LOW_DUTY_CONN_SCAN_INTERVAL,           /**< Low duty cycle connection scan interval */

        .low_duty_conn_scan_window       = WICED_BT_CFG_DEFAULT_LOW_DUTY_CONN_SCAN_WINDOW,             /**< Low duty cycle connection scan window */

        .low_duty_conn_duration          = 60, 

-----------------------------------------------------------

So I understood high_duty_conn_duration + low_duty_conn_duration  = 90 seconds that is 1.5 minutes.

I have current set both to 0 and BLE is currently remaining active permanantly but I want to understand what this means?

Thanks in advance.

Regards,

Neeraj

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

It is not going into sleep mode (There is low power modes which puts the device into sleep). Here, the device advertisement state changes after the defined duration. The advertisement parameters are set in .ble_advert_cfg element. I think you have mentioned .ble_scan_cfg which is parameters of ble scan.

In app_bt_confic.c, developers can configure Bluetooth core stack parameters defined in the Bluetooth core specification.

You can adjust the these parameter as per the requirement of your application.

Please check https://www.bluetooth.com/specifications/bluetooth-core-specification/  (Low Energy Controller Specification Volume 6)

Thanks,

-Dheeraj

View solution in original post

0 Likes
1 Reply
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

It is not going into sleep mode (There is low power modes which puts the device into sleep). Here, the device advertisement state changes after the defined duration. The advertisement parameters are set in .ble_advert_cfg element. I think you have mentioned .ble_scan_cfg which is parameters of ble scan.

In app_bt_confic.c, developers can configure Bluetooth core stack parameters defined in the Bluetooth core specification.

You can adjust the these parameter as per the requirement of your application.

Please check https://www.bluetooth.com/specifications/bluetooth-core-specification/  (Low Energy Controller Specification Volume 6)

Thanks,

-Dheeraj

0 Likes