<?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>SDK11 S130 BLE Disconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46316/sdk11-s130-ble-disconnect</link><description>HI: 
 I Select the SDK11 as my BLE master. 
 &amp;quot; nRF5_SDK_11.0.0_89a8197 \ examples \ ble_central \ ble_app_multilink_central \ pca10028 \ s130\arm5_no_packs &amp;quot;. 
 I Select the Test board as my BLE master: PCA10028 v1.2.0 2016.15 681374555 
 softdevice:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2019 18:34:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46316/sdk11-s130-ble-disconnect" /><item><title>RE: SDK11 S130 BLE Disconnect</title><link>https://devzone.nordicsemi.com/thread/185568?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 18:34:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ab23fe7-75b0-403b-8aba-57e2b6d7c621</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Likely one of the function calls return&lt;span&gt;&amp;nbsp;an err_code, this will trigger the assert_nrf_callback() -handler to execute, it may be setup to do a system reset(). You should check the&amp;nbsp;assert_nrf_callback() for line number and error code.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 S130 BLE Disconnect</title><link>https://devzone.nordicsemi.com/thread/185296?ContentTypeID=1</link><pubDate>Sun, 05 May 2019 03:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e12bca1-a2ae-4f7d-ad09-96b6975d54a2</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Thank you for your apply. Now, I have a new problem.&lt;/p&gt;
&lt;p&gt;My MCU: nRF51822-QFAA&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I Select the SDK9 as my BLE slave: &amp;nbsp;&lt;/span&gt;nRF51_SDK_9.0.0_2e23562\examples\ble_peripheral\ble_app_template\pca10028\s110&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Phenomenon of problem&lt;/span&gt;：&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When my BLE Slave device connect success, My BLE Master will send data to slave.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When receive the data, My salve device will &amp;nbsp;active disconnect。Call this function: &amp;quot;&lt;span&gt;My_BLE_Disconnect_Fun()&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;//====================================================&lt;/p&gt;
&lt;p&gt;void My_BLE_Disconnect_Fun(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; &lt;br /&gt;if(My_Service.conn_handle == BLE_CONN_HANDLE_INVALID)&lt;br /&gt; { return; }&lt;br /&gt; &lt;br /&gt; err_code = sd_ble_gap_disconnect(My_Service.conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;//====================================================&lt;/p&gt;
&lt;p&gt;int main(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; bool erase_bonds;&lt;/p&gt;
&lt;p&gt;// Initialize.&lt;br /&gt; timers_init();&lt;br /&gt; buttons_leds_init(&amp;amp;erase_bonds);&lt;br /&gt; ble_stack_init();&lt;br /&gt; device_manager_init(erase_bonds);&lt;br /&gt; gap_params_init();&lt;br /&gt; advertising_init();&lt;br /&gt; services_init();&lt;br /&gt; conn_params_init();&lt;/p&gt;
&lt;p&gt;// Start execution.&lt;br /&gt; application_timers_start();&lt;br /&gt; err_code = ble_advertising_start(BLE_ADV_MODE_FAST);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;// Enter main loop.&lt;br /&gt; for (;;)&lt;br /&gt; {&lt;/p&gt;
&lt;p&gt;if(BLE_Rx_OK)&lt;br /&gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; BLE_Rx_OK = false;&lt;br /&gt;&amp;nbsp; &amp;nbsp; if(OOL_Up_Fg == false)&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BLE_Rx_Function();&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp; power_manage();&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;//=============================================&lt;/p&gt;
&lt;p&gt;I &amp;nbsp;test discovery:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;When I call the function &amp;quot;&lt;span&gt;My_BLE_Disconnect_Fun()&lt;/span&gt;&amp;quot;， Sometimes it &amp;nbsp;restarts and sometimes the normal.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Why ?? what &amp;nbsp;caused the restart???&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;Dongxiaohuang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 S130 BLE Disconnect</title><link>https://devzone.nordicsemi.com/thread/183101?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 11:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1bad93-1d09-476a-984b-e68b2c3dfae8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It may look like you are experiencing an assert on the master here, by default the application is setup to run NVIC_SystemReset() on assert, however if you set DEBUG then you can set a breakpoint in&amp;nbsp;app_error_fault_handler() or&amp;nbsp;app_error_save_and_stop() to find identify error code, line number and file name causing the assert.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>