<?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>Connecting to a device that advertises infrequently</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99529/connecting-to-a-device-that-advertises-infrequently</link><description>I&amp;#39;m currently using nRF52832 and nRF52840 with the former sending one advertisement every several seconds and the latter opening a connection. I see from the Bluetooth spec that a connection is established by transmitting a CONNECT_IND packet after a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jul 2023 07:52:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99529/connecting-to-a-device-that-advertises-infrequently" /><item><title>RE: Connecting to a device that advertises infrequently</title><link>https://devzone.nordicsemi.com/thread/435630?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 07:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb4d5ec-c77d-4301-a18d-f95c0c82b4b1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You should look at using multiple advertisment sets to achieve this:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting to a device that advertises infrequently</title><link>https://devzone.nordicsemi.com/thread/435581?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 23:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42d65c86-fce8-48e4-a70c-d408b3848699</guid><dc:creator>Frog</dc:creator><description>&lt;p&gt;So the picture becomes a little more complicated...&lt;/p&gt;
&lt;p&gt;What if I were to transmit one advertisement followed by a second after a short delay (maybe 200ms) with the intention that the 52840 sees the first advertisement and connects during the T_IFS period of the second?&lt;/p&gt;
&lt;p&gt;From a power management point of view it would be ideal to keep the rx open only during the T_IFS of the second advertisement and not the first.&amp;nbsp; Is there a way to coerce the BLE stack to transmit a first advertisement that is marked as connectable but doesn&amp;#39;t wait for a connection, and then a second that isn&amp;#39;t marked as connectable but does in fact allow a connection?&lt;/p&gt;
&lt;p&gt;To complicate things a little further, I&amp;#39;d like to do this periodically (maybe once per minute) and advertise as non-connectable in between, although this may be more straightforward to do.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using Zephyr and the 2.4.0 SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting to a device that advertises infrequently</title><link>https://devzone.nordicsemi.com/thread/424485?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 11:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d565e17c-7b25-455d-b2e8-b851005c8310</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]My question is whether it is possible for the nRF52840 to receive an advertisement, decide (somehow) that it&amp;#39;s appropriate to connect, and start to open a connection within that T_IFS period, or whether any attempt to connect will always result in the nRF52840 waiting for the next advertisement from the chosen device.[/quote]
&lt;p&gt;Yes and no;&lt;/p&gt;
&lt;p&gt;Yes, if you use the connect api to connect to a known peer device (e.g. you know the address of the peer).&lt;/p&gt;
&lt;p&gt;No, if you plan for the application to analyze the content of the advertisment and try to connect immediately.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>