<?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>Can&amp;#39;t establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28397/can-t-establish-connection-from-reset-when-peripheral-and-central-advertise-scan-with-whitelist</link><description>I&amp;#39;m using the RSCS demo as the peripheral and the Relay demo as the central. I&amp;#39;ve modified each to use stored bond information if it is found in flash upon startup. I make sure they are connected and bonded, then I reset each board. Looking at Debug output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 31 Dec 2017 14:08:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28397/can-t-establish-connection-from-reset-when-peripheral-and-central-advertise-scan-with-whitelist" /><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112055?ContentTypeID=1</link><pubDate>Sun, 31 Dec 2017 14:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7065edff-a00e-4ae6-af22-b7580a66396e</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;@Petter, the kdist_central struct member isn&amp;#39;t there anymore when using the peer manager as opposed to the device manager. I&amp;#39;m seeing the same issue as Richard. Is there something I need to do to the peer manager when using a whitelist?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112054?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2015 13:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8babe525-8887-4a62-9f36-67ea6aa06d62</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Actually, I think they never get connected. The central sends a connection request, but the address/IRK is not in the whitelist so the peripheral ignores the connection request. The central believes it is in a connection until the peripheral doesn&amp;#39;t respond, and then it disconnects. Something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Peripheral   -&amp;gt; Central      Advertising
Central      -&amp;gt; Peripheral   Connection Request (filtered by peripheral, but central belives it is in a connection)
Central      -&amp;gt; Peripheral   Empty Packet
Central      -&amp;gt; Peripheral   Empty Packet
Central      -&amp;gt; Peripheral   Empty Packet
Central      -&amp;gt; Peripheral   Empty Packet
Central      -&amp;gt; Peripheral   Empty Packet
Central      -&amp;gt; Peripheral   Empty Packet (Disconnect)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For what I can see the central is not distributing LTK or IRK, because&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;register_param.sec_param.kdist_central.enc = 1;
register_param.sec_param.kdist_central.id = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;is not set in device_manager_init().&lt;/p&gt;
&lt;p&gt;The second thing I would check is if the IRK distributed by the central is equal to the IRK you are actually putting into the whitelist. Maybe by printfing it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112053?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 15:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f07bff-d04c-4f34-8ae1-fd7562c22451</guid><dc:creator>Richard von Lehe</dc:creator><description>&lt;p&gt;I think the Keil projects are up-to-date in those zips that I attached.  I stopped using them because I only have the trial version and one of the projects created images that became too big to use the free version.&lt;/p&gt;
&lt;p&gt;Thanks for taking a look, I can also look a bit more on the peripheral side with the clue you have given me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112052?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 14:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701dee0e-d0d6-4cef-844f-2c7ab8ad2786</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I prefer Keil :) I got you projects up and running. It seems they connect, but then the peripheral doesn&amp;#39;t respond, so the connection times out and the central disconnects. I&amp;#39;ll have closer look tomorrow morning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112049?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 15:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b03c7e6-d897-46e2-9fe1-e9e767a8b605</guid><dc:creator>Richard von Lehe</dc:creator><description>&lt;p&gt;Each demo uses button 2 to clear out keys in flash and begin fresh.  To recreate my problem, push button 2 on each side to get them to pair using passkey pairing.  They should then bond.  Then, use the reset button to restart each one and you should see both sides use their whitelist.  You should see the central connect, then immediately get disconnected for reason 0x3E.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112050?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 15:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9d47540-ca14-49fb-bca2-836c0ea6760a</guid><dc:creator>Richard von Lehe</dc:creator><description>&lt;p&gt;Petter - I certainly can - what do you prefer?  I&amp;#39;ll just zip up everything in the two project folders, I have both Makefiles and IAR projects you can choose from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112051?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 10:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae4ba00-2d3b-4eed-b74b-51a62437cf20</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It seems the nRF Sniffer is not able to follow the connection, please try what is described in my answer &lt;a href="https://devzone.nordicsemi.com/question/54410/nrf-sniffer-v101_1111-only-shows-advertisements/"&gt;here&lt;/a&gt;. Could you instead of main.c upload your complete projects so I can test them here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112048?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2015 15:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3807f947-3cb2-4683-8ad3-c59240e0a6ef</guid><dc:creator>Richard von Lehe</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to use the Nordic sniffer/Wireshark combination.  I seem to be able to see the peripheral advertisements, but then when I start the central none of the central activity shows up.  I&amp;#39;m attaching the wireshark screen and the trace to the original post (and main.c), but there are no packets other than the ADV_IND that you see.  The central&amp;#39;s log, however, shows that the RSC device is found, connects, then disconnects right away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't establish connection from reset when peripheral and central advertise/scan with whitelist</title><link>https://devzone.nordicsemi.com/thread/112047?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2015 14:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd8a2b12-8b13-4c04-bb72-1bed9ee90995</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Using a whitelist with advertising and scanning should be perfectly possible. I&amp;#39;m not sure what is happening in your application. Maybe you can provide a sniffer trace?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>