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

Extra scan response data field

Hello,

I am using sdk12.2.2 and nrf52. I am including scan response data in my packet. But every time I am getting extra fields in my raw data as seen in nrf connect app. Screen shot is Screenshot_20171116-194022.png In this screen shot I need to remove last field which is repeating(10 0x09 0x553146----- ).

My advertising data formation code is as below.

	//!Build advertising data struct to pass into @ref ble_advertising_init.
	memset(&advdata, 0, sizeof(advdata));
	advdata.name_type               = BLE_ADVDATA_FULL_NAME;
	advdata.include_appearance      = false;
	advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
	advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
	advdata.uuids_complete.p_uuids  = m_adv_uuids;
	//!Configuration of manufacturer specific data
	adv_manuf_data_data[0] = 0x52;
	adv_manuf_data_data[1] = 0x42;
	adv_manuf_data_data[2] = 0x01;
	adv_manuf_data_data[3] = 0x00;
	adv_manuf_data_data[4] = 0x01;													 
	adv_manuf_data_data[5] = treal;
	adv_manuf_data_data[6] = tpoint;
	adv_manuf_data_data[7] = 0x64;
	adv_manuf_data_data[8] = data;
	adv_manuf_data_array.p_data = adv_manuf_data_data;
	adv_manuf_data_array.size = 9;
	adv_manuf_data.company_identifier = 0x4252;
	adv_manuf_data.data = adv_manuf_data_array;
	advdata.p_manuf_specific_data = &adv_manuf_data;
	memset(&scanrsp, 0, sizeof(scanrsp));
	scanrsp.name_type             = BLE_ADVDATA_FULL_NAME;						
	memset(&options, 0, sizeof(options));
	options.ble_adv_fast_enabled  = true;
	options.ble_adv_fast_interval = APP_ADV_INTERVAL;
	options.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;
	if(INT)
	{
		options.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_PIN_SECONDS;
		INT = false;
	}	
	err_code = ble_advertising_init(&advdata,&scanrsp, &options, on_adv_evt, NULL);
	APP_ERROR_CHECK(err_code);

Thanks

Related