<?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>Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27190/size-of-service-uuid-sdk12-3-nrf51822-softdevice130</link><description>Hi, 
 Is there a size limit for the vendor specific service UUID? It looks like it should be 16 bits but I can&amp;#39;t set more than 4 bits in my code. 
 I am using the uart central exmaple code sdk12.3 (nrf51822). The ble service UUID (BLE_UUID_NUS_SERVICE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Nov 2017 17:38:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27190/size-of-service-uuid-sdk12-3-nrf51822-softdevice130" /><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107139?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 17:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf28131-61dc-4d51-9f3e-0ec2e950cced</guid><dc:creator>akash</dc:creator><description>&lt;p&gt;Not yet, it seems like some masking issue in my code itself (since the example code works fine). I actually just decided to use 0x0008 as service ID which works out just fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107140?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 11:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2844925-479b-4ad3-8c91-50f147705d48</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, Have you found a cause for this yet? Sorry for the late response. I have been out traveling the last couple of weeks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107138?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2017 17:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5b789eb-92f8-4ca1-b793-6cf8ed8b84c1</guid><dc:creator>akash</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;It never disconnects or error out in either case. In the first case (when service UUID is &amp;gt; 4 bytes) central finds the peripheral service but never completes the device discovery but in the second example it does completes the device discovery (as you can see in the log). The system still stays healthy and functioning in both cases. No error. Somehow its not liking me setting UUID &amp;gt; 4 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107137?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2017 08:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:888b1259-93d0-4611-9f54-cbf4fc57a1fc</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;The first log says it is connected. It even finds your UUID. Do you mean that it connects and then disconnects without warning? Have you debugged your code and looked for errors and asserts &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;like this&lt;/a&gt;? It wouldn&amp;#39;t surprise me if the central examples somewhere doesn&amp;#39;t like your new UUID and produces an error and send your application into an error handler function, effectively breaking your BLE connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107146?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 22:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b06e33-9f9e-4653-9a90-df7a53d3ac95</guid><dc:creator>akash</dc:creator><description>&lt;p&gt;thanks! I will try to get the sniffer logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107145?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 22:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1472293-e24b-4d76-8f22-407303b2319b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/sniffer/sniffer_intro.html?cp=5_4"&gt;Here is link to Nordic cheap sniffing solution&lt;/a&gt; (special FW for nRF51 DK or Dongle, unofficial FW for nRF52 Dk can be found on this forum as well). But indeed there are many other tools and variants, from few USD up to dozens of thousands. I would bet that if you go back to stock SDK examples of NUS Central and Peripheral, change just 16bit UUID of the service it will work. Kind of indication where is the problem... but maybe there is some wrong cast or whatever which will be already in the example. In every case there is nothing like  &amp;quot;length&amp;quot; of UUID, zeros count indeed, that number is in the end used as 16-bit part of entire 128-bit UUID, trust me;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107144?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 22:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:542e6f55-bff1-40f8-9ea7-a88038aac768</guid><dc:creator>akash</dc:creator><description>&lt;p&gt;Yes, I am just changing the constant on both sides. Its not about the 0s but the bit size of the UUID value itself. I haven&amp;#39;t change the device discovery part much. Biggest change in my code is, my device has both central and peripheral role at same time (not sure if the problem is related to that though).&lt;/p&gt;
&lt;p&gt;Can you please point me to some tutorial how to get sniffer/analyzer logs? I am pretty new to BLE programming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107143?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 22:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f42563dc-a50a-48d2-9854-9cf2e9242464</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;You mean that you are changing the constant on both sides and is stops working depending on how many non-zero bits UUID has? That sounds really strange. Btw. the UUID you talk about has always 16-bits, the fact that some are zeros doesn&amp;#39;t make it shorter. Are you sure there isn&amp;#39;t some nasty conversion done on top o that constant before you use it as 16-bit unsigned integer in UUID structure? If you are sure that all is correct could you show us radio log from some sniffer/analyzer to see what exactly happens on GATT layer and what is source of the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107142?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 21:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f6e41e9-02fe-40a5-bb69-8d16b165c596</guid><dc:creator>akash</dc:creator><description>&lt;p&gt;I am using softdevice s130v2. I am using the ble_central\ble_app_uart_c and ble_peripheral\ble_app_uart_c example code from sdk12.3.&lt;/p&gt;
&lt;p&gt;I am talking about size of service UUID (BLE_UUID_NUS_SERVICE) which is 0x0001 in the code and not the base UUID (NUS_BASE_UUID) which is 128 bit.
Everything works fine in the example code and also in my code if I keep the service UUID &amp;lt; 4 bit. If I change the service UUID to say 0x0022 it won&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Size of service UUID sdk12.3 (nrf51822) softdevice130</title><link>https://devzone.nordicsemi.com/thread/107141?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 21:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c8f7aa4-77ae-4ce2-ab1a-bd2d2707750c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Sorry but this doesn&amp;#39;t make any sense. Firstly GATT UUID is matter of stack so you should refer SoftDevice version (if you use Nordic Soft Device) and not SDK. Second all Nordic SD API work with 128-bit(16-byte) base (in the form of reference to table provisioned through Soft Device API earlier) and 16-bit (2-byte) &amp;quot;short&amp;quot; UUID. Could you be more precise what SDK example you use and what changes you made to the code? COuld you go back to generic example and verify that (indeed) all works fine?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>