<?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>Modify the base UUID of the NUS sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40273/modify-the-base-uuid-of-the-nus-sample</link><description>Please tell me how to modify the base UUID of the NUS sample application (app_uart / app_uart_c). 
 SoC: nRF52832 SDK: nRF5_SDK_14.0.0 
 &amp;lt;My background&amp;gt; I am developing BLE software with reference to app_uart/app_uart_c. In this development, I&amp;#39;d like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Dec 2018 03:10:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40273/modify-the-base-uuid-of-the-nus-sample" /><item><title>RE: Modify the base UUID of the NUS sample</title><link>https://devzone.nordicsemi.com/thread/161576?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 03:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:733d2d3d-fef3-41e8-bfde-eae5d175605c</guid><dc:creator>senoo</dc:creator><description>&lt;p&gt;Hi, AndreasF,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I understand!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify the base UUID of the NUS sample</title><link>https://devzone.nordicsemi.com/thread/157755?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 14:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93040518-bbb4-4233-8f7d-639fd31ecd3b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could you please create a new ticket for this question?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify the base UUID of the NUS sample</title><link>https://devzone.nordicsemi.com/thread/157753?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 14:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd2cb970-f7bb-4491-8ad1-084125fe2999</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Yasuhiro.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been out of office this week, so sorry for late reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="senoo"]&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;https://github.com/bjornspockeli/custom_ble_service_example&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In addition, I referred to the following Web page and &amp;quot;nAN - 36 Application Note v1.1&amp;quot;.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/964/a-question-about-function-sd_ble_uuid_vs_add/4595#4595"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/964/a-question-about-function-sd_ble_uuid_vs_add/4595#4595&lt;/a&gt;&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/eng/content/download/34055/573345/file/nAN-36.zip"&gt;https://www.nordicsemi.com/eng/content/download/34055/573345/file/nAN-36.zip&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Note that this Application Note is old and created for the nRF51822, not nRF52832, so there are differences in SDK, SoftDevice, and API.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="senoo"]1) I can generate a base UUID using Online webpage generater(ex. &lt;a href="https://www.uuidgenerator.net/"&gt;https://www.uuidgenerator.net/&lt;/a&gt;) or nRFgo Studio.[/quote]
