<?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>Custom UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7865/custom-uuid</link><description>I&amp;#39;m new to use nordic and I would like to add a new custom service (2320EE58-8654-4132-95F7-0A872AC0958F) with a custom characteristic(23200000-8654-4132-95F7-0A872AC0958F)
I&amp;#39;m using nRF51 and mBed compiler.
Thank&amp;#39;s for a further reply and for the time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Feb 2017 08:39:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7865/custom-uuid" /><item><title>RE: Custom UUID</title><link>https://devzone.nordicsemi.com/thread/28056?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2017 08:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bdeead7-da27-4b6e-a4db-d9afca6d30b3</guid><dc:creator>Ruth Fuchss</dc:creator><description>&lt;p&gt;The link to nAN-36 has changed. You can now find it here: &lt;a href="http://infocenter.nordicsemi.com/pdf/nan_36.pdf"&gt;nan_36.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom UUID</title><link>https://devzone.nordicsemi.com/thread/28055?ContentTypeID=1</link><pubDate>Fri, 26 Jun 2015 18:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110c60a0-e934-4694-a38d-94c65f679c3a</guid><dc:creator>pastisprologue</dc:creator><description>&lt;p&gt;Hi Epasta,&lt;/p&gt;
&lt;p&gt;Nordic&amp;#39;s application note &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.pdf.nan/nan_36.pdf"&gt;nAN-36&lt;/a&gt; is the best guide for implementing custom services and characteristics.&lt;/p&gt;
&lt;p&gt;Generally speaking, your service will take the form ABCDxxxx-EF12-3456-7890-ABCDEF123456 as a &amp;quot;base UUID&amp;quot; and then the 16-bits are used to identify the service itself and the characteristics under it.  The lowercase x&amp;#39;s are where you specify your service/characteristc.  For example, I implemented my service as f30900010-4903-4c71-8d16-549852aba4c5 and added a characteristic to it that had a full UUID as f3090011-4903-4c71-8d16-549852taba4c5 using the following code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define PIP_UUID_BASE {0xC5, 0xA4, 0xAB, 0x52, 0x98, 0x54, 0x16, 0x8D, 0x71, 0x4C, 0x03, 0x4A, 0x00, 0x00, 0x09, 0xF3}
#define LTES_UUID_SERVICE 0x0010
#define LTES_UUID_DISCIP_CHAR 0x0011
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From there, you have to add your register your base uuid with softdevice using:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_uuid_vs_add(ble_uuid128_t const *p_vs_uuid, uint8_t *p_uuid_type)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then add your service using:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_gatts_service_add(uint8_t type, ble_uuid_t const *p_uuid, uint16_t *p_handle)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then add your characteristic using:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_gatts_characteristic_add(uint16_t service_handle, ble_gatts_char_md_t const *p_char_md, ble_gatts_attr_t const *p_attr_char_value, ble_gatts_char_handles_t *p_handles)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;Regards,
michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>