<?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>NRF52 db discovery event has all characteristic uuids 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37210/nrf52-db-discovery-event-has-all-characteristic-uuids-0</link><description>when performing db discovering using a peripheral nrf52832 (running sample dfu project) from sdk 13 from a nrf32832 central on sdk 14 I notice that the db discovery event handler has each characteristic UUID of 0. 
 it is not possible to update either</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Aug 2018 08:19:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37210/nrf52-db-discovery-event-has-all-characteristic-uuids-0" /><item><title>RE: NRF52 db discovery event has all characteristic uuids 0</title><link>https://devzone.nordicsemi.com/thread/143313?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 08:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc947184-3707-4c7f-a780-d4a441b26f15</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You&amp;#39;re right, the 2nd parameter is an output. I just assumed it was input argument. Sorry for the confusion.&lt;/p&gt;
&lt;p&gt;I did not manage to reproduce the issues. I used the pre-compiled bootloader hex in sdk 13 and modified the uart central example to discover the DFU service. So I&amp;#39;m not sure what the problem is.&amp;nbsp; Suggest that you do a comparison of your implementation with attached main.c and see if you can spot any relevant differences (verify that we are using same UUIDs etc).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Connected to target&lt;br /&gt;&amp;lt;info&amp;gt; app: 0: uuid: 0002 cccd:0000. value:0010&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: 1: uuid: 0001 cccd:0013. value:0012&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-805fed5965744683acb41cc6a24dd6db/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 db discovery event has all characteristic uuids 0</title><link>https://devzone.nordicsemi.com/thread/143256?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 17:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7e8400-4606-4b80-b455-ef12103b563f</guid><dc:creator>ryan</dc:creator><description>&lt;p&gt;I know that I&amp;#39;m calling&amp;nbsp;ble_db_discovery_start only once... otherwise my output would display &amp;quot;&amp;lt;info&amp;gt; app: uuid vs add returned: 0/0000&amp;quot; more than once, which it does not.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;regarding the uuid type, sd_ble_uuid_vs_add()&amp;#39;s 2nd parameter is and output, storing the uuid type into the unit8_t that is passed by adress on your code&amp;#39;s line 20. so your assignment in line 17 is without impact per the documentation.&amp;nbsp; -- in my implementation, on line 4 i do the exact same thing as your reference so i&amp;#39;m not sure why you&amp;#39;re asking about it... can you elaborate a bit more on your question?&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_uuid_t    dfu_service_uuid = { .uuid    = DFU_SERVICE_UUID_16bit };     
                                                                                 
uint32_t err_code = sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;dfu_service_uuid.type); &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;can you confirm the SDK version of the peripheral you were connecting with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 db discovery event has all characteristic uuids 0</title><link>https://devzone.nordicsemi.com/thread/143193?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 10:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c8511fa-8667-482e-a40f-49f4ee054500</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Noticed that you call ble_db_discovery_start() after ble_db_discovery_evt_register(). Please try to only call&amp;nbsp;ble_db_discovery_start() from the&amp;nbsp;BLE_GAP_EVT_CONNECTED to ensure that the service is discovered once.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t tell from the code snippets you provided, but did you set&amp;nbsp;dfu_service_uuid.type to&amp;nbsp;BLE_UUID_TYPE_BLE? I was unable to replicate this with the code below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void dfu_c_init()
{
    uint32_t      err_code;
    ble_uuid_t    dfu_uuid;
    uint8_t       uuid_type = BLE_UUID_TYPE_VENDOR_BEGIN;
    
    /*Base UUIDs for DFU service characteristics*/
    ble_uuid128_t dfu_base_uuid = 
    {
        {
            0x50, 0xEA, 0xDA, 0x30, 0x88, 0x83, 0xB8, 0x9F,
            0x60, 0x4F, 0x15, 0xF3,  0x00, 0x00, 0xC9, 0x8E
        }
    };


    dfu_uuid.type = BLE_UUID_TYPE_BLE;
    dfu_uuid.uuid = 0xFE59;

    err_code = sd_ble_uuid_vs_add(&amp;amp;dfu_base_uuid, &amp;amp;uuid_type);
    APP_ERROR_CHECK(err_code);


    err_code = ble_db_discovery_evt_register(&amp;amp;dfu_uuid);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>