<?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>S120 softdevice on nRF51822 : How to alternate between scanning and advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1839/s120-softdevice-on-nrf51822-how-to-alternate-between-scanning-and-advertising</link><description>Hi, 
 On a nRF51822 (QFAAG0) with S120 softdevice (using the recent PCA 10001 v2.2.0 board), i&amp;#39;m trying to perform these operations successively: 
 
 a simple RSSI scan 
 stop scanning 
 start advertising 
 
 Refering to this topic : Can nRF51822</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Feb 2015 11:24:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1839/s120-softdevice-on-nrf51822-how-to-alternate-between-scanning-and-advertising" /><item><title>RE: S120 softdevice on nRF51822 : How to alternate between scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/7964?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2015 11:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:051ba3d8-dfe1-4b86-b866-babbf36adf04</guid><dc:creator>Alessandro</dc:creator><description>&lt;p&gt;Hi Ole,
I have also to alternate between scanning and advertising but I am still waiting for the boards so I couldn&amp;#39;t try anything yet :)
I was reading the documentation for the SD S120 v2.1 and it says that the stack is initializable at runtime as either Central or Peripheral therefore I was wondering if it is possible to use the S120 to alternate between scanning and advertising and if there is any drawback in doing that.
My idea is to initialize the stack as peripheral, advertise for a certain period, close the stack, initialize it as central, scan for a certain period and then repeat.
Is this approach feasible?
Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 softdevice on nRF51822 : How to alternate between scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/7967?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2014 15:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbbed667-afb0-4ef7-a55c-e7b35550ed05</guid><dc:creator>Scott Piette</dc:creator><description>&lt;p&gt;Hi, I am also in this situation where I need to primarly act as a peripheral, but on a regular basis scan for advertisements from another peripheral.  I too was hoping the S120 would allow this operation but unfortunately it appears does not.  I don&amp;#39;t need all of the functionality of a central, just to be able to scan for advertisements (I am planning on having my information broadcast in the advertisement on the other sensor).  Vaio, Arnaud, any guidance on your success would be appreciated.  Thanks, Scott&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 softdevice on nRF51822 : How to alternate between scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/7966?ContentTypeID=1</link><pubDate>Thu, 08 May 2014 15:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29752ff-d50d-4570-a179-e64ee370e265</guid><dc:creator>Vaio</dc:creator><description>&lt;p&gt;Hi Arnaud,&lt;/p&gt;
&lt;p&gt;I just stumbled upon your question, as I am facing pretty much the same challenge.
I need a device, which primarily is in the peripheral role.
However, about every once a minute, the device should also do a scan (to detect the presence of a base station nearby).
Therefore, I&amp;#39;d need a combination of (mainly) peripheral role and (sometimes) scanning role.&lt;/p&gt;
&lt;p&gt;Did you succeed yet in making a scan without S120? (do you have S110 then, or no SD at all?)&lt;/p&gt;
&lt;p&gt;Thanks,
Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 softdevice on nRF51822 : How to alternate between scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/7965?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2014 13:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed3ab629-1957-4825-801d-1a63796cf31a</guid><dc:creator>Arnaud Waels</dc:creator><description>&lt;p&gt;Hi Ole&lt;/p&gt;
&lt;p&gt;Thanks a lot for your fast reply.
I indeed missed out the possibility of implementing a scan without S120. It sounds like a pretty good option. I&amp;#39;m gonna give it a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 softdevice on nRF51822 : How to alternate between scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/7963?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2014 13:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e22c5c9-64fd-4576-9cc8-f758e9813944</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As the question you linked to says, it is not possible to use the S120 as a Peripheral, i.e. to advertise. The functions are included in the header files, but will as you have found out return NRF_ERROR_NOT_SUPPORTED.&lt;/p&gt;
&lt;p&gt;Depending on your requirements, it could perhaps be an option to implement the scanner (or the advertiser, depending on which role you&amp;#39;ll primarily use) in your application instead of using a softdevice. If you want to try this, you may have use in taking a look at &lt;a href="https://devzone.nordicsemi.com/index.php/broadcaster-observer-low-level-implementation"&gt;this question&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want information on future plans and developments, you should get in touch with our sales manager for your area. If you don&amp;#39;t have his contact information, please send me a PM with your location.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>