This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

advertising interval

Hi. I'm using nRF52832, SDK13.0.0 as peripheral.

I set the values as below to advertise every 400msec.

......

adv_params.type = BLE_GAP_ADV_TYPE_ADV_IND;

adv_params.p_peer_addr = NULL;

adv_params.fp = BLE_GAP_ADV_FP_ANY;

adv_params.interval = 640;

adv_params.timeout = 0;

......

p_encoded_advdata[0] = 0x02; p_encoded_advdata[1] = BLE_GAP_AD_TYPE_FLAGS; p_encoded_advdata[2] = 0x06;

......

p_encoded_rspdata[0] = 0x07; p_encoded_rspdata[1] = 0x08;

......

sd_ble_gap_adv_data_set(p_encoded_advdata, len_advdata, p_encoded_rspdata, len_rspdata);

err_code = sd_ble_gap_adv_start(&adv_params, BLE_CONN_CFG_TAG_DEFAULT);

APP_ERROR_CHECK(err_code);

But as i've test, the interval is not 400msec exactly.

Normally it's 400msec around. But sometimes it's not advertising during few seconds(4~5seconds). At that time, central cannot connect my device. I don't know why.

I need your help.

Related