<?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>Adding observer role to peripheral example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36678/adding-observer-role-to-peripheral-example</link><description>I started development with the S132 (SDK 15.0.0) peripheral example &amp;quot;blinky&amp;quot;. After some modification, it handles all necessary communication with my phone flawlessly. Now, I would like to add a concurrent observer role that will allow me to listen for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Jul 2018 23:09:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36678/adding-observer-role-to-peripheral-example" /><item><title>RE: Adding observer role to peripheral example</title><link>https://devzone.nordicsemi.com/thread/141584?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 23:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58a72f1-f0fc-405d-88a5-8a6998597d88</guid><dc:creator>Tanner</dc:creator><description>&lt;p&gt;I found the obvious step that I was missing. Apparently, scanning for advertising packets will stop when the status of a received advertisement packet is not&amp;nbsp; BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA. Scanning has to be restarted when these packets are received. From the S132 API Reference (v6.0.0):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;* @note&amp;nbsp;&amp;nbsp;&amp;nbsp; The scanner will automatically stop when ... a @ref BLE_GAP_EVT_ADV_REPORT event is received and @ref ble_gap_adv_report_type_t::status is not set to @ref BLE_GAP_ADV_DATA_STATUS_INCOMPLETE_MORE_DATA. In this case scanning is only paused to let the application access received data. The application must call this function to continue scanning, or call @ref sd_ble_gap_scan_stop to stop scanning.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So the fix for me was to call observe_start(), defined above, after every received advertising packet. Interestingly, the sd_ble_gap_scan_stop() portion of observe_start() was necessary to restart scanning. Trying to restart without calling out the stop function returned NRF_ERROR_INVALID_STATE.&lt;/p&gt;
&lt;p&gt;As Martin mentioned, db_discovery and lbs_c were not necessary, since I wasn&amp;#39;t trying to make a connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding observer role to peripheral example</title><link>https://devzone.nordicsemi.com/thread/141280?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 08:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ce61ced-a935-47cf-8a7b-438d015d2a3c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the slow response. It is holiday season in Norway and the response time is slower than usual.&lt;/p&gt;
&lt;p&gt;I suggest that you have a look at the&amp;nbsp;&lt;a title="BLE Central &amp;amp; Peripheral" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/examples_ble_cen_per.html?cp=4_0_0_4_1_1"&gt;BLE Central &amp;amp; Peripheral&lt;/a&gt;&amp;nbsp;examples. They show how you can e.g. act as a relay and connect to both a central and peripheral(s) at the same time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;db_discovery_init() stuff should only be necessary of you plan on connecting to&amp;nbsp;peripherals and use their services and characteristics.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are still struggling, do you mind uploading your entire project so I can have a look?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding observer role to peripheral example</title><link>https://devzone.nordicsemi.com/thread/141207?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 18:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da2cac4f-9307-4730-a296-cdbd3bd15309</guid><dc:creator>Tanner</dc:creator><description>&lt;p&gt;I have not, but glad to know I&amp;#39;m not alone. I&amp;#39;ll be sure to update this thread if I do find a solution. I also received an email from Nordic indicating that an engineer has been assigned to this ticket, so hopefully we&amp;#39;ll get some input soon. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding observer role to peripheral example</title><link>https://devzone.nordicsemi.com/thread/141063?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 01:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:214b384c-7da8-41fc-b6d4-e21a525a5c4d</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;&lt;span&gt;I wonder if you have solved this problem. If you did, I would like to know the answer.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>