<?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>nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114679/nrf5340-missing-disconnect-event-supervision-timeout</link><description>Hi, I have a nRF5340 using hci_ipc that has the following features: 
 
 Central Role + Scanning (Multi-connection to nRF52840 peripherals) 
 Peripheral Role 
 QoS Channel Scanning 
 Nordic Uart (Server + Client) 
 
 I am missing bluetooth supervision</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2026 08:10:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114679/nrf5340-missing-disconnect-event-supervision-timeout" /><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/563832?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2026 08:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f075349f-f54a-4fd1-8768-b04ff46e4696</guid><dc:creator>tdfilip</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I updated ncs from 3.1.0 to 3.2.2 and I started observing exactly the same behaviour. I don&amp;#39;t receive disconnected event when the supervision timeout occurs. I&amp;#39;m using nRF9151 as hci host + nRF52840 with hci lpuart example. The issue started to occur after updating nRF52840 app to ncs 3.2.2. It didn&amp;#39;t occur when both apps were on ncs 3.1.0 but also it didn&amp;#39;t occur when nRF9151 app was already using ncs 3.2.2 but the nRF52840 was&amp;nbsp;still on ncs 3.1.0.&lt;/p&gt;
&lt;p&gt;Are you aware of that issue on ncs 3.2.2? Maybe it is already fixed on newer ncs versions?&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Filip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/539267?ContentTypeID=1</link><pubDate>Sat, 14 Jun 2025 08:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f45e66a-c3bc-4c01-a1f0-e634784847fc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/kelso"&gt;Kelso&lt;/a&gt;&amp;nbsp;, please take a look at this if you&amp;#39;re still experiencing the issue:&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/121986/ble-advertisement-issue-in-nrf-connect-sdk-v2-7-0-drgn-23231-any-cherry-pick-or-temporary-fix-available"&gt;BLE Advertisement Issue in nRF Connect SDK v2.7.0 (DRGN-23231) – Any Cherry-Pick or Temporary Fix Available?&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/532688?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 23:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cea3cd83-8b54-464a-bef7-741d32986e92</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;Also in the same boat.&amp;nbsp; Proposed workaround does not work.&lt;br /&gt;&lt;br /&gt;nRF Connect SDK v2.6.1 using nRF5340&lt;/p&gt;
&lt;p&gt;CONFIG_BT_BUF_CMD_TX_COUNT = 10&lt;br /&gt;CONFIG_BT_BUF_ACL_TX_COUNT = 7&lt;br /&gt;CONFIG_BT_BUF_ACL_RX_COUNT = 6&lt;br /&gt;CONFIG_BT_BUF_ACL_[TR]X_SIZE = 136&lt;/p&gt;
&lt;p&gt;attempting to support BLE periph + BLE central + ANT is encouraging me to stick to this version of the code...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/520344?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 11:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d75800be-cdcf-4f10-bebf-6020b87718a7</guid><dc:creator>dario.sortino</dc:creator><description>&lt;p&gt;Is there any news on this topic? I am facing the same issue of not having the disconnection callback triggered, hence having &amp;quot;Found valid connection with address (random) in connected state&amp;quot; when trying to reconnect again.&lt;br /&gt;&lt;br /&gt;Working on 2.6.0&lt;/p&gt;
&lt;p&gt;The workaround proposed in this comment doesn&amp;#39;t work for me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/518680?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2025 15:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05b20324-5434-4dff-bf40-a30c19a85c0c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt;I understand you&amp;rsquo;ve been in contact with one of our developers on Discord and found a suitable workaround.&amp;nbsp;So I assume I can&amp;nbsp;consider this ticket resolved for now. Please let me know if that&amp;rsquo;s not the case. Of course we still need to address the issue in the host or controller to&amp;nbsp;remove the need for this workaround in the first place.&lt;/p&gt;
&lt;p&gt;Workaround:&lt;/p&gt;
&lt;p&gt;Set&lt;span data-teams="true"&gt;&amp;nbsp;&lt;code&gt;CONFIG_BT_BUF_CMD_TX_COUNT&amp;nbsp; &amp;gt;= (CONFIG_BT_BUF_ACL_RX_COUNT + 1) &lt;/code&gt;, i.e. &lt;code&gt;CONFIG_BT_BUF_ACL_RX_COUNT=10&lt;/code&gt; and &lt;code&gt;CONFIG_BT_BUF_CMD_TX_COUNT=11&lt;/code&gt; in your &lt;code&gt;ipc_radio.conf&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/517183?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 10:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71b87425-5b71-4a8b-8c84-0c695cc69955</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt;Thank you! I hope you got some time off&amp;nbsp;as well. The developers are able to reproduce the issue now with the project you provided and they have set aside time to investigate further. I will try to update you as soon as there is any progress or relay any requests they may have.&lt;/p&gt;
&lt;p&gt;--Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/516827?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2025 14:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:951345bf-da14-4f94-bcbb-2165c6ec8aab</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Thanks Vidar!&lt;br /&gt;&lt;br /&gt;Hope you and the Nordic team had a great holiday season.&lt;br /&gt;&lt;br /&gt;Yesterday we started&amp;nbsp;more mitigations, but ended up causing more issues than we solved.&lt;br /&gt;(Looking for RSSI dithering of attached peripherals to plateau for &amp;gt;10s due to a missed disconnect, and forcing a system reboot)&lt;br /&gt;On our end we&amp;#39;re going to work to get the kinks out of our mitigation, but we&amp;#39;re experiencing this issue in all of our units.&lt;br /&gt;&lt;br /&gt;Happy to assist in any way possible to hopefully get a proper root cause and solution.&lt;br /&gt;&lt;br /&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/515570?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 17:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42fa637a-d84b-486e-86b1-27db5f9c6fb8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt;Thank you! This case has been on my mind lately, but I haven&amp;#39;t had any updates to share as the team has not had a chance to revisit the issue yet. I understand this is a blocker for you and I think it is very&amp;nbsp;unfortunate that we still have not been able to provide a solution. Since we will have reduced staffing during christmas due to public holidays, I’m afraid it is&amp;nbsp;not realistic that we will come to&amp;nbsp;a conclusion&amp;nbsp;before&amp;nbsp;new year. But one of the developers said they would have another look at this tomorrow so I will let you know if there are any&amp;nbsp;new findings.&lt;/p&gt;
&lt;p&gt;--Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/515531?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 14:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:650888c3-334b-43b0-aa02-bd3c625f469f</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Vidar,&lt;br /&gt;&lt;br /&gt;Congrats to the team on getting v2.9.0 across the finish line for nRF54, cool stuff. :)&lt;br /&gt;&lt;br /&gt;Glad you were able to reproduce it -- has there been any more news on this from the devs?&lt;br /&gt;&lt;br /&gt;We&amp;#39;re back on the SoftDevice Controller after a couple upstream sagas, so&amp;nbsp;this problem is&amp;nbsp;again our biggest blocker for production.&lt;br /&gt;&lt;br /&gt;P.S. Happy Holidays!&lt;br /&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/514241?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 12:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff28ea4-604e-4f37-8aa4-4447861ae784</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;Thank you. I’m able to reproduce the issue now. It seems the developers were powering the kit on and off but likely missed the critical window you described. They will test again following your instructions.&lt;/p&gt;
&lt;p&gt;--Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/514052?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 14:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:531eccfc-3260-4a3a-b177-0ef553aef7ac</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Hey Vidar,&lt;br /&gt;&lt;br /&gt;Thanks for following up.&lt;br /&gt;My colleague was just able to get the condition in 3 attempts.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We&amp;#39;re more successful by switching the peripheral nrf52840dk power switch to&amp;nbsp;OFF and waiting for the supervision timeout, rather than hitting the reset button.&lt;br /&gt;&lt;br /&gt;Also make sure you wait until the second raise TX IRQ after connection parameters are exchanged. :)&lt;br /&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/514020?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 12:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4ff3bf-0997-4f17-9be1-049fbdb0ec06</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;Sorry&amp;nbsp;for the delayed response. Both R&amp;amp;D and I have made&amp;nbsp;several attempts to reproduce the issue with the missed disconnect, but without any luck. Were&amp;nbsp;you able to reproduce this fairly consistently on your side?&lt;/p&gt;
&lt;p&gt;Below is the central log from the nRF5340 after having reset the 52840 peripheral. Since the scanner is always active in this sample and the peripheral starts advertising immediately after a reset before the supervision timer on the central has expired, I do see repeated warnings&amp;nbsp;showing that the peripheral is already connected before the link is actually terminated by the supervision timeout.&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/pastedimage1733747870573v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;--Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/512744?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 12:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a864a4d9-3cc3-4448-8540-e154e469e22d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;I have requested a status update on this issue.&lt;/p&gt;
&lt;p&gt;--Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/512444?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 18:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ac4bfe7-4a14-445c-86af-1c7aa5a47873</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Hey Vidar,&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Not expecting any solutions -- just curious if&amp;nbsp;any teams were able to reproduce the problem given the sample, or not yet. :)&lt;br /&gt;&lt;br /&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/511676?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 13:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff125249-6d8f-478f-a79b-defd18447835</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much for creating this sample. We will use it to reproduce the issue on our end and hope to identify the root cause soon.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/511546?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 16:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f863a4-ab50-4380-9ccc-0a6699b0f773</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Vidar,&lt;br /&gt;&lt;br /&gt;My colleague was able to create a barebones sample to demonstrate this missing disconnect.&lt;br /&gt;&lt;br /&gt;We modified your sample in these ways-&lt;br /&gt;Peripheral:&lt;br /&gt;On send enabled (this is after MTU update), we send 1000 bytes of zeros.&lt;br /&gt;Central responds with 1000 bytes of ones.&amp;nbsp;&lt;br /&gt;Repeats sending ones/twos/threes.&lt;br /&gt;After we receive the last packet, we update the connection interval parameters and go idle.&lt;br /&gt;&lt;br /&gt;Central:&lt;br /&gt;Switch to IPC_RADIO&lt;br /&gt;No auto connect on filter match&lt;br /&gt;Vendor specific connection event report is enabled&lt;br /&gt;Scanning is only disabled while connecting (code in main.c does not support multiple connections, but it is modeled after our application)&lt;br /&gt;&lt;br /&gt;Inside the zip is a readme.&amp;nbsp;&lt;br /&gt;Central was a nRF5340dk&lt;br /&gt;Peripheral was a nRF52840dk&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/MissingDisconnectModifiedSamples.zip"&gt;devzone.nordicsemi.com/.../MissingDisconnectModifiedSamples.zip&lt;/a&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:23.747,192] &amp;lt;dbg&amp;gt; bt_conn: tx_notify_process: conn 0x200018c8
[00:00:23.747,222] &amp;lt;dbg&amp;gt; bt_conn: tx_notify_process: tx 0x2000297c cb 0 user_data 0
[00:00:23.747,222] &amp;lt;dbg&amp;gt; bt_conn: tx_free: 0x2000297c

