<?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>ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100548/ble-advdata-set-deprecation-problem</link><description>SDK:17.1.0 application: ble_app_uart(+ble_app_buttonless dfu service) bootloader:secure bootloader pca10040e_s112_ble We are currently working on porting the code from SDK11 to SDK17, and then we found that the function ble_advdata_set has been deprecated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jun 2023 06:47:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100548/ble-advdata-set-deprecation-problem" /><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430352?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 06:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4869f0f8-15a9-406d-83d7-0f92bddf08e1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This explains why you have been getting the size error. I just assumed you were advertising with a single UUID. With legacy advertising, you can include up to 31 bytes in the advertisement and scan response packets. Therefore, you either have to place the manufacturer field in the advertisement packet or consider including fewer UUIDs in the scan response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430341?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 06:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb004af0-7eaf-4a67-a04c-eabad2fc395e</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;hi Vidar Berg.&lt;br /&gt;I tried to block those two pieces of code.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; It is found that there is no data_size overflow problem,&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-3"&gt;&lt;span&gt;And I tested that the uuid takes 26 bytes, so is there any way to broadcast more data in the app?&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-4"&gt;&lt;span&gt; Same as herreraVanHalen below.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686550154126v1.jpeg" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430318?ContentTypeID=1</link><pubDate>Sat, 10 Jun 2023 19:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a519e76-0582-4a4c-936b-4eca68fd5a0f</guid><dc:creator>HerreraVanHalen </dc:creator><description>&lt;p&gt;Hello everyone!&lt;/p&gt;
&lt;p&gt;I have the same problem with&amp;nbsp;&lt;a title="ble_advertising_advdata_update" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__ble__advertising.html?cp=9_1_6_2_0_10#ga99dab70061ce04aea98bf226dc0c989f"&gt;ble_advertising_advdata_update&lt;/a&gt;&lt;span&gt;() function,&amp;nbsp;I comment the 2 lines that you suggest:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;//scanrsp.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
//scanrsp.uuids_complete.p_uuids = m_adv_uuids;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;With this modification, the project works, and the manufacturer specific data is updated, but I need &lt;span&gt;broadcast&amp;nbsp;&lt;/span&gt;parameters (device name,UUID service) to filter devices in my app (Central).&lt;/p&gt;
&lt;p&gt;How can I do that?&lt;/p&gt;
&lt;p&gt;thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430224?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 12:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e02c75a-e8ce-43d4-974d-6e3a7a4c5ca8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;So p_offset&amp;nbsp;was 26? The question then is what is taking up 26 bytes. The scan response should only include the UUID and manufacturer field.&amp;nbsp;As a test, can you try to comment these 2 lines in your update function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;scanrsp.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
scanrsp.uuids_complete.p_uuids = m_adv_uuids;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430176?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 09:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa2cac8b-0f35-458d-bf29-5262d79f6e54</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;data_size = 0x06;&lt;br /&gt;max_size = 0x1F.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686304440455v2.png" alt=" " /&gt;&lt;br /&gt;I calculated that the left side is 0X20 which exceeds the max size&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430172?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 09:48:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e8e757-3323-42db-ac6c-bea1b88dc3ab</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. Now, can you check what the value of &amp;#39;data_size&amp;#39; and &amp;#39;max_size&amp;#39; is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430171?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 09:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63fed929-6c4b-4098-8572-a90c0dbccd27</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686303927651v2.png" alt=" " /&gt;&lt;br /&gt;hi vidar berg.&lt;br /&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;I&amp;#39;m sorry I didn&amp;#39;t get what you meant.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; My final debugging result is that an error occurred here.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430155?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 09:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701f7e61-0430-4b7e-8790-2293b3c43755</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You need to place the breakpoint(s) inside the&amp;nbsp;&lt;span&gt;ble_advertising_advdata_update() function to figure out where the error was raised.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430153?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 09:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c5d8345-77d5-418a-afdd-5a0a458a3324</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;hi.i didn&amp;#39;t change your code,i debug and use breakpoints.0x0c means&amp;nbsp;&lt;span&gt;NRF_ERROR_DATA_SIZE&amp;nbsp;,right?&lt;/span&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686302150084v3.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p class="src grammarSection" data-group="1-1"&gt;Eventually he will jump to the app error fault handler&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686302133781v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430139?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 08:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17436a79-beb3-4705-b8c5-3c6fcc9167d8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please use breakpoints in&amp;nbsp;ble_advertising_advdata_update() to find out if&amp;nbsp;&lt;span&gt;NRF_ERROR_DATA_SIZE is returned when encoding the advertising or the scan response payload. Also, did you make any changes to the code I made?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430132?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 07:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a0007a0-f43b-449a-a6ef-99bd110eea1a</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;hi&amp;nbsp; vidar berg.&lt;/p&gt;
&lt;p class="_tgt transPara grammarSection"&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;I turned off the crc check and went to debug.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; err_code = ble_advertising_advdata_update(&amp;amp;m_advertising, &amp;amp;adv, &amp;amp;scanrsp); &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="_tgt transPara grammarSection"&gt;&lt;span class="transSent" data-group="1-0"&gt;&lt;span&gt;APP_ERROR_CHECK(err_code);&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="1-1"&gt;&lt;span&gt; &lt;br /&gt;With the breakpoint hit, err_code returns the NRF_ERROR_DATA_SIZE error&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430118?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 06:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d8a0528-6780-45f2-9602-d44a67c31389</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The settings.hex&amp;nbsp;file is only for the inital programming of the device. The bootloader&amp;nbsp;will take care of updating the settings page when updating through DFU.&lt;/p&gt;
&lt;p&gt;To disable boot validation, you can&amp;nbsp;include &amp;#39;&amp;#39;--app-boot-validation NO_VALIDATION&amp;quot;&amp;nbsp;in your nrfutil settings generate command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430116?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 06:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373c2f8e-eeb7-4d6b-9ce2-a285cabf2ecd</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;#39;The settings page includes the expected CRC value of the application.&amp;#39;&lt;br /&gt;&lt;span class="transSent" data-group="0-0"&gt;Can this be turned off? If yes, how should it be turned off? After it is turned off, does setting.hex need not be updated with application update?&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt; &lt;br /&gt;After doing this, I test the broadcast data to see if it is normal.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430115?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 06:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c008cfcf-c114-473e-8f4d-e07993f5473d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, when the bootloader fails to boot the application, it usually means that the bootloader settings page is either not programmed or programmed with incorrect settings. The settings page includes the expected CRC value of the application, which is used for boot validation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430111?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 06:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3ba90d0-9a32-46d0-b954-15f87239be87</guid><dc:creator>kenyon</dc:creator><description>&lt;div class="text-translate-top hasSelector"&gt;
&lt;div class="domain-selector-container"&gt;
&lt;div class="domainSelector" data-v-0c73f603=""&gt;
&lt;div class="dialog-domain-container" data-v-0c73f603=""&gt;
&lt;div class="domain-text color_text_1" data-v-0c73f603=""&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="termModule"&gt;
&lt;div class="termSelector" data-v-e51ff5a0=""&gt;
&lt;div class="termButtonContainer" data-v-e51ff5a0=""&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="target hasSelector"&gt;
&lt;div class="displayArea"&gt;
&lt;div id="fanyiContenteditable" class="result color_text_1"&gt;
&lt;p class="_tgt transPara grammarSection"&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;Oh yes, I haven&amp;#39;t changed the bootloader part in a long time.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; It&amp;#39;s just that setting.hex is updated as the application is updated.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-2"&gt;&lt;span&gt; Does this operation have anything to do with my failure to enter the application?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430106?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 06:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8194fd-8b28-4c7e-8777-8a8ac8abc7df</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This indicates that the&amp;nbsp;&lt;a title="Boot validation" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_secure_boot.html?cp=9_1_3_5_0_8_1#secure_boot_validation"&gt;Boot validation&lt;/a&gt;&amp;nbsp;of the application failed, or have you updated the Bootloader settings page so it matches the new application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/430088?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 02:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a65183-adfc-45e5-8078-1bb7c40ac6c9</guid><dc:creator>kenyon</dc:creator><description>&lt;div id="fanyiContenteditable" class="result color_text_1"&gt;
&lt;p class="_tgt transPara grammarSection"&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;According to my debugging situation on keil5, it stays in the bootloader&amp;nbsp;and&amp;nbsp;not run into the application, set the breakpoint and did not run to it.(ㄒoㄒ)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429997?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 12:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa65c57d-e65a-4875-b3c4-02266fe1b3e8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Could it be that the APP_ERROR_CHECK() check at the end is failing? Will your app reset into bootloader dfu mode if an assert is raised?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429995?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 12:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:498b5565-0738-42d7-b171-91c2961d246c</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;It&amp;#39;s very strange.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; After I update, when&amp;nbsp;it runs to LL_BLE_SetAdManu, it will enter the bootloader mode！&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429984?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 12:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b61ca84-8d69-4a0e-ac26-3abb93995375</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;LL_BLE_SetAdManu() will replace your original advertisement payload so it only includes the manufacturer field in the scan response.If you want to keep the original data, then you have to populate the&amp;nbsp;ble_advdata_t fields again with the same values used in advertising_init()&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void LL_BLE_SetAdManu(unsigned short manu)
{
    uint32_t err_code;
    static unsigned char spec_data[4];

    ble_advdata_manuf_data_t manufacturer_data;

    ble_advdata_t scanrsp;
    ble_advdata_t adv;

    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;

    memset(&amp;amp;adv, 0, sizeof(adv));

    adv.name_type = BLE_ADVDATA_FULL_NAME;
    adv.include_appearance = true;
    adv.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

    // 4 bytes version info
    spec_data[0] = 0;
    spec_data[1] = 1;
    spec_data[2] = (unsigned char) ((0x3f15 &amp;amp; 0xFF00) &amp;gt;&amp;gt; 8);
    spec_data[3] = (unsigned char) ((0x3f15 &amp;amp; 0x00FF) &amp;gt;&amp;gt; 0);

    manufacturer_data.company_identifier = manu;
    manufacturer_data.data.p_data = spec_data;
    manufacturer_data.data.size   = sizeof(spec_data);
			
    scanrsp.p_manuf_specific_data = &amp;amp;manufacturer_data;
 
    //ble_advdata_set(0, &amp;amp;scanrsp); 
    err_code = ble_advertising_advdata_update(&amp;amp;m_advertising, &amp;amp;adv, &amp;amp;scanrsp);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429978?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 12:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4c83ea1-4b21-43cf-9acd-884695856a00</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;hi,Vidar Berg.&lt;br /&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;I modified LL_BLE_MANU according to your instructions.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; After the changes, I can see the updated manu_data on ios.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-2"&gt;&lt;span&gt; But the service information was missing from the broadcast data.&lt;br /&gt;Also, I couldn&amp;#39;t find the device on nrf connect on Android. This is a very strange phenomenon.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686225569451v1.jpeg" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686225582965v2.jpeg" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429970?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 11:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:323a6192-0f17-4c9d-b9d8-39cced702a7e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I guess&amp;nbsp;p_manuf_specific_data is a NULL pointer since the updated manuf. field is not encoded into the adv. payload and you don&amp;#39;t get any errors.&lt;/p&gt;
&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void LL_BLE_SetAdManu(unsigned short manu)
{
    static unsigned char spec_data[4];
    
    ble_advdata_manuf_data_t manufacturer_data;

    // 4 bytes version info
    spec_data[0] = 0;
    spec_data[1] = 1;
    spec_data[2] = (unsigned char) ((0x3f15 &amp;amp; 0xFF00) &amp;gt;&amp;gt; 8);
    spec_data[3] = (unsigned char) ((0x3f15 &amp;amp; 0x00FF) &amp;gt;&amp;gt; 0);
		
    manufacturer_data.company_identifier = manu;
    manufacturer_data.data.p_data = spec_data;
    manufacturer_data.data.size   = sizeof(spec_data);
			
    scanrsp.p_manuf_specific_data = &amp;amp;manufacturer_data;
    
	err_code1 = ble_advertising_advdata_update(&amp;amp;m_advertising, NULL, &amp;amp;scanrsp);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429941?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 10:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29f37ee3-0f5d-4646-bb00-9d130bca3249</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;hi Vidar Berg.&lt;br /&gt;i tried to use the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="ble_advertising_advdata_update" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__ble__advertising.html?cp=9_1_6_2_0_10#ga99dab70061ce04aea98bf226dc0c989f"&gt;ble_advertising_advdata_update&lt;/a&gt;&lt;span&gt;() .&lt;/span&gt;But it doesn&amp;#39;t seem to work that well.&lt;br /&gt;&lt;span&gt;When I use this function in my program, I don&amp;#39;t see any broadcast messages in nrf connect.The difference can be seen in the scanner.It looks as if the broadcast parameters were turned off directly after the adv parameter was updated.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686217740945v1.jpeg" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1686217751666v2.jpeg" alt=" " /&gt;&lt;br /&gt;i&amp;nbsp;&lt;span&gt;simplified the flow of the code so that you can help me analyze the problem more easily.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_advdata_t advdata;
ble_advdata_t scanrsp;
ble_advdata_manuf_data_t    m_manuf_specific_data;

int main(void)
{
    advertising_init();
    advertising_start();
    
    while(1)
    {
        if(button_press){
            LL_BLE_SetAdManu(0x0101);
        }
    }
}
static unsigned char spec_data[4 + BLE_DEVICE_ADDR_LEN]; // 4 bytes version info, BLE_DEVICE_ADDR_LEN bytes ID of paired app
/**@brief Function for starting advertising.
 */
void advertising_start(void)
{
    uint32_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);
    APP_ERROR_CHECK(err_code);
}

uint32_t   err_code1;
/**@brief Function for updating advertising.
 */
void LL_BLE_SetAdManu(unsigned short manu)
{
    static unsigned char spec_data[4];

    // 4 bytes version info
    spec_data[0] = 0;
    spec_data[1] = 1;
    spec_data[2] = (unsigned char) ((0x3f15 &amp;amp; 0xFF00) &amp;gt;&amp;gt; 8);
    spec_data[3] = (unsigned char) ((0x3f15 &amp;amp; 0x00FF) &amp;gt;&amp;gt; 0);
		
	scanrsp.p_manuf_specific_data-&amp;gt;data.p_data = spec_data;		
	scanrsp.p_manuf_specific_data-&amp;gt;data.size = sizeof(spec_data);		
    scanrsp.p_manuf_specific_data-&amp;gt;company_identifier = manu;
    //ble_advdata_set(0, &amp;amp;scanrsp); 
	err_code1 = ble_advertising_advdata_update(&amp;amp;m_advertising, NULL, &amp;amp;scanrsp);
}

/**@brief Function for initializing the Advertising functionality.
 */
static void advertising_init(void)
{
    uint32_t               err_code;
    ble_advertising_init_t init;

    memset(&amp;amp;init, 0, sizeof(init));
	
    m_manuf_specific_data.company_identifier = 0x0000;
	
	init.srdata.p_manuf_specific_data = &amp;amp;m_manuf_specific_data;
		
    init.advdata.name_type          = BLE_ADVDATA_FULL_NAME;
    init.advdata.include_appearance = true;
    init.advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

    init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    init.srdata.uuids_complete.p_uuids  = m_adv_uuids;

    init.config.ble_adv_fast_enabled  = true;
    init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
    init.config.ble_adv_fast_timeout  = APP_ADV_DURATION;
    init.evt_handler = on_adv_evt;

    err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);
    APP_ERROR_CHECK(err_code);

    ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div id="fanyiContenteditable" class="result color_text_1"&gt;
&lt;p class="_tgt transPara grammarSection"&gt;&lt;span class="transSent highlight" data-group="0-0"&gt;&lt;span&gt;I read err_code1 = ble_advertising_advdata_update(&amp;amp;m_advertising, NULL, &amp;amp;scanrsp);&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; The err_code1 value returned by the function is 0x0000.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-2"&gt;&lt;span&gt; That means the update was successful, right?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;So can you help me figure out what went wrong？&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Thanks a lot！&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429747?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 11:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4d6e467-b07a-4530-8fdf-9db8759d46a4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The Softdevice advertising API was overhauled in v6.x to accommodate the new advertisement features introduced in Bluetooth 5. The easiest way to update the adv. payload now is to use the&amp;nbsp;&lt;a title="ble_advertising_advdata_update" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__ble__advertising.html?cp=9_1_6_2_0_10#ga99dab70061ce04aea98bf226dc0c989f"&gt;ble_advertising_advdata_update&lt;/a&gt;() function from the&amp;nbsp;&lt;a title="Advertising Module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_ble_advertising.html?cp=9_1_3_2_1"&gt;Advertising Module&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may also want to have a look at this tutorial:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/how-to-update-advertising-data-dynamically-using-ble-advertising-library"&gt;How to update advertising data dynamically using BLE Advertising library&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble advdata set deprecation problem</title><link>https://devzone.nordicsemi.com/thread/429667?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 03:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeaff3ca-9d62-48bc-8343-65c793555103</guid><dc:creator>kenyon</dc:creator><description>&lt;p&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;In particular, our device needs to update the adv data every time it connects to the app.&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; Therefore, this function ble_advdata_set should be used frequently.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>