<?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>Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23552/using-a-custom-16-bit-service</link><description>HI there! I am currently having some issues trying to add a custom 16 bit service to my nrf51822 project. Basically I am trying to make a dummy peripheral that I need for work until our customer will provide us with real hardware. 
 The issue that I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Jul 2019 11:40:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23552/using-a-custom-16-bit-service" /><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/196942?ContentTypeID=1</link><pubDate>Sat, 06 Jul 2019 11:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9848c039-1e00-4f0f-8252-a85fe2bb535f</guid><dc:creator>asmita_patil</dc:creator><description>&lt;p&gt;can you&amp;nbsp; please share code...that would be helpful..thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/92517?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 11:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0168d19e-8453-43e5-92a6-e213976571b3</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll printf the values and post them&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/92516?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 10:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573caf8e-b422-4c64-a3ea-8becc6c3ef86</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;OK, little bit of highlight syntax and the values you put into function call params would help, cannot say anything to this;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/92519?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 08:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f88da941-5aca-4942-b15f-afc307b07ffb</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;In rx_char_add&lt;/p&gt;
&lt;p&gt;sd_ble_gatts_characteristic_add(p_c16s-&amp;gt;service_handle,
&amp;amp;char_md,
&amp;amp;attr_char_value,
&amp;amp;p_c16s-&amp;gt;rx_handles);&lt;/p&gt;
&lt;p&gt;returns code 7, which I think is NRF_ERROR_INVALID_PARAM&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve actually decided to just use a 128 bit UUID and not bother trying to implement the temperature 16 bit service that I&amp;#39;d initially intended to do.&lt;/p&gt;
&lt;p&gt;But I suppose its best if I do get a solution to this in case I ever need to make another 16 bit service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/92520?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 07:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd59ec31-e513-4697-a0be-cf2191d832b6</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Roger, what is exactly the line failing with error code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/92515?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 04:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3279f36-9149-4021-b82c-c3c980340923</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Guys&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been trying to do the same thing as r00li&lt;/p&gt;
&lt;p&gt;Except if I remove sd_ble_uuid_vs_then the calls to sd_ble_gatts_service_add in my 16 bit service init cause the application to hang&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tracked the problem down to when it adds the UART RX characteristic&lt;/p&gt;
&lt;p&gt;as its returning NRF_ERROR_INVALID_PARAM&lt;/p&gt;
&lt;p&gt;But if I leave the sd_ble_uuid_vs_add in place, it seems to work OK.&lt;/p&gt;
&lt;p&gt;Why does sd_ble_uuid_vs_add need to be removed ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/92518?ContentTypeID=1</link><pubDate>Sun, 16 Jul 2017 21:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:670b03fc-1e47-4b33-b5f6-1bca8cf9a9f8</guid><dc:creator>r00li</dc:creator><description>&lt;p&gt;Oh wow. That was easy. Removed the sd_ble_uuid_vs_add calls, set the UUID type to BLE_UUID_TYPE_BLE and that was it. Of course I forgot to set the type for advertising so it still didn&amp;#39;t work, but after I fixed that it started working like a charm. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using a custom 16 bit service</title><link>https://devzone.nordicsemi.com/thread/92514?ContentTypeID=1</link><pubDate>Sun, 16 Jul 2017 19:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a476c053-3823-4e76-8dac-e019edf1d7fd</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;If you want to add 16-bit UUID it means the base is well known BT SIG 128-bit UUID defined in their specification. All UUIDs in Nordic stacks (Soft Device) are made of two parts: 128-bit base and 16-bit &amp;quot;actual&amp;quot; UUID. The only base which is by default present in the stack is (logically) the BT SIG one. So if you really want to use 16-bit UUID then you should use &lt;code&gt;BLE_UUID_TYPE_BLE&lt;/code&gt; as base. Don&amp;#39;t add anything through &lt;code&gt;sd_ble_uuid_vs_add&lt;/code&gt; function then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>