<?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>I want to advertise 2 custom UUID  in the Gap advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54924/i-want-to-advertise-2-custom-uuid-in-the-gap-advertising</link><description>I am using the nRF52DK board. 
 I use the &amp;quot; ble_app_template_pca10040_s132 &amp;quot; for testing. 
 I want to advertise 2 custom UUID (SERVICE_DATA &amp;quot; 0x16 &amp;quot; &amp;amp; SERVICE_DATA_128BIT &amp;quot; 0x21 &amp;quot;) in the Gap advertising and i wanted to know the correct way to do it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Nov 2019 10:36:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54924/i-want-to-advertise-2-custom-uuid-in-the-gap-advertising" /><item><title>RE: I want to advertise 2 custom UUID  in the Gap advertising</title><link>https://devzone.nordicsemi.com/thread/222588?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 10:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee679932-54e7-427a-bfcd-1cd6abf6162b</guid><dc:creator>Jean-marie</dc:creator><description>&lt;p&gt;Hi Hung, Thanks for your reply, but my problem is to make the 128BIT SERVICE DATA, the first one the Battery Level is OK.&lt;/p&gt;
&lt;p&gt;The picture I&amp;#39;ve send to you is made with Zerynth ide in Python !&lt;/p&gt;
&lt;p&gt;I must do the same with Segger Embedded Studio, but I am very new in C langage and I need to be helped with information or in a better way with an working example.&lt;/p&gt;
&lt;p&gt;Can you help me ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jiemde&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to advertise 2 custom UUID  in the Gap advertising</title><link>https://devzone.nordicsemi.com/thread/222573?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 10:13:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e932ff1-c7eb-4c3a-9ab3-d34df376e241</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Well, a picture is worth a thousand words, but a picture with good explanation is even better.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The battery service UUID is 0x180F. It&amp;#39;s a 16 bit UUID because it&amp;#39;s a Bluetooth SIG service, and it can be used with short UUID (16bit) this is the short form of a 128bit UUID with the Bluetooth SIG base UUID. See here:&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/"&gt;https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The custom service, has the type 0x21&amp;nbsp;&lt;span&gt;SERVICE_DATA_128BIT&amp;nbsp; and the full UUID is as in the picture started with 0000 and ends with 4c45. It&amp;#39;s 128bit. The data of the service is 12 34 56 78.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So what you are doing is correct. You can see that the nRFConnect can parse&amp;nbsp;the advertising package with no problem. Keep in mind that this is possible because the battery service has short UUID, it&amp;#39;s not &amp;quot;custom UUID&amp;quot; .&lt;br /&gt;&lt;br /&gt;If you are doing 2 128bit UUID then it won&amp;#39;t fit in one package.&amp;nbsp;&lt;br /&gt;I got an old blog here, could be useful:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/bluetooth-smart-and-the-nordics-softdevices-part-1"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/bluetooth-smart-and-the-nordics-softdevices-part-1&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to advertise 2 custom UUID  in the Gap advertising</title><link>https://devzone.nordicsemi.com/thread/222412?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 15:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62d2f877-f323-4297-81c5-e7ef2ef76fe9</guid><dc:creator>Jean-marie</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/communityserver-discussions-components-files/4/1651.Screenshot_5F00_20191011_5F00_165503_5F00_no.nordicsemi.android.mcp.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/communityserver-discussions-components-files/4/8883.Screenshot_5F00_20191011_5F00_165451_5F00_no.nordicsemi.android.mcp.jpg" /&gt;Think that pictures explain more than one million words.&lt;/p&gt;
&lt;p&gt;So you can see that there is an SERVICE_DATA &amp;quot; &lt;strong&gt;0x16&lt;/strong&gt; &amp;quot; for the Battery Level and a SERVICE_DATA_128BIT &amp;quot; &lt;strong&gt;0x21&lt;/strong&gt; &amp;quot; for the display of 4 bytes of Data &amp;quot; &lt;strong&gt;12 34 56 78&lt;/strong&gt; &amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks for your helping&lt;/p&gt;
&lt;p&gt;Jiemde&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to advertise 2 custom UUID  in the Gap advertising</title><link>https://devzone.nordicsemi.com/thread/222384?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 14:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:045a3d13-9de0-4628-8761-43d5c4e0dbb9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jean,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you clarify what your custom UUID are ?&amp;nbsp; It should be 128 bit long, not 8 bit as you described.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t have both 128 bit UUID in a single advertising packet. But it should be possible using 2 packets (scan response packet)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>