<?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>Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4050/peripheral-in-a-connected-mode-and-broadcaster</link><description>For nRF51 series chips and S110, S120, S130 soft devices. 
 Is it somehow possible to have a connected ble peripheral while broadcasting data? 
 S110 spec doc says &amp;quot;broadcaster can run concurrently with a peripheral in a connection.&amp;quot;. It seems that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 Nov 2015 00:25:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4050/peripheral-in-a-connected-mode-and-broadcaster" /><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14527?ContentTypeID=1</link><pubDate>Sat, 07 Nov 2015 00:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54123eb3-7481-43d5-9e94-90354ba88732</guid><dc:creator>Mike Voytovich</dc:creator><description>&lt;p&gt;Thanks for the answer Petter, I tried this on S132 and it worked fine.  Note that I did have to call &lt;code&gt;sd_ble_gap-adv_stop()&lt;/code&gt; on the &lt;code&gt;BLE_GAP_EVT_DISCONNECTED&lt;/code&gt; event first, before calling &lt;code&gt;sd_ble_gap_adv_start()&lt;/code&gt; again with type &lt;code&gt;BLE_GAP_ADV_TYPE_ADV_IND&lt;/code&gt; to re-advertise as connectable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14526?ContentTypeID=1</link><pubDate>Thu, 23 Oct 2014 21:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68e4f2c8-791e-4d18-b468-e526641ce8eb</guid><dc:creator>Yaroslav</dc:creator><description>&lt;p&gt;So, have you tried to restart advertising after connection and it works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14521?ContentTypeID=1</link><pubDate>Thu, 23 Oct 2014 17:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f03d24a2-788c-4fcb-b64d-0469e816d7f1</guid><dc:creator>Yaroslav</dc:creator><description>&lt;p&gt;I have tried starting new advertising while connected on S110. I set type to BLE_GAP_ADV_TYPE_ADV_NONCONN_IND and 150 ms interval.  But device just reboots.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14524?ContentTypeID=1</link><pubDate>Thu, 16 Oct 2014 07:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233ee677-cafa-4ccc-8d0c-d3db40d136dd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you find my answer sufficient please accept it by clicking the grey circle with a check mark in it. If you have more questions I would appreciate if you could add them separately, so they can be helpful to others, not hidden in the comments. That said, have you examined SoftDevice S130?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14525?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2014 17:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb2d2a3b-c61e-4f1c-a63a-002198105c07</guid><dc:creator>tadas</dc:creator><description>&lt;p&gt;Thanks Petter. I was able to test this on S110. Is it possible to do something similar on S310? I&amp;#39;m basically trying to decide on my stack, so I could implement mesh networking. It seems that you cannot be a scanner and broadcaster at the same time on S110. I was looking at examples on your github page at &lt;a href="https://github.com/NordicSemiconductor/nRF51-multi-role-conn-observer-advertiser/"&gt;github.com/.../&lt;/a&gt;. It looks like you&amp;#39;re not using standard softdevice ble calls but accessing radio directly. I was thinking about implementing mesh with ant but i&amp;#39;d also like to be able to broadcast data on S310 while in connected mode, in case we decide to move mesh to bluetooth completely. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14523?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 20:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf70062-60f1-407d-9e00-d72c184f8381</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Does a BLE_GAP_EVT_CONNECTED event automatically cause Advertising to cease?   I notice that most example project have a Start function but no Stop function for Advertising.   It would be my assumption then that the Stack must automatically stop Advertising and thus it is up to the application to restart Advertising (unconnectable).  Is this accurate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14522?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 12:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee5f2082-6687-42d6-ac93-ce343a269a5d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Locky is correct, you can trigger the advertising on the &lt;code&gt;BLE_GAP_EVT_CONNECTED&lt;/code&gt; event. The advertising type must be set to &lt;code&gt;BLE_GAP_ADV_TYPE_ADV_NONCONN_IND&lt;/code&gt; and the advertising interval must be over 100 ms.&lt;/p&gt;
&lt;p&gt;Just declare a new &lt;code&gt;ble_gap_adv_params_t&lt;/code&gt; struct, a separate &lt;code&gt;advertising_init()&lt;/code&gt; function and start the advertising with &lt;code&gt;sd_ble_gap_adv_start()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Locky: The SoftDevice automatically stops the advertising. The &lt;code&gt;BLE_GAP_EVT_CONNECTED&lt;/code&gt; is sent to the application after a connection is established.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral in a connected mode and broadcaster</title><link>https://devzone.nordicsemi.com/thread/14520?ContentTypeID=1</link><pubDate>Sat, 11 Oct 2014 04:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f18a037-ead3-4678-a4e5-5cb3b9623186</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;We were told by Nordic that this was going to be in the current release of S110.  So I do believe this is possible, however I cannot provide any help with a code example (not there yet in f/w development).  Have you tried simply starting advertising while connected?  I assume you have to change to un-connectable advertising first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>