<?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>Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89864/extended-advertising-stops-after-connection-gets-established-in-nrf-connect-sdk</link><description>Hello.. 
 I tried implementing a simple application using nRF Connect SDK, which sends data in a connection event using notifications. This is the base code for a test application which requires the peripheral to operate in the connectable (and non-scannable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Feb 2024 13:30:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89864/extended-advertising-stops-after-connection-gets-established-in-nrf-connect-sdk" /><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/467932?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 13:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73478a10-0086-4a2a-be2c-c865bc2fa0c7</guid><dc:creator>Levig</dc:creator><description>&lt;p&gt;Hi Sukriti! Could you share with me how you could solve this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/377152?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 10:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3234b15-5e1b-4aec-b2a1-f008d692492e</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Hi Simon, thanks for the help. The issue got resolved, you can close the ticket!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/377089?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 07:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd75654f-7b92-4ad9-8b6a-57984174d6a9</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Oh, I&amp;#39;m sorry, yes you&amp;#39;re right. I got confused while typing, wanted to say something else. I actually wanted to say that the connectable advertising set resumes only after getting disconnected. You said that i should be able to start the same advertising set after getting connected to a device. But I had already tried doing that, and i got the errors that i attached.&lt;/p&gt;
&lt;p&gt;And in the sample, the second advertising set starts once the device gets connected (not the same set). The same set starts only after getting disconnected. I hope I&amp;#39;m able to convey where I&amp;#39;m getting stuck.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/377084?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 07:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db7f8d0-f048-4ebe-9786-d692e9d3793b</guid><dc:creator>Simonr</dc:creator><description>[quote user="Sukriti "]If use two sets (as used in the sample) and I make the second advertising set connectable, would it mean allowing two simultaneous connections[/quote]
&lt;p&gt;Yes, you should be able to connect to two devices with different advertising sets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You say that the multiple advertising sets sample only starts the second advertising after disconnection? That is not what the sample does by default though, it creates both advertising sets one at a time, starting one and creating the next adv. set afterwards. It should not be necessary to connect/disconnect at all to see both advertising sets started.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	err = non_connectable_adv_create(); //advertising set 1
	if (err) {
		return;
	}

	printk(&amp;quot;Non-connectable advertising started\n&amp;quot;);

	err = connectable_adv_create(); //advertising set 2
	if (err) {
		return;
	}

	printk(&amp;quot;Connectable advertising started\n&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/376827?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 16:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d459b9d-b911-4952-abd8-00f53599f81e</guid><dc:creator>Sukriti </dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/89864/extended-advertising-stops-after-connection-gets-established-in-nrf-connect-sdk/376800"]Alternatively if you want to use the same advertising set it&amp;#39;s possible to start advertising with that also after connecting to the first device[/quote]
&lt;p&gt;Exactly what I tried doing using the advertising connected callback &lt;em&gt;(bt_le_ext_adv_cb)&lt;/em&gt;, but I got the errors mentioned in the first thread. I&amp;#39;m unable to figure out how it can be achieved taking the multiple advertising sets sample as a reference, because this sample only&amp;nbsp;starts the second set after the first one gets disconnected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/376826?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 16:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063caa1a-60c5-496a-97b0-9d333d35498d</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Thanks Simon. So basically, while the&amp;nbsp;peripheral is connected to one device, it is only &amp;quot;visible&amp;quot; to other devices (in a non-connectable mode) and can not connect to them. I&amp;#39;m not sure how&amp;nbsp;the same set can be used with this approach, but I&amp;#39;ll give it a try.&lt;/p&gt;
&lt;p&gt;If use two sets (as used in the sample) and I make the second advertising set connectable, would it mean allowing two simultaneous connections (using disconnected callbacks for both the sets)?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/376800?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 13:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c09da1dc-f733-4ecc-a76a-809e3fad255a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;One way to go about this would be to implement multiple advertising sets. This lets you start another advertisement once connected to one device for example, either similar or different to the first advertising set. We have a sample application available &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;here&lt;/a&gt;. Alternatively if you want to use the same advertising set it&amp;#39;s possible to start advertising with that also after connecting to the first device. Similar procedure to what is done in the advertising sets sample I think.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/376626?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 13:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8f86cc8-4e4c-45f2-ab97-9a4306f431c2</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I have attached both main files.. &amp;quot;adv_connected_cb&amp;quot; throws error, while &amp;quot;disconnected&amp;quot; resumes extended advertising after the peripheral gets disconnected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The application has a custom service which contains readable&amp;nbsp;(long) characteristic value. Notifications are also enabled. The same data is transferred to the connected device through both notification and read request/response. Notifications are sent out at intervals of 10 ms. I used nRF Connect Mobile App for Android as Central. This application is just a modified version of the Zephyr Peripheral example. I made changes to the prj.conf file, which I already mentioned in the previous thread.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/disconnected_5F00_cb.c"&gt;/cfs-file/__key/communityserver-discussions-components-files/4/disconnected_5F00_cb.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adv_5F00_connected_5F00_cb.c"&gt;/cfs-file/__key/communityserver-discussions-components-files/4/adv_5F00_connected_5F00_cb.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising stops after connection gets established in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/376619?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 13:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:446771fe-9c3e-4171-9455-20d7ca4cf1b3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What exactly does your application do after you connect to a device? Do you tell it to start advertising again after it has connected to the first central device? Can you show me your main file?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>