<?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>ble app uart peripheral does not automatically reconnect to central after disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52835/ble-app-uart-peripheral-does-not-automatically-reconnect-to-central-after-disconnection</link><description>Hi 
 I have a nRF52832-DK based central node and multiple nrf52832 based peripheral nodes implemented using a combination of ble app uart c + multilink central at the central node and ble app uart at the peripheral node. While the central is able to connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Oct 2019 10:19:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52835/ble-app-uart-peripheral-does-not-automatically-reconnect-to-central-after-disconnection" /><item><title>RE: ble app uart peripheral does not automatically reconnect to central after disconnection</title><link>https://devzone.nordicsemi.com/thread/213162?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 10:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cbb9805-8c67-424e-ba97-34b50a14420c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So have you looked at line 200 in&amp;nbsp;&lt;span&gt;app_button.c:?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No doubt, there will be an APP_ERROR_CHECK there - and that is catching an error code returned by some function call.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Find what that error code is - that will tell you what&amp;#39;s wrong ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840/212216#212216"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52662/getting-hardfault-handler-after-porting-latest-nrf_sdk_15-3-0-to-nrf52840/212216#212216&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart peripheral does not automatically reconnect to central after disconnection</title><link>https://devzone.nordicsemi.com/thread/213156?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 09:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff07f2e4-9c9e-458a-bcd0-68f074bea59b</guid><dc:creator>vigneshms</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Upon further debugging, I get the following error code which prevents the central to start scanning:&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 3735928559 [Unknown error code] at C:\nRF5_SDK_15.3.0_59ac345\components\libraries\button\app_button.c:200 &lt;br /&gt;PC at: 0x0002CD53 &lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;
&lt;p&gt;Any help in this regard would be highly appreciated.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart peripheral does not automatically reconnect to central after disconnection</title><link>https://devzone.nordicsemi.com/thread/213111?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 07:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:553932cf-1fd8-46a8-bd6d-bfa5ced3c186</guid><dc:creator>awneil</dc:creator><description>[quote userid="78626" url="~/f/nordic-q-a/52835/ble-app-uart-peripheral-does-not-automatically-reconnect-to-central-after-disconnection"]a connection could not be established. However, if I do a hard reset on the central node, it reconnects to the peripherals. [/quote]
&lt;p&gt;So, clearly, you are not properly/completely &amp;quot;clearing-up&amp;quot; after the connection drops - so your system is not (quite) back to the correct state to accept new connections.&lt;/p&gt;
&lt;p&gt;You need to compare what happen for a first-time connection with what happens after a disconnect - see where they&amp;#39;re different, and what prevents the re connection.&lt;/p&gt;
&lt;p&gt;You will probably need to use &lt;strong&gt;Monitor Mode Debugging&lt;/strong&gt; (to avoid crashing the SoftDevice):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48647/ble-debugging-on-nrf52/193088#193088"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48647/ble-debugging-on-nrf52/193088#193088&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart peripheral does not automatically reconnect to central after disconnection</title><link>https://devzone.nordicsemi.com/thread/213086?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 04:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f5e778b-7f59-472e-a004-e446c71dda98</guid><dc:creator>vigneshms</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt; your thoughts in this regard?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>