<?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>Early questions about creating custom Bluetooth Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93453/early-questions-about-creating-custom-bluetooth-service</link><description>I am creating software for a proof-of-concept device using the nRF52840 Dev Kit and nRF Connect for VS Code. 
 I started a few weeks ago with the Nordic UART Service code example (for Zephyr). Recently I found an example here... https://devzone.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Nov 2022 14:23:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93453/early-questions-about-creating-custom-bluetooth-service" /><item><title>RE: Early questions about creating custom Bluetooth Service</title><link>https://devzone.nordicsemi.com/thread/393944?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 14:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c430a130-7635-45d7-a2d4-0ede624d76fe</guid><dc:creator>craig.goldman</dc:creator><description>&lt;p&gt;An issue with the phone did not occur to me.&amp;nbsp; I&amp;#39;ll keep that in mind while working on this project.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;-Craig&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Early questions about creating custom Bluetooth Service</title><link>https://devzone.nordicsemi.com/thread/393841?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 11:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78150af2-a0ee-4235-9ee6-c75d1e293d64</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Craig,&lt;/p&gt;
&lt;p&gt;If the new characteristics didn&amp;#39;t show up, but the application running on the nRF doesn&amp;#39;t report any errors, I suspect that you are trying to read the characteristics using a mobile phone. It is a bit tricky, because mobile phones tend to store the tables holding the services and characteristics between connections. You can try to turn bluetooth completely off and back on after a while, to see if that resets the service table.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have an extra DK or Dongle, I can recommend the &amp;quot;nRF Connect for Desktop -&amp;gt; Bluetooth Low Energy&amp;quot; desktop application, which doesn&amp;#39;t store the services and characteristics between connections. It does however require an extra nRF DK or Dongle.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Early questions about creating custom Bluetooth Service</title><link>https://devzone.nordicsemi.com/thread/393752?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 20:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d381049-5305-4958-a1ad-bf571d4bbf36</guid><dc:creator>craig.goldman</dc:creator><description>&lt;p&gt;Thank you for your responses.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll investigate the &amp;quot;settings&amp;quot; to see if I want/need this functionality in the &amp;quot;proof-of-concept&amp;quot; device.&lt;br /&gt;Is this documented in the nRF Connect documentation or do you have a link where this is explained in more detail?&lt;/p&gt;
&lt;p&gt;There seemed to be some limit to the number of characteristics (maybe because of memory), but I tried to add some to a previous project and they simply did not show up.&amp;nbsp; Would you happen to know if the amount of memory allowed for use by characterisitcs has been changed (hopefully increased)?&lt;/p&gt;
&lt;p&gt;I will review your custom NCS BLE example on GitHub.&lt;/p&gt;
&lt;p&gt;Thank you again&lt;/p&gt;
&lt;p&gt;-Craig&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Early questions about creating custom Bluetooth Service</title><link>https://devzone.nordicsemi.com/thread/393676?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 13:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3967fee2-e154-447b-b801-c3f538f79c17</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1: If you call bt_enable(NULL), then bt_enable will not return before it is complete. If you don&amp;#39;t have anything you want to do in the mean time, then it is perfectly fine to do so.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2: &amp;quot;Settings&amp;quot; in this context refers to stored bluetooth security information, such as bonding information. I don&amp;#39;t know if you plan to encrypt your link (pairing) and if you intend to save the pairing information for future connections (bonding). If so, you must enable bluetooth settings (you will see some &amp;quot;settings&amp;quot;&amp;nbsp; related configs in the prj.conf for the peripheral_uart sample). If encryption is not required in your application, then you don&amp;#39;t need these settings.&lt;/p&gt;
&lt;p&gt;3: There was never a hard limit on how many services or characteristics you could have (not in NCS, and not in the nRF5 SDK). There was a hard limit on 8 devices that could be active in a whitelist. Perhaps that is what you were thinking of. In reality, you can&amp;#39;t have as many services/characteristics as you like, but the limitation is rather the amount of memory required by the characteristics. But that depends on the characteristic properties, so it is very difficult to say how many you can have.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4: Not that I am aware of. I wrote &lt;a href="https://github.com/edvinand/custom_ncs_ble_service_sample"&gt;something similar&lt;/a&gt; independently from the one that you linked to, and I was unaware that the one that you linked to was written at the same time. The funny thing is that they turned out very similar, and they are still valid in the latest NCS version (which is currently v2.1.1).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope that clears up some of your questions. Let me know if anything was unclear.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>