<?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>hrs example with btuuid128</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97340/hrs-example-with-btuuid128</link><description>The zephyr peripheral hr example us altered create a custom GATT service with a 128 bit BT uuid instead of a 16 bit bt number. I tried the following which does not trigger the notify event: 
 On the peripheral role, I changed advertising data and service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Mar 2023 08:18:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97340/hrs-example-with-btuuid128" /><item><title>RE: hrs example with btuuid128</title><link>https://devzone.nordicsemi.com/thread/414289?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 08:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e2a000-cbcc-4553-95bf-3594684f9733</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Boris,&amp;nbsp;&lt;br /&gt;I&amp;#39;m sorry for late reply. You are right on the fact that the callback will be called for each element found in the advertising data.&amp;nbsp; The&amp;nbsp;&lt;span&gt;BT_DATA_UUID16_ALL and&amp;nbsp;BT_DATA_UUID16_SOME are considered a element but as the name suggest (all or some), they may contain multiple UUIDs inside.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; This is why we need to go through it to find if the HRS UUID is inside.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hrs example with btuuid128</title><link>https://devzone.nordicsemi.com/thread/413788?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 11:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc7df993-7c38-49ed-8129-95eeddada0d8</guid><dc:creator>boris bergman1</dc:creator><description>&lt;p&gt;Sorry I made an mistake, the discover_func callback needs an 16bit uuid for BT_UUID_GATT_CCC. I changed that now it works. Resides one more question:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why does eir_found &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/fcaa60a99fa9d5256078ed28557856ec3709cfa9/samples/bluetooth/central_hr/src/main.c#L114"&gt;loops&lt;/a&gt; through the data in the hr_central example. bt_data_parse function explanations says: &amp;quot;Callback function which will be called for each element that&amp;#39;s found in the data. The callback should return true to continue parsing, or false to stop parsing.&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hrs example with btuuid128</title><link>https://devzone.nordicsemi.com/thread/413733?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 08:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5530892d-22f0-4ad4-b158-85411c050cc4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Boris,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If you don&amp;#39;t want to use Nordic library, you still can have a look at the gatt_dm.c and see how we used&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;Zephyr&amp;#39;s bt_gatt_discover() library inside that.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;From what I can see it&amp;#39;s not much different from the central_hr example. What you need to check is to see when&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;discover_func() returned if it managed to find the NUS service or not (please try to test your application using NUS UUID first). If not then you would need to check what&amp;#39;s the difference in central_nus example that it managed to discover the service. Make sure you declare the exact same UUID on both the central and peripheral.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hrs example with btuuid128</title><link>https://devzone.nordicsemi.com/thread/413554?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 13:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18e2f1c9-923e-4e16-a714-fa455bd7cb69</guid><dc:creator>boris bergman1</dc:creator><description>&lt;p&gt;I knew you would come up with nordic uart, but that example uses a lot of nordic libraries, I just want to use a custom uuid in the zephyr example. discover_func is called, once. I&amp;#39;ll try the sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hrs example with btuuid128</title><link>https://devzone.nordicsemi.com/thread/413499?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 11:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4467bcd4-970a-423f-b2b4-f1a973959847</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Boris,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to use a &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;nRF Sniffer&lt;/a&gt; to track what happen over the air so we can have better understanding on what the central and peripheral is doing.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Have you checked if the central managed to do service discovery and the&amp;nbsp;discover_func() callback is called ? And how many times it has been called ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I would suggest to have a look into our central_uart (and peripheral_uart) sample. The examples show how to use a 128 bits UUID proprietary service/characteristic.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>