&lt;p&gt;&amp;nbsp;Yes, I do however recommend that you use the online generator (www.uuidgenerator.net) instead of nRFgo Studio, as it is old and not updated for new devices.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="senoo"]Based on the above understanding, if we want to change the base UUID of app_uart and app_uart_c to our unique UUID,&amp;nbsp;we can simply change the 128 bit UUID embedded in ble_nus.c and ble_nus_c.h to another private base generated by nRFgo Studio.[/quote]
&lt;p&gt;&amp;nbsp;Yes, but as I said above, use for example www.uuidgenerator.net to generate the UUID.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify the base UUID of the NUS sample</title><link>https://devzone.nordicsemi.com/thread/157470?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 10:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:168856b3-ae38-423a-97e4-8048b7cfce02</guid><dc:creator>kiranj</dc:creator><description>&lt;p&gt;hello,i want to change uuid of ibeacon using nus service ,please suggest how to do that ?...thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify the base UUID of the NUS sample</title><link>https://devzone.nordicsemi.com/thread/157205?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 06:49:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dbeea7d-f6a6-4767-b3e6-71f8e2e825ba</guid><dc:creator>senoo</dc:creator><description>&lt;p&gt;Dear AndreasF,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;br /&gt;I referred to the following Web page that you taught.&lt;br /&gt;&lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;https://github.com/bjornspockeli/custom_ble_service_example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In addition, I referred to the following Web page and &amp;quot;nAN - 36 Application Note v1.1&amp;quot;.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/964/a-question-about-function-sd_ble_uuid_vs_add/4595#4595"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/964/a-question-about-function-sd_ble_uuid_vs_add/4595#4595&lt;/a&gt;&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/eng/content/download/34055/573345/file/nAN-36.zip"&gt;https://www.nordicsemi.com/eng/content/download/34055/573345/file/nAN-36.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As a result, I&amp;#39;ve understood the following.&lt;/p&gt;
&lt;p&gt;1) I can generate a base UUID using Online webpage generater(ex. &lt;a href="https://www.uuidgenerator.net/"&gt;https://www.uuidgenerator.net/&lt;/a&gt;) or nRFgo Studio.&lt;br /&gt;2) The Online webpage generater generats full 128bits UUID. However nRFgo Studio generats not full 128bits UUID.&lt;/p&gt;
&lt;p&gt;Please refer the following image. This is example view of nRFgo Studio.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7776.nRFgo-Studio.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;The all 3rd and 4th two bytes is indicated as &amp;quot;XX&amp;quot;.&lt;br /&gt;This means the 3rd and 4th bytes are exchanged another 16bit service UUID.&lt;br /&gt;This fact can also be read from the tutorial you recommended&lt;/p&gt;
&lt;p&gt;*In my first question, 13th and 14th is the same as 3rd and 4th if reverse the order of UUIDs.&lt;/p&gt;
&lt;p&gt;Based on the above understanding, if we want to change the base UUID of app_uart and app_uart_c to our unique UUID,&amp;nbsp;we can simply change the 128 bit UUID embedded in ble_nus.c and ble_nus_c.h to another private base generated by nRFgo Studio.&lt;/p&gt;
&lt;p&gt;If there is a misunderstanding in the above, I hope you can fix it.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Yasuhiro Senoo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify the base UUID of the NUS sample</title><link>https://devzone.nordicsemi.com/thread/156446?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 09:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbf84a4b-b335-454a-a4ed-a6338d7408f6</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;There is a tutorial which explains how you can create a custom base UUID &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Under &lt;strong&gt;Step 2&lt;/strong&gt;, you find the follow explanation:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Next, we&amp;#39;re going to need a 128-bit UUID for our custom service since we&amp;#39;re not going to implement our service with one of the 16-bit Bluetooth SIG UUIDs that are reserved for standardized profiles. There are several ways to generate a 128-bit UUID, but we&amp;#39;ll use this Online UUID generator. The webpage will generate a random 128-bit UUID, which in my case was&lt;br /&gt;&lt;br /&gt;f364adc9-b000-4042-ba50-05ca45bf8abc&lt;br /&gt;&lt;br /&gt;The UUID is given as the sixteen octets of a UUID are represented as 32 hexadecimal (base 16) digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12. The 16 octets are given in big-endian, while we use the small-endian representation in our SDK. Thus, we must reverse the byte-ordering when we define our UUID base in the ble_cus.h, as shown below.&lt;br /&gt;&lt;br /&gt;/* This code belongs in ble_cus.h*/&lt;br /&gt;#define CUSTOM_SERVICE_UUID_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {0xBC, 0x8A, 0xBF, 0x45, 0xCA, 0x05, 0x50, 0xBA, \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x40, 0x42, 0xB0, 0x00, 0xC9, 0xAD, 0x64, 0xF3}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;__________________________________________________________________________________________&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now, you have generated a sample UUID: e77840e0-e1b5-4c70-a4c4-7ff5c647ec37.&lt;/p&gt;
&lt;p&gt;Doing what the tutorial proposes, gives you the following custom base UUID:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;0x37, 0xEC, 0x47, 0xC6, 0xF5, 0x7F, 0xC4, 0xA4, 0x70, 0x4C, 0xB5, 0xE1, 0xE0, 0x40, 0x78, 0xE7&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
[quote user=""]Is it the right way to rewrite the base UUID of NUS using the UUID whose 13th and 14th are not zero like the above?[/quote]
&lt;p&gt;I&amp;#39;m not sure I completely understood this question, you should do as the tutorial above explained. &lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>