This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Slow / fast advertising

Hi,

I have a question regarding fast/slow advertising

I'd like to advertise for 180s using a 100ms interval, then switch to a 1s interval, preferably for ever. I set advertise options as shown in the image.

When I test the software I find that advertising stops after 3 seconds. Why?

Thank you for helping me out on this M

image description

Parents
  • Hello Kristin,

    thank you for your help. I have found the following (refer to file ble_advertising.c, function ble_advertising_start, line 360):

    if (m_adv_mode_current != BLE_ADV_MODE_IDLE) { err_code = sd_ble_gap_adv_start(&adv_params); VERIFY_SUCCESS(err_code); }

    --> err_code is set to 7 (NRF_ERROR_INVALID_PARAM).

    adv_params are set as follows: interval 1600 timeout 1000

    By the way, we're using SDK_11 and softdevice 2.01.

    Thank you again for your help!

Reply
  • Hello Kristin,

    thank you for your help. I have found the following (refer to file ble_advertising.c, function ble_advertising_start, line 360):

    if (m_adv_mode_current != BLE_ADV_MODE_IDLE) { err_code = sd_ble_gap_adv_start(&adv_params); VERIFY_SUCCESS(err_code); }

    --> err_code is set to 7 (NRF_ERROR_INVALID_PARAM).

    adv_params are set as follows: interval 1600 timeout 1000

    By the way, we're using SDK_11 and softdevice 2.01.

    Thank you again for your help!

Children
No Data
Related