<?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>How do I use Custom UUID , nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5009/how-do-i-use-custom-uuid-nrf51822</link><description>I want to use app(nrf uart 2.0) 
 so, I try to change UUID, 
 but I don&amp;#39;t know how make custom uuid and use it 
 and I don&amp;#39;t find function(ble_cs_init()) 
 hlep me, please</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Jan 2015 15:51:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5009/how-do-i-use-custom-uuid-nrf51822" /><item><title>RE: How do I use Custom UUID , nrf51822</title><link>https://devzone.nordicsemi.com/thread/17664?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2015 15:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2bfec7d-a0c4-411e-8d9e-d999040a9db4</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;So you want to use the UART service? Are you using the UART example code (Experimental: UART/Serial Port Emulation over BLE ) ? Have a look at the &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.1.0/s110/html/a00061.html"&gt;documentation for that example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Under the section &amp;quot;Adding proprietary service and characteristic&amp;quot; you can see that the Nordic UART Service is added to the SoftDevice as follows in the &lt;strong&gt;ble_nus.c&lt;/strong&gt; file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; // Add custom base UUID.
err_code = sd_ble_uuid_vs_add(&amp;amp;nus_base_uuid, &amp;amp;p_nus-&amp;gt;uuid_type);
if (err_code != NRF_SUCCESS)
{
    return err_code;
}
ble_uuid.type = p_nus-&amp;gt;uuid_type;
ble_uuid.uuid = BLE_UUID_NUS_SERVICE;
// Add service.
err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY,
                    &amp;amp;ble_uuid,
                    &amp;amp;p_nus-&amp;gt;service_handle);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here you can see that the base UUID is given in &lt;code&gt;nus_base_uuid&lt;/code&gt; which is defined on line 227 in the same file. The UUID for the service and the TX/RX characteristics are defined in the header file. (&lt;strong&gt;ble_nus.h&lt;/strong&gt;)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BLE_UUID_NUS_SERVICE            0x0001  /**&amp;lt; The UUID of the Nordic UART Service. */
#define BLE_UUID_NUS_TX_CHARACTERISTIC  0x0002  /**&amp;lt; The UUID of the TX Characteristic. */
#define BLE_UUID_NUS_RX_CHARACTERISTIC  0x0003  /**&amp;lt; The UUID of the RX Characteristic. */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>