<?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>What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58432/what-is-a-typical-size-for-adv_data</link><description>I have modified the template app to advertise several custom UUIDs and one SIG UUID. All UUIDs are being sent as a Scan Response. I have selected expanded data size. S140 is the Softdevice 
 When I reach the call to sb_ble_gap_adv_set_configure, I receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Mar 2020 18:50:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58432/what-is-a-typical-size-for-adv_data" /><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/238134?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 18:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a5f6a38-3c6d-4317-a9fd-2899def9f7bb</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;Well, not sure what was wrong the first time I tired just using expanded data for the advert packer rather than the sr packet, but I made it work.&lt;/p&gt;
&lt;p&gt;So, I still don&amp;#39;t know how to suppress the advert packet if using expanded data in the sr packet, but I don&amp;#39;t need to know that now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/237860?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 16:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aef939c4-4021-4c83-8c7a-d4f8fd0bbdc4</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;So I did an experiment to see if I could keep everything in the adv data and select expanded size and see if it applied to that, but I get an NRF_ERROR_NO_MEM when I try to call sd_ble_uuid_vs_add on the first of them. &amp;nbsp;So not quite sure if this shows that approach will not work or if there is some other condition I am missing here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/237835?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 15:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aebf5c05-539e-4867-b6fd-d11a4bdb8a3d</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;It occurs to me to say what I intend to be doing; &amp;nbsp;I have several custom service UUIDs. &amp;nbsp;These are of course too large for the adv packet. &amp;nbsp;I want to send the data using an expanded response packet during the scan response. &amp;nbsp;I am told that I have to not send the adv packet if I am going to use expanded data in the scan response, so I have moved all services to the scan response packet and am attempting to suppress the advertising data.&lt;/p&gt;
&lt;p&gt;However, any strategy which will send out all of my service data without running out of space is equally acceptable.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/237779?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 13:39:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcb3428f-f861-4641-ade4-39e3c6f95bcb</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;**@brief Function for initializing the Advertising functionality.
 */

static void advertising_init(void)
{
    ret_code_t             err_code;
    ble_advertising_init_t init;

    memset(&amp;amp;init, 0, sizeof(init));

    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.name_type                = BLE_ADVDATA_FULL_NAME;     
    init.srdata.include_appearance       = true;
    init.srdata.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.advdata.uuids_complete.uuid_cnt  = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
//    init.advdata.uuids_complete.p_uuids   = m_adv_uuids;
    init.advdata.uuids_complete.uuid_cnt = 0;
    init.advdata.uuids_complete.p_uuids  = NULL;

    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.config.ble_adv_primary_phy      = BLE_GAP_PHY_1MBPS;
    init.config.ble_adv_secondary_phy    = BLE_GAP_PHY_2MBPS;
    init.config.ble_adv_extended_enabled = true;

    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;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s it above. &amp;nbsp;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/237337?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 08:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92ac6d8b-cb35-4393-93a6-3306a5f1f203</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;I see.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you upload your code so I can take a look? If not your entire main.c, the advertising init would be useful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/237200?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 15:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35887b7c-beea-4079-bd47-c7cc641b655b</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;I did look at this. &amp;nbsp;Thing is; &amp;nbsp;I do not have anything in the advdata fields (cnt == 0, address == NULL) already. &amp;nbsp;Is there something additional I need to do to DE-select the use of advdata?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/237178?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 14:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0aaf67f-d1cd-47ff-b7bf-63931b288c93</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you could look at this previous post:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38982/scan_rsp-in-extended-advertisement"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38982/scan_rsp-in-extended-advertisement&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a typical size for adv_data?</title><link>https://devzone.nordicsemi.com/thread/236982?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 18:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db451d3e-0719-4c73-903a-36537998c5ba</guid><dc:creator>BenBurch</dc:creator><description>&lt;p&gt;When I build the template and look at the same call, the value is a much, much more reasonable 0x1d but that is only the default services.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>