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

Problem with slow advertising nRF51 SDK9

I use SDK 9 and nrF51 in the advertising mode. I want to advertise each 1s packets. First, I call function

set_adv_params(&m_adv_params);

where I

static void set_adv_params(ble_gap_adv_params_t * adv_params)

{ memset(adv_params, 0, sizeof(ble_gap_adv_params_t));

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	    = 1600;
adv_params->timeout     	= 180;

}

Than

sd_ble_gap_adv_start(&m_adv_params);

It is work. But I see very strange behavior. When I insert battery in my deevice, after few time I see that adv packet send and central received it. Repeat, first start and advertise is fast. When I out of range from ble device, central loss adv packet and disconnect it. After that I again close peripherial to central and central again received adv packets but with some delay (5-8 seconds). I mean same program started on the peripherial without reset. What reason of this strange behavior?

Related