<?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>Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40578/discovering-a-vs-uuid-characterisic-but-it-shows-uuid-as-0</link><description>Hi, 
 I am running SDK15, and using the example ble_app_interactive in ble_central and peripheral. I am trying to discover services and characteristic from a peripheral device, using NRF52 DK as a central device. There is a lot of services and VS services</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2019 07:43:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40578/discovering-a-vs-uuid-characterisic-but-it-shows-uuid-as-0" /><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/182519?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 07:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e34a2a50-d790-4dd2-a72a-adfb1455c7d0</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I understood so, that you found some mistakes from example project at general and solved it. I followed instructions and played little bit scanning, advertising and so on and after a while scanning didn&amp;#39;t work at all. So if example projects doesn&amp;#39;t work smoothly then (my opinion) these have to correct. I have seen earlier that when scanning, connecting etc. and try to scan again it doesn&amp;#39;t work as expected and I have lost lot of time for investigating how to correct it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/182403?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 13:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65ad05ea-249d-4b67-a172-3bef14f88b4e</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;These projects are just example projects, and therefore you should study how these projects work even before going to these forums. Many of these problem are specific to the devices used in that project.&lt;br /&gt;&lt;br /&gt;If you were to read the responses to this post, I even uploaded the specific code which solves this problem for my code.&lt;br /&gt;&lt;br /&gt;Also if you want more specific answers, you need to write a lot more information about your problem. I suggest you create a new post with the specific problem you have encountered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/182300?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 08:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a45d71-68b2-46c6-9c4c-8540cd4b255b</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So I have to first study how this example project should work or works. Then have to come back and try to do same modifications that you have already done. It would be nice if somebody commits these changes to Nordics official example path and then deliver changes in next release version. Otherwise many of us waste time for investigating already solved problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/181773?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 07:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0df1042e-5d83-499c-91ef-3884f20bc593</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;Hi Hannu. My complete solution contains all different kinds of modifications, and some classified information, but I have described above, what is needed. If you read all the&amp;nbsp;replies in this post, you should know what to do.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/181550?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 11:12:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f03608-e064-477b-98bb-eb77562c23fc</guid><dc:creator>Hannu Hirvonen</dc:creator><description>&lt;p&gt;Hello Dresse and Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m fighting also with same kind of issue. Is this possible to somehow get this correction, so that I don&amp;#39;t need to do same things again which has already done (by Dresse).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Hannu-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/159382?ContentTypeID=1</link><pubDate>Wed, 28 Nov 2018 09:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3f93c6-fa62-46ae-9d2d-f6c0254c3dca</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;Hey Hung,&lt;br /&gt;&lt;br /&gt;If I have some objections/corrections for the example project ble_app_interactive, how should I let you guys know? After working with it for a while, I have stumbled upon somethings, which I believe are errors in the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158806?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 11:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e6f3a5-8590-4413-9610-7877c7f9b3ef</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;And now it works like a charm! Thanks Hung!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20181123_5F00_121839putty.log"&gt;devzone.nordicsemi.com/.../20181123_5F00_121839putty.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Just a recap for anyone else stumbling upon this problem:&lt;br /&gt;If a&amp;nbsp;custom characteristic, inside a custom service, has a different base UUID, then it needs to be read specifically with sd_ble_gattc_read, this is done as described in the posts above. Since you read on a characteristic declaration it has more than 16 bytes, as Hung described. That just needs to be decoded correctly and you are good to go!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158794?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 10:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49cbaece-562d-4e9d-9869-d032222a53d1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dresse,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think I know what that 19 bytes for. If you have a look &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.attribute.gatt.characteristic_declaration.xml"&gt;here&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s the format of the 0x2803 attribute that you read at handle 62, it&amp;#39;s the characteristic declaration, which include: characteristic properties (0x1A), characteristic value handle (0x003F) and the 128 bit UUID.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Base on this you can extract the 128 bit UUID and extract the properties, value handle.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158781?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 09:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa2c7431-d75d-43f7-9930-639f91f83675</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you need any extra Jlink to test with ble_app_uart. If you have a nRF52 board and a programmer you should be able to do flash and test. We will try to test the&amp;nbsp;&lt;span&gt;sd_ble_gattc_read() function here as well.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158727?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 19:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b36621f-83ed-4493-ab5e-9cc2304723b5</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;I thought to let you know, that right now, i&amp;#39;m testing with my phone as a peripheral, where I am using nrf connect app, and then I have entered my custom service UUID and custom characteristic. I&amp;#39;m not going to work until monday, to get the hearingaid. I haven&amp;#39;t been able to use the correct hearingaid, since I made the custom code to characteristic, but I&amp;#39;m simulating it with my phone. But I don&amp;#39;t think that should be a problem?&lt;br /&gt;&lt;br /&gt;Now moving on to the test, I tested it by creating a new command for the CLI, where when I called the command, it would go straight to a sd_ble_gattc_read() with the exact handle i.e. 62, and this gave me the same response with 19 bytes.&lt;/p&gt;
