<?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>how to use standard and custom service uuids together?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84082/how-to-use-standard-and-custom-service-uuids-together</link><description>Hi, 
 I am having problems with the ble_advertising_int() function. It returns a return code of 12 (NRF_ERROR_DATA_SIZE) which is returned by ble_advertising_init() -&amp;gt; ble_advdata_encode() -&amp;gt; name_encode() 
 This only happens when I use two standard services</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jan 2022 14:13:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84082/how-to-use-standard-and-custom-service-uuids-together" /><item><title>RE: how to use standard and custom service uuids together?</title><link>https://devzone.nordicsemi.com/thread/349788?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 14:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba192721-5b33-4fb3-bb53-8aa0649fcae8</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Hugo Habicht"]&lt;p&gt;well, 31 bytes is not a lot, really, particularly considering forced 16 bytes for a custom service uuid.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This is defined by Bluetooth spec. A scanner will&amp;nbsp;typically&amp;nbsp;send a scan response request, and can get more information from the scan response packet.&amp;nbsp;&lt;/p&gt;
[quote user="Hugo Habicht"]&lt;p&gt;Isn&amp;#39;t the purpose of the advertising packet to show all available services of the device?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;No, it does not have to include all services.&amp;nbsp;When the central connects it will do a service discovery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use standard and custom service uuids together?</title><link>https://devzone.nordicsemi.com/thread/349741?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 12:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a555c1f-48ba-4208-b1da-e1a6efa48b64</guid><dc:creator>Hugo Habicht</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;well, 31 bytes is not a lot, really, particularly considering forced 16 bytes for a custom service uuid.&lt;/p&gt;
&lt;p&gt;Isn&amp;#39;t the purpose of the advertising packet to show all available services of the device?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use standard and custom service uuids together?</title><link>https://devzone.nordicsemi.com/thread/349737?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 11:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bba744a7-07ba-4715-a3d7-c1a7abe716b8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;An advertising packet can consist of no more than 31 bytes. Try placing the&amp;nbsp;BLE_UUID_CUSTOM_SERVICE in the scan response packet instead. Take a look at e.g. the&amp;nbsp;ble_app_uart example to see how it&amp;#39;s done there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>