<?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>NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63367/nrf52-sdk16-multi-link-central-does-not-reconnect-to-peripherals</link><description>Hi, I am developing a multi-link central using NRF52832 and SDK 16. I have implemented the scanning part and NRF_BLE_SCAN_SCAN_DURATION = 0. I am using address filter for scanning and it works as well. When I power both central and peripheral, central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2020 10:07:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63367/nrf52-sdk16-multi-link-central-does-not-reconnect-to-peripherals" /><item><title>RE: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/259404?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 10:07:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46b4d656-5982-4709-afca-12147f35d18e</guid><dc:creator>KasunR</dc:creator><description>&lt;p&gt;I sniff the ble packets as you suggested and it seems scan requests are not going from the central once it connects to a peripheral. And also i saw nrf developers have restarted scanning i lot of examples provided. Any how I got it working. Thanks for your suggestions. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/259193?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 12:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:641242c4-51ff-41d4-b86f-cad33125a20e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;All right, how do you know that it stops scanning when you make a connection, how have you determined this?&lt;br /&gt;Are you using one of the examples provided in the SDK as basis for your application?&lt;br /&gt;&lt;br /&gt;Perhaps you could share the code, so that I may take a look?&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: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/259123?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 09:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c2fd586-3606-40d4-bbfa-829364c1fcc7</guid><dc:creator>KasunR</dc:creator><description>&lt;p&gt;I checked. I am not calling the api to stop scanning any where in the code. Does nrf library stops scanning once a connection been made?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/259111?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 08:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b6894e4-c8af-43f7-bbc3-dff83c18cf4d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="KasunR"]I&amp;nbsp;called&amp;nbsp;nrf_ble_scan_start inside&amp;nbsp;BLE_GAP_EVT_DISCONNECTED and it worked. Now central connects with the peripheral.[/quote]
&lt;p&gt;I am glad to hear that it resolved your issue!&lt;/p&gt;
[quote user="KasunR"]But why it stops scannig?[/quote]
&lt;p&gt;I guess this might be configured in your ble_evt_handler as part of the _CONNECTED event.&lt;br /&gt;Could you check if scanning is stopped when a connection is established?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/259019?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 14:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a980fda-ec66-4b7e-896f-5ca75dc248bd</guid><dc:creator>KasunR</dc:creator><description>&lt;p&gt;Hi, I&amp;nbsp;called&amp;nbsp;nrf_ble_scan_start inside&amp;nbsp;BLE_GAP_EVT_DISCONNECTED and it worked. Now central connects with the peripheral. But why it stops scannig?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/258441?ContentTypeID=1</link><pubDate>Sat, 04 Jul 2020 12:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c277565-c696-4bc5-a6d7-fc5345e3beb1</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="KasunR"]OK i ll use a sniffer and send you a log.[/quote]
&lt;p&gt;Great! This will help me better understand what is happening in your device&amp;#39;s communication, and hopefully pinpoint the issue outright.&lt;br /&gt;For the logs, please make sure that the events are captured in the log; make sure that you have selected your device from the &amp;quot;Device&amp;quot; drop down menu. The picture below shows the default &amp;quot;all advertising devices&amp;quot; device option, and if you have chosen this the sniffer will not follow into the connection. So please choose your device from this menu.&lt;br /&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-51c78bea2b774f8a9c529a6efc4e19d4/wiresharkSourceDevice.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Furthermore, it would be good if you waited 2-3 seconds between each action you perform, i.e: power up devices, wait, connect, wait, power down peripheral, wait, power up peripheral, wait, reconnect, wait. Same for the other testing scenario.&lt;br /&gt;The log will contain thousands of packets, but this will provide a fuller picture.&lt;/p&gt;
[quote user="KasunR"]I am using infinite scan time. Also I am using a address filter.[/quote]
&lt;p&gt;Yes,&amp;nbsp;&lt;span&gt;NRF_BLE_SCAN_SCAN_DURATION&amp;nbsp;will make sure that your scanning does not time out - but it is still possible to stop the scanning manually.&lt;br /&gt;&lt;/span&gt;In most single-link central applications the scanning is manually stopped when a connection is made, and restarted upon disconnect / some other event.&lt;br /&gt;I would like you to verify that scanning is started again following a disconnect, in the event that it is stopped following a connection.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together,&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: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/258438?ContentTypeID=1</link><pubDate>Sat, 04 Jul 2020 12:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e70098e4-df52-4410-b7b5-13f43915ccae</guid><dc:creator>KasunR</dc:creator><description>&lt;p&gt;OK i ll use a sniffer and send you a log. But it will require some time because I am not at office right now. I am using infinite scan time. Also I am using a address filter. Anyways I ll send a log as soon as i can.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/258437?ContentTypeID=1</link><pubDate>Sat, 04 Jul 2020 12:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6ae24c5-5bd4-4ad8-85db-e998de9c8040</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="KasunR"]Thanks for your quick reply.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="KasunR"]Yes i checked. Peripheral is advertising. I have connected a J link debugger to the peripheral. And also I can connect to the peripheral using a mobile phone.&amp;nbsp;[/quote]
&lt;p&gt;I understand. Could you also verify for me that the central resumes scanning following a disconnect?&lt;br /&gt;Are you familiar with using the nRF Sniffer? I would be beneficial to see a sniffer trace of the two sequences you describe in your ticket: both connected, central loosing power and reconnecting and peripheral loosing power and resuming advertisement - without re-connection.&lt;/p&gt;
[quote user="KasunR"]These are the scan parameters:[/quote]
&lt;p&gt;The scan parameters looks all right, thanks.&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: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/258435?ContentTypeID=1</link><pubDate>Sat, 04 Jul 2020 11:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e8ead8-73af-42df-8704-b5e1eb760cc3</guid><dc:creator>KasunR</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your quick reply.&lt;/p&gt;
&lt;p&gt;Yes i checked. Peripheral is advertising. I have connected a J link debugger to the peripheral. And also I can connect to the peripheral using a mobile phone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These are the scan parameters:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ble_gap_scan_params_t g_scan_param = /**&amp;lt; Scan parameters requested for scanning and connection. */&lt;br /&gt; {&lt;br /&gt; .active = 0x01,&lt;br /&gt; .interval = 160,&lt;br /&gt; .window = 80,&lt;br /&gt; .filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,&lt;br /&gt; .timeout = 0&lt;br /&gt; .scan_phys = BLE_GAP_PHY_1MBPS,&lt;br /&gt; .extended = true,&lt;br /&gt; };&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK16 multi-link central does not reconnect to peripherals</title><link>https://devzone.nordicsemi.com/thread/258434?ContentTypeID=1</link><pubDate>Sat, 04 Jul 2020 11:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f994137-a146-4317-8a8a-97839c951e8b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Could you verify for me that the peripheral starts its advertising upon powering up again?&lt;br /&gt;Do you have a LED that is indicating that the peripheral is advertising, or could you use the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer&lt;/a&gt; tool to ensure that the advertisement is happening?&lt;br /&gt;What connection parameters have you set on your central? If you are using slave latency and a high connection interval it might take a while for the central to realize that the connection is broken.&lt;br /&gt;&lt;br /&gt;Looking forward to solving this issue together,&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>