<?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>NRF52840 + Nus Shell + BT disconnected by timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121818/nrf52840-nus-shell-bt-disconnected-by-timeout</link><description>Describe Need to repeat disconnect/connect cycle after BT timeout. Problem is when using UART over BT with Nus Shell when connection is terminated by timeout (for example when device went out of range of BT) so disconnect reason is 8. 
 To Reproduce shell_bt_nus</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Jun 2025 15:52:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121818/nrf52840-nus-shell-bt-disconnected-by-timeout" /><item><title>RE: NRF52840 + Nus Shell + BT disconnected by timeout</title><link>https://devzone.nordicsemi.com/thread/537918?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 15:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7482fd1c-8f35-4a93-bdbb-2b6f6e7e11cc</guid><dc:creator>Bartosz </dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t move to latest SDK yet, but with my ths added to disconnected function fix the problem:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;f&lt;/span&gt; (reason &lt;span&gt;==&lt;/span&gt; BT_HCI_ERR_CONN_TIMEOUT) {&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span&gt;shell_bt_nus_disable&lt;/span&gt;();&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span&gt;shell_bt_nus_enable&lt;/span&gt;(conn);&lt;span&gt; // Force reinit&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 + Nus Shell + BT disconnected by timeout</title><link>https://devzone.nordicsemi.com/thread/537359?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 12:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56d9605-51bf-44d3-89c9-7cbd76367bf6</guid><dc:creator>Bartosz </dc:creator><description>&lt;p&gt;Thanks Vidar, hope in latest version this will work for me too. So for now I will close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 + Nus Shell + BT disconnected by timeout</title><link>https://devzone.nordicsemi.com/thread/537358?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 12:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7302796d-e994-415d-8b47-6258872ce8e7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. I found an android phone to test on so I could try with this app as well, but it appears to work here.&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/pastedimage1748435151480v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 + Nus Shell + BT disconnected by timeout</title><link>https://devzone.nordicsemi.com/thread/537354?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 12:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:192bb6b1-8d45-4751-9601-dff477e5828e</guid><dc:creator>Bartosz </dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;ok will try to install latest versions.&lt;/p&gt;
&lt;p&gt;I use Serial Bluetooth Terminal 1.49 for Android.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 + Nus Shell + BT disconnected by timeout</title><link>https://devzone.nordicsemi.com/thread/537353?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 12:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e216c235-e75e-4dbe-9c6e-64fce9332c1b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did not manage to reproduce this here. Could you please try the sample from the latest nRF Connect SDK (v3.0.2 at time of writing) to see if&amp;nbsp;you experience the same problem? Also, which mobile app did you use for test?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>