&lt;p&gt;I tried to build a new project with ble_app_uart, but that use an extra J-link right? I don&amp;#39;t have that, but I don&amp;#39;t know if it is easy to direct it to the normal uart connection, so that&amp;nbsp;I can see it via PuTTy?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158701?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 15:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2baff88b-f24f-4b7c-8f44-6cdc1a0d8182</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s pretty strange to see 19 bytes. I can see the UUID is actually inside that 19 bytes , started from 0x87 ended with 0x6E . It&amp;#39;s your first characteristic&amp;#39;s UUID.&lt;/p&gt;
&lt;p&gt;Could you try to open a new application and try just to do a&amp;nbsp;sd_ble_gattc_read() on that exact handle of the characteristic and see what response you have 16 or 19&amp;nbsp; bytes ? Then test with a known example (ble_app_uart) so we can reproduce here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158673?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 14:24:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8c5c515-8e1d-43d5-a4f5-5c0d45fa832d</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;I have been trying to implement it myself, but I am kind of stuck. Inside&amp;nbsp;on_characteristics_discovery_rsp, I have made a check each characteristic that has uuid.type == BLE_UUID_TYPE_UNKNOWN:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        // Save characteristics data.
       for (uint8_t i = offset; i &amp;lt; bytes_to_copy; i++)
       {
           m_srv_char.char_data[i].decl_handle      = p_char_disc_rsp_evt-&amp;gt;chars[i].handle_decl;
           m_srv_char.char_data[i].value_handle     = p_char_disc_rsp_evt-&amp;gt;chars[i].handle_value;
           m_srv_char.char_data[i].uuid             = p_char_disc_rsp_evt-&amp;gt;chars[i].uuid;
           m_srv_char.char_data[i].notify           = p_char_disc_rsp_evt-&amp;gt;chars[i].char_props.notify;
           m_srv_char.char_data[i].cccd_desc_handle = 0;

       }

       // If service UUID type is unknown, then try to search for the 128-bit UUID.
       for (uint8_t i = offset; i &amp;lt; bytes_to_copy; i++)
       {
    	   if (m_srv_char.char_data[i].uuid.type == BLE_UUID_TYPE_UNKNOWN){
    		   NRF_LOG_INFO(&amp;quot;Characteristic is unknown&amp;quot;);
    		   m_vendor_uuid_read_char = true;
			   // Look for characteristic 128-bit UUID.
			   err_code = sd_ble_gattc_read(conn_handle, m_srv_char.char_data[i].decl_handle, 0);
			   APP_ERROR_CHECK(err_code);
			   return;
			 }

           // If characteritics is last.
           if (i == (count - 1))
           {
               m_vendor_uuid_read_char = false;
               // Print services UUID. When you first discover services, the 128-bit UUIDs may not be displayed.
               // In such case, you should rediscover the services.
               uuid_print(p_ble_gattc_evt-&amp;gt;conn_handle, mp_device_srv[conn_handle]-&amp;gt;services);
           }
           offset++;
       }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After it gets all characteristics, and the types, it check whether one of them is VS UUID, then it calls&amp;nbsp;err_code = sd_ble_gattc_read(conn_handle, m_srv_char.char_data[i].decl_handle, 0);, with decl_handle for the characteristic which type is unknown. I also made a new bool&amp;nbsp;m_vendor_uuid_read_char, so that when i enter on_read_rsp, I know what I asked for. Inside on_read_rsp, I kinda made the same af with service discovery:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    else if(m_vendor_uuid_read_char){
        // Save characteristics uuid data.
       for (uint8_t i = 0; i &amp;lt; m_srv_char.count; i++)
       {
    	   NRF_LOG_INFO(&amp;quot;Handle search: %d And reached handle: %d&amp;quot;, m_srv_char.char_data[i].decl_handle, p_read_rsp-&amp;gt;handle)
    	   if(p_read_rsp-&amp;gt;handle == m_srv_char.char_data[i].decl_handle){
    		   NRF_LOG_RAW_INFO(&amp;quot;Data len: %d Read data:\r\n&amp;quot;, p_read_rsp-&amp;gt;len);
			  for (uint8_t i = 0; i &amp;lt; p_read_rsp-&amp;gt;len; i++)
			  {
				  NRF_LOG_RAW_INFO(&amp;quot;0x%X &amp;quot;, p_read_rsp-&amp;gt;data[i]);
			  }
			  NRF_LOG_RAW_INFO(&amp;quot;\r\n&amp;quot;);
    		  memcpy(uuid.uuid128, p_read_rsp-&amp;gt;data, sizeof(uuid.uuid128));
    		  err_code = sd_ble_uuid_vs_add(&amp;amp;uuid, &amp;amp;m_srv_char.char_data[i].uuid.type);
    		  APP_ERROR_CHECK(err_code);
    		  m_srv_char.char_data[i].uuid.uuid = (uuid.uuid128[13]&amp;lt;&amp;lt;8)+uuid.uuid128[12];
    		  NRF_LOG_INFO(&amp;quot;m_srv_char.char_data.uuid: %X&amp;quot;, m_srv_char.char_data[i].uuid.uuid);
    		  break;
    	   }
       }


       for (uint8_t i = 0; i &amp;lt; m_srv_char.count; i++)
       {
    	   if (m_srv_char.char_data[i].uuid.type == BLE_UUID_TYPE_UNKNOWN)
			  {
    		   m_vendor_uuid_read_char = true;
				  // Look for service 128-bit UUID.
				  err_code = sd_ble_gattc_read(conn_handle, m_srv_char.char_data[i].decl_handle , 0);
				  APP_ERROR_CHECK(err_code);
				  return;
			  }

    	   if(i == (m_srv_char.count -1)){
    		   NRF_LOG_INFO(&amp;quot;Characteristics count: %d&amp;quot;, m_srv_char.count);
    		   // Print services UUID. When you first discover services, the 128-bit UUIDs may not be displayed.
    		   // In such case, you should rediscover the services.
    		   m_vendor_uuid_read_char = false;
    		   uuid_char_print(m_srv_char);
    	   }
       }
       return;
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But now im facing some problems, my data length in p_read_rsp-&amp;gt;len, is 19 when receiving the response. I think it might have to do that, i&amp;#39;m asking for the handle of the characteristic declaration, and I it might send more data, than just the char uuid. I&amp;#39;m basically doing the same as in when doing custom Service Discovery. And I have also uploaded my log file for a full overview.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20181122_5F00_152218putty.log"&gt;devzone.nordicsemi.com/.../20181122_5F00_152218putty.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158442?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 13:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21de2614-75bd-4c1e-a74e-b4eeba413de8</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;Thanks, that explains a lot! I will try to implement it myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158355?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 10:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85aa0c65-3781-49ac-b53d-963827f8b985</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dresse,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes you can test with the ble_app_uart. The GAP role is a little bit different but the service discovery from the&amp;nbsp;GATT client is the same.&amp;nbsp;&lt;br /&gt;We have the base UUID which is the 128 bit UUID and the short 16 bit UUID which is byte 12 and 13 inside the 128 bit UUID. This is explained in the description of&amp;nbsp;sd_ble_uuid_vs_add()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use nRF Connect on the phone and do service discovery for the ble_app_uart you can see how the service and characteristic share the same base UUID and only byte 12 and 13 are different.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your att table, I can see that all characteristics and service have different base UUID.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In this case you would need to modify the ble_m.c library to support UUID read on the characteristic discovery, the same way as we have in the service discovery. Please have a look at&amp;nbsp;&amp;nbsp;on_primary_srv_discovery_rsp() and on_read_rsp() function, where we do a&amp;nbsp;sd_ble_gattc_read() on each service that has the uuid.type ==&amp;nbsp;BLE_UUID_TYPE_UNKNOWN&lt;/p&gt;
&lt;p&gt;You would need to add the code to do the same when doing characteristic discovery.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a little bit busy at the moment, if I managed to have time I can try to implement but I would suggest you to try first.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158271?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 21:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2173bb1b-a1f0-4119-9314-d7fac24ee0c7</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;So, I don&amp;#39;t quite understand what you mean about base uuid. I have attached one of the custom uuid, that is in the hearing aid.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/VS-UUID.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I still have my problem of not being able to see the custom characteristics inside the custom service, well I can see it, but I can&amp;#39;t see the specific uuid for it. But if I understand what you said correctly, because my custom characteristics, does not have the same base uuid as the service, it can&amp;#39;t see it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And you are suggesting me to test with ble_app_uart, but do you mean ble_app_uart_c? Because my nrf52 dk&amp;nbsp;is acting as a central and connecting with a peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158200?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 13:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16556b64-f130-4bd0-943c-bfe2c5963a23</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dresse,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found that&amp;nbsp;in the code, when we find an 128 bit UUID we only assign the value of the 128 bit UUID base into the UUID database, without assigning the 16 bit short UUID of that service to the service uuid. So that why they were all 0. So if you add this line of code&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mp_device_srv[conn_handle]-&amp;gt;services[i].uuid.uuid = (uuid.uuid128[13]&amp;lt;&amp;lt;8)+uuid.uuid128[12];&lt;/p&gt;
&lt;p&gt;after&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_uuid_vs_add(&amp;amp;uuid, &amp;amp;mp_device_srv[conn_handle]-&amp;gt;services[i].uuid.type);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;inside&amp;nbsp;on_read_rsp() in ble_m.c , then you should be able to see the UUID on the first time when you do service discovery.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition , in characteristic discovery we won&amp;#39;t take in to account that the characteristic may have different base UUID, we assume that the characteristic would have same base uuid as the service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you update the code, and also let me know what the problem you currently have ?&amp;nbsp; I would suggest you to test with the ble_app_uart first before you test with your device.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158173?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 12:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fb236e2-7fa4-4764-9ccd-a85527d69f27</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks Dresse,&amp;nbsp; I have reproduced the issue here with the ble_app_uart. Seems like we have an issue if it&amp;#39;s not the 16 bit Bluetooth UUID. I will investigate a little bit more and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158172?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 12:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59c1db5c-a117-4223-bb5a-bdb53ca01f38</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;And another thing, if I connect to the hearingaid using my phone, and using nrf connect, I get all services and characteristics, so the hearingaids works just fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/158140?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 10:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a66cc4-9645-4788-94bd-fd2760d3cd77</guid><dc:creator>Dresse</dc:creator><description>&lt;p&gt;Alright, I now have the full log. I have added some extra text to the program, so I know where it is, hope you can see past that. The first log file, show the communation between the hearingaid, and the Nordic.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20181120_5F00_111630putty.log"&gt;devzone.nordicsemi.com/.../20181120_5F00_111630putty.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also did a test where I try to connect, to my phone, and setting up my GATT server on my phone with a custom service UUID, and custom characteristic UUID. And that worked perfectly:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20181120_5F00_112145putty.log"&gt;devzone.nordicsemi.com/.../20181120_5F00_112145putty.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think it has to do with some settings in the config file or where ever. The hearing aid have 5 custom VS UUID services and quite a few VS UUID characteristics. I have already turned up NRF_SDH_BLE_VS_UUID_COUNT, but perhaps I have to turn another setting up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering a VS UUID Characterisic, but it shows UUID as 0</title><link>https://devzone.nordicsemi.com/thread/157964?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 13:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37d4357d-5e5f-49da-bcaf-4333a77fafe6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dresse,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please post a full log of your test, including the commands you type in. I don&amp;#39;t see the part where you find the VS services I would suggest you also test first with connecting to ble_app_uart, just to test if it would work with a simple custom profile.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>