<?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>BT832 BLE sample disconnect immediately</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30813/bt832-ble-sample-disconnect-immediately</link><description>All standard SDK examples disconnect immediately once I try to connect to from Android device. But when I flash the same sketch to nRF52-DK, I can connect successfully. 
 I use BT832 as target device and flash it with nRF52-DK. Flash and sketch validation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Feb 2018 15:04:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30813/bt832-ble-sample-disconnect-immediately" /><item><title>RE: BT832 BLE sample disconnect immediately</title><link>https://devzone.nordicsemi.com/thread/121981?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 15:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66432484-da98-4699-b46a-a87d6e48fb42</guid><dc:creator>Alexey</dc:creator><description>&lt;p&gt;Sigurd, thanks, this magic numbers helped me! Now it works fine.&amp;nbsp;&lt;br /&gt;Could you please advice if I can read about this magic numbers or overall about sdk_config.h configuration strategy somewhere?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT832 BLE sample disconnect immediately</title><link>https://devzone.nordicsemi.com/thread/121970?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 14:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eb6e366-4971-4986-acc7-d98a6c73d3f0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What type of Android device is this? It could be a timing issue. With SDK 14.2, could you try the following configuration in sdk_config.h&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration

//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_XTAL_ACCURACY  - External crystal clock accuracy used in the LL to compute timing windows.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM 

#ifndef NRF_SDH_CLOCK_LF_XTAL_ACCURACY
#define NRF_SDH_CLOCK_LF_XTAL_ACCURACY 1
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT832 BLE sample disconnect immediately</title><link>https://devzone.nordicsemi.com/thread/121965?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 13:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b39c3b35-6893-4f01-a66d-09c19873d036</guid><dc:creator>Alexey</dc:creator><description>&lt;p&gt;Hi Sigurd.&amp;nbsp;&lt;br /&gt;Here is what I get after applying extra logging:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: Template example started.
 0&amp;gt; &amp;lt;info&amp;gt; app: Fast advertising.
 0&amp;gt; &amp;lt;info&amp;gt; app: Connected.
 0&amp;gt; &amp;lt;info&amp;gt; app: Fast advertising.
 0&amp;gt; &amp;lt;info&amp;gt; app: Disconnected.
 0&amp;gt; &amp;lt;info&amp;gt; app: Disconnect reason: 62&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried to dig 62 code, and looks like this is ble_hci.h:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED          0x3E       /**&amp;lt; Connection Failed to be Established. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Am I correct? If so, still not clear what is wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT832 BLE sample disconnect immediately</title><link>https://devzone.nordicsemi.com/thread/121959?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 12:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:882e8731-6a9e-4068-bd5b-88dfab811926</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The disconnect reason should give us some more information about why the disconnect happened.&lt;/p&gt;
&lt;p&gt;Could you try to print the reason when you get the disconnect event ? i.e. add this code-line under the&amp;nbsp;BLE_GAP_EVT_DISCONNECTED event in&amp;nbsp;ble_evt_handler()&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_LOG_INFO(&amp;quot;Disconnect reason: %d&amp;quot;,p_ble_evt-&amp;gt;evt.gap_evt.params.disconnected.reason);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT832 BLE sample disconnect immediately</title><link>https://devzone.nordicsemi.com/thread/121898?ContentTypeID=1</link><pubDate>Sun, 25 Feb 2018 14:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd755487-1c10-4c5a-be62-6ed8afecb65a</guid><dc:creator>S&amp;#248;ren Mikkelsen</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;BT832 doesn&amp;rsquo;t seem to have 32khz clock within the module. Nordic DK examples uses 32khz by default. Can&amp;rsquo;t say that this your issue, but you could check that.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;S&amp;oslash;ren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>