<?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>with custom 128bit uuid custom uuid shows in advertising packet, but dfu service always shows base uuid</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54580/with-custom-128bit-uuid-custom-uuid-shows-in-advertising-packet-but-dfu-service-always-shows-base-uuid</link><description>we use custom 128bit uuid service and dfu,bas services 
 when setting uuid as custom 128 bit uuid in advertising_init function, it&amp;#39;s base uuid is always based on dfu. 
 what is the proper way to set advertising packet&amp;#39;s base uuid? 
 here are some our</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2019 21:08:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54580/with-custom-128bit-uuid-custom-uuid-shows-in-advertising-packet-but-dfu-service-always-shows-base-uuid" /><item><title>RE: with custom 128bit uuid custom uuid shows in advertising packet, but dfu service always shows base uuid</title><link>https://devzone.nordicsemi.com/thread/221436?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 21:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:205b2f72-ebdf-4919-9755-83915b27fec3</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;Thank you Kenneth.&lt;br /&gt;This&amp;nbsp;worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: with custom 128bit uuid custom uuid shows in advertising packet, but dfu service always shows base uuid</title><link>https://devzone.nordicsemi.com/thread/221090?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 13:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a82a0d6-bc15-4c52-8814-f8612538abb7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I believe that the&amp;nbsp;\SDKversion\examples\ble_peripheral\ble_app_blinky show this?&lt;/p&gt;
&lt;p&gt;I think the real problem here is that you are not using the correct uuid_type, because when you add vendor specific 128-bit base UUID&amp;#39;s you need to be calling e.g. something like:&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;p_lbs-&amp;gt;&lt;strong&gt;uuid_type&lt;/strong&gt;);&lt;/p&gt;
&lt;p&gt;The uuid_type value will increment +1 for each call, and it will start at&amp;nbsp;BLE_UUID_TYPE_VENDOR_BEGIN. However in your case the first is already used by DFU, so I expect in your case you must use:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;static ble_uuid_t m_adv_uuids[] = {{BLE_CUSTOM_UUID,BLE_UUID_TYPE_VENDOR_BEGIN+1}};&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and/or better something like&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;err_code = sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;p_lbs-&amp;gt;&lt;strong&gt;uuid_type&lt;/strong&gt;);&lt;br /&gt;static ble_uuid_t m_adv_uuids[] = {{BLE_CUSTOM_UUID,p_lbs-&amp;gt;&lt;strong&gt;uuid_type&lt;/strong&gt;}};&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>