<?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>nRF52805 BLE doesn&amp;#39;t re-advertise after disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80397/nrf52805-ble-doesn-t-re-advertise-after-disconnection</link><description>Hi, I&amp;#39;m using BC805M module which uses nRF52805 SoC. 
 I have a power ON/OFF button on the PCB. If I press the button (deep sleep mode) during BLE connection, the BLE will disconnect with the mobile app. Then, press the button again, the chip will wake</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Oct 2021 09:47:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80397/nrf52805-ble-doesn-t-re-advertise-after-disconnection" /><item><title>RE: nRF52805 BLE doesn't re-advertise after disconnection</title><link>https://devzone.nordicsemi.com/thread/333428?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 09:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7ba048c-dce7-41f3-b7a5-9f824164f1f3</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="StevenW807"]Thank you very much, Karl.&amp;nbsp;[/quote]
&lt;p&gt;No problem at all, Steven, I am happy to help!&lt;/p&gt;
[quote user="StevenW807"]&lt;p&gt;Initially, due to my logger config was wrong, I cannot see the print/log in RTT Viewer. After I fixed the logger config issues (see this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80399/nrf_log_info-and-printf-doesn-t-print"&gt;link&lt;/a&gt;), my BLE device works properly now. I mean, it will re-advertise after disconnection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any clue why, please? Thanks.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;I do no immediately see how resolving the logger issue should also resolve the BLE re-advertising issue, no..&lt;br /&gt;Are you seeing any unusual or warnings logged by your logger when you go through the same test scenario, now that the logger is fixed?&lt;br /&gt;For the record, the expected behavior of all examples is to resume advertising upon a broken connection.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 BLE doesn't re-advertise after disconnection</title><link>https://devzone.nordicsemi.com/thread/333369?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 05:07:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e92c4c-b5ce-4fd7-93b9-03eb019fc8f8</guid><dc:creator>StevenW807</dc:creator><description>&lt;p&gt;Thank you very much, Karl.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I solved the problem. But I don&amp;#39;t understand why.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Initially, due to my logger config was wrong, I cannot see the print/log in RTT Viewer. After I fixed the logger config issues (see this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80399/nrf_log_info-and-printf-doesn-t-print"&gt;link&lt;/a&gt;), my BLE device works properly now. I mean, it will re-advertise after disconnection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any clue why, please? Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 BLE doesn't re-advertise after disconnection</title><link>https://devzone.nordicsemi.com/thread/332948?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 07:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c6250ad-d239-4b88-a87b-1c6d7e4a8d1c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]My BLE signal transmits data to the mobile phone app nRF Connect correctly and continuously. However, if I disconnect the BLE signal by closing the tab in nRF Connect,&amp;nbsp;it will disappear forever. I mean, it will NOT re-advertise after disconnection. The button doesn&amp;#39;t work as well.&amp;nbsp;[/quote]
&lt;p&gt;Does you device still function at all after an unexpected disconnection? Is there any indication that the program is still running, apart from the advertising not restarting and the button not working?&lt;br /&gt;The fact that your SYSTEM_OFF sleep button does not work makes me suspect that your program might be getting stuck somewhere, or that an error has occurred due to the disconnection - the latter should usually mean a reset would happen, if you have not implemented specific error handling to avoid this.&lt;br /&gt;On the bright side, this definitely sounds like a logical error within the program, so it hopefully should not take too long to root out.&lt;br /&gt;&lt;br /&gt;What happens if you provoke this condition in a debug session, does your program counter get stuck anywhere?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>