Hello,
I am using MDBT42Q nrf52832 module, SDK 15.3.0 in Segger Studio IDE,on Win10.
I am configuring my device to advertise for 20 min, 5 min fast advertising and 15 min slow Advertising but after 10 min controller is getting stuck.
I have tried with 15 min advertising , in which 5 min is fast advertising and 10 min slow advertising at that time I am not facing any issue.
Below is the advertising initialization function:
static void advertising_init(void) { ret_code_t err_code; ble_advertising_init_t init; memset(&init, 0, sizeof(init)); init.advdata.name_type = BLE_ADVDATA_FULL_NAME; init.advdata.include_appearance = false; init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE; init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]); init.advdata.uuids_complete.p_uuids = m_adv_uuids; #if 1 init.config.ble_adv_fast_enabled = true; init.config.ble_adv_fast_interval = APP_FAST_ADV_INTERVAL; init.config.ble_adv_fast_timeout = APP_FAST_ADV_DURATION; init.config.ble_adv_slow_enabled = true; init.config.ble_adv_slow_interval = APP_SLOW_ADV_INTERVAL; init.config.ble_adv_slow_timeout = APP_SLOW_ADV_DURATION; #endif init.evt_handler = on_adv_evt; err_code = ble_advertising_init(&m_advertising, &init); APP_ERROR_CHECK(err_code); ble_advertising_conn_cfg_tag_set(&m_advertising, APP_BLE_CONN_CFG_TAG); }
Here are the macro value for duration:
#define APP_FAST_ADV_INTERVAL 480 /*< The advertising interval (in units of 0.625 ms. This value corresponds to 300 ms). / #define APP_SLOW_ADV_INTERVAL 1600 /*< The advertising interval (in units of 0.625 ms. This value corresponds to 1000 ms). / #define APP_FAST_ADV_DURATION 30000 /*< The advertising duration (300 seconds) in units of 10 milliseconds. / #define APP_SLOW_ADV_DURATION 90000 /*< The advertising duration (900 seconds) in units of 10 milliseconds. /
Kindly help me out in figuring the issue.
Regards,
Urvisha