<?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>Adding DFU service support. Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29038/adding-dfu-service-support-error-4-when-calling-ble_dfu_init</link><description>My application uses the following: 
 
 
 Proximity Profile (including Link Loss Service, Immediate Alert Service, Tx Power Service) 
 
 
 Battery Service 
 
 
 My own custom service with a 128-bit UUID (including 4 characteristics) 
 
 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Jan 2018 06:28:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29038/adding-dfu-service-support-error-4-when-calling-ble_dfu_init" /><item><title>RE: Adding DFU service support. Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/thread/114991?ContentTypeID=1</link><pubDate>Sat, 20 Jan 2018 06:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8500b5ba-9816-4fce-8e4f-63984ed45bbf</guid><dc:creator>IOT-D</dc:creator><description>&lt;p&gt;Thank you mosi ! This helped me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding DFU service support. Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/thread/114990?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 05:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2199dbbb-a7f2-452f-9a2b-a1e45b53fe94</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Hai mosi,&lt;/p&gt;
&lt;p&gt;Have good day. I following your previous question Add BLE DFU service when using Peer Manager?. IF you are complete dfu service in your Proximitty aplication please support.&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: Adding DFU service support. Error 4 when calling ble_dfu_init()</title><link>https://devzone.nordicsemi.com/thread/114989?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 15:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2471152-35de-4be1-86c5-cb24a10cc099</guid><dc:creator>mosi</dc:creator><description>&lt;p&gt;I found an answer. Go to &lt;strong&gt;softdevice_enable_get_default_config()&lt;/strong&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t softdevice_enable_get_default_config(uint8_t central_links_count,
                                              uint8_t periph_links_count,
                                              ble_enable_params_t * p_ble_enable_params)
{
    memset(p_ble_enable_params, 0, sizeof(ble_enable_params_t));
    p_ble_enable_params-&amp;gt;common_enable_params.vs_uuid_count   = 1;
    p_ble_enable_params-&amp;gt;gatts_enable_params.attr_tab_size    = SOFTDEVICE_GATTS_ATTR_TAB_SIZE;
    p_ble_enable_params-&amp;gt;gatts_enable_params.service_changed  = SOFTDEVICE_GATTS_SRV_CHANGED;
    p_ble_enable_params-&amp;gt;gap_enable_params.periph_conn_count  = periph_links_count;
    p_ble_enable_params-&amp;gt;gap_enable_params.central_conn_count = central_links_count;
    if (p_ble_enable_params-&amp;gt;gap_enable_params.central_conn_count != 0)
    {
        p_ble_enable_params-&amp;gt;gap_enable_params.central_sec_count  = SOFTDEVICE_CENTRAL_SEC_COUNT;
    }

    return NRF_SUCCESS;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Change:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_ble_enable_params-&amp;gt;common_enable_params.vs_uuid_count   = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_ble_enable_params-&amp;gt;common_enable_params.vs_uuid_count   = 2;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will allow for two Vendor Specific UUID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>