<?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>how to know softdevice state</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11581/how-to-know-softdevice-state</link><description>I am using s120 for central device, and my central device connects to multiple BLE slaves. After connection, some slaves may lost connection due to power off of that device. The device might be powered on again after sometime. 
 The way I am currently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Jan 2016 08:36:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11581/how-to-know-softdevice-state" /><item><title>RE: how to know softdevice state</title><link>https://devzone.nordicsemi.com/thread/43743?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2016 08:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c956e8b-e3fa-46e8-bb26-8c0232836ed6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi YSquare,&lt;/p&gt;
&lt;p&gt;What is the advertisement interval from the peripheral  side and what are scan interval and window size on central side?&lt;/p&gt;
&lt;p&gt;If central is not getting ADV report from peripheral then something is wrong, i recommend you to sniff the packets to see if peripheral packets are coming out into air and still central side is not able to get them. Also debug your central to see if it has hardfaulted or something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to know softdevice state</title><link>https://devzone.nordicsemi.com/thread/43742?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2016 07:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e3a1b2-d861-46f9-8d23-f4ce8839a5af</guid><dc:creator>YSquare</dc:creator><description>&lt;p&gt;Thanks Aryan for your answer. Your suggestion is correct for the very beginning of the connection establishment.&lt;/p&gt;
&lt;p&gt;For S120, the specification says &amp;quot; Up to 8 concurrent links supported as a Central. Observer can run concurrently with a central in a connection.&amp;quot; So I suppose, after a connected slave is power off, then on again, I could receive  advertising report after calling sd_ble_gap_scan_start() in the central device with S120.  This seems also the suggested method in another post:
&lt;a href="https://devzone.nordicsemi.com/question/48294/why-there-are-no-broadcaster-and-observer-role-in-ble_gaph/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, there is no advertising report event received. (The slave is still advertising). Any assumption to call &amp;quot;sd_ble_gap_scan_start()&amp;quot;? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to know softdevice state</title><link>https://devzone.nordicsemi.com/thread/43741?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2016 07:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4da45b7a-de27-447f-858f-8acd94840578</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Your Central should always send a connect request &lt;code&gt;sd_ble_gap_connect&lt;/code&gt; only when it gets an advertising report event &lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt; from that slave. From the advertisement report you can parse the information of that slave. If your central is doing active scanning then you can get more information in &lt;code&gt;BLE_GAP_EVT_SCAN_REQ_REPORT&lt;/code&gt; event.&lt;/p&gt;
&lt;p&gt;When you get one of this event and your central is able to parse the information to know that it came from the slave device you want to connect, then sending connect request is safe as you know that slave was advertising at-most 150us ago.&lt;/p&gt;
&lt;p&gt;You can look in some of the central examples in SDK. I do not see any other way of polling non connected device states.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>