<?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>&amp;quot;High Duty Directed advertising&amp;quot; appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114326/high-duty-directed-advertising-appears-repeatedly-and-then-disconnected-and-connected</link><description>I am developing a keyboard using &amp;quot;ble_app_hids_keyboard&amp;quot; of SDK17.1.0 version. When I look at the log during testing, &amp;quot;High Duty Directed advertising&amp;quot; appears repeatedly and then Disconnected and Connected. 
 What is this function and why does it appear</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Sep 2024 20:57:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114326/high-duty-directed-advertising-appears-repeatedly-and-then-disconnected-and-connected" /><item><title>RE: "High Duty Directed advertising" appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/thread/502386?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 20:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53d83c7a-102d-409a-95c9-8d39f56d69fb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I understand. Well, if it happens only after being connected to Windows for a long time, does it mean that it goes away if you use &amp;quot;eraseall&amp;quot; and remove the BLE device from Windows?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you know if the log says something right before it falls into this state?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;High Duty Directed advertising.
Disconnected
Connected
High Duty Directed advertising.
Disconnected
Connected
High Duty Directed advertising.
Disconnected
Connected
High Duty Directed advertising.
Disconnected
Connected
...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;At this point, I believe a sniffer trace will be helpful. When you flash the sniffer FW to another DK or Dongle, remember to select the advertiser from the drop down menu close to the top of WireShark, so that it filters out everything not belonging to the peripheral. Then it will also follow into a connection with this device. You may need to enter the 6-digit passkey when the device pair into wireshark as well.&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: "High Duty Directed advertising" appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/thread/501874?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 09:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e8e9ac3-5f72-4616-9bcf-fece01c572d5</guid><dc:creator>ParanBada</dc:creator><description>&lt;p&gt;1.&lt;br /&gt;The problem occurs frequently on Windows laptops. I erase use [eraseall] the BLE devices and downloaded the firmware again and I removed the BLE device from Windows and reconnected it.&lt;br /&gt;The above problem occurs when connected to windows for a long time.&lt;/p&gt;
&lt;p&gt;2.&lt;br /&gt;It does not appear on Android.&lt;/p&gt;
&lt;p&gt;3.&lt;br /&gt;How to know if the device connected to BLE (nRF52840) is Windows, Android, or Macbook.&lt;/p&gt;
&lt;p&gt;4.&lt;br /&gt;And I will also try the method you mentioned(sniffer).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "High Duty Directed advertising" appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/thread/501681?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 09:38:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138afea9-fc12-4f2d-9ff4-216bfe1fe50b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It should have reported a different disconnect reason, but did you try to delete the bonding information on both sides? On Windows that would be done by clicking &amp;quot;remove device&amp;quot; from the Bluetooth menu under settings:&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/pastedimage1725874511718v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;On the nRF, you can delete the flash using &amp;quot;nrfjprog --eraseall&amp;quot; before re-programming the application.&lt;/p&gt;
&lt;p&gt;Make sure that both sides are deleted at the same time, and check if the behavior changes.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t change anything, can you please try to capture a sniffer trace using the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Upload the .pcapng file here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a way for me to reproduce what you are seeing?&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: "High Duty Directed advertising" appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/thread/501574?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 14:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:893e23bb-f7f3-4e4b-bd5b-fd2a916eb792</guid><dc:creator>ParanBada</dc:creator><description>&lt;p&gt;The keyboard product under development connects to a PC (Windows 10, 11).&lt;br /&gt;I don&amp;#39;t know why it keeps disconnecting and reconnecting.&lt;br /&gt;Is there anything I should look into?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "High Duty Directed advertising" appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/thread/501530?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 11:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e003ff6-c952-4dd7-b331-fc783a39f6f4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Disconnect reason 8 refers to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define BLE_HCI_CONNECTION_TIMEOUT                         0x08   /**&amp;lt; Connection Timeout. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can find them in ble_hci.h.&lt;/p&gt;
&lt;p&gt;What are you trying to connect to this device? PC? Phone? Another nRF?&lt;/p&gt;
&lt;p&gt;What does the other device say? If it is another nRF, do you have any logs from that device?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "High Duty Directed advertising" appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/thread/501013?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 14:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e1e2af6-4260-49a9-aaaa-ad55ea96aaec</guid><dc:creator>ParanBada</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I put the code you gave me and I got the following log:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;Disconnected - reason 08&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What does this mean? Where can I find the meaning of 08?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "High Duty Directed advertising" appears repeatedly and then Disconnected and Connected.</title><link>https://devzone.nordicsemi.com/thread/500542?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 09:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b4d7389-0823-4463-84a5-522960c2503c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is just an advertising method used directly after the disconnection so that if the disconnection was caused by packet loss, they would have a higher probability to reconnect faster.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I guess the real question here is why do you get these continuous disconnections. You can start by adding:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case BLE_GAP_EVT_DISCONNECTED:
            NRF_LOG_INFO(&amp;quot;Disconnected - reason %02x&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.disconnected.reason);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you can look up this reason in ble_hci.h.&lt;/p&gt;
&lt;p&gt;My guess is that there is an issue with bonding. One of your devices, either the keyboard that you are developing, or the central device (Computer? Phone?) has an old set of bonding data stored, while the other device does not. Try erasing the bonding information on both devices, and try again. On the nRF, it can be done by erasing the chip, and re-programming the application (nrfjprog -e), or by holding button 1 (0 indexed) while powering on the device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the central side it depends on what device it is. On a computer you will typically remove the device from the computer&amp;#39;s bluetooth settings, and the same goes for a phone, really.&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>