<?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>NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43244/nrf52832-16-bit-service-uuid-and-128-bit-characteristic-uuid</link><description>Hello everyone, We want to program the other NRF52832 chip from the NRF52832 chip via OTA. The DFU service UUID is 16 bits (0xfe59). However, the characteristic UUIDs are 128 bits. We are having problems in the process of discovering them. Both service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Feb 2019 13:31:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43244/nrf52832-16-bit-service-uuid-and-128-bit-characteristic-uuid" /><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169930?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 13:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6975cb-683a-4b0b-8767-938887be97d1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The issue is caused by a missing call to sd_ble_uuid_vs_add(). The problem is fixed by adding it back and adjusting it so that you add the&amp;nbsp;base you are actually testing with, which is&amp;nbsp;BLE_NORDIC_VENDOR_BASE_UUID for the DFU service.&lt;/p&gt;
&lt;p&gt;In practice, you just have to modify your ble_lbs_c.c function by including&amp;nbsp;ble_dfu.h and add the following snippet in your modified&amp;nbsp;ble_lbs_c_init():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    ble_uuid128_t lbs_base_uuid = BLE_NORDIC_VENDOR_BASE_UUID; // Instead of LBS_UUID_BASE in your test setup

    err_code = sd_ble_uuid_vs_add(&amp;amp;lbs_base_uuid, &amp;amp;p_ble_lbs_c-&amp;gt;uuid_type);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    VERIFY_SUCCESS(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169840?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 07:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a0e395-b025-4e19-9a1e-abfdd4c03105</guid><dc:creator>omerKayten</dc:creator><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_lbs_5F00_c.c"&gt;devzone.nordicsemi.com/.../ble_5F00_lbs_5F00_c.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_lbs_5F00_c.h"&gt;devzone.nordicsemi.com/.../ble_5F00_lbs_5F00_c.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5023.main.c"&gt;devzone.nordicsemi.com/.../5023.main.c&lt;/a&gt;Central example: ble_app_blinky_c&lt;br /&gt;Peripheral example: secure_bootloader (We didn&amp;#39;t use the one in this SDK.&lt;br /&gt;any nRF5_SDK_15.0.0_a53641a \ examples \ dfu \ secure_bootloader \ pca10040_ble instance can be installed.))&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Central connects to the peripheral mac address.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;ble_lbs_on_db_disc_evt enters this event after the connection is established.&amp;nbsp;However, this function does not match the uuid_type first.&lt;br /&gt;&amp;nbsp;I removed that requirement. Then, after removing this requirement, the value of p_evt-&amp;gt; params.discovered_db.char_count is 2.&lt;br /&gt;&amp;nbsp;But the characteristic UUIDs are always 00. It always enters the default state. The characterisc UUIDs do not appear correctly.&lt;/p&gt;
&lt;p&gt;The files I modified in ble_app_blinky_c are as follows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169438?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 09:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccd92535-332e-42d1-a5d7-8992216150a8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Can you upload your two projects so I can see what you have done and test on my side? (You can open a private case and refer to this thread if you don&amp;#39;t want to share your code with the community).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169268?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 10:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d39750c9-49ea-4d6b-a8ad-67c629d982bc</guid><dc:creator>omerKayten</dc:creator><description>&lt;p&gt;Yes, exactly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169254?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 09:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c8f85cf-bb9c-44b4-ab33-c143fd26e621</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;OK, now I am closer to understanding. From the screenshot it seems you have added a 128 bit characteristic to a 16 bit service and that is working and you are able to&amp;nbsp;do service discovery from nRF Connect. So the problem is not with the peripheral side, but that you are having problems discovering this from a nRF central?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169246?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 09:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ffaf847-d53e-418a-9359-d2d991367d66</guid><dc:creator>omerKayten</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1549272754701v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I guess i couldn&amp;#39;t explain my problem well. We can&amp;#39;t discover service and characteristic when our service has 16 bit UUID and its characteristic has 128 bit UUID.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169238?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 09:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1834c8f1-cd69-4f6c-bc03-b8622cb68769</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ah, yes perhaps there are no examples which as both, but that is very common, and I have never seen any problems with it.&lt;/p&gt;
&lt;p&gt;I added the Device Information Service to the NUS example so that you can verify on your side as well that it works without any problems. Just drop the attached example (&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e89cc821be7645338ef9de753034d4b4/ble_5F00_app_5F00_uart_5F00_with_5F00_dis.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_with_5F00_dis.zip&lt;/a&gt;) project in the BLE peripherals folder in SDK 15.2 and build it with SES. If you have problems discovering both the DIS and NUS service from this example, then I would investigate the central side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169209?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 06:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ba18b9-b315-4555-9f1e-2a883054846e</guid><dc:creator>omerKayten</dc:creator><description>&lt;p&gt;In example,If the service UUID is 16 bit, the characteristic UUIDs are 16 bits.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the service UUID is 128 bit, the characteristic UUIDs are 128 bits.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is no sample project where service uuid is 16 bits and the characteristic UUID is 128 bits. We would like to program the NRF to NRF by discovering the DFU service and its characteristics.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please help?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Good luck with.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 16 bit service UUID and 128 bit characteristic UUID</title><link>https://devzone.nordicsemi.com/thread/169067?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 12:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f5938ed-1f1e-40a1-8f62-938172aa1e46</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find several SDK examples which combine 16 bit and 128 bit UUIDs, for instance the NUS (BLE UART) examples. Are you shore this is the problem?&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot; we cannot perform the discover operation&amp;quot;? Are you doing service discovery from the nRF or is it the peer doing service discovery? In what way does it not work?&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>