<?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>Central connect to Peripheral without scanning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99546/central-connect-to-peripheral-without-scanning</link><description>I have an existing BLE Peripheral device based on nRF52832 which is running GATT and advertising with a long period to conserve power. What I now need to do is use another nRF device in Central mode to connect to it, write, then disconnect after a user</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 May 2023 14:48:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99546/central-connect-to-peripheral-without-scanning" /><item><title>RE: Central connect to Peripheral without scanning</title><link>https://devzone.nordicsemi.com/thread/425160?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 14:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cde35b3a-7530-4bcf-9713-789394fc1408</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;OK so it looks like in this instance I have a 1+ sec delay just to connect which I was hoping to short-circuit (a bit like ARP caching in networking parlence) but it doesn&amp;#39;t look like I can do that. Ah well, at least I can set expectations before development so thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central connect to Peripheral without scanning</title><link>https://devzone.nordicsemi.com/thread/425069?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 10:55:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7af5ddb5-e871-43aa-9683-c108a8aeb9fa</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;When we do normal scanning then connecting, we are first reading the advertisements to find a device that we want to connect. In the advertisement event what we want to connect to, we call sd_ble_gap_connect, and one of the input parameters of this function is the address, which we get from the advertising packet. Then the central will continue to scan, because it needs to send the connection packet directly after an advertising packet.&lt;/p&gt;
&lt;p&gt;If you skip the scanning and just connect, it will be able to connect to the first advertising packet that it picks up. But scanning and then connecting takes at least two advertising packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central connect to Peripheral without scanning</title><link>https://devzone.nordicsemi.com/thread/424635?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 15:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c11eae0d-5269-4442-bf5d-a65781592aef</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;nRF5 SDK, and yes the peripheral is advertising at 625ms interval.&lt;/p&gt;
&lt;p&gt;So are you effectively saying there&amp;#39;s no advantage, that connect is effectively the same as scanning with a whitelist?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central connect to Peripheral without scanning</title><link>https://devzone.nordicsemi.com/thread/424570?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 13:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dabfe4a3-740c-4ce4-ab1e-33c037fb355d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you using NCS or nRF5 SDK? In nR5 SDK, if central knows the MAC address of the peripheral, it is possible as long as the peripheral, you try to connect is advertising. &lt;span&gt; The Softdevice will perform a scanning after the sd_ble_gap_connect()&amp;nbsp;has been called regardless of the&amp;nbsp;application has performed scanning or not.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>