<?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>Multiple services in GATT profile with Zephyr OS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102612/multiple-services-in-gatt-profile-with-zephyr-os</link><description>I was able to follow the tutorials from academy.nordicsemi.com on bluetooth fundamentals but unfortunately, I could not find an example where more than one custom service is advertised to the client. 
 I understand that the maximum advertising packet</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Aug 2023 09:24:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102612/multiple-services-in-gatt-profile-with-zephyr-os" /><item><title>RE: Multiple services in GATT profile with Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/440445?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 09:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3319ccc3-66df-487b-9daa-6dd6f8d99d62</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry I was not able to provide the service that would be able to be off help.&amp;nbsp;&lt;br /&gt;I will give the feedback regarding how service discovery to the course makers. It would&amp;nbsp; be helpful since the documentation is to be honest, not the easiest to navigate, and a single sentence would make everything more clear. I tried to see if I could find any good explanations in our documentation but I was not able to find it&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple services advertising with Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/440365?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 19:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9609ed53-fb2d-4da8-aaf5-9149ee747994</guid><dc:creator>bem22</dc:creator><description>&lt;p&gt;I figured this out by myself.&lt;br /&gt;&lt;br /&gt;If you want to add multiple services to the GATT Profile you don&amp;#39;t necessarily need to &lt;strong&gt;advertise&lt;/strong&gt; them. This was unclear to me and it did not make sense.&lt;br /&gt;&lt;br /&gt;You can add any number of services and characteristics and they will be discovered after connection. The advertisement of the UUID for service has the purpose of filtering the scanned devices. Again, very unclear to me from the wording in the BLE Course - or my English is lacking - who knows?&lt;br /&gt;&lt;br /&gt;The answer for coding multiple services without advertising them can be found in ncs/v2.x/zephyr/samples/bluetooth/peripheral&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s a screenshot of the peripheral app to which I added the Nordic LBS service&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1691523229423v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple services advertising with Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/440292?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 11:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a818b26-b4f3-444c-8b25-e2b8b8060ca5</guid><dc:creator>bem22</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry to say but your comment passes as very shallow&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve run through the course myself and it&amp;#39;s unclear whether I could expose multiple services. The course/academy does not cover multiple services or even hint at multiple service discovery so this is why I&amp;#39;m coming here.&lt;br /&gt;&lt;br /&gt;To come back to the problem at hand, I&amp;#39;m trying to understand how can I implement this for my development and how Sony managed it to do in those headphones where there appear to be 11 services after connection:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1691493973092v4.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Am I really asking for too much here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple services advertising with Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/440245?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 08:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:480cd85e-6ebd-48db-85c6-21e09e49aca0</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I think our academy can describe this better then I, so I would have a look &lt;a href="https://academy.nordicsemi.com/topic/services-and-characteristics/"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user="bem22"]I would like to know whether there is a different method of discovering the services post connection to the device[/quote]
&lt;p&gt;At this point you already have the information, you just need to read it out.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple services advertising with Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/440123?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 13:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fd46bc5-b207-424a-b980-06549ef9956b</guid><dc:creator>bem22</dc:creator><description>&lt;p&gt;Oh, I understand.&lt;/p&gt;
&lt;p&gt;So that 31 bytes is really the limit.&lt;/p&gt;
&lt;p&gt;I would like to know whether there is a different method of discovering the services post connection to the device - much like how the characteristics get discovered. I realized that I don&amp;#39;t need the services to be discovered during advertising - but just have them as a structural hierarchy. What do you think?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple services advertising with Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/440105?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 12:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf9d4cc-7c7d-4894-ba82-b7ec87742af2</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I recommend looking into &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;this &lt;/a&gt;sample for multiple service advertising&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>