<?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>Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59687/nrf52832-periphral-disconnects-timeout-when-ble-ant-scan</link><description>Dear Nordic: My use scenario may be a little complex. I try to describe it clearly. A device developed on NRF52832/S332/SDK13, acts as a combination of Bluetooth central, peripheral, ANT+ display. What i expect is: when it starts up, it tries to connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 15:54:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59687/nrf52832-periphral-disconnects-timeout-when-ble-ant-scan" /><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/243733?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 15:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69c73db9-192a-41c9-a122-0c752a2fce89</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;For testing I suggest to try&amp;nbsp;NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM.&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><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/243679?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aebef3d3-6188-4aec-a40d-80bcb3221969</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;I will double check my code and procedure. Actually, I just wanna know something about this situation. Is there any official instructions that Nordic provides to guide developers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/243671?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:18:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac5556f6-f4f4-442d-bac0-660a7a2da273</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
#define NRF_CLOCK_LFCLKSRC                                                     \

  {                                                                            \

    .source = NRF_CLOCK_LF_SRC_XTAL, .rc_ctiv = 0, .rc_temp_ctiv = 0,          \

    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM                         \

  }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/243582?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 09:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b769bc01-8d39-4754-b2a5-9517b0ff8b9d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think looking at my previous suggestions will help, they may not help individually, but combined they should make a considerable difference. There is one thing I have not asked about, what LFCLK source and tolerance have you used when init the softdevice stack?&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><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/243322?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 08:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda936eb-d99c-4f11-b764-e931148f49ad</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;Hi Kenneth:&lt;/p&gt;
&lt;p&gt;It seems very hard for me to fix it. I struggled this week. In my use scenario, i need ANT+ display, central and periphral keep active. This means ANT+ search for tracking, Ble scan,ANT+ background search may work together.I am not sure how much you know about bike computer. It should keep tracking sensors that user assigned.It also need to be connected by App to receive and response command.I am going to be crazy.Because I often receive disconnetion timeout event.Could you give me some advise?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/242901?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 10:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a1c2c38-0d80-4d77-9de8-f2634d400297</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Typically it is the&amp;nbsp;conn_params_init() that&amp;nbsp;can initiate and handle this for you. For instance in&amp;nbsp;ble_conn_params_init() you specify a&amp;nbsp;FIRST_CONN_PARAMS_UPDATE_DELAY delay, which is the delay from connection event until it will try to negotiate new connection parameters (MIN_CONN_INTERVAL,&amp;nbsp;MAX_CONN_INTERVAL,&amp;nbsp;SLAVE_LATENCY and&amp;nbsp;CONN_SUP_TIMEOUT). A supervisor timeout of only 75ms sounds very short yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My suggestion may be that you stop ANT channel search when you receive the BLE_GAP_EVT_CONNECTED event, and wait until&amp;nbsp;BLE_GAP_EVT_CONN_PARAM_UPDATE event to check the updated connection parameters&amp;nbsp;in &amp;amp;p_ble_evt-&amp;gt;evt.gap_evt.params.conn_param_update.conn_params, for instance that the parameters use slave latency and that supervisor timeout is more than for instance 500ms before you start ANT channel search again.&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><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/242841?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 07:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae918bb-cd8c-4fef-9396-c6cf8e1afea0</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;Hi Kenneth:&lt;/p&gt;
&lt;p&gt;I printed the connection parameters when peripheral receives&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;BLE_GAP_EVT_CONNECTED. And it shows superversion timeout is 500 with Android and 75 with IOS. I think it&amp;#39;s the key that causes disconnection when i use IPhone. Is there any way wo update the superversion timeout to a bigger value？It&amp;#39;s expected to be&amp;nbsp;MSEC_TO_UNITS(4000, UNIT_10_MS) that i defined.&lt;/span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/242820?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 03:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f34b9f34-c8b3-41e2-8049-127a95966d27</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;Hi Kenneth:&lt;/p&gt;
&lt;p&gt;I disabled high priority search in ANT+ background scan, and the reason of disconnection changed to&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;BLE_HCI_INSTANT_PASSED&lt;/span&gt;. For my scenario, start the ble and ANT+ scan orderly, then periodically transmit result from Nus notification by timer. Is there any better solutions to avoid disconnection of peripheral role?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 periphral disconnects timeout when BLE/ANT+ scan</title><link>https://devzone.nordicsemi.com/thread/242731?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 14:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ecb41e-95c6-4214-ad42-70a6d7e52e22</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Check out this application note on ANT channel search:&lt;br /&gt;&lt;a href="https://www.thisisant.com/resources/an11-ant-channel-search-and-background-scanning-channel/"&gt;https://www.thisisant.com/resources/an11-ant-channel-search-and-background-scanning-channel/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Likely you need to&amp;nbsp;disable high priority search, in addition the BLE link should use slave latency (for instance &amp;gt;10) to allow some blocking by the ANT channels.&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>