<?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>Attempting to Start Scanning after disconnecting as peripheral causes NRF_INVALID_STATE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16301/attempting-to-start-scanning-after-disconnecting-as-peripheral-causes-nrf_invalid_state</link><description>We have bots (what I&amp;#39;m calling our device for this question) that play both the peripheral and central role depending on their context (not unlike the relay example; except these bots talk to each other, not other devices). 
 In our code, we do the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Sep 2016 11:43:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16301/attempting-to-start-scanning-after-disconnecting-as-peripheral-causes-nrf_invalid_state" /><item><title>RE: Attempting to Start Scanning after disconnecting as peripheral causes NRF_INVALID_STATE</title><link>https://devzone.nordicsemi.com/thread/62320?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2016 11:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30878462-b7dd-4365-b374-edaaf5bb08f0</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You are sure you are not in connection phase or there is an ongoing flash operation when you try to start scanning? See &lt;a href="https://devzone.nordicsemi.com/question/15469/how-to-handle-nrf_error_invalid_state-of-sd_ble_gap_scan_start/"&gt;this&lt;/a&gt; post (if you have not already seen it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attempting to Start Scanning after disconnecting as peripheral causes NRF_INVALID_STATE</title><link>https://devzone.nordicsemi.com/thread/62318?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 11:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e24c3f8-97db-451c-8d40-219213477e17</guid><dc:creator>gortok</dc:creator><description>&lt;p&gt;Elsewhere we are doing FDS write and FDS GC, and scanning fails when one of those operations timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attempting to Start Scanning after disconnecting as peripheral causes NRF_INVALID_STATE</title><link>https://devzone.nordicsemi.com/thread/62319?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 11:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06253733-c23d-4987-932f-9519a206a4aa</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;How do you know it fails due to the &lt;code&gt;NRF_EVT_FLASH_OPERATION_ERROR&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attempting to Start Scanning after disconnecting as peripheral causes NRF_INVALID_STATE</title><link>https://devzone.nordicsemi.com/thread/62317?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 17:34:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bfab3f8-c202-4862-ab81-0d9d92ec5657</guid><dc:creator>gortok</dc:creator><description>&lt;p&gt;bumping because no response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Attempting to Start Scanning after disconnecting as peripheral causes NRF_INVALID_STATE</title><link>https://devzone.nordicsemi.com/thread/62316?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 22:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:782cff68-1da5-4597-a730-5d7bf7ef8889</guid><dc:creator>gortok</dc:creator><description>&lt;p&gt;I should note that restarting advertising after disconnection always works; but scanning does not, but only as the peripheral, and only when the central initiates the disconnection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>