<?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>Disconnect after a few second</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113145/disconnect-after-a-few-second</link><description>Hello! 
 I am using a nRF52840 board for some really simple development. First I just tried to run the blinky example and connected with another BT device. It worked well but after a few seconds I just totally lost the connection and needed to connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2024 17:57:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113145/disconnect-after-a-few-second" /><item><title>RE: Disconnect after a few second</title><link>https://devzone.nordicsemi.com/thread/497226?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 17:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:488d9728-a0d2-4717-aed7-77c2d6f66a44</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;By &amp;quot;acquire&amp;quot; do you mean enabling indications in the CCCD?&lt;/p&gt;
&lt;p&gt;With indications the peer has to ACK that they has received data, which will generate the BLE_GATTS_EVT_HVC event in the application.&lt;/p&gt;
&lt;p&gt;Indication is done like this:&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/pastedimage1722966940003v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect after a few second</title><link>https://devzone.nordicsemi.com/thread/496768?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 07:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4769dec-31eb-4220-af9e-51ba8bbec699</guid><dc:creator>balint99</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Let me describe my situation. I am using the hrs_freetos example code.&lt;br /&gt;&lt;span&gt;&lt;span class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I created a GATT service characteristic with a notify flag. If I try to read without acquiring, the reading does not work and I get an error. On the other hand, if I activate the acquire notify function, the reading goes on without any problems. I think that would be good behavior.&lt;/p&gt;
&lt;p&gt;However, in the same way, it works differently in the case of indication. I can read there without any errors even without acquiring. Is this normal?&amp;nbsp;&lt;br /&gt;Does acquiring indications mean that the other side of the communication will send an acknowledgment back after receiving new data? If yes, how can we test if our device sent acknowledgment to the Nordic?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;B&amp;aacute;lint&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect after a few second</title><link>https://devzone.nordicsemi.com/thread/494767?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 11:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41377df5-6076-41ca-a463-ae48b61b4472</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For the same characteristic? I don&amp;#39;t think that make quite sense to have both notification and indication enabled.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect after a few second</title><link>https://devzone.nordicsemi.com/thread/494742?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 09:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38ef12c6-fb97-4cb3-b944-1b16dbdf2f39</guid><dc:creator>balint99</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I found the bug, there was a problem with my BLE device. Now the service works with the &lt;strong&gt;ble_app_hrs&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;code&lt;/span&gt;&amp;nbsp;and the connection is not interrupted either.&lt;/p&gt;
&lt;p&gt;In this code I saw some notify settings, can I implement some indication service as well?&lt;br /&gt;Is it possible to enable notify and indication in the same service?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Balint&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect after a few second</title><link>https://devzone.nordicsemi.com/thread/494738?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 09:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6307f2e-e02c-418e-bc1a-72c18b2a98d9</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the other BLE device that you&amp;#39;re using? Are you able to connect to it with your phone?&lt;/p&gt;
&lt;p&gt;You can change the backend to use RTT instead but using UART is probably the simplest approach.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect after a few second</title><link>https://devzone.nordicsemi.com/thread/494639?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 16:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a554a0cf-cb2d-49cb-a03a-c51e4e330488</guid><dc:creator>balint99</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Instead of &lt;strong&gt;ble_app_blinky&lt;/strong&gt;, I finally tried the &lt;strong&gt;ble_app_hrs&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;code, because as far as I know, it already supports the pairing function.&lt;br /&gt;Here is the result:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:37px;max-width:408px;" height="37" src="https://devzone.nordicsemi.com/resized-image/__size/816x74/__key/communityserver-discussions-components-files/4/pastedimage1721320431672v1.png" width="408" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, it has been disconnected&amp;nbsp;immediately.&lt;/p&gt;
&lt;p&gt;By the way, is there any other way to check the logs?&lt;br /&gt;I just used Putty here for UART logging.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Balint&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect after a few second</title><link>https://devzone.nordicsemi.com/thread/494555?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 11:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa2b0e9a-1691-4d68-ba98-f8f8b2d27234</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""] but after a few seconds I just totally lost the connection and needed to connect again.[/quote]
&lt;p&gt;Do you have the log output?&lt;/p&gt;
[quote user=""]My main goal will be to create a simple GATT service with indicate, and notify flags and do some 1-2 hour term testing.&lt;br /&gt;If somebody has any simple example code for this I would appreciate that.[/quote]
&lt;p&gt;A good start would be to study the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/peripheral_hr/README.html"&gt;BLE HRS sample&lt;/a&gt; from the SDK which implements this,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>