<?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>Issue with simultaneous 16-bit UUID Heart Rate Service example and blank 128-bit vendor specified custom service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70683/issue-with-simultaneous-16-bit-uuid-heart-rate-service-example-and-blank-128-bit-vendor-specified-custom-service</link><description>Hi. I am currently using an nRF52840 DK board and SDK 17.0.2. 
 I require 16-bit heart rate service UUID to work with a 128-bit vendor specified custom service. 
 When I create the custom service and tested alone, it is working fine. 
 However, when I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jan 2021 01:43:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70683/issue-with-simultaneous-16-bit-uuid-heart-rate-service-example-and-blank-128-bit-vendor-specified-custom-service" /><item><title>RE: Issue with simultaneous 16-bit UUID Heart Rate Service example and blank 128-bit vendor specified custom service</title><link>https://devzone.nordicsemi.com/thread/290906?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 01:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c76dae8c-0377-471c-b9fd-dc88b29e8f7a</guid><dc:creator>Mathangopal</dc:creator><description>&lt;p&gt;Hi. Looks like there is a current time service 16-bit. Therefore, currently I do not need a 128-bit UUID custom service. I have changed my code and it is working with some minor issues. But I will raise a ticket on that on a separate ticket. Thanks for the reply. Really appreciate the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with simultaneous 16-bit UUID Heart Rate Service example and blank 128-bit vendor specified custom service</title><link>https://devzone.nordicsemi.com/thread/290401?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 07:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b77835b4-847b-47ad-8509-c89db3871093</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at the error I do not think this is related to combining 16 bi tand 128 bit UUIDs specifically.&amp;nbsp;Error 12 is&amp;nbsp;NRF_ERROR_DATA_SIZE and looking at the SDK code you would get this if there is not enough room in the advertising packet to be encoded (size is given by the last parameter in&amp;nbsp;ble_advdata_encode()). Specifically this propagates to uuid_list_encode() and then to&amp;nbsp;uuid_list_sized_encode() where I expect this error originates. Can you confirm? If so, you need to remove something from your advertising packet so that it is no longer too large. If still needed you can move to the scan response packet instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with simultaneous 16-bit UUID Heart Rate Service example and blank 128-bit vendor specified custom service</title><link>https://devzone.nordicsemi.com/thread/290377?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 02:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6dbdde5-1ef2-44a8-b635-77613a42f29f</guid><dc:creator>Mathangopal</dc:creator><description>&lt;p&gt;Hi. So sorry. The error code is 12 and can I confirm that I should add&amp;nbsp;&lt;span&gt;BLE_UUID_TYPE_VENDOR_BEGIN first?&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you give me an example on how to combine 16-bit UUID and 128-bit UUID services?&lt;/p&gt;
&lt;p&gt;If that is okay with you?&lt;/p&gt;
&lt;p&gt;With the example I can better understand how to implement.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with simultaneous 16-bit UUID Heart Rate Service example and blank 128-bit vendor specified custom service</title><link>https://devzone.nordicsemi.com/thread/290272?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2021 13:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48baafe7-0b50-4327-b550-8ad1e8d5c8a2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What do you mean by error code having no value? Is it just that you are debugging optimized code? You need to disable optimization when inspecting code - if using a SES example project, just select the Debug build target.&lt;/p&gt;
&lt;p&gt;I see from your debugger screenshot that you are at VERIFY_SUCCESS for the return value from uuid_list_encode(). I assume that is because that is where the error is detected, meaning that err_code has a value other than 0 (NRF_SUCCESS)? Please confirm what the error code is and from where. That should give a good indication on what the issue is.&lt;/p&gt;
&lt;p&gt;Assuming it is uuid_list_encode() then the error is likely from&amp;nbsp;sd_ble_uuid_encode(), and should be either&amp;nbsp;NRF_ERROR_INVALID_ADDR if an invalid pointer is used or&amp;nbsp;NRF_ERROR_INVALID_PARAM if an invalid UUID type is used. I suspect the latter?. Depending on which base UUID you add first, the type will differ (first added becomes BLE_UUID_TYPE_VENDOR_BEGIN = 0x02, second 0x03, etc.). It would only fit if you have more than one custom UUID though, which is not indicated by your post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>