<?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>Advertising limit on number of services</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/884/advertising-limit-on-number-of-services</link><description>Adding two services with 128bit GUID&amp;#39;s to the advertising data structure fails with NRF_ERROR_DATA_SIZE. 
 I&amp;#39;m adding the service UUID&amp;#39;s to the uuids_complete structure.
In the function uuid_list_sized_encode you check for buffer overflows, and it then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Nov 2013 10:32:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/884/advertising-limit-on-number-of-services" /><item><title>RE: Advertising limit on number of services</title><link>https://devzone.nordicsemi.com/thread/4334?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 10:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cefce777-3d96-4ade-8042-31e4902cf39d</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;I think this would be an optional thing as it is more information to the peer device. But since you won&amp;#39;t be able to have all of the services in one advertisement packet it does not matter that much.  The most important thing is to have the &amp;quot;more 128-bit UUIDs available&amp;quot; type set. As this would indicate to the peer that the service in the adv packet is not the only one available, and a full service discovery would be required to find all of them. If you use the &amp;quot;complete list of 128-bit UUIDs available&amp;quot;, then the peer would not even have to connect if he don&amp;#39;t see the UUID he&amp;#39;s looking for in that list.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising limit on number of services</title><link>https://devzone.nordicsemi.com/thread/4333?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 10:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e649f92b-13b7-4116-b246-eca070943038</guid><dc:creator>KPE</dc:creator><description>&lt;p&gt;Great - I think I&amp;#39;ve got an idea of what the other two uuid advertising mechanism are for. Is it necessary to advertise all your services (according to the specs.) or is this just an optional thing that you can choose to provide?
I will only be using vendor uuids, as we are not making a general available device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising limit on number of services</title><link>https://devzone.nordicsemi.com/thread/4332?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 08:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b609a32c-1fee-4428-a43b-61d1ac6660a6</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi KPE,&lt;/p&gt;
&lt;p&gt;The reason why advertising with two 128 bit UUID&amp;#39;s fails is quite simple.&lt;/p&gt;
&lt;p&gt;There are room for 31 byte in advertising packet, and 31 bytes in scan response packet.
If you check Core Version 4.0, Volume 3, Part C, 11, then you can see how advertising data fits in to an advertising packet or scan response packet)&lt;/p&gt;
&lt;p&gt;When you try to add two 128 bit services in one advertising packet, that would be 1 byte for length + 1 byte for AD Type + 32 byte for 2 128 bit services = 34 bytes.&lt;/p&gt;
&lt;p&gt;What you could do is to have one of the services in the scan response data, or alternate between advertising them if you do this then I would recommend using the AD Type uuids_more_available.&lt;/p&gt;
&lt;p&gt;If you are not able to fit all the services in to the advertising data, then you should use uuids_more_available, if you are looking for a peer that have certain services, then you should use uuids_solicited.&lt;/p&gt;
&lt;p&gt;--
Pål&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>