<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>periodic advertisement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14218/periodic-advertisement</link><description>hello there can i periodically advertisement with random data??</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2016 12:46:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14218/periodic-advertisement" /><item><title>RE: periodic advertisement</title><link>https://devzone.nordicsemi.com/thread/54309?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 12:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fc1763b-48ae-4a04-a29d-353b4197bb98</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;but i am not getting scan response as advertisement packet. can you tell me what is problem??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: periodic advertisement</title><link>https://devzone.nordicsemi.com/thread/54308?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 12:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a1748f-b1cf-43b3-9df6-8df47df9cb5a</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;i write function like that&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void advertising_init(void)
{
    uint32_t      err_code;
    ble_advdata_t advdata;
    ble_advdata_t scanrsp;
uint8_t a;
    memset(&amp;amp;advdata, 0, sizeof(advdata));
    advdata.name_type          = BLE_ADVDATA_SHORT_NAME;
	advdata.short_name_len          = 2; 
    advdata.include_appearance = false;
    advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
	ble_advdata_manuf_data_t        manuf_data;
	uint8_t x1,x,x2,x3,x4,x5,y,y1,y2,y3,y4,y5,z,z1,z2,z3,z4,z5,z6,z7;
	x1=0x50;
	x =0x30;
	y=0x20;
	y1=0x21;
	z1 =0x33;
	z=0x35;
	x2=0x50;
	x3 =0x30;
	y2=0x20;
	y3=0x21;
	z2 =0x33;
	z3=0x35;
		x4=0x50;
	x5 =0x30;
	y4=0x20;
	y5=0x21;
	z4 =0x33;
	z5=0x35;
		z6 =0x33;
	z7=0x35;
	uint8_t r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20;
uint8_t data[20] ={x,x1,x2,x3,x4,x5,y,y1,y2,y3,y4,y5,z,z1,z2,z3,z4,z5,z6,z7};   
   manuf_data.company_identifier       = 0x0059; // Nordics company ID
    manuf_data.data.p_data              = data;     
    manuf_data.data.size                = sizeof(data);
  
    advdata.p_manuf_specific_data   = &amp;amp;manuf_data;  
	
	
	    ble_advdata_manuf_data_t                manuf_data_response;
    uint8_t                                 data_response[] = &amp;quot;s&amp;quot;; // Remember there is a 0 terminator at the end of string
    manuf_data_response.company_identifier       = 0x0059;               
    manuf_data_response.data.p_data              = data_response;        
    manuf_data_response.data.size                = sizeof(data_response);
    memset(&amp;amp;scanrsp, 0, sizeof(scanrsp));
	  scanrsp.name_type               = BLE_ADVDATA_NO_NAME; 
	
    scanrsp.p_manuf_specific_data   = &amp;amp;manuf_data_response;

    ble_adv_modes_config_t options = {0};
    options.ble_adv_fast_enabled  = BLE_ADV_FAST_ENABLED;
    options.ble_adv_fast_interval = APP_ADV_INTERVAL;
    options.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;

		

    err_code = ble_advertising_init(&amp;amp;advdata, &amp;amp;scanrsp, &amp;amp;options, on_adv_evt, NULL);
	
		err_code = ble_advdata_set(&amp;amp;advdata,&amp;amp;scanrsp);
    APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: periodic advertisement</title><link>https://devzone.nordicsemi.com/thread/54307?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 07:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84342b8c-cce7-4fe7-b920-5eee7d171201</guid><dc:creator>Quinn</dc:creator><description>&lt;p&gt;You want manuf_data.data.p_data to random data, right?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;advdata, uint8_t data[20] is declared static and global.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;in while loop, you change any value in data[20].&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;the end, you call ble_advdata_set(&amp;amp;advdata, NULL);&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: periodic advertisement</title><link>https://devzone.nordicsemi.com/thread/54306?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 07:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6fc05ba-0926-4866-b0c7-aa6ad5c02dbe</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;i can&amp;#39;t understand what  are you saying.
my advertisement function is like&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void advertising_init(void)
{
    uint32_t      err_code;

    ble_advdata_t advdata;
    ble_advdata_t scanrsp;

    // Build advertising data struct to pass into @ref ble_advertising_init.
    memset(&amp;amp;advdata, 0, sizeof(advdata));
    advdata.name_type          = BLE_ADVDATA_SHORT_NAME;
	advdata.short_name_len          = 1; 
    advdata.include_appearance = false;
    advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
	//ble_uuid_t          adv_uuids[] = {{0x1234, BLE_UUID_TYPE_BLE}};
	ble_advdata_manuf_data_t        manuf_data;
	uint8_t x1,x,x2,x3,x4,x5,y,y1,y2,y3,y4,y5,z,z1,z2,z3,z4,z5,z6,z7;
	x1=0x50;
	x =0x30;
	y=0x20;
	y1=0x21;
	z1 =0x33;
	z=0x35;
	x2=0x50;
	x3 =0x30;
	y2=0x20;
	y3=0x21;
	z2 =0x33;
	z3=0x35;
		x4=0x50;
	x5 =0x30;
	y4=0x20;
	y5=0x21;
	z4 =0x33;
	z5=0x35;
		z6 =0x33;
	z7=0x35;
	uint8_t r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20;
	//HTU21D_Temperature1(&amp;amp;r1,&amp;amp;r2,&amp;amp;r3,&amp;amp;r4,&amp;amp;r5,&amp;amp;r6,&amp;amp;r7,&amp;amp;r8,&amp;amp;r9,&amp;amp;r10,&amp;amp;r11,&amp;amp;r12,&amp;amp;r13,&amp;amp;r14,&amp;amp;r15,&amp;amp;r16,&amp;amp;r17,&amp;amp;r18,&amp;amp;r19,&amp;amp;r20);
//	  uint8_t data[19]                      = {r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19}; // Our data to adverise
uint8_t data[20] ={x,x1,x2,x3,x4,x5,y,y1,y2,y3,y4,y5,z,z1,z2,z3,z4,z5,z6,z7};   
//	uint8_t data[20] ={x,x1,y,y1,z,z1,z2,z3,z4};   
				manuf_data.company_identifier       = 0x0059; // Nordics company ID
    manuf_data.data.p_data              = data;     
    manuf_data.data.size                = sizeof(data);
   // advdata.flags                   = flags;                                    // Set some flags. This is a topic for another tutorial
    //advdata.uuids_complete.uuid_cnt = sizeof(adv_uuids) / sizeof(adv_uuids[0]); // Create a list of UUIDs. This is a topic for another tutorial
    //advdata.uuids_complete.p_uuids  = adv_uuids;                                // Create a list of UUIDs. This is a topic for another tutorial
    advdata.p_manuf_specific_data   = &amp;amp;manuf_data;  
	
	
	
    memset(&amp;amp;scanrsp, 0, sizeof(scanrsp));
    scanrsp.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    scanrsp.uuids_complete.p_uuids  = m_adv_uuids;

    ble_adv_modes_config_t options = {0};
    options.ble_adv_fast_enabled  = BLE_ADV_FAST_ENABLED;
    options.ble_adv_fast_interval = APP_ADV_INTERVAL;
    options.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;

    err_code = ble_advertising_init(&amp;amp;advdata, &amp;amp;scanrsp, &amp;amp;options, on_adv_evt, NULL);
    APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: periodic advertisement</title><link>https://devzone.nordicsemi.com/thread/54305?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 07:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b963ef4-57d5-4b0e-8257-3f75d48f81c2</guid><dc:creator>Quinn</dc:creator><description>&lt;p&gt;You change value in advdata and use this method to update: ble_advdata_set(&amp;amp;advdata, NULL);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: periodic advertisement</title><link>https://devzone.nordicsemi.com/thread/54304?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 06:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ab1cbbf-034a-4570-a6e2-0832b69c12ae</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;like my one data is AA:AB:AC:AD:AE:AF after 1 second i want to make 11:12:13:14:15:16. then after 1 second i want to make it 21:22:23:24:25:26. can you tell me how to do it??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>