-- NOT ORIGINAL LOG --
-- BEGIN WINDOW WHERE I TURN OFF POWER TO 52840DK PERIPHERAL --

[00:00:23.747,253] &amp;lt;dbg&amp;gt; bt_conn: tx_notify_process: raise TX IRQ
[00:00:23.747,283] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: start
[00:00:23.747,283] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:00:24.047,241] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 10 ref 2 -&amp;gt; 3
[00:00:24.047,271] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 10 ref 3 -&amp;gt; 2

-- NOT ORIGINAL LOG --
-- END WINDOW --
-- IF DISCONNECTED, TURN ON AND TRY AGAIN, VARY WHEN POWER IS TURNED OFF IN THIS WINDOW --
-- IF UNABLE TO REPRODUCE, TRY SLIGHTLY BEFORE OR AFTER WINDOW--

[00:09:06.285,400] &amp;lt;inf&amp;gt; central_uart: Filters matched. Address: D4:BC:F8:83:7F:87 (random) connectable: 1
[00:09:06.285,583] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: start
[00:09:06.285,583] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:09:06.289,550] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 10 ref 2 -&amp;gt; 3
[00:09:06.289,672] &amp;lt;wrn&amp;gt; bt_conn: Found valid connection (0x200018c8) with address D4:BC:F8:83:7F:87 (random) in connected state 
[00:09:06.289,672] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 10 ref 3 -&amp;gt; 2
[00:09:06.289,703] &amp;lt;dbg&amp;gt; bt_conn: conn_le_create_common_checks: Conn check failed: ACL connection already exists.
[00:09:06.289,703] &amp;lt;err&amp;gt; central_uart: bt_conn_le_create failed (err -22)&lt;/pre&gt;&lt;br /&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/511244?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 09:10:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a4f80b4-2a50-456c-8ed9-4f4b19bf05bc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt;It is surprising that this occurs when almost nothing is happening besides scanning. The issues we&amp;nbsp;found earlier&amp;nbsp;would only occur during high BLE activity. I have reported this as new issue internally.&amp;nbsp;I&amp;nbsp;also found out that we&amp;nbsp;already include tests that simulate sudden disconnects by resetting the peer device. However, it seems we are not able to replicate the same conditions&amp;nbsp;seen with your application.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/511200?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 01:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce53dc23-af1c-4a1e-b559-1d7c5708493a</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Vidar,&lt;br /&gt;&lt;br /&gt;I appreciate the suggestions, but both the central and peripheral are multi-connection. Unfortunately due to this topology, just because the peripheral is advertising again does not mean that the central missed a disconnect event.&lt;br /&gt;&lt;br /&gt;The connection pointer needs to have the correct state. I don&amp;#39;t know how the supervision timeout does not get processed when almost nothing besides scanning is happening.&lt;br /&gt;&lt;br /&gt;For the time being we&amp;#39;re using the Split LL again, but ideally we move back to Nordic for a more familiar path to SIG certification.&lt;br /&gt;&lt;br /&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/511028?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 09:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d90d21-efb5-4e65-ba6e-ff2ce1f5764b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
[quote user="JeffWelder"]I think there&amp;#39;s a small misunderstanding.&lt;br /&gt; The Central device wrongly stays in a &amp;quot;connected state&amp;quot; when the link should have been terminated due to missing Link Layer packets.[/quote]
&lt;p&gt;I was wondering what prompted the central to reconnect when it still believed it was connected to the peripheral. However, I had a single link GAP central in mind when I asked this. For a multi-link central, you would continue scanning after the connection has been established, so I think this part makes sense now.&lt;/p&gt;
&lt;p&gt;As a workaround, would it make sense to check if you already have a valid connection for a given address before calling bt_conn_le_create()? This seems like an easy way to detect a missed disconnect event. You could then call bt_conn_disconnect() on&amp;nbsp;the stale connection object to attempt to free it before establishing the connection again.&lt;/p&gt;
[quote user="JeffWelder"]Only thing going is&amp;nbsp;LL packets.[/quote]
&lt;p&gt;The flow control bug we attempted to address in v2.8.0 should only occur when the stack needs to wait on resources (buffers)&amp;nbsp;to be freed and is not expected to happen&amp;nbsp;during low BLE traffic.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/510756?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 15:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7c56446-b9a1-4f60-9bc9-5dd6d34e7885</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Vidar,&lt;br /&gt;&lt;br /&gt;I think there&amp;#39;s a small misunderstanding.&lt;br /&gt; The Central device wrongly stays in a &amp;quot;connected state&amp;quot; when the link should have been terminated due to missing Link Layer packets.&lt;br /&gt;&lt;br /&gt;1)&amp;nbsp;Central&amp;nbsp;connects to peripheral&lt;br /&gt;2) DTLS over NUS until handshake is completed. NUS data stops. Only thing going is&amp;nbsp;LL packets.&lt;br /&gt;3) Battery is pulled on peripheral device (proxy for real world disconnect due to range)&lt;br /&gt;4) Supervision timeout does not hit after 6 seconds.&amp;nbsp;Wait around 30s-1 minute at this point.&lt;br /&gt;5) Battery is replaced, device advertises (with same address)&lt;br /&gt;6) Central tries to reconnect to the device but bt_conn_le_create fails with -22 because bt_conn_exists_le fails and prints &amp;quot;&amp;lt;wrn&amp;gt; ble_conn: Found valid connection (0x2000f540) with address F1:61:8:6E:9A:B2 (random) in connected state.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This prevents reconnecting to the peripheral device because internally there is still a conn found by&amp;nbsp;bt_conn_lookup_addr_le where the state is still connected in some combination of the host/controller, even though it has not gotten any connection LL packets past the supervision timeout.&lt;br /&gt;&lt;br /&gt;The nRF52 peripheral correctly gets the supervision timeout in all real world (non-battery-pull) cases.&lt;br /&gt;&lt;br /&gt;I appreciate the suggestions, and some methods like failing a GATT write from the controller might cause a disconnect after a timeout (30s, but recently configurable iirc), but we&amp;#39;re in a bluetooth&amp;nbsp;proximity tethering application that requires being fast acting, so actually getting the supervision timeout disconnected event is ideal.&lt;br /&gt;&lt;br /&gt;Happy to clarify further, also available on the Zephyr Discord (Jeff Welder) if that line of communication&amp;nbsp;proves more efficient,&lt;br /&gt;&lt;/span&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/510633?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 09:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62fe192a-29fc-4d2f-8b53-223563b7854a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt;Does the peripheral use different addresses for its advertisements? If not, what could be triggering the central device to reconnect to the peripheral when it has not received a disconnect callback? Another approach might be to use write or notify with callbacks and trigger a disconnect if the callback is not received within a certain time. I would not expect this to have a noticeable impact on your power budget.&lt;/p&gt;
&lt;p&gt;As I understand from the developers, the proper fix for this will likely require additional changes to the controller itself.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/510558?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 18:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59468fac-d92e-4f32-bfd7-f03efdb3faeb</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Vidar,&lt;br /&gt;&lt;br /&gt;Since the disconnected callback isn&amp;#39;t raised, we don&amp;#39;t know when to issue this disconnect -- the peripheral device is multi-connection, so advertising packets come out during a valid connection, so we can&amp;#39;t just rely on the connect failing due to seeing a device that&amp;#39;s already connected.&lt;br /&gt;&lt;br /&gt;We would have to implement application layer pinging as an additional supervisor timeout. I don&amp;#39;t think this fits into our primary cell power budget on the peripheral.&lt;br /&gt;&lt;br /&gt;I guess our only option is to go back to the Zephyr split controller until Nordic&amp;nbsp;fixes&amp;nbsp;this IPC?&lt;br /&gt;&lt;br /&gt;--Jeff&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/510553?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 17:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71adcdcd-8c8c-478b-8b3f-99b804a6f60c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt;This is unfortunate and not what I had hoped for. It seems we were only able to partially resolve this issue in this release. As a possible workaround, would it be an option to call bt_conn_disconnect(&amp;lt;conn object&amp;gt;, BT_HCI_ERR_REMOTE_USER_TERM_CONN) when this error is raised (even though the link will already have been terminated by the controller at this point)? This should allow the host to free the connection object.&amp;nbsp;Potential drawback of this workaround is that it could cause a valid link to be disconnected if another advertiser starts advertising with the same address. This may not be likely, but it’s something to consider.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/510368?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 19:45:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2db15b78-991f-4066-aff3-54e7343a5084</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Vidar,&lt;/p&gt;
&lt;p&gt;Unfortunately we updated to v2.8.0-rc2 and are still having this issue.&lt;br /&gt;EDIT: v2.8.0 release also has this issue&lt;/p&gt;
&lt;p&gt;Here is our exact Zephyr:&lt;br /&gt;&lt;a href="https://github.com/mpenate-ellenbytech/sdk-nrf/tree/v2.8.0-eti-rc2"&gt;github.com/.../v2.8.0-eti-rc2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Our test is as a central to connect to a device, get through a NUS data exchange (DTLS handshake), and wait specifically for the log message tx_notify_process: raise TX IRQ to come out:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:10.963,623] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 3 -&amp;gt; 4
[00:00:10.963,653] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 4 -&amp;gt; 3
[00:00:10.963,745] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
[00:00:10.963,806] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: start
[00:00:10.963,806] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:00:11.012,512] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
[00:00:11.012,573] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
[00:00:11.012,603] &amp;lt;dbg&amp;gt; bt_conn: tx_notify_process: conn 0x2000f7c8
[00:00:11.012,634] &amp;lt;dbg&amp;gt; bt_conn: tx_notify_process: tx 0x200203dc cb (nil) user_data (nil)
[00:00:11.012,664] &amp;lt;dbg&amp;gt; bt_conn: tx_free: 0x200203dc
[00:00:11.012,695] &amp;lt;dbg&amp;gt; bt_conn: tx_notify_process: raise TX IRQ
[00:00:11.012,725] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: start
[00:00:11.012,756] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:00:11.312,347] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_ref: handle 0 ref 2 -&amp;gt; 3
[00:00:11.312,377] &amp;lt;dbg&amp;gt; bt_conn: bt_conn_unref: handle 0 ref 3 -&amp;gt; 2
[00:00:42.877,471] &amp;lt;dbg&amp;gt; ble: scan_filter_match: Found device that we are already connected to EF:40:43:07:0C:1D (random)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;At this point, if the battery is removed from the peripheral during the ref-&amp;gt;unref activity afterwards, the connection and ref stays, but obviously the link is lost. Supervision timeout (6s) does not hit, and we have a stale ref where we can&amp;#39;t &amp;quot;reconnect&amp;quot; to the same device.&lt;/p&gt;
&lt;p&gt;Attached is our .config from IPC_Radio&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6406_2E00_ipc_5F00_radio_2E00_config"&gt;devzone.nordicsemi.com/.../6406_2E00_ipc_5F00_radio_2E00_config&lt;/a&gt;&lt;br /&gt;Our application has:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_BUF_ACL_TX_COUNT=10
CONFIG_BT_BUF_CMD_TX_SIZE=65
CONFIG_BT_BUF_EVT_RX_SIZE=68
CONFIG_BT_BUF_ACL_TX_SIZE=27
CONFIG_BT_BUF_ACL_RX_SIZE=1536
CONFIG_BT_L2CAP_TX_MTU=1536&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let me know how we can further assist debugging,&lt;br /&gt;--Jeff&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Missing Disconnect Event (Supervision Timeout)</title><link>https://devzone.nordicsemi.com/thread/509490?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 14:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e03af38-4b5f-43d8-b5cc-424bffe29718</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Vidar,&lt;br /&gt;&lt;br /&gt;We will keep tabs on the releases. &lt;br /&gt;Thanks for the expected timeline, and continued support with the developers. It is greatly appreciated :)&lt;br /&gt;&lt;br /&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>