- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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