<?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 connecting and disconnecting reset program</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52936/ble-connecting-and-disconnecting-reset-program</link><description>Hi: 
 SDK version: SDK 13.0 
 MCU: nrf52832 
 For the purpose of saving power, the peripheral disconnect the BLE connection in the program when there is no data transmission, and the peripheral trigger to start advertising and build BLE connection when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2019 14:47:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52936/ble-connecting-and-disconnecting-reset-program" /><item><title>RE: BLE connecting and disconnecting reset program</title><link>https://devzone.nordicsemi.com/thread/213711?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 14:47:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2db86d7-5378-4ffa-903d-10f9268a8017</guid><dc:creator>Wei</dc:creator><description>&lt;p&gt;Hi Dmitry:&lt;/p&gt;
&lt;p&gt;Thanks for your kind reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are developing some special project, which have a insufficient power driving capability. So, the sampled signal quality will be sensitive to the BLE data transmission and even BLE advertising. That&amp;#39;s why I want to turn off BLE data transmission and even BLE advertising in the data sampling. And after a specific time when there is enough samples ready for data transmission, the code start advertising and BLE transmission.&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connecting and disconnecting reset program</title><link>https://devzone.nordicsemi.com/thread/213709?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 14:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb3d3e5-36d3-4bfa-bca5-c36c7710bb02</guid><dc:creator>Wei</dc:creator><description>&lt;p&gt;Hi Turbo:&lt;/p&gt;
&lt;p&gt;Thanks for your prompt reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s just because this project was started 2 years ago, using SDK13.0. We just base on that for to continue the project for convenience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In my code, after&amp;nbsp;advertising_start(), the&amp;nbsp;ble_nus_string_send() is called to transfer data out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I add&amp;nbsp;nrf_delay_ms(800) between&amp;nbsp;&lt;span&gt;advertising_start() and&amp;nbsp;&amp;nbsp;ble_nus_string_send(), the program will not be reseted. At least for a long time.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you know what&amp;#39;s the reason for this? why I need a Delay before&amp;nbsp;ble_nus_string_send().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Wei&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connecting and disconnecting reset program</title><link>https://devzone.nordicsemi.com/thread/213518?ContentTypeID=1</link><pubDate>Sun, 06 Oct 2019 12:31:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7916e504-7e55-44a8-8662-d64efc16cc0b</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just wondering if you&amp;#39;re on right way.. if your case assumes one session, for example, in 2-3 hours, it&amp;#39;s ok. But if your device will trigger data exchange once per 5-10 minutes, it&amp;#39;s better to maintain connection with high slave latency, because power consumed while negotiation will whittle away the gain got by disconnecting device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connecting and disconnecting reset program</title><link>https://devzone.nordicsemi.com/thread/213510?ContentTypeID=1</link><pubDate>Sun, 06 Oct 2019 10:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ffa7b8-fca9-4b53-9257-93b94f9ba059</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="67217" url="~/f/nordic-q-a/52936/ble-connecting-and-disconnecting-reset-program"]SDK version: SDK 13.0[/quote]
&lt;p&gt;Why the old SDK? Most recent SDK for the nrf52832 is 15.3 version.&lt;/p&gt;
&lt;p&gt;Your best bet is to hook up a debugger and check which one of the APP_ERROR_CHECK() triggers.&lt;/p&gt;
&lt;p&gt;My (wild) guess would be: Starting advertizing twice and thus getting error from ble_advertising_start